:root {
    --color_fondo_primario: 152, 116, 52;
    /* Tono Dorado */
    --color_fondo_secundario: 255, 255, 255;
    --color_cabeceras: 33, 33, 33;
    --color_texto_primario: 0, 0, 0;
    --color_texto_secundario: 0, 0, 0;
    --color_texto_titulos: 116, 46, 40;
    /* Tono Marrón Oscuro */
    --color_texto_resaltado: 152, 116, 52;
    --color_footer_apartado: 152, 116, 52;
}


#intro .about-btn {
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    color: rgb(var(--color_fondo_primario));
    background: rgba(var(--color_fondo_secundario), 0.6);
    border: 2px solid rgb(var(--color_fondo_primario));
}

.nav-menu .menu-active a,
.nav-menu a:hover {
    color: rgb(255, 255, 255);
}

.nav-menu>li>a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(255, 255, 255);
    visibility: hidden;
    transition: all 0.3s ease-in-out 0s;
}


#evento:before {
    background: rgba(var(--color_fondo_secundario), 0.99);
}

#evento p {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgb(var(--color_texto_primario));
}

div.evento {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.eventos .evento .detalles {
    bottom: -30px;
}

.section-with-bg {
    background-color: rgb(var(--color_texto_primario));
}

#agenda .agenda-item {
    font-size: 14px;
    padding-bottom: 10px;
}

section#hotels p {
    font-size: 14px;
    padding: 0 13px;
    margin-bottom: 4px;
}

.section-header {
    padding-bottom: 10px;
}

#faq h4 {
    color: rgba(var(--color_fondo_primario));
}

div#faq1 {
    margin-top: 30px;
}

.faq .faq-list a {
    width: 300px;
    margin: auto;
}

section#contacto h3 {
    color: rgba(var(--color_fondo_secundario));
}

#footer .footer-top {
    background: rgba(var(--color_fondo_primario), 0.88);
}

#footer {
    background: rgba(var(--color_fondo_negro));
}




#videos_youtube {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
    font-size: 0;
    /*No permite que muestre el titulo del video*/
}

#videos_youtube .col-12 {
    line-height: 0;
    padding: 0;
}

#videos_youtube iframe {
    display: block !important;
    vertical-align: bottom;
    margin: 0 !important;
}

#main>section:nth-of-type(1) {
    margin-bottom: 0 !important;
}

/* Estilos para el botón compacto con icono */
section.evento .about-btn.btn-temporada-sm {
    font-size: 15px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

section.evento .about-btn.btn-temporada-sm i {
    margin-right: 8px;
    font-size: 16px;
    display: inline-block;
    line-height: 1;
}

@media (min-width: 992px) {

    .row-separadores {
        display: flex;
        align-items: stretch;
        min-height: 400px;
        position: relative;
    }

    .row-separadores>[class*="col-"] {
        min-height: 400px;
    }

    .row-separadores>.col-con-borde:not(:last-child) {
        border-right: none !important;
        position: relative;
    }

    /* 2. Creamos la línea vertical dorada homogénea con holgura arriba y abajo */
    .row-separadores>.col-con-borde:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 25px;
        /* Separación respecto al borde superior */
        bottom: 25px;
        /* Separación respecto al borde inferior */
        width: 2px;
        /* Grosor homogéneo de la línea */
        background-color: #a88c52;
        /* Mismo tono dorado */
        border-radius: 1px;
    }

    .row-separadores>.col-lg-custom-30:last-child {
        display: flex;
        align-items: center;
    }

    .row-separadores>.col-lg-custom-30:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .row-separadores>.col-lg-custom-40 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 35px;
        padding-right: 35px;
        box-sizing: border-box;
    }

    .col-lg-custom-30 .w-100.h-100 {
        height: 100% !important;
    }

    .img-derecha-fija {
        max-height: 400px !important;
        width: auto !important;
    }
}


@media (max-width: 991.98px) {
    .img-derecha-fija {
        height: auto !important;
        max-height: 350px;
    }
}

@media (min-width: 992px) {
    .col-lg-custom-30 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
    }

    .col-lg-custom-40 {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
}

/* ==========================================
   SECCIÓN LIBRO
   ========================================== */

.evento-libro-section {
    position: relative;

    background-image: url('images/img_partituraDaCapo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    border-top: none !important;
    border-bottom: none !important;
    overflow: hidden;
}

.evento-libro-section>.container-fluid {
    position: relative;
    z-index: 1;
}

.evento-libro-section .row {
    background-color: transparent;
}


.bloque-texto-izq {
    max-width: 310px;
}

.titulo-temporada-papel {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(var(--color_texto_secundario)) !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: left;
}

.linea-separadora-titulo {
    width: 45px;
    height: 2px;
    background-color: #a88c52;
    margin: 0 0 12px 0;
}

.descripcion-libro {
    font-family: "DejaVu Serif", serif;
    font-weight: 400;
    font-style: normal;
    color: #555555;
    line-height: 1.4;
}

/* Altura unificada para la portada del libro */
.img-libro-portada {
    max-height: 280px;
    width: auto;
    object-fit: contain;
}

.btn-descargar-libro {
    background-color: #a88c52;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(168, 140, 82, 0.3);
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-descargar-libro:hover {
    background-color: #8c7343;
    color: #ffffff !important;
}

.btn-descargar-libro i {
    margin-right: 8px;
    font-size: 1rem;
    line-height: 1;
}

.subtext-descarga {
    font-family: "DejaVu Serif", serif;
    font-weight: 200;
    color: #555555;
    font-style: italic;
}


.col-derecha-lado-a-lado {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Partitura ajustada con la misma proporción de altura que el libro y posicionada al extremo derecho */
.partitura-adyacente {
    flex-shrink: 0;
}

.img-partitura-portada {
    max-height: 280px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
}

/* Adaptabilidad en móviles y tablets */
@media (max-width: 991.98px) {
    .col-derecha-lado-a-lado .d-flex {
        justify-content: center !important;
    }

    .partitura-adyacente {
        margin-top: 15px;
    }

    .img-partitura-portada {
        max-height: 200px;
        margin-inline: auto;
    }
}

/*==========================================
    SECCION LA TEMPORADA
  ========================================== */

section.evento {
    position: relative;
    overflow: hidden;
    background-color: rgb(var(--color_fondo_secundario));
    color: rgb(var(--color_texto_primario));
    padding: 0;
    margin-bottom: 0;
}

section.evento>.container-fluid {
    position: relative;
    overflow: hidden;

    background-image: url('images/img_fondo_laTemporada.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

section.evento:before {
    display: none;
}

section.evento .row {
    background-color: transparent;
}

.fondo-imagen-derecha-contain {
    background-image: none;
    background-color: transparent;

    padding: 0 !important;
    position: relative;
}

.bloque-texto-superpuesto {
    position: relative;
    z-index: 2;
    background-color: transparent !important;
    box-shadow: none !important;
    max-width: 85%;
}

section.evento .about-btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    transition: 0.5s;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    color: rgb(var(--color_fondo_primario));
    background: rgba(var(--color_fondo_secundario), 0.6);
    border: 2px solid rgb(var(--color_fondo_primario));
    text-decoration: none;
}

section.evento .about-btn:hover {
    background-color: rgb(var(--color_fondo_primario));
    color: rgb(var(--color_fondo_secundario));
}



/* Ajuste específico para el título */
.titulo-temporada-papel {
    color: rgb(var(--color_texto_titulos)) !important;
    font-size: 1.2rem;
    font-family: "DejaVu Serif", serif;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}


.titulo-temporada-central {
    color: rgb(var(--color_texto_titulos)) !important;
    font-family: "DejaVu Serif", serif;
    font-weight: 800;
    font-style: normal;
}

.subtitulo-temporada-central {
    color: rgb(var(--color_texto_titulos)) !important;
    font-family: "DejaVu Serif", serif;
    font-weight: 400;
    font-style: italic;
}

section.evento .col-lg-custom-40 {
    font-family: "DejaVu Serif", serif;
    font-weight: 400;
    font-style: normal;
}

/* Ajuste de la línea separadora */
.linea-separadora-titulo {
    width: 50px;
    height: 4px;
    background-color: #a88c52;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* EVENTOS - ESTADO NORMAL */

.item-evento-horizontal .imagen_portada {
    box-sizing: border-box;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    opacity: 1;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.item-evento-horizontal .detalles h3 {
    color: rgb(var(--color_texto_primario));
    transition: color 0.3s ease;
}


/* EVENTOS - HOVER / SELECCIÓN */

.item-evento-horizontal>a:hover .imagen_portada,
.item-evento-horizontal>a:focus-visible .imagen_portada {
    border-color: #a88c52;
    opacity: 0.45;
}

.item-evento-horizontal>a:hover .detalles h3,
.item-evento-horizontal>a:focus-visible .detalles h3 {
    color: #a88c52;
}

.item-evento-horizontal .detalles h3::after {
    transition: transform 0.3s ease;
}

.item-evento-horizontal>a:hover .detalles h3::after,
.item-evento-horizontal>a:focus-visible .detalles h3::after {
    transform: translateX(4px);
}




/* Corrección de responsividad para tablets/móviles si la imagen se deforma */
@media (max-width: 991.98px) {
    .col-lg-custom-30 .w-100.h-100 {
        height: auto !important;
        min-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fondo-imagen-derecha-contain {
        padding: 1.5rem !important;
        /* Menos padding en móvil */
        background-size: contain !important;
        /* Mantenemos la imagen íntegra */
        background-position: top center;
        /* Centramos la imagen arriba en móvil */
    }

    .bloque-texto-superpuesto {
        max-width: 95%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .row-separadores>.col-lg-custom-30:last-child {
        display: flex;
        align-items: center;
    }

    .row-separadores>.col-lg-custom-40 {
        padding-left: 24px !important;
        padding-right: 24px !important;
        margin: 20px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .bloque-texto-superpuesto {
        max-width: 100% !important;
        /* Permite que el padding de la columna mande */
        margin-left: auto;
        margin-right: auto;
    }

    .titulo-temporada-papel {
        font-size: 1.4rem;
        /* Texto más pequeño en móvil */
    }

    .fondo-imagen-derecha {
        padding: 1.5rem !important;
        /* Menos padding en móvil */
    }

    .bloque-texto-izq {
        max-width: 90%;
        /* En móvil, la caja ocupa casi todo el ancho disponible */
        padding: 1rem !important;
    }
}



/* ==========================================
   Intro - vídeo de fondo
   ========================================== */

#intro {
    position: relative;
    /* height: calc(100vh - 90px);
    min-height: 400px; */
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 90px;
    padding-top: 0;
}

section.intro {
    width: 100%;
    /* height: 100vh;
    background: url(../images/intro-bg2.jpg) top center;
    background-size: cover;
    overflow: hidden;*/
    position: relative;
    background-repeat: no-repeat;
    height: unset;
}

#intro,
section.introd {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    font-size: 0;
}

section.intro:before {
    content: "";
    /* background: rgba(var(--color_fondo_primario), 0.1);
    position: absolute; */
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}


/* ==========================================
   Vídeo
   ========================================== */

.fullscreen-video {
    /* position: absolute; */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* object-position: center center; */
    z-index: 0;
    /* background: #000; */
}


/* ==========================================
   Pantallas grandes
   ========================================== */

/* @media (min-width: 1920px) and (min-height: 1080px) {
    .fullscreen-video {
        object-fit: cover;
    }
}*/
@media (min-width: 1600px) {
    .fullscreen-video {
        object-fit: cover;
    }
}

/* ==========================================
   Vídeo móvil
   ========================================== */

.video-mobile {
    display: none;
}

#intro:before {
    z-index: 1;
}

#intro .intro-container {
    position: relative;
    z-index: 2;
}


/* ==========================================
   Móvil
   ========================================== */

@media (max-width: 768px) {

    #intro {
        height: calc(100svh - 70px);
        margin-top: 70px;
        min-height: 350px;
    }

    .video-desktop {
        display: none;
    }

    .video-mobile {
        display: block;
    }
}


/* ==========================================
   PROGRAMACIÓN - TEMPORADA MES A MES
   ========================================== */
.seccion-prog-temporada {
    font-family: serif;
    /* O una fuente tipográfica elegante similar */
    margin: 20px 0;
}


.titulo-prog-temporada {
    color: #4a1515;
    /* Tono granate oscuro / marrón */
    font-family: "DejaVu Serif", serif;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.linea-prog-separadora {
    width: 50px;
    /* Ancho pequeño de la línea, como se ve en la primera imagen */
    height: 4px;
    background-color: #b39b58;
    /* Tono dorado/bronce característico */
    margin-bottom: 12px;
}

.subtitulo-prog-temporada {
    color: #555555;
    /* Gris oscuro para una lectura suave */
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 400px;
    /* Limita el ancho para que salte de línea de forma ordenada */
}

.evento-programacion-section {
    background-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 5px;
    padding-left: 0;

}

.evento-programacion-section>.container-fluid {
    background-image: url('images/img_fondo_programacion.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}



.fila-eventos-horizontal {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    gap: 20px;
    align-items: start;
    margin-top: 1px;
}

.item-evento-horizontal {
    min-width: 0;
    width: 100%;
}

/* Tarjeta del evento */
.item-evento-horizontal .evento {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

/* Imagen */
.item-evento-horizontal .imagen_portada {
    display: block;
    width: 70%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin: 0 auto;
}

/* Zona del texto */
.item-evento-horizontal .detalles {
    position: static !important;
    width: 100%;
    padding: 10px 3px 0;
    text-align: center;
    background: transparent;
}


/* Título del mes */
.item-evento-horizontal .detalles h3 {
    margin: 0;
    padding: 0;
    font-family: "DejaVu Serif", serif;
    font-size: clamp(0.65rem, 1vw, 1rem);
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Flecha debajo del nombre del mes */
.item-evento-horizontal .detalles h3::after {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: block;
    margin: 6px auto 0;
    color: #b39b58;
    font-size: 0.9rem;
    line-height: 1;
}

/* Texto secundario */
.item-evento-horizontal .detalles p {
    margin: 4px 0 0;
    padding: 0;
    font-size: clamp(0.55rem, 0.8vw, 0.85rem);
    line-height: 1.25;
    text-align: center;
}

/* Check de evento finalizado */
.item-evento-horizontal .evento_finalizado {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}


/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 991.98px) {

    .fila-eventos-horizontal {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px;
    }

    .item-evento-horizontal .detalles h3 {
        font-size: clamp(0.7rem, 2vw, 0.9rem);
    }

    .item-evento-horizontal .detalles p {
        font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    }

    .row-separadores>.col-lg-custom-30:first-child {
        padding-top: 30px;
        margin-bottom: 25px;
    }
}


/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 575.98px) {

    .fila-eventos-horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .item-evento-horizontal .imagen_portada {
        aspect-ratio: 3 / 4;
    }

    .item-evento-horizontal .detalles {
        padding-top: 7px;
    }

    .item-evento-horizontal .detalles h3 {
        font-size: clamp(0.65rem, 3.2vw, 0.85rem);
        line-height: 1.15;
    }

    .item-evento-horizontal .detalles p {
        font-size: clamp(0.6rem, 2.8vw, 0.75rem);
    }
}


/*DETALLE EVENTO*/
#detalle_evento .col-md-9 {
    line-height: 1.2;
}

#detalle_evento .col-md-9 p {
    line-height: 1.2;
    margin-bottom: 8px;
}



/* ==========================================
   REDES SOCIALES - FOOTER
   ========================================== */

section.footer .footer-top {
    background: #000 !important;
    color: #fff;
}

section.footer .footer-top .footer-contact p a {
    color: rgb(var(--color_fondo_secundario));
}

section.footer .footer-top .footer-links ul i {
    color: rgb(var(--color_fondo_secundario));
}

section.footer .footer-top .footer-links ul a {
    color: rgb(var(--color_fondo_secundario));
}

section.footer .footer-top h4 {
    color: rgb(var(--color_fondo_secundario));
}


#footer .footer-redes {
    display: flex;
    align-items: center;
    gap: 15px;

    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

#footer .footer-redes li {
    margin: 0;
    padding: 0;
}

#footer .footer-redes li a {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgb(var(--color_fondo_secundario));
    border-radius: 50%;

    color: rgb(var(--color_fondo_secundario));
    text-decoration: none;

    transition: all 0.3s ease;
}

#footer .footer-redes li a i {
    font-size: 20px;
    line-height: 1;
}

#footer .footer-redes li a:hover,
#footer .footer-redes li a:focus-visible {
    background-color: rgb(var(--color_fondo_secundario));
    color: rgb(var(--color_fondo_primario));
    transform: translateY(-2px);
}

#footer .footer-redes li a i {
    font-family: "Font Awesome 5 Brands" !important;
    font-size: 20px;
    font-style: normal;
}


/* ==========================================
   ENLACES DE CONTACTO - FOOTER
   ========================================== */

section.footer .footer-top .footer-contact p a {
    color: rgb(var(--color_fondo_secundario));
    transition: all 0.3s ease;
}

section.footer .footer-top .footer-contact p a:hover,
section.footer .footer-top .footer-contact p a:focus-visible {
    color: rgb(var(--color_fondo_primario));
}



/*FONDO WEB*/

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: transparent !important;
}

body {
    background-image: url('images/img_fondo_programacion.jpg') !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

/* 2. Quitar fondos blancos o sólidos de las secciones intermedias */
#main,
section,
.evento,
.lugar,
.evento-libro-section,
.evento-programacion-section {
    background-color: transparent !important;
    /* background: transparent !important; */
}

/* 3. Eliminar márgenes verticales que generan huecos en blanco entre secciones */
#intro,
#temporada,
#videos_youtube,
#libro,
#programacion {
    /* margin-top: 0 !important; */
    margin-bottom: 0 !important;
}