:root {
    --bg: #f7f4ee;
    --paper: #ffffff;
    --ink: #211f1c;
    --muted: #6e6962;
    --line: #e4ddd2;
    --accent: #b48a45;
    --accent-dark: #8f682f;
    --dark: #171717;
    --max: 1180px;
}


/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(var(--max), 92%);
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    margin: 0.2em 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0.2em 0 0.45em;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0.5em 0 1em;
}

.muted {
    color: var(--muted);
}


/* =========================
   BOTONES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    padding: 0.85rem 1.2rem;

    border: 1px solid transparent;
    border-radius: 5px;

    text-decoration: none;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-outline {
    border-color: currentColor;
    background: transparent;
}

.btn-dark {
    background: var(--dark);
    color: white;
}


/* =========================
   CABECERA
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background: transparent;
    border-bottom: none;
}

.header-inner {
    min-height: 78px;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto
        auto;

    align-items: center;

    gap: 22px;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    color: var(--accent);
}


/* =========================
   NAVEGACIÓN
========================= */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.main-nav a {
    position: relative;

    padding: 0.35rem 0;

    text-decoration: none;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--accent);

    transform: scaleX(0);

    transition: 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}


/* =========================
   IDIOMAS
========================= */

.langs {
    display: flex;
    gap: 4px;
}

.langs button {
    border: 0;

    background: transparent;

    cursor: pointer;

    padding: 5px;

    font-size: 1rem;
}


/* =========================
   MENÚ MÓVIL
========================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--line);

    background: white;

    border-radius: 5px;

    cursor: pointer;
}


/* =========================
   PORTADA
========================= */

.hero {
    min-height: 100vh;

    display: grid;
    place-items: center;

    position: relative;

    color: white;

    text-align: center;

    background:
        linear-gradient(
            rgba(8, 8, 8, 0.36),
            rgba(8, 8, 8, 0.66)
        ),
        url("imagenes/portada-nueva.jpeg")
        center / cover
        no-repeat,

        #222;
}

.hero.small {
    min-height: 46vh;
}

.hero-content {
    width: min(850px, 90%);

    position: relative;

    z-index: 1;
}

.hero p {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;

    gap: 12px;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 26px;
}


/* =========================
   SECCIONES
========================= */

.section {
    padding: 96px 0;
}

.section.alt {
    background: var(--bg);
}

.two-col {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 64px;

    align-items: center;
}

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.card {
    background: white;

    border: 1px solid var(--line);

    border-radius: 6px;

    padding: 30px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 30px
        rgba(0, 0, 0, 0.07);
}

.card i {
    color: var(--accent);

    font-size: 1.6rem;

    margin-bottom: 14px;
}


/* =========================
   IMÁGENES
========================= */

.image-frame img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 18px 18px 0 #eee9e1;
}


/* =========================
   TÍTULOS DE PÁGINAS
========================= */

.page-title {
    padding: 86px 0 60px;

    background: var(--dark);

    color: white;

    text-align: center;
}

.page-title p {
    max-width: 760px;

    margin: 12px auto 0;

    color: #d0d0d0;
}

.link-arrow {
    color: var(--accent-dark);

    font-weight: 700;

    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}


/* =========================
   EVENTOS
========================= */

.event-list {
    display: grid;
    gap: 18px;
}

.event-card {
    display: grid;

    grid-template-columns:
        160px
        1fr
        auto;

    gap: 24px;

    align-items: center;

    padding: 24px;

    border: 1px solid var(--line);

    border-radius: 6px;

    background: white;
}

.event-date {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;

    color: var(--accent-dark);
}


/* =========================
   AGENDA
========================= */

.agenda-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

    margin-top: 45px;
}

.agenda-card {
    background: white;

    border: 1px solid var(--line);

    border-radius: 8px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.agenda-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 35px
        rgba(0, 0, 0, 0.08);
}


/* IMAGEN AGENDA */

.agenda-imagen {
    height: 430px;

    position: relative;

    overflow: hidden;

    background: #eee;

    cursor: pointer;
}

.agenda-imagen img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.35s ease;
}

.agenda-imagen:hover img {
    transform: scale(1.04);
}


/* VER CARTEL */

.ver-cartel {
    position: absolute;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 17px;

    background: rgba(25, 25, 25, 0.88);

    color: white;

    border-radius: 999px;

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;

    font-size: 0.88rem;

    font-weight: 600;

    white-space: nowrap;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.25);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.agenda-imagen:hover .ver-cartel {
    background: rgba(20, 20, 20, 0.96);

    transform:
        translateX(-50%)
        translateY(-2px);
}

.icono-ver-cartel {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    color: #222;

    border-radius: 50%;

    font-size: 0.75rem;
}


/* CONTENIDO AGENDA */

.agenda-contenido {
    padding: 25px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.agenda-fecha {
    color: var(--accent-dark);

    font-size: 0.85rem;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    margin-bottom: 10px;
}

.agenda-contenido h3 {
    margin-top: 0;
}

.agenda-contenido p {
    color: var(--muted);

    flex: 1;
}

.agenda-contenido .btn {
    margin-top: 10px;

    align-self: flex-start;
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 5000;

    padding: 30px;
}

.lightbox.abierto {
    display: flex;
}

.lightbox-contenido {
    max-width: 1000px;

    max-height: 90vh;

    text-align: center;
}

.lightbox-contenido img {
    max-width: 100%;

    max-height: 82vh;

    object-fit: contain;

    display: block;

    margin: 0 auto;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.5);
}

.lightbox-contenido p {
    color: white;

    margin-top: 12px;

    font-size: 1rem;
}

.cerrar-lightbox {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #222;

    font-size: 22px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.cerrar-lightbox:hover {
    transform: scale(1.08);

    background: #eee;
}


/* =========================
   CLASES
========================= */

.class-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 24px;
}

.info-list {
    display: grid;

    gap: 14px;

    margin-top: 28px;
}

.info-row {
    display: grid;

    grid-template-columns:
        34px
        1fr;

    gap: 12px;

    align-items: start;
}

.info-row i {
    color: var(--accent);

    margin-top: 5px;
}


/* =========================
   FOTOS
========================= */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4 / 3;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            135deg,
            #eee9e1,
            #d8d0c5
        );

    display: grid;

    place-items: center;

    color: #6f675f;

    border-radius: 5px;

    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================
   VÍDEOS
========================= */

.video-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 24px;
}

.video-card {
    background: #111;

    color: white;

    border-radius: 6px;

    overflow: hidden;
}

.video-placeholder {
    aspect-ratio: 16 / 9;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #2b2b2b,
            #111
        );

    border-bottom: 1px solid #333;
}

.video-placeholder i {
    font-size: 2rem;

    color: var(--accent);
}

.video-card .content {
    padding: 20px;
}


/* =========================
   PRENSA
========================= */

.press-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.press-card {
    border: 1px solid var(--line);

    padding: 26px;

    border-radius: 6px;

    background: white;
}

.press-card .source {
    font-size: 0.8rem;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: var(--accent-dark);

    font-weight: 700;
}


/* =========================
   CONTACTO
========================= */

.contact-strip {
    padding: 70px 0;

    background: var(--bg);
}

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.contact-card {
    text-align: center;

    padding: 26px;
}

.contact-card i {
    font-size: 1.6rem;

    color: var(--accent);

    margin-bottom: 10px;
}

.contact-card a {
    text-decoration: none;
}


/* =========================
   RESEÑAS GOOGLE
========================= */

.reviews-section {
    background: #fff;
}

.reviews-heading {
    text-align: center;

    max-width: 800px;

    margin: 0 auto 10px;
}


/* ESTRELLAS GRANDES */

.reviews-rating-top {
    text-align: center;

    margin-top: 0;

    margin-bottom: 50px;
}

.rating-stars-big {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 22px;

    color: #f4b400;

    font-size: 5.6rem;

    line-height: 1;
}

.rating-meta {
    margin-top: 16px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    font-size: 0.9rem;

    color: var(--muted);
}

.rating-meta strong {
    color: var(--ink);

    font-size: 0.95rem;

    font-weight: 700;
}


/* CARRUSEL DE RESEÑAS */

.reviews-carousel {
    display: grid;

    grid-template-columns:
        60px
        1fr
        60px;

    align-items: center;

    gap: 28px;

    max-width: 1100px;

    margin: 0 auto;
}

.reviews-window {
    position: relative;

    min-height: 250px;
}


/* SIN RECUADRO */

.review-slide {
    display: none;

    min-height: 250px;

    padding: 10px 35px;

    text-align: center;

    background: transparent;

    border: none;

    box-shadow: none;
}

.review-slide.active {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


/* TEXTO DE LA RESEÑA */

.review-slide blockquote {
    margin: 0;

    max-width: 900px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.55rem;

    font-style: italic;

    line-height: 1.75;

    color: #2d2a27;
}

.review-author {
    margin-top: 30px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.15rem;

    font-weight: 700;

    color: var(--ink);
}

.review-source {
    margin-top: 5px;

    font-size: 0.85rem;

    color: var(--muted);
}


/* FLECHAS RESEÑAS */

.review-arrow {
    width: 56px;
    height: 56px;

    display: grid;

    place-items: center;

    border: 1px solid #ddd4c7;

    border-radius: 50%;

    background: transparent;

    color: var(--ink);

    font-size: 1.1rem;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.review-arrow:hover {
    background: var(--accent);

    color: white;

    transform: scale(1.06);
}


/* PUNTOS RESEÑAS */

.review-dots {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 28px;
}

.review-dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #d5cec3;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.review-dot.active {
    background: var(--accent);

    transform: scale(1.25);
}


/* BOTONES DE GOOGLE */

.review-actions {
    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 40px;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--dark);

    color: white;

    padding:
        56px
        0
        26px;

    text-align: center;
}

.footer-brand {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.6rem;
}

.footer-brand span {
    color: var(--accent);
}

.socials {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin: 26px 0;
}

.socials a {
    width: 42px;
    height: 42px;

    border: 1px solid #4b4b4b;

    border-radius: 50%;

    display: grid;

    place-items: center;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border 0.2s ease,
        transform 0.2s ease;
}

.socials a:hover {
    background: var(--accent);

    border-color: var(--accent);

    transform: translateY(-2px);
}

.footer-line {
    height: 1px;

    background: #333;

    margin: 26px 0;
}

.copyright {
    font-size: 0.82rem;

    color: #888;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .header-inner {
        grid-template-columns:
            auto
            auto
            auto;
    }


    .main-nav {
        position: absolute;

        left: 0;
        right: 0;

        top: 78px;

        display: none;

        flex-direction: column;

        align-items: center;

        gap: 0;

        background: white;

        border-bottom: 1px solid var(--line);

        padding: 12px 0;
    }


    .main-nav.open {
        display: flex;
    }


    .main-nav a {
        width: 100%;

        text-align: center;

        padding:
            12px
            20px;
            color: #211f1c;
    font-weight: 600;
    }


    .langs {
        justify-self: end;
    }


    .menu-toggle {
        display: block;
    }


    .two-col {
        grid-template-columns: 1fr;

        gap: 42px;
    }


    .card-grid,
    .press-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .agenda-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .rating-stars-big {
        font-size: 4.2rem;

        gap: 14px;
    }


    .review-slide blockquote {
        font-size: 1.3rem;
    }

}


/* =========================
   MÓVIL
========================= */

@media (max-width: 720px) {

    .section {
        padding: 70px 0;
    }


    .header-inner {
        grid-template-columns:
            1fr
            auto;
    }


    .langs {
        grid-column: 1 / -1;

        justify-self: center;
    }


    .main-nav {
        top: 116px;
    }


    .hero {
        min-height: 72vh;
    }


    .hero.small {
        min-height: 40vh;
    }


    .card-grid,
    .class-grid,
    .video-grid,
    .press-grid,
    .contact-grid,
    .gallery,
    .agenda-grid {
        grid-template-columns: 1fr;
    }


    .event-card {
        grid-template-columns: 1fr;
    }


    .agenda-imagen {
        height: 420px;
    }


    .ver-cartel {
        font-size: 0.8rem;

        padding:
            8px
            14px;
    }


    .lightbox {
        padding: 15px;
    }


    .cerrar-lightbox {
        top: 12px;
        right: 12px;
    }


    /* RESEÑAS */

    .reviews-rating-top {
        margin-bottom: 35px;
    }


    .rating-stars-big {
        font-size: 2.8rem;

        gap: 8px;
    }


    .rating-meta {
        font-size: 0.78rem;

        gap: 7px;
    }


    .reviews-carousel {
        grid-template-columns: 1fr;

        position: relative;
    }


    .reviews-window {
        min-height: 340px;
    }


    .review-slide {
        min-height: 340px;

        padding:
            20px
            38px;
    }


    .review-slide blockquote {
        font-size: 1.05rem;

        line-height: 1.7;
    }


    .review-author {
        font-size: 1.05rem;
    }


    .review-source {
        font-size: 0.8rem;
    }


    .review-arrow {
        position: absolute;

        top: 50%;

        z-index: 5;

        width: 44px;
        height: 44px;

        transform: translateY(-50%);

        background:
            rgba(255, 255, 255, 0.9);
    }


    .review-arrow:hover {
        transform:
            translateY(-50%)
            scale(1.05);
    }


    .review-prev {
        left: -4px;
    }


    .review-next {
        right: -4px;
    }

}
/* =========================
   FLECHAS LIGHTBOX FOTOS
========================= */

.foto-anterior,
.foto-siguiente {
    position: absolute;
    top: 50%;

    width: 58px;
    height: 58px;

    transform: translateY(-50%);

    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: white;

    font-size: 1.25rem;

    display: grid;
    place-items: center;

    cursor: pointer;

    z-index: 5010;

    transition:
        background .2s ease,
        transform .2s ease;
}

.foto-anterior {
    left: 28px;
}

.foto-siguiente {
    right: 28px;
}

.foto-anterior:hover,
.foto-siguiente:hover {
    background: var(--accent);

    transform:
        translateY(-50%)
        scale(1.08);
}


@media (max-width: 720px) {

    .foto-anterior,
    .foto-siguiente {
        width: 44px;
        height: 44px;

        font-size: 1rem;
    }

    .foto-anterior {
        left: 8px;
    }

    .foto-siguiente {
        right: 8px;
    }

}
/* =========================
   VÍDEOS EMBEBIDOS
========================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.video-card {
    background: #111;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-card .content {
    padding: 22px;
}

.video-card .content h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.video-card .content p {
    margin: 0;
    color: #c7c7c7;
    font-size: 0.92rem;
}

@media (max-width: 720px) {

    .video-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   ANIMACIÓN CARRUSEL DE RESEÑAS
========================================= */

.reviews-window {
    position: relative;
    overflow: hidden;
}

.review-slide {
    display: none;
    opacity: 0;
    transform: translateX(40px);
}

.review-slide.active {
    display: block;
    animation: reviewSlideIn 0.55s ease forwards;
}

.review-slide.slide-left {
    animation: reviewSlideLeft 0.55s ease forwards;
}

.review-slide.slide-right {
    animation: reviewSlideRight 0.55s ease forwards;
}

@keyframes reviewSlideIn {

    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes reviewSlideLeft {

    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes reviewSlideRight {

    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}
.mapa-lupa-wrap {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

#worldMap {
    width: 100%;
    height: auto;
    display: block;
}

#lupaMapa {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 4px solid #f4c542;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    pointer-events: none;
    display: none;
    z-index: 20;
    background-repeat: no-repeat;
}
/* =========================
   CABECERA AL HACER SCROLL
========================= */

.site-header {
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Capa difuminada, inicialmente invisible */
.site-header::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: calc(100% + 12px);

    background: rgba(20, 20, 20, 0.20);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    pointer-events: none;
    z-index: -1;

    opacity: 0;

    transition: opacity 0.35s ease;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 68%,
            rgba(0,0,0,.75) 78%,
            rgba(0,0,0,.25) 90%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 68%,
            rgba(0,0,0,.75) 78%,
            rgba(0,0,0,.25) 90%,
            transparent 100%
        );
}


/* Cuando hacemos scroll */
.site-header.header-scroll {
    background: rgba(255,255,255,0);
    border-bottom-color: transparent;
    box-shadow: none;
}

.site-header.header-scroll::before {
    opacity: 1;
}


/* Letras visibles sobre fondos oscuros */
.site-header .brand,
.site-header .main-nav a,
.site-header .langs button {
    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}

.site-header.header-scroll .brand,
.site-header.header-scroll .main-nav a,
.site-header.header-scroll .langs button {
    color: white;

    text-shadow:
        0 1px 4px rgba(0,0,0,.85),
        0 2px 10px rgba(0,0,0,.55);
}

    .brand {
    transform: translateX(-150px);
}
.langs {
    transform: translateX(158px);
}
.main-nav {
    transform: translateX(30px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: inline-block;
}
@media (max-width: 720px) {

    .brand,
    .main-nav,
    .langs {
        transform: none;
    }

}
.site-header.header-scroll .brand {
    color: #e2c78c;
}
.site-header.header-scroll .brand span {
    color: #e2c78c;
}
.reveal {
    opacity: 0;
    transform: translateY(28px);

    transition:
        opacity 1.0s ease,
        transform 1.0s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   DOS COLUMNAS: ENTRADA LATERAL
========================= */

.two-col .image-frame,
.two-col > div:not(.image-frame) {
    opacity: 0;

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

/* Imagen entra desde la izquierda */
.two-col .image-frame {
    transform: translateX(-45px);
}

/* Texto entra desde la derecha */
.two-col > div:not(.image-frame) {
    transform: translateX(45px);
}

/* Cuando aparecen */
.two-col.col-visible .image-frame,
.two-col.col-visible > div:not(.image-frame) {
    opacity: 1;
    transform: translateX(0);
}
/* ========================================
   HISTORIA SCROLL CINEMATOGRÁFICA
======================================== */

.historia-scroll {
    position: relative;
    height: 260vh;
    background: #000;
}

.historia-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.historia-visual {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.historia-foto {
    position: absolute;
    inset: 0;
    overflow: hidden;

}

.historia-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.foto-2 img {
    object-position: 25% center;
}

/* Foto izquierda */
.historia-foto.foto-1 {
    z-index: 1;

    left: 0;
    right: auto;

    width: 75%;

    clip-path: polygon(
        0 0,
        100% 0,
        76% 100%,
        0 100%
    );

    transform: translateX(-18%);
    opacity: 0;
}

.historia-foto.foto-2 {
    z-index: 2;

    left: 32%;
    top: 0;

    width: 72%;
    height: 100%;

    right: auto;
    bottom: auto;

    clip-path: polygon(
        22% 0,
        100% 0,
        100% 100%,
        0 100%
    );

    transform: translateX(18%);
    opacity: 0;
}

/* Capa oscura para que el texto se lea bien */
.historia-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.30) 100%
        );
}

/* Texto */
.historia-texto {
    position: absolute;
    left: 7%;
    bottom: 10%;
    z-index: 4;
    max-width: 560px;
    color: #ffffff;
    padding: 28px 32px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.historia-texto .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #d4a24c;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
}

.historia-texto h2 {
    margin: 0 0 18px 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    line-height: 1.05;
}

.historia-texto p {
    margin: 0 0 14px 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.historia-texto p:last-child {
    margin-bottom: 0;
}



/* Responsive */
@media (max-width: 900px) {
    .historia-scroll {
        height: 170vh;
    }

    .historia-foto.foto-1 {
        clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%);
    }

    .historia-foto.foto-2 {
        clip-path: polygon(64% 0, 100% 0, 100% 100%, 48% 100%);
    }

    .historia-texto {
        left: 5%;
        right: 5%;
        bottom: 7%;
        max-width: none;
        padding: 22px 20px;
    }

    .historia-texto h2 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .historia-texto p {
        font-size: 1rem;
        line-height: 1.65;
    }
}

@media (max-width: 640px) {
    .historia-scroll {
        height: 155vh;
    }

    .historia-foto.foto-1 {
        clip-path: polygon(0 0, 68% 0, 50% 100%, 0 100%);
    }

    .historia-foto.foto-2 {
        clip-path: polygon(68% 0, 100% 0, 100% 100%, 50% 100%);
    }

    .historia-texto {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .historia-texto h2 {
        margin-bottom: 14px;
    }

    .historia-texto p {
        font-size: 0.95rem;
    }
}
.foto-2 img {
    transform: translate(8%,12%) scale(1.08);
}
@media (max-width: 640px) {

    .historia-foto.foto-1 {
        left: 0;
        top: -10%;

        width: 120%;
        height: 68%;

        right: auto;
        bottom: auto;

        clip-path: polygon(
            0 0,
            100% 0,
            100% 78%,
            0 100%
        );
    }


    .historia-foto.foto-2 {
        left: -25%;
        top: 35%;

        width: 120%;
        height: 95%;

        right: auto;
        bottom: auto;

        clip-path: polygon(
            0 22%,
            100% 0,
            100% 100%,
            0 100%
        );
    }


    .foto-1 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translate(10%,15%);
    }


    .foto-2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* Conservamos un pequeño ajuste vertical */
        transform: translate(5%,8%) scale(1.05);
    }

}
/* ========================================
   FESTIVALES Y COMPAÑÍAS - GALERÍA VISUAL
======================================== */

.festivales-visual {
    background: #f7f4ee;
}

.festivales-visual > .container > .eyebrow,
.festivales-visual > .container > h2 {
    text-align: center;
}

.festivales-visual > .container > h2 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}


/* GRID */

.festivales-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 55px;
}


/* ITEM */

.festival-item {
    position: relative;
    min-height: 360px;

    overflow: hidden;
    border-radius: 24px;

    cursor: pointer;

    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.10);
}


/* GRANADA MÁS GRANDE */

.festival-grande {
    min-height: 520px;
}


/* CUMBRE A TODO EL ANCHO */

.festival-ancho {
    grid-column: 1 / -1;
    min-height: 500px;
}


/* IMAGEN */

.festival-item img {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}


/* HOVER */

.festival-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.88);
}


/* CAPA OSCURA */

.festival-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 34px;

    color: white;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.82) 0%,
            rgba(0,0,0,0.42) 42%,
            rgba(0,0,0,0.05) 72%,
            transparent 100%
        );

    z-index: 2;
}


/* TÍTULO */

.festival-overlay h3 {
    margin: 0 0 12px;

    font-size: clamp(1.7rem, 2.4vw, 2.7rem);
    line-height: 1.08;

    color: white;
}


/* TEXTO */

.festival-overlay p {
    margin: 0;

    max-width: 650px;

    font-size: 1rem;
    line-height: 1.65;

    color: rgba(255,255,255,0.88);
}


/* ========================================
   LIGHTBOX FESTIVALES
======================================== */

.festival-lightbox {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.96);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* ABIERTO */

.festival-lightbox.abierto {
    opacity: 1;
    visibility: visible;
}


/* CONTENIDO */

.festival-lightbox-contenido {
    position: relative;

    width: 100vw;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* FOTO FULLSCREEN */

.festival-lightbox-contenido img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* TEXTO ABAJO */

.festival-lightbox-texto {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        90px 7% 45px;

    color: white;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.88),
            rgba(0,0,0,0.48),
            transparent
        );
}


/* TÍTULO FULLSCREEN */

.festival-lightbox-texto h3 {
    margin: 0 0 10px;

    font-size: clamp(2rem, 4vw, 4.4rem);

    color: white;
}


/* TEXTO FULLSCREEN */

.festival-lightbox-texto p {
    margin: 0;

    max-width: 820px;

    line-height: 1.65;

    color: rgba(255,255,255,0.9);
}


/* BOTÓN CERRAR */

.festival-cerrar {
    position: fixed;

    top: 24px;
    right: 28px;

    z-index: 100001;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,0.12);
    color: white;

    font-size: 1.5rem;

    cursor: pointer;

    backdrop-filter: blur(8px);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.festival-cerrar:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}


/* ========================================
   MÓVIL
======================================== */

@media (max-width: 760px) {

    .festivales-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .festival-item,
    .festival-grande,
    .festival-ancho {
        grid-column: auto;
        min-height: 420px;
    }

    .festival-overlay {
        padding: 24px 20px;
    }

    .festival-overlay h3 {
        font-size: 1.65rem;
    }

    .festival-overlay p {
        font-size: 0.95rem;
    }

    .festival-lightbox-texto {
        padding:
            80px 22px 28px;
    }

    .festival-lightbox-texto h3 {
        font-size: 2rem;
    }

    .festival-lightbox-texto p {
        font-size: 0.95rem;
    }

    .festival-cerrar {
        top: 16px;
        right: 16px;
    }
}
/* ========================================
   BANNER DE COOKIES
======================================== */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 9999;

    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 20px 22px;

    background: rgba(20, 20, 20, 0.96);
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.cookie-banner-texto {
    flex: 1;
}

.cookie-banner-texto strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.cookie-banner-texto p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    font-size: 0.92rem;
}

.cookie-banner-botones {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;
    padding: 10px 16px;

    font: inherit;
    cursor: pointer;

    transition: 0.2s ease;
}

.cookie-rechazar {
    background: transparent;
    color: #fff;
}

.cookie-rechazar:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-aceptar {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cookie-aceptar:hover {
    transform: translateY(-1px);
}

@media (max-width: 720px) {

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;

        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-botones {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }

}

/* =========================
   FIX IMÁGENES MÓVIL
========================= */

@media (max-width: 720px) {

    .gallery-item img,
    .prensa-item img,
    .cartel-item img {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;

        transform: translateZ(0);
        -webkit-transform: translateZ(0);

        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

}