/* ================================= */
/* TIPOGRAFÍA */
/* ================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* ================================= */
/* RESET */
/* ================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#ECECEC;
    font-family:'Poppins', sans-serif;
    color:#333;
    overflow-x:hidden;
}

/* ================================= */
/* VARIABLES */
/* ================================= */

:root{
    --yellow:#FFDD0E;
    --yellow-soft:#FFE599;
    --green:#6AAA2C;
    --blue:#008FB8;
    --red:#D62416;

    --gray:#D9D9D9;

    --hero-scale:.75;

    --icon-casilla-estrella:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,8 59,32 84,18 70,45 96,50 70,55 84,82 59,68 50,92 41,68 16,82 30,55 4,50 30,45 16,18 41,32' fill='none' stroke='%23ECECEC' stroke-width='5.5' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='50' r='11' fill='%23ECECEC'/%3E%3C/svg%3E");
}

/* ================================= */
/* BARRA SUPERIOR FIJA */
/* ================================= */

.top-nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;

    height:76px;
    padding:0 48px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:rgba(236,236,236,.86);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    z-index:500;

    opacity:0;
    transform:translateY(-100%);
    pointer-events:none;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.top-nav.is-visible{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}

.top-nav-logo{
    color:var(--yellow);
    font-size:1.35rem;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    text-decoration:none;
}

.top-nav-links{
    display:flex;
    align-items:center;
    gap:34px;
}

.top-nav-links a{
    color:#8A8A8A;
    font-size:.92rem;
    font-weight:600;
    text-decoration:none;

    transition:
        color .25s ease,
        transform .25s ease;
}

.top-nav-links a:hover{
    transform:translateY(-2px);
}

/* Colores por sección al pasar el mouse */

.top-nav-links a[href="#galeria"]:hover{
    color:var(--blue);
}

.top-nav-links a[href="#acerca"]:hover{
    color:var(--green);
}

.top-nav-links a[href="#pix"]:hover{
    color:var(--red);
}

.top-nav-links a[href="#interpretacion"]:hover{
    color:var(--yellow);
}

/* ================================= */
/* HERO */
/* ================================= */

.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

/* ================================= */
/* FONDO DINÁMICO HERO */
/* ================================= */

.hero-board{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
    pointer-events:none;
    overflow:hidden;
}

.hero-board::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:110px;

    background:linear-gradient(
        to bottom,
        rgba(236,236,236,0) 0%,
        rgba(236,236,236,0.72) 62%,
        #ECECEC 100%
    );

    z-index:3;
    pointer-events:none;
}

.hero-pattern{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;

    z-index:1;

    background-repeat:no-repeat;
    background-position:center top;
    background-size:cover;

    opacity:0;

    transition:
        opacity .45s ease,
        filter .45s ease;

    will-change:opacity, filter, mask-image, -webkit-mask-image;
}

/* visible mientras se revela con el mouse */
.hero.is-revealing .hero-pattern{
    opacity:1;
}

/* Mientras cambia el patrón */
.hero.is-changing .hero-pattern{
    opacity:0;
    filter:blur(10px);
}

/* Flash inicial o al apretar el logo */
.hero.is-flashing .hero-pattern{
    opacity:1;
    filter:blur(0);

    -webkit-mask-image:none !important;
    mask-image:none !important;
}

/* ================================= */
/* CONTENIDO HERO */
/* ================================= */

.hero-content{
    position:absolute;
    left:50%;
    top:40.5%;
    transform:translate(-50%, -50%) scale(var(--hero-scale));
    transform-origin:center center;
    z-index:80;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    pointer-events:auto;
}

.hero-content h2{
    max-width:700px;
    font-size:1.5rem;
    font-weight:500;
    line-height:1.5;
    color:var(--green);
    margin-top:18px;
}

.hero .hero-cta-button.final-cta-button{
    position:absolute;
    left:50%;
    top:60.2%;

    z-index:110;

    transform:translate(-50%, -50%);

    padding:20px 42px;
    font-size:1rem;
    font-weight:700;

    white-space:nowrap;
}

.hero .hero-cta-button.final-cta-button:hover{
    transform:translate(-50%, -50%) translateY(-6px) scale(1.03);
}

/* ================================= */
/* LOGO HERO */
/* ================================= */

.hero-logo-button{
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
    display:block;
    z-index:90;
    transition:
        transform .3s ease,
        filter .3s ease;
}

.hero-logo-button:hover{
    transform:scale(1.025);
    filter:brightness(1.03);
}

.hero-logo-img{
    width:min(760px,78vw);
    height:auto;
    display:block;
}

/* ================================= */
/* CASILLA BASE */
/* ================================= */

.tile{

    position:absolute;
    width:65px;
    height:65px;
    background:var(--yellow-soft);
    clip-path:polygon(
        30% 0%,
        70% 0%,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0% 70%,
        0% 30%
    );

    transition:background-color .3s ease;
}

/* ================================= */
/* AGUJERO CENTRAL */
/* ================================= */

.tile::after{
    content:"";
    position:absolute;
    width:24px;
    height:24px;
    background:#ECECEC;
    border-radius:50%;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
}

/* ================================= */
/* CASILLA ROJA */
/* ================================= */

.tile.red{
    clip-path:polygon(
        50% 0%,
        62% 22%,
        85% 15%,
        78% 38%,
        100% 50%,
        78% 62%,
        85% 85%,
        62% 78%,
        50% 100%,
        38% 78%,
        15% 85%,
        22% 62%,
        0% 50%,
        22% 38%,
        15% 15%,
        38% 22%
    );
}

.tile.red::after{
    width:16px;
    height:16px;
}

/* ================================= */
/* CASILLAS DECORATIVAS */
/* ================================= */

.tile-deco{
    opacity:.95;

    z-index:5;

    cursor:pointer;

    transition:
        background-color .3s ease,
        opacity .3s ease;
}

/* Cambio de color al pasar el mouse */
/* No se agrandan, solo cambian de color */

.tile-deco:hover{
    background:var(--blue);
}

/* Variaciones para que no todas cambien al mismo color */

.tile-deco:nth-child(3n):hover{
    background:var(--green);
}

.tile-deco:nth-child(4n):hover{
    background:var(--yellow);
}

.tile-deco:nth-child(5n):hover{
    background:var(--red);
}

/* Si la casilla decorativa es estrella roja, mantiene rojo */

.tile-deco.red:hover{
    background:var(--red);
}

/* ================================= */
/* CASILLAS NAVEGABLES */
/* ================================= */

.tile-nav{

    width:75px;
    height:75px;

    z-index:100;

    cursor:pointer;

    background:transparent;

    clip-path:none;

    overflow:visible;

    transition:transform .3s ease;
}

/* Forma visible de la casilla navegable */

.tile-nav::before{

    content:"";

    position:absolute;

    inset:0;

    background:var(--yellow-soft);

    clip-path:polygon(
        30% 0%,
        70% 0%,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0% 70%,
        0% 30%
    );

    transition:background-color .3s ease;
}

/* Hueco central de la casilla navegable */

.tile-nav::after{

    content:"";

    position:absolute;

    width:24px;
    height:24px;

    background:#ECECEC;

    border-radius:50%;

    top:50%;
    left:50%;

    transform:translate(-50%, -50%);

    z-index:2;
}

/* Casilla roja navegable con forma de estrella */

.tile-nav.red::before{

    clip-path:polygon(
        50% 0%,
        62% 22%,
        85% 15%,
        78% 38%,
        100% 50%,
        78% 62%,
        85% 85%,
        62% 78%,
        50% 100%,
        38% 78%,
        15% 85%,
        22% 62%,
        0% 50%,
        22% 38%,
        15% 15%,
        38% 22%
    );
}

.tile-nav.red::after{

    width:18px;
    height:18px;
}

/* Hover colores */

.tile-nav.blue:hover::before{
    background:var(--blue);
}

.tile-nav.green:hover::before{
    background:var(--green);
}

.tile-nav.red:hover::before{
    background:var(--red);
}

.tile-nav.yellow:hover::before{
    background:var(--yellow);
}

/* Casilla final amarilla para Interpretación Digital */

.tile-nav.yellow::before{
    background:var(--yellow-soft);
}

.tile-nav.yellow::after{
    width:55px;
    height:55px;

    background-color:transparent;
    background-image:var(--icon-casilla-estrella);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    border-radius:0;
}

.tile-nav:hover{

    transform:scale(1.12);
}

/* Corrige que la casilla roja navegable no recorte el texto */
.tile.tile-nav.red{
    clip-path:none;
    background:transparent;
    overflow:visible;
}

/* ================================= */
/* TEXTO BAJO CASILLA */
/* ================================= */

.tile-label{
    position:absolute;
    top:92px;
    left:50%;
    transform:translateX(-50%) translateY(8px);
    opacity:0;
    white-space:nowrap;
    font-size:1rem;
    font-weight:600;
    letter-spacing:.4px;
    pointer-events:none;
    z-index:5;
    transition:
        opacity .3s ease,
        transform .3s ease;
}

.tile-nav:hover .tile-label{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

/* Colores etiquetas */
.nav-galeria .tile-label{
    color:var(--blue);
}

.nav-acerca .tile-label{
    color:var(--green);
}

.nav-pix .tile-label{
    color:var(--red);
}

.nav-interpretacion .tile-label{
    color:#C4A700;
}

/* ================================= */
/* CASILLAS MENÚ HERO */
/* ================================= */

.hero-section-nav{
    position:absolute;
    left:50%;
    top:70%;
    transform:translateX(-50%) scale(var(--hero-scale));
    transform-origin:center center;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    z-index:120;
}

.hero-section-nav .tile-nav{
    position:relative;
    left:auto;
    top:auto;
    flex:0 0 75px;
}

/* ================================= */
/* CAMINOS ENTRE CASILLAS DEL MENÚ */
/* ================================= */

.path-dots{

    position:relative;

    width:46px;
    height:8px;

    display:inline-block;

    flex:0 0 46px;
}

/* Tres puntos negros */

.path-dots::before{

    content:"";

    position:absolute;

    top:50%;
    left:0;

    width:6px;
    height:6px;

    background:#222;

    border-radius:50%;

    transform:translateY(-50%);

    box-shadow:
        20px 0 0 #222,
        40px 0 0 #222;
}

/* ================================= */
/* POSICIONES DECORATIVAS */
/* ================================= */

.deco-1{top:6%;left:6%;}
.deco-2{top:12%;left:13%;}
.deco-3{top:7%;left:20%;}

.deco-4{top:8%;right:18%;}
.deco-5{top:16%;right:10%;}
.deco-6{top:28%;right:6%;}

.deco-7{top:42%;right:10%;}
.deco-8{top:58%;right:5%;}
.deco-9{top:72%;right:12%;}

.deco-10{top:84%;right:18%;}

.deco-11{bottom:8%;right:30%;}
.deco-12{bottom:10%;left:42%;}
.deco-13{bottom:18%;left:30%;}

.deco-14{bottom:12%;left:14%;}
.deco-15{bottom:24%;left:6%;}

.deco-16{top:56%;left:8%;}
.deco-17{top:72%;left:18%;}

.deco-18{top:24%;left:28%;}
.deco-19{top:14%;left:60%;}

.deco-20{top:22%;left:72%;}

.deco-21{bottom:20%;right:45%;}
.deco-22{bottom:10%;right:8%;}

/* ================================= */
/* INTRODUCCIÓN */
/* ================================= */

.intro{
    position:relative;
    z-index:10;

    width:100%;
    max-width:none;

    margin:20px 0 30px 0;
    padding:82px 40px 70px;

    overflow:hidden;

    background:
        radial-gradient(circle at 12% 24%, rgba(255,221,14,.34), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(0,143,184,.18), transparent 26%),
        radial-gradient(circle at 88% 24%, rgba(214,36,22,.16), transparent 30%),
        radial-gradient(circle at 72% 72%, rgba(106,170,44,.16), transparent 30%),
        linear-gradient(
            90deg,
            rgba(236,236,236,1) 0%,
            rgba(220,220,220,.72) 45%,
            rgba(236,236,236,1) 100%
        );
}

.intro::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to bottom,
            rgba(236,236,236,1) 0%,
            rgba(236,236,236,0) 18%,
            rgba(236,236,236,0) 82%,
            rgba(236,236,236,1) 100%
        );

    pointer-events:none;
    z-index:1;
}

.intro-container{
    position:relative;
    z-index:2;

    width:100%;
    max-width:1320px;
    min-height:360px;

    margin:0 auto;

    display:grid;
    grid-template-columns:minmax(420px, 560px) minmax(360px, 470px);
    align-items:center;
    justify-content:center;
    gap:96px;
}

.intro-copy{
    width:100%;
    max-width:520px;
}

.intro-copy p{
    font-size:1.02rem;
    line-height:1.9;
    margin-bottom:30px;

    text-align:justify;
    text-align-last:left;

    hyphens:auto;
}

.intro-highlight{
    color:#333;
    font-weight:700;
    font-size:1.08rem;
    line-height:1.75;

    text-align:center;
    text-align-last:center;
}

.intro-highlight span{
    display:block;
}

.intro-media{
    width:100%;
    min-height:270px;

    margin:0;
    padding:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:32px;
    border:1px solid rgba(255,255,255,.70);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.88),
            rgba(236,236,236,.62)
        );

    overflow:hidden;

    box-shadow:
        0 18px 45px rgba(0,0,0,.10);
}

.intro-media img,
.intro-media video{
    width:100%;
    height:100%;
    min-height:270px;

    display:block;
    object-fit:cover;

    border-radius:22px;
}

@media (max-width:900px){

    .intro{
        padding:64px 22px 82px;
    }

    .intro-container{
        grid-template-columns:1fr;
        gap:38px;
        max-width:680px;
    }

    .intro-copy{
        max-width:none;
    }

    .intro-copy p{
        text-align:center;
        text-align-last:center;
    }

    .intro-media{
        min-height:220px;
    }

    .intro-media img,
    .intro-media video{
        min-height:220px;
    }

    #about-casillas{
        grid-template-columns:1fr;
        gap:34px;
    }

    #about-casillas .about-block-text{
        max-width:none;
    }

    #about-casillas .about-image--large{
        max-width:520px;
        justify-self:center;
    }

    .about-block--media,
    #about-casillas{
        grid-template-columns:1fr;
        gap:34px;
    }

    .about-block--media .about-image,
    #about-preparar .about-image--video,
    #about-avanzar .about-image,
    #about-casillas .about-image--large{
        width:100%;
        max-width:420px;

        justify-self:center;
        align-self:center;

        margin-top:20px;
    }

    .about-block--hero{
        grid-template-columns:1fr;
        gap:34px;
    }

    .about-objective-aside{
        max-width:none;

        justify-self:stretch;
        align-self:center;

        padding-top:0;
    }

    .about-summary{
        grid-template-columns:1fr;
    }

    .about-summary span{
        min-height:56px;
        font-size:.98rem;
    }

}

/* ================================= */
/* SECCIONES */
/* ================================= */

.section{
    max-width:1400px;
    margin:160px auto;
    padding:0 40px;
}

#galeria{
    max-width:1260px;
    margin-top:50px;
    margin-bottom:70px;
}

#acerca{
    margin-top:70px;
}

/* ================================= */
/* ENCABEZADO DE SECCIÓN */
/* ================================= */

.section-heading{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:60px;
}

/* Casilla del título */

.section-node{
    position:relative;
    width:55px;
    height:55px;
    flex-shrink:0;

    display:block;

    clip-path:polygon(
        30% 0%,
        70% 0%,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0% 70%,
        0% 30%
    );
}

/* Hueco central de las casillas de título */

.section-node::after{
    content:"";
    position:absolute;
    width:20px;
    height:20px;

    background:#ECECEC;
    border-radius:50%;

    top:50%;
    left:50%;

    transform:translate(-50%, -50%);
}

.section-node--blue{
    background:var(--blue);
}

.section-node--green{
    background:var(--green);
}

.section-node--red{
    background:var(--red);

    clip-path:polygon(
        50% 0%,
        62% 22%,
        85% 15%,
        78% 38%,
        100% 50%,
        78% 62%,
        85% 85%,
        62% 78%,
        50% 100%,
        38% 78%,
        15% 85%,
        22% 62%,
        0% 50%,
        22% 38%,
        15% 15%,
        38% 22%
    );
}

.section-node--red::after{
    width:16px;
    height:16px;
}

.section-node--yellow{
    background:var(--yellow);
}

.section-node--yellow::after{
    width:48px;
    height:48px;

    background-color:transparent;
    background-image:var(--icon-casilla-estrella);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    border-radius:0;
}

/* Títulos */

.section-heading h2{
    font-size:3.2rem;
    font-weight:700;
    line-height:1;
}

/* Colores */
.section-heading--blue h2{
    color:var(--blue);
}

.section-heading--green h2{
    color:var(--green);
}

.section-heading--red h2{
    color:var(--red);
}

.section-heading--yellow h2{
    color:#C4A700;
}

/* ================================= */
/* GALERÍA */
/* ================================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

/* Tarjetas */

.gallery-item{
    overflow:hidden;
    border-radius:25px;
    background:white;
    box-shadow:
        0 8px 30px rgba(0,0,0,.08);
}


.gallery-item img{
    width:100%;
    display:block;
    transition:transform .5s ease;
}

.gallery-item:hover img{
    transform:scale(1.04);
}

/* ================================= */
/* ACERCA DEL JUEGO */
/* ================================= */

.about-section{
    max-width:1280px;
}

.about-nav{
    position:sticky;
    top:92px;

    display:flex;
    flex-wrap:wrap;
    gap:12px;

    margin:-28px 0 70px 75px;

    z-index:50;
}

.about-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 18px;

    border:1px solid rgba(106,170,44,.25);
    border-radius:999px;

    background:rgba(236,236,236,.78);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    color:#8A8A8A;

    font-size:.9rem;
    font-weight:600;
    text-decoration:none;

    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.about-nav a:hover{
    color:var(--green);
    background:white;
    border-color:var(--green);
    transform:translateY(-2px);
}

.about-content{
    display:flex;
    flex-direction:column;
    gap:90px;
}

.about-block{
    position:relative;

    min-height:420px;

    padding:64px;

    border-radius:42px;

    background:#DCDCDC;

    overflow:hidden;

    scroll-margin-top:130px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.06);
}

.about-number{
    position:absolute;
    top:30px;
    right:44px;

    color:rgba(106,170,44,.20);

    font-size:6.2rem;
    font-weight:700;
    line-height:1;

    pointer-events:none;

    z-index:4;
}

.about-block > *:not(.about-number){
    position:relative;
    z-index:2;
}

.about-block--media .about-number,
#about-casillas .about-number{
    top:28px;
    right:38px;

    color:rgba(106,170,44,.22);

    font-size:6rem;

    z-index:5;
}

.about-kicker{
    color:var(--green);

    font-size:.9rem;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;

    margin-bottom:18px;
}

.about-block h3{
    max-width:680px;

    color:var(--green);

    font-size:34px;
    line-height:1.22;
    font-weight:700;

    margin-bottom:26px;
}

.about-block p{
    max-width:720px;

    font-size:1.05rem;
    line-height:1.9;

    margin-bottom:20px;
}

.about-cell-list{
    margin:18px 0 18px 18px;

    display:grid;
    gap:8px;

    color:#1F2025;

    font-size:.92rem;
    line-height:1.55;
}

.about-cell-list li{
    padding-left:4px;
}

.about-cell-list strong{
    font-weight:700;
}

/* Colores específicos de cada tipo de casilla */

.about-cell-list li:nth-child(1) strong{
    color:var(--red);
}

.about-cell-list li:nth-child(2) strong,
.about-cell-list li:nth-child(3) strong{
    color:var(--green);
}

.about-cell-list li:nth-child(4) strong{
    color:var(--blue);
}

.about-cell-list li:nth-child(5) strong,
.about-cell-list li:nth-child(6) strong{
    color:#C4A700;
}

.about-cell-note{
    margin-top:14px;

    font-weight:700;
}

.about-block--hero{
    min-height:520px;

    display:grid;
    grid-template-columns:minmax(0, .95fr) minmax(320px, .75fr);
    align-items:center;
    gap:64px;

    background:
        radial-gradient(circle at 85% 20%, rgba(106,170,44,.18), transparent 34%),
        #DCDCDC;
}

.about-objective-aside{
    width:100%;
    max-width:430px;

    justify-self:end;
    align-self:center;

    padding-top:70px;
}

.about-summary{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;

    margin-top:0;
}

.about-summary span{
    display:flex;
    align-items:center;
    justify-content:center;

    min-height:62px;
    padding:16px 28px;

    border-radius:999px;

    background:#ECECEC;

    color:#555;

    font-size:1.04rem;
    font-weight:700;
    text-align:center;

    box-shadow:0 10px 24px rgba(0,0,0,.04);
}

.about-block--media{
    display:grid;
    grid-template-columns:minmax(0, .9fr) minmax(320px, .95fr);
    align-items:center;
    gap:56px;
}

.about-block--reverse .about-block-text{
    order:2;
}

.about-block--reverse .about-image{
    order:1;
}

.about-image{
    margin:0;

    border-radius:30px;
    overflow:hidden;

    background:#ECECEC;

    box-shadow:
        0 16px 35px rgba(0,0,0,.10);
}

.about-image img{
    width:100%;
    height:auto;
    display:block;
}

.about-block--media .about-image{
    width:min(100%, 520px);

    justify-self:end;
    align-self:end;
}

.about-image--video{
    width:min(100%, 370px);

    aspect-ratio:1 / 1;

    justify-self:end;
    align-self:end;

    background:#ECECEC;
}

.about-image--video video{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
    object-position:center center;
}

.about-image--large{
    width:min(100%, 520px);

    margin:34px auto 0;

    justify-self:center;
}

.about-block--wide{
    padding-bottom:64px;
}

#about-casillas{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(280px, 390px);
    align-items:center;
    gap:64px;
}

#about-casillas .about-block-text{
    max-width:560px;
}

#about-casillas .about-image--large{
    width:100%;
    max-width:390px;

    margin:0;

    justify-self:end;
    align-self:end;
}

#about-casillas .about-image--large img{
    width:100%;
    height:auto;

    display:block;
}

/* Ajuste final: imagen/video a la altura del título y alineado al número */

.about-block--media .about-number,
#about-casillas .about-number{
    top:24px;
    right:34px;

    font-size:5.2rem;
    color:rgba(106,170,44,.22);

    z-index:5;
}

.about-block--media{
    grid-template-columns:minmax(0, .92fr) minmax(360px, .9fr);
    align-items:start;
    gap:64px;
}

.about-block--media .about-image{
    width:min(100%, 430px);

    justify-self:end;
    align-self:start;

    margin-top:54px;
}

/* Video de Preparar */

#about-avanzar .about-image{
    width:min(100%, 430px);

    justify-self:end;
    align-self:start;

    margin-top:54px;
}

#about-preparar .about-image--video{
    width:min(100%, 430px);

    justify-self:end;
    align-self:start;

    margin-top:54px;
}

#about-avanzar .about-image{
    width:min(100%, 430px);

    justify-self:end;
    align-self:start;

    margin-top:54px;
}

#about-casillas{
    display:grid;
    grid-template-columns:minmax(0, .95fr) minmax(360px, .9fr);
    align-items:start;
    gap:64px;
}

#about-casillas .about-image--large{
    width:min(100%, 430px);
    max-width:430px;

    justify-self:end;
    align-self:start;

    margin-top:54px;
}

.about-block--cards{
    background:
        radial-gradient(circle at 12% 18%, rgba(255,221,14,.18), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(0,143,184,.14), transparent 30%),
        #DCDCDC;
}

.about-card-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:26px;

    margin-top:42px;
}

.about-card{
    margin:0;

    border-radius:30px;
    overflow:hidden;

    background:#ECECEC;

    box-shadow:
        0 14px 32px rgba(0,0,0,.08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.about-card:hover{
    transform:translateY(-6px);
    box-shadow:
        0 20px 45px rgba(0,0,0,.12);
}

.about-card img{
    width:100%;
    display:block;

    cursor:zoom-in;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.about-card img:hover{
    transform:scale(1.025);
    filter:brightness(.92);
}

.about-card figcaption{
    padding:24px;
}

.about-card strong{
    display:block;

    font-size:1.25rem;
    margin-bottom:8px;
}

.about-card span{
    display:block;

    color:#555;

    font-size:.94rem;
    line-height:1.7;
}

.about-card--green strong{
    color:var(--green);
}

.about-card--red strong{
    color:var(--red);
}

.about-card--blue strong{
    color:var(--blue);
}

/* ================================= */
/* ESPACIADO EXTRA */
/* ================================= */

#galeria{
    scroll-margin-top:80px;
}

#acerca{
    scroll-margin-top:80px;
}

#pix{
    scroll-margin-top:80px;
}

#interpretacion{
    scroll-margin-top:80px;
}

/* ================================= */
/* PIX */
/* ================================= */

.pix-section{
    max-width:1280px;
    margin-bottom:28px;
}

.pix-intro{
    width:100%;
    max-width:1180px;
    margin:-18px 0 64px 0;

    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:34px;

    text-align:left;
}

.pix-info-card{
    position:relative;

    padding:34px 36px 38px;

    border-radius:30px;

    background:
        radial-gradient(circle at 88% 18%, rgba(214,36,22,.10), transparent 32%),
        rgba(220,220,220,.62);

    box-shadow:
        0 16px 34px rgba(0,0,0,.06);

    overflow:hidden;
}

.pix-info-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:7px;
    height:100%;

    background:var(--red);
    opacity:.88;
}

.pix-info-label{
    display:block;

    margin-bottom:16px;

    color:var(--red);
    font-size:.74rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.pix-info-card h3{
    max-width:420px;

    margin-bottom:18px;

    color:var(--red);
    font-size:1.55rem;
    line-height:1.15;
    font-weight:700;
}

.pix-info-card p{
    max-width:520px;
    margin:0;

    color:#444;
    font-size:.98rem;
    line-height:1.75;

    text-align:left;
    text-align-last:left;

    hyphens:none;
}

@media (max-width:800px){

    .pix-intro{
        grid-template-columns:1fr;
        gap:24px;
        margin-bottom:54px;
    }

    .pix-info-card{
        padding:30px 28px 34px;
    }

    .pix-info-card h3{
        font-size:1.35rem;
    }

}

.pix-container{
    width:100%;

    border-radius:36px;
    overflow:hidden;

    background:#DCDCDC;

    box-shadow:
        0 18px 45px rgba(0,0,0,.10);
}

.pix-viewer{
    display:block;

    width:100%;
    min-height:720px;

    border:0;

    background:#ECECEC;
}

/* ================================= */
/* INTERPRETACIÓN DIGITAL */
/* ================================= */

.interpretacion-section{
    position:relative;

    width:100vw;
    max-width:none;

    margin:45px calc(50% - 50vw) 0;
    padding:82px 40px 34px;

    overflow:hidden;

    background:
        radial-gradient(circle at 12% 26%, rgba(255,221,14,.28), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(0,143,184,.16), transparent 26%),
        radial-gradient(circle at 88% 28%, rgba(214,36,22,.14), transparent 30%),
        radial-gradient(circle at 72% 74%, rgba(106,170,44,.16), transparent 30%),
        linear-gradient(
            90deg,
            rgba(236,236,236,1) 0%,
            rgba(220,220,220,.72) 45%,
            rgba(236,236,236,1) 100%
        );
}

.interpretacion-section::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to bottom,
            rgba(236,236,236,1) 0%,
            rgba(236,236,236,0) 18%,
            rgba(236,236,236,0) 82%,
            rgba(236,236,236,1) 100%
        );

    pointer-events:none;
    z-index:1;
}

.interpretacion-section .section-heading{
    position:relative;
    z-index:2;

    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:36px;
}

.interpretacion-layout{
    position:relative;
    z-index:2;

    width:100%;
    max-width:1180px;
    margin:0 auto;

    display:block;
}

.interpretacion-texto{
    width:100%;
    max-width:none;

    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    column-gap:76px;

    margin-bottom:54px;

    text-align:left;
}

.interpretacion-kicker{
    grid-column:1 / -1;

    display:inline-flex;
    align-items:center;

    margin-bottom:24px !important;

    color:#C4A700;
    font-size:.82rem !important;
    line-height:1 !important;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.09em;
}

.interpretacion-texto p{
    margin:0;

    color:#333;
    font-size:1.04rem;
    line-height:1.9;

    text-align:justify;
    text-align-last:left;

    hyphens:none;
}

.interpretacion-texto strong{
    color:#333;
    font-weight:700;
}
/* Panel horizontal */

.interpretacion-panel{
    position:relative;
    z-index:2;

    width:100%;
    max-width:1180px;

    margin:56px auto 0;
    padding:42px 46px 46px;

    border-radius:42px;
    border:1px solid rgba(255,255,255,.55);

    background:
        linear-gradient(
            135deg,
            rgba(236,236,236,.96) 0%,
            rgba(220,220,220,.92) 100%
        );

    box-shadow:
        0 18px 45px rgba(0,0,0,.08);

    overflow:hidden;
}

.interpretacion-panel-top{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;

    margin-bottom:40px;
}

.interpretacion-panel-icon{
    position:relative;

    width:55px;
    height:55px;
    flex:0 0 55px;

    background:var(--yellow);

    clip-path:polygon(
        30% 0%,
        70% 0%,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0% 70%,
        0% 30%
    );
}

.interpretacion-panel-icon::after{
    content:"";

    position:absolute;

    width:48px;
    height:48px;

    top:50%;
    left:50%;

    transform:translate(-50%, -50%);

    background-color:transparent;
    background-image:var(--icon-casilla-estrella);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    border-radius:0;
}

.interpretacion-panel-heading{
    display:grid;
    grid-template-columns:auto 2px minmax(420px, 520px);
    align-items:center;
    column-gap:34px;
}

.interpretacion-panel-heading::before{
    content:"";

    grid-column:2;
    grid-row:1;

    width:2px;
    height:76px;

    background:rgba(30,30,30,.72);
}

.interpretacion-panel-heading h3{
    grid-column:1;
    grid-row:1;

    margin:0;

    color:#111;
    font-size:1.35rem;
    line-height:1.1;
    font-weight:700;

    white-space:nowrap;
}

.interpretacion-panel-heading p{
    grid-column:3;
    grid-row:1;

    max-width:520px;
    margin:0;

    color:#333;
    font-size:1rem;
    line-height:1.55;

    text-align:left;
}

.interpretacion-panel-flow{
    display:grid;
    grid-template-columns:1fr 52px 1fr 52px 1fr;
    align-items:stretch;
    gap:18px;
}

.interpretacion-step{
    position:relative;

    min-height:150px;

    padding:30px 30px 30px 34px;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;

    border-radius:30px;

    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.28), transparent 32%),
        rgba(220,220,220,.62);

    box-shadow:
        0 16px 34px rgba(0,0,0,.06);

    overflow:hidden;
}

.interpretacion-step::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:7px;
    height:100%;

    opacity:.92;
}

.interpretacion-step h4{
    margin:0 0 14px;

    font-size:1.35rem;
    line-height:1.15;
    font-weight:700;
}

.interpretacion-step p{
    max-width:300px;
    margin:0;

    color:#444;
    font-size:.96rem;
    line-height:1.7;
}

.interpretacion-step--blue::before{
    background:var(--blue);
}

.interpretacion-step--green::before{
    background:var(--green);
}

.interpretacion-step--red::before{
    background:var(--red);
}

.interpretacion-step--blue h4{
    color:var(--blue);
}

.interpretacion-step--green h4{
    color:var(--green);
}

.interpretacion-step--red h4{
    color:var(--red);
}

.interpretacion-step--blue{
    background:
        radial-gradient(circle at 88% 18%, rgba(0,143,184,.12), transparent 34%),
        rgba(220,220,220,.62);
}

.interpretacion-step--green{
    background:
        radial-gradient(circle at 88% 18%, rgba(106,170,44,.13), transparent 34%),
        rgba(220,220,220,.62);
}

.interpretacion-step--red{
    background:
        radial-gradient(circle at 88% 18%, rgba(214,36,22,.12), transparent 34%),
        rgba(220,220,220,.62);
}

.interpretacion-arrow{
    display:flex;
    align-items:center;
    justify-content:center;

    font-size:3rem;
    line-height:1;
    font-weight:700;

    opacity:.9;
}

.interpretacion-arrow--blue{
    color:var(--blue);
}

.interpretacion-arrow--green{
    color:var(--green);
}

/* Responsive */

@media (max-width:980px){

    .interpretacion-texto{
        grid-template-columns:1fr;
        row-gap:28px;
        margin-bottom:42px;
    }

    .interpretacion-texto p{
        text-align:left;
        text-align-last:left;
    }

    .interpretacion-panel{
        margin-top:44px;
        padding:30px 24px 32px;
        border-radius:32px;
    }

    .interpretacion-panel-top{
        justify-content:flex-start;
        align-items:flex-start;
        gap:14px;
        margin-bottom:28px;
    }

    .interpretacion-panel-icon{
        width:46px;
        height:46px;
        flex-basis:46px;
    }

    .interpretacion-panel-icon::after{
        width:38px;
        height:38px;
    }

    .interpretacion-panel-heading{
        display:block;
    }

    .interpretacion-panel-heading::before{
        display:none;
    }

    .interpretacion-panel-heading h3{
        margin-bottom:8px;
        font-size:1.2rem;
        white-space:normal;
    }

    .interpretacion-panel-heading p{
        max-width:none;
        font-size:.94rem;
    }

    .interpretacion-panel-flow{
        grid-template-columns:1fr;
        gap:14px;
    }

    .interpretacion-arrow{
        transform:rotate(90deg);
        font-size:2.2rem;
    }

    .interpretacion-step{
        min-height:auto;
        padding:26px 26px 26px 30px;
    }

    .interpretacion-step h4{
        font-size:1.22rem;
    }

}

/* ================================= */
/* CTA FINAL */
/* ================================= */

.final-cta{
    position:relative;

    width:100vw;
    margin:0 calc(50% - 50vw) 0;
    padding:46px 40px 82px;

    text-align:center;

    background:
        radial-gradient(circle at 30% 50%, rgba(106,170,44,.20), transparent 30%),
        radial-gradient(circle at 50% 42%, rgba(0,143,184,.18), transparent 32%),
        radial-gradient(circle at 72% 48%, rgba(214,36,22,.14), transparent 30%),
        linear-gradient(
            90deg,
            rgba(236,236,236,1) 0%,
            rgba(220,220,220,.72) 50%,
            rgba(236,236,236,1) 100%
        );

    overflow:hidden;
}

.final-cta::before,
.final-cta::after{
    content:"";
    position:absolute;
    left:0;
    right:0;

    height:48px;

    pointer-events:none;
}

.final-cta::before{
    top:0;

    background:linear-gradient(
        to bottom,
        #ECECEC 0%,
        rgba(236,236,236,0) 100%
    );
}

.final-cta::after{
    bottom:0;

    background:linear-gradient(
        to top,
        #D9D9D9 0%,
        rgba(217,217,217,0) 100%
    );
}

.final-cta-button{
    position:relative;
    isolation:isolate;
    overflow:hidden;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:28px 58px;

    background:
        linear-gradient(
            120deg,
            var(--green),
            var(--blue),
            var(--red),
            var(--green)
        );

    background-size:300% 300%;

    color:white;
    text-decoration:none;

    font-weight:700;
    font-size:1.08rem;
    letter-spacing:.02em;

    border-radius:999px;

    box-shadow:
        0 14px 34px rgba(0,0,0,.16);

    animation:ctaColorFlow 7s ease infinite;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        color .35s ease;
}

.final-cta .final-cta-button{
    min-width:520px;

    padding:34px 72px;

    font-size:1.28rem;
    border-radius:999px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.18);
}

.final-cta .final-cta-button:hover{
    transform:translateY(-7px) scale(1.04);

    box-shadow:
        0 26px 62px rgba(0,0,0,.24);
}

.final-cta-button::before{
    content:"";
    position:absolute;
    inset:0;

    background:var(--yellow);

    opacity:0;

    z-index:-1;

    transition:opacity .35s ease;
}

.final-cta-button:hover{
    color:#333;

    transform:translateY(-6px) scale(1.03);

    box-shadow:
        0 20px 45px rgba(0,0,0,.20);
}

.final-cta-button:hover::before{
    opacity:1;
}

@keyframes ctaColorFlow{
    0%{
        background-position:0% 50%;
    }

    50%{
        background-position:100% 50%;
    }

    100%{
        background-position:0% 50%;
    }
}

/* ================================= */
/* FOOTER / COLOFÓN */
/* ================================= */

.site-footer{
    position:relative;

    background:
        radial-gradient(circle at 12% 22%, rgba(0,143,184,.08), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(255,221,14,.10), transparent 26%),
        radial-gradient(circle at 78% 88%, rgba(106,170,44,.08), transparent 30%),
        #CFCFCF;

    padding:72px 40px 68px;

    border-top:1px solid rgba(0,0,0,.08);
}

.footer-inner{
    width:100%;
    max-width:1180px;
    margin:0 auto;

    display:grid;
    grid-template-columns:minmax(0, 1fr) 310px;
    align-items:start;
    gap:86px;
}

.footer-main{
    text-align:left;
}

.footer-logos{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:42px;

    margin-bottom:42px;
}

/* Logos institucionales */

.footer-logo-placeholder{
    width:225px;
    height:100px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    background:transparent;
    border-radius:0;

    overflow:visible;
}

.footer-logo-placeholder img{
    width:100%;
    height:100%;

    display:block;

    object-fit:contain;
}

.footer-text{
    max-width:760px;
    margin:0;

    text-align:left;
}

.footer-text p{
    max-width:720px;

    color:#1F2025;
    font-size:.92rem;
    line-height:1.9;

    margin-bottom:14px;
}

.footer-text p:last-child{
    margin-bottom:0;
}

.footer-inline-link{
    color:#1F2025;
    font-weight:inherit;
    text-decoration:none;

    border-bottom:1px solid rgba(31,32,37,.38);

    transition:
        color .25s ease,
        border-color .25s ease;
}

.footer-inline-link:hover{
    color:var(--blue);
    border-color:var(--blue);
}

/* Herramientas usadas */

.footer-tools{
    position:relative;

    padding-top:8px;
    padding-left:54px;

    border-left:1px solid rgba(31,32,37,.16);

    text-align:left;
}

.footer-tools-title{
    margin-bottom:24px;

    color:#1F2025;
    font-size:.82rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.footer-tools-list{
    display:grid;
    grid-template-columns:repeat(4, 42px);
    gap:18px;
    align-items:start;
}

.footer-tool{
    position:relative;

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:default;
}

.footer-tool img{
    width:32px;
    height:32px;

    display:block;
    object-fit:contain;

    opacity:.72;

    transition:
        opacity .25s ease,
        transform .25s ease,
        filter .25s ease;
}

.footer-tool span{
    position:absolute;
    top:54px;
    left:50%;

    min-width:max-content;

    transform:translateX(-50%) translateY(-4px);

    padding:6px 9px;

    border-radius:999px;

    background:rgba(31,32,37,.88);
    color:#ECECEC;

    font-size:.68rem;
    line-height:1.2;
    font-weight:600;
    white-space:nowrap;

    opacity:0;
    pointer-events:none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.footer-tool:hover img{
    opacity:1;
    transform:translateY(-3px) scale(1.08);
    filter:drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

.footer-tool:hover span{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

.footer-teachers{
    margin-top:42px;
}

.footer-teachers .footer-tools-title{
    margin-bottom:16px;
}

.footer-teachers-list{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

.footer-teachers-list a{
    position:relative;

    width:max-content;

    color:#1F2025;
    font-size:.86rem;
    line-height:1.4;
    font-weight:inherit;
    text-decoration:none;

    border-bottom:1px solid rgba(31,32,37,.38);

    opacity:.78;

    transition:
        opacity .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.footer-teachers-list a:hover{
    opacity:1;
    color:var(--blue);
    border-color:var(--blue);
}

/* ================================= */
/* ANIMACIONES */
/* ================================= */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.visible{
    opacity:1;
    transform:translateY(0);
}

/* ================================= */
/* HERO ACTIVO */
/* ================================= */

.active-node{
    transform:scale(1.12);
}

/* ================================= */
/* TRANSICIONES HERO */
/* ================================= */

.tile-nav{
    transition:
        background-color .3s ease,
        transform .3s ease;
}

/* ================================= */
/* APARICIÓN DE SECCIONES */
/* ================================= */

.section{
    opacity:1;
}

/* ================================= */
/* SCROLLBAR */
/* ================================= */

::-webkit-scrollbar{
    width:12px;
}

::-webkit-scrollbar-track{
    background:#ECECEC;
}

::-webkit-scrollbar-thumb{
    background:#C7C7C7;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#AFAFAF;
}

/* ================================= */
/* RESPONSIVE TABLET */
/* ================================= */

@media (max-width:1024px){
    .hero-content h1{
        font-size:4.5rem;
    }

    .hero-content h2{
        font-size:1.25rem;
    }

    .gallery{
        grid-template-columns:1fr;
    }

    .section-heading h2{
        font-size:2.5rem;
    }

    .nav-galeria{
        left:32%;
    }

    .nav-acerca{
        left:44%;
    }

    .nav-pix{
        left:56%;
    }

    .nav-interpretacion{
        left:68%;
    }

    .about-nav{
        margin-left:0;
    }

    .about-block{
        padding:48px;
    }

    .about-block--media{
        grid-template-columns:1fr;
    }

    .about-block--reverse .about-block-text,
    .about-block--reverse .about-image{
        order:initial;
    }

    .about-card-grid{
        grid-template-columns:1fr;
    }

}

/* ================================= */
/* RESPONSIVE MÓVIL */
/* ================================= */

@media (max-width:768px){
    .hero{

        min-height:100svh;
    }

    .hero-content{
        padding:0 25px;
    }

    .hero-content h1{
        font-size:3rem;
    }

    .hero-content h2{
        font-size:1rem;
    }

    /* Menú Hero */
    .nav-galeria{
        left:18%;
        top:72%;
    }

    .nav-acerca{
        left:38%;
        top:72%;
    }

    .nav-pix{
        left:58%;
        top:72%;
    }

    .nav-interpretacion{
        left:78%;
        top:72%;
    }

    .tile-nav{
        width:60px;
        height:60px;
    }

    .tile-label{
        font-size:.8rem;
        top:80px;
    }

    /* Intro */
    .intro{
        margin:70px 0 110px 0;
        padding:90px 25px;
    }

    .intro p{
        font-size:1rem;
        line-height:1.85;
    }

    /* Secciones */
    .section{
        margin:120px auto;
        padding:0 25px;
    }

    .section-heading{
        gap:15px;
    }

    .section-heading h2{
        font-size:2rem;
    }

    .section-node{
        width:40px;
        height:40px;
    }

    /* Galería */
    .gallery{
        grid-template-columns:1fr;
    }

    /* Footer */
    .site-footer{
        padding:58px 24px 64px;
    }

    .footer-inner{
        grid-template-columns:1fr;
        gap:48px;
    }

    .footer-logos{
        flex-direction:column;
        align-items:flex-start;
        gap:22px;
        margin-bottom:34px;
    }

    .footer-logo-placeholder{
        width:200px;
        height:88px;
    }

    .footer-text{
        max-width:none;
    }

    .footer-text p{
        max-width:none;
        font-size:.88rem;
    }

    .footer-tools{
        padding-top:0;
        padding-left:0;

        border-left:none;
    }

    .footer-tools-list{
        grid-template-columns:repeat(4, 42px);
        gap:16px;
    }

    .footer-tool span{
        top:52px;
    }

    .footer-teachers{
        margin-top:34px;
    }

    .footer-teachers-list{
        gap:9px;
    }

    .about-nav{
        position:relative;
        top:auto;

        margin:-28px 0 50px 0;
    }

    .about-block{
        padding:34px 26px;
        border-radius:30px;
        min-height:auto;
    }

    .about-number{
        top:24px;
        right:24px;
        font-size:4.5rem;
    }

    .about-block h3{
        font-size:30px;
        line-height:1.25;
    }

    .about-block p{
        font-size:1rem;
    }

    .about-summary{
        flex-direction:column;
    }

    .about-summary span{
        width:100%;
        justify-content:center;
    }

    .about-card-grid{
        gap:22px;
    }

    .pix-viewer{
        min-height:620px;
    }

    .tile-nav.yellow::after{
        width:43px;
        height:43px;
    }

    .section-node--yellow::after{
        width:37px;
        height:37px;
    }

    .pix-intro{
        margin:-18px auto 42px auto;
    }

    .pix-intro p{
        font-size:1rem;
    }

    .interpretacion-section{
        margin:70px calc(50% - 50vw) 56px;
        padding:82px 25px 64px;
    }

    .final-cta{
        margin:56px auto 54px auto;
    }

    .final-cta-button{
        padding:24px 40px;
        font-size:1rem;
    }

    .final-cta{
        margin:56px calc(50% - 50vw) 0;
        padding:68px 24px 74px;
    }

    .final-cta .final-cta-button{
        width:100%;
        min-width:0;

        padding:26px 28px;

        font-size:1.05rem;
    }
}

/* ================================= */
/* RESPONSIVE MÓVIL PEQUEÑO */
/* ================================= */

@media (max-width:480px){
    .hero-content h1{
        font-size:2.4rem;
    }

    .hero-content h2{
        font-size:.95rem;
    }

    .section-heading h2{
        font-size:1.7rem;
    }

    .about-nav a{
        font-size:.82rem;
        padding:9px 14px;
    }

    .about-block h3{
        font-size:26px;
        line-height:1.28;
    }

    .final-cta-button{
        width:100%;
    }

    .pix-viewer{
        min-height:540px;
    }

    .intro{
        padding:78px 22px;
    }

    .intro-highlight{
        font-size:1rem;
    }

    .interpretacion-section{
        padding:82px 22px;
    }

    .final-cta-button{
        padding:22px 28px;
    }
}

/* ================================= */
/* GALERÍA ABIERTA */
/* ================================= */

.gallery-grid{
    width:100%;
    max-width:1180px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(12, 1fr);
    grid-template-rows:230px 230px;
    gap:28px;

    padding:10px 0 18px;
}

/* Marco general de cada imagen */

.gallery-slide{
    position:relative;

    margin:0;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:#ECECEC;

    cursor:pointer;

    transition:
        transform .35s ease,
        filter .35s ease;
}

/* Diagramación específica: 6 imágenes */

.gallery-slide:nth-child(1){
    grid-column:1 / span 4;
    grid-row:1 / span 2;
}

.gallery-slide:nth-child(2){
    grid-column:5 / span 2;
    grid-row:1 / span 1;
}

.gallery-slide:nth-child(3){
    grid-column:7 / span 2;
    grid-row:1 / span 1;
}

.gallery-slide:nth-child(4){
    grid-column:9 / span 4;
    grid-row:1 / span 1;
}

.gallery-slide:nth-child(5){
    grid-column:5 / span 4;
    grid-row:2 / span 1;
}

.gallery-slide:nth-child(6){
    grid-column:9 / span 4;
    grid-row:2 / span 1;
}

/* Imagen dentro del marco */

.gallery-slide img{
    width:100%;
    height:100%;

    display:block;

    object-fit:contain;
    object-position:center;

    background:#ECECEC;

    transition:
        transform .45s ease,
        filter .45s ease,
        opacity .45s ease;
}

.gallery-slide--large img{
    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center center;
}

.gallery-slide:hover{
    transform:translateY(-8px);
}

.gallery-slide:hover img{
    transform:scale(1.035);
    filter:brightness(.72) saturate(.95);
}

/* Texto sobre imagen */

.gallery-slide figcaption{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:flex-start;

    padding:28px;

    color:white;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.62) 0%,
            rgba(0,0,0,.34) 42%,
            rgba(0,0,0,0) 100%
        );

    opacity:0;

    transform:translateY(10px);

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.gallery-slide:hover figcaption{
    opacity:1;
    transform:translateY(0);
}

.gallery-slide figcaption strong{
    display:block;
    margin-bottom:8px;

    font-size:1.05rem;
    font-weight:700;
    line-height:1.15;
}

.gallery-slide figcaption span{
    display:block;

    max-width:340px;

    font-size:.86rem;
    font-weight:500;
    line-height:1.45;
    opacity:.88;
}

/* Responsive */

@media (max-width:980px){

    .gallery-grid{
        grid-template-columns:repeat(6, 1fr);
        grid-template-rows:auto;
        gap:24px;
    }

    .gallery-slide:nth-child(n){
        grid-column:auto;
        grid-row:auto;
        min-height:260px;
    }

    .gallery-slide:nth-child(1){
        grid-column:1 / span 6;
        min-height:360px;
    }

    .gallery-slide:nth-child(2),
    .gallery-slide:nth-child(3){
        grid-column:span 3;
    }

    .gallery-slide:nth-child(4),
    .gallery-slide:nth-child(5),
    .gallery-slide:nth-child(6){
        grid-column:span 6;
    }

}

@media (max-width:640px){

    .gallery-grid{
        grid-template-columns:1fr;
        gap:28px;
    }

    .gallery-slide:nth-child(n){
        grid-column:auto;
        grid-row:auto;
        min-height:260px;
    }

    .gallery-slide figcaption{
        opacity:1;
        transform:none;
        padding:22px;
    }

}

/* ================================= */
/* LIGHTBOX GALERÍA */
/* ================================= */

.gallery-lightbox{
    position:fixed;
    inset:0;

    width:100vw;
    min-height:100vh;
    height:100dvh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:72px 56px;

    background:rgba(24,24,24,.82);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);

    z-index:99999;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.gallery-lightbox.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.gallery-lightbox-img{
    display:block;

    width:auto;
    height:auto;

    max-width:88vw;
    max-height:82dvh;

    object-fit:contain;

    border-radius:24px;

    box-shadow:
        0 24px 70px rgba(0,0,0,.42);

    transform:scale(.94);
    transition:transform .3s ease;
}

.gallery-lightbox.is-open .gallery-lightbox-img{
    transform:scale(1);
}

.gallery-lightbox-close{
    position:fixed;
    top:28px;
    right:34px;

    width:52px;
    height:52px;

    border:none;
    border-radius:50%;

    background:#ECECEC;
    color:#333;

    font-size:2rem;
    line-height:1;

    cursor:pointer;

    z-index:100000;

    transition:
        transform .25s ease,
        background-color .25s ease;
}

.gallery-lightbox-close:hover{
    transform:scale(1.08);
    background:white;
}

@media (max-width:768px){
    .gallery-lightbox{
        padding:72px 22px 42px 22px;
    }

    .gallery-lightbox-img{
        max-width:92vw;
        max-height:78dvh;
        border-radius:18px;
    }

    .gallery-lightbox-close{
        top:18px;
        right:18px;
        width:46px;
        height:46px;
    }
}