/* =========================================
   1. TIPOGRAFÍA Y BASES
   ========================================= */
@font-face {
    font-family: font1;
    src: url('../fonts/AndikaCompact-R.ttf');
    font-weight: normal; font-style: normal; 
}

body {
    font-family: font1, 'Georgia', serif;
    direction: LTR;
    font-size: 20px;
    color: #2D2926;
    margin: 0;
    background-image: url('../images/fondo-papel.png') !important;
    background-attachment: fixed !important; 
    background-size: cover !important;        
    background-position: center !important;
    background-color: #F4ECD8 !important;
}

/* =========================================
   2. ESTRUCTURA DE PÁGINA Y CONTENIDO
   ========================================= */
#content {
    max-width: 800px;
    height: auto;
    padding: 30px !important;
    margin: 70px auto 100px; 
    background-color: rgba(244, 236, 216, 0.6) !important;
    border-radius: 10px;
    line-height: 1.8;
    padding-bottom: 250px !important; /* Espacio extra para que el cartel respire */
}

/* =========================================
   3. BARRA SUPERIOR (TOP)
   ========================================= */
#toolbar-top {
    background-color: #E6D5AC !important;
    border-bottom: 1px solid #D4AC0D !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    top: 0px;
    width: 100%;
    position: fixed;
    z-index: 2000;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

#toolbar-top * { display: none !important; }

#toolbar-top::after {
    content: "LO QUE SOMOS, EN SILENCIO...";
    display: block !important;
    font-family: 'Georgia', serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #2D2926;
}

/* =========================================
   4. BARRA INFERIOR (PLAYER)
   ========================================= */
#toolbar-bottom {
    background-color: #E6D5AC !important;
    border-top: 1px solid #D4AC0D !important;
    bottom: 0px;
    width: 100%;
    position: fixed;
    z-index: 2000;
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#toolbar-bottom audio {
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.audio-player-minimal {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controles-custom {
    display: flex;
    align-items: center;
    gap: 20px;
}

.boton-circular {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    border: 1.5px solid #5D4037;
    background: transparent;
    color: #5D4037;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boton-circular-secundario {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    border: 1px solid #5D4037;
    background: transparent;
    color: #5D4037;
    font-size: 0.6rem;
}

.progreso-contenedor {
    width: 120px;
    height: 4px;
    background: rgba(93, 64, 55, 0.2);
    margin-top: 4px;
    border-radius: 2px;
}

.progreso-relleno {
    width: 0%;
    height: 100%;
    background: #D4AC0D;
}

/* =========================================
   5. RESALTADO DE TEXTO (SOLO PALABRAS)
   ========================================= */
.txs.selected, highlighting, .highlight {
    background-color: rgba(212, 172, 13, 0.5) !important;
    color: #000000 !important;
    border-radius: 3px !important;
    /* ESTO CORRIGE EL RESALTADO ANCHO */
    display: inline !important; 
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* =========================================
   6. CARTEL DE INVITACIÓN FINAL (BLINDADO)
   ========================================= */
.tarjeta-final-fija {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 80px auto !important;
    padding: 35px !important;
    max-width: 85% !important;
    background-color: #E6D5AC !important; /* Color sólido para evitar parpadeos */
    border: 2px solid #D4AC0D !important;
    border-radius: 15px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Evita que el sistema resalte el fondo de los textos dentro del cartel */
.tarjeta-final-fija h3, 
.tarjeta-final-fija p, 
.tarjeta-final-fija div {
    background: transparent !important;
    background-color: transparent !important;
}

.tarjeta-final-fija h3 {
    font-family: 'Georgia', serif !important;
    color: #5D4037 !important;
    font-size: 1.6rem !important;
    margin-bottom: 15px !important;
}

/* BOTÓN DE COMPRA: Contraste máximo */
.boton-comprar {
    display: inline-block !important;
    padding: 16px 32px !important;
    background-color: #5D4037 !important; /* Café muy oscuro */
    color: #FFFFFF !important;            /* Blanco puro */
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    border: 2px solid #D4AC0D !important;
    cursor: pointer !important;
}

.boton-comprar:hover {
    background-color: #D4AC0D !important;
    color: #5D4037 !important;
}

/* Ocultar cualquier residuo que el sistema intente duplicar */
.tarjeta-final:empty, .b:empty { display: none !important; }