@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap');
/* ==========================================================================
   MAESTRO CRUZ DISEÑO ® - VERSIÓN FINAL AMPLIADA
   ========================================================================== */

:root {
    --bg-dark: #1D1E1C;
    --crema: #FFFDF3;
    --grid-margin: 45px;
    --reveal-curve: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background-color: var(--bg-dark); } /* fallback si el Silk no carga */
body {
    background-color: transparent; /* deja ver el Silk global (#silk-global) */
    color: var(--crema);
    font-family: "Geist", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Silk global de fondo (oscuro) — inyectado por page-loader.js en páginas de proyecto */
#silk-global {
    position: fixed;
    inset: 0;
    z-index: -1;            /* detrás del contenido estático */
    pointer-events: none;
    overflow: hidden;
}
#silk-global canvas { display: block; width: 100%; height: 100%; }

/* Fondos grandes al 85% para que el Silk se cuele sutil (legibilidad intacta) */
.gretel-hero        { background-color: rgba(29, 30, 28, 0.85); }
.footer-project-nav { background-color: rgba(29, 30, 28, 0.85); }

/* ══════════════════════════════════════════════════════════════════════════
   TEXTURA GLOBAL DE GRANO (estilo basicagency.com)
   Mismo recurso que en style.css: capa fija sobre toda la página con
   mix-blend-mode 'overlay' → grano consistente en fondos negros y blancos.
   ══════════════════════════════════════════════════════════════════════════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.32;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.6' intercept='-0.8'/%3E%3CfeFuncG type='linear' slope='2.6' intercept='-0.8'/%3E%3CfeFuncB type='linear' slope='2.6' intercept='-0.8'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 260px 260px;
}

/* ==========================================================================
   COMPONENTE: BACK ARROW CTA (SISTEMATIZADO)
   ========================================================================== */

/* Contenedor que posiciona el botón debajo del Navbar (con respiro) */
.back-nav-container {
    position: fixed;
    top: 120px; /* Respiro de ~25px bajo el Navbar */
    left: 0;
    width: 100%;
    padding: 0 var(--grid-margin);
    z-index: 900; /* Debajo del Nav (1000), sobre el Hero */
    pointer-events: none; /* Permite hacer clic "a través" del área vacía */
}

/* El botón circular minimalista */
.back-arrow-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--crema);
    background: rgba(29, 30, 28, 0.6); /* Fondo oscuro semitransparente */
    border: 1px solid rgba(255, 253, 243, 0.15); /* Borde sutil */
    border-radius: 50%; /* Circular */
    width: 48px;
    height: 48px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto; /* Habilita el clic solo en el botón */
    backdrop-filter: blur(8px); /* Efecto moderno de cristal */
}

/* Icono de la flecha */
.back-arrow-cta .material-symbols-outlined {
    font-size: 22px;
    transition: transform 0.3s ease;
}

/* --- HOVER STATE (INTERACCIÓN CRUZ ESTUDIO) --- */
.back-arrow-cta:hover {
    border-color: var(--gold); /* Color de acento corporativo */
    color: var(--gold);
    transform: translateX(-4px); /* Sutil movimiento hacia atrás para indicar retorno */
    background: rgba(29, 30, 28, 0.9);
}



/* --- EFECTO REVEAL SCROLL --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s var(--reveal-curve);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVBAR GLOBAL (glass, match index) --- */
.navbar-brand {
    padding: 10px 65px;
    background-color: rgba(29, 30, 28, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 253, 243, 0.10);
}

.containerNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}
.logo-vectorial { height: 20px; width: auto; filter: brightness(1.1); }

.nav-links-brands {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
}
.nav-links-brands li { margin: 0; }
.nav-links-brands a {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 14px;
    color: var(--crema);
    letter-spacing: 0.02em;
    padding: 30px 0;
    display: inline-block;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
}
.nav-links-brands a:hover { opacity: 0.65; }

/* Active state — la página actual queda atenuada e inclickable */
.nav-links-brands a.is-active {
    color: var(--crema);
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}
.nav-links-brands a.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 20px;
    height: 1px;
    background: #f2c335;
    opacity: 0.9;
}

/* Mobile contact (oculto en desktop) */
.mobile-contact-item { display: none; }

/* Hamburguesa (oculta en desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}
.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--crema);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* CTA "CONTACTO" derecha (match index) */
.nav-right-cta { display: flex; align-items: center; margin-left: 24px; }
.nav-cta-btn {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--bg-dark);
    background: #f2c335;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 50px;
    transition: transform 0.4s var(--reveal-curve), background 0.4s ease;
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    background: var(--crema);
}

/* --- HERO REPARADO: FULL SCREEN --- */
.gretel-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: var(--grid-margin);
    overflow: hidden;
    background-color: #000;
}

.hero-visual {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.bg-video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(29,30,28,0.9) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* H1 hero legacy — alineado a .projv2-hero-title */
.display-title {
    font-family: "Geist", sans-serif;
    font-size: clamp(2.8rem, 8.5vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 700;
    font-style: normal;
    color: var(--crema);
}

/* Tagline hero legacy — alineado a .projv2-hero-eyebrow */
.hero-tagline {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #f2c335;
    margin-top: 28px;
    text-transform: uppercase;
    opacity: 1;
    font-style: normal;
}

/* --- BRIEF & LECTURA --- */
.gretel-brief-column {
    display: flex; flex-direction: column;
    padding: 120px var(--grid-margin); gap: 80px;
}

/* Mono-label sistematizada — alineado a .projv2-statement .label */
.mono-label {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    color: rgba(255, 253, 243, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    font-style: normal;
}

/* Ficha técnica legacy — alineado a .projv2-meta-cell */
.meta-item p {
    font-family: "Geist", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--crema);
    font-style: normal;
}

/* Statement body legacy — alineado a .projv2-statement-title */
.lectura-proyect {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.022em;
    max-width: 1100px;
    color: var(--crema);
    font-style: normal;
}

/* Break quote legacy — alineado a .projv2-break-quote */
.break-text {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: -0.018em;
    font-weight: 500;
    color: var(--crema);
    margin: 0 auto;
    max-width: 1100px;
    font-style: normal;
}

/* Footer "siguiente proyecto" — sistematizado */
.next-title-display {
    font-family: "Geist", sans-serif;
    font-size: clamp(2rem, 5.5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--crema);
    font-style: normal;
}
.mono-label-footer {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(255, 253, 243, 0.5);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    font-style: normal;
}

/* --- GALERÍA MODULAR --- */
.modular-grid-gallery {
    padding: 0 var(--grid-margin) 100px; 
    display: flex; flex-direction: column; gap: 45px;
}

/* --- COMPONENTE DE VIDEO CENTRADO (MODIFICADO: MÁS GRANDE) --- */

.video-final-row {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    margin-top: 60px;
    padding-bottom: 100px;
}

/* El contenedor de video local ahora es más ancho */
.video-container-fix {
    width: 100%;
    max-width: 1400px; /* Incrementado de 1100px para mayor impacto */
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    opacity: 1 !important;
}

.video-native {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

/* El contenedor de video YouTube ahora es más ancho */
.video-mask {
    position: relative;
    width: 100%;
    max-width: 1400px; /* Incrementado de 1100px para consistencia */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.video-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    width: 115%; 
    height: 115%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-wrapper iframe {
    width: 100%; height: 100%;
    object-fit: cover;
}

.video-click-blocker {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
}

/* ==========================================================================
   SISTEMA DE NAVEGACIÓN RESPONSIVE (MATCH INDEX)
   ========================================================================== */

@media (max-width: 768px) {
    .navbar-brand {
        padding: 14px 24px;
        min-height: 60px;
    }

    /* Hamburguesa visible */
    .menu-toggle {
        display: flex;
        order: 2;
    }

    /* Ocultar CTA amarillo del lado derecho */
    .nav-right-cta { display: none; }

    /* Convertir menú en overlay full screen */
    .nav-links-brands {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: 1000;
        margin: 0;
        padding: 0;
    }

    .nav-links-brands.active {
        transform: translateY(0);
    }

    .nav-links-brands li { margin: 0; }

    .nav-links-brands a {
        font-family: 'Geist', sans-serif;
        font-size: 32px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 0;
        color: var(--crema);
    }

    /* Mostrar contacto dentro del menú overlay, destacado */
    .mobile-contact-item { display: block; }
    .mobile-contact-item a { color: #f2c335; }

    /* Quitar subrayado de active state en mobile (el overlay no lo necesita) */
    .nav-links-brands a.is-active::after { display: none; }

    /* Animación hamburguesa → X */
    .menu-toggle.open .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.open .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.open .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Bloqueo de scroll cuando el menú está abierto */
    body.menu-open {
        overflow: hidden !important;
    }
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .back-nav-container {
        top: 100px; /* Respiro bajo el navbar en tablet */
        padding: 0 24px;
    }
    .back-arrow-cta {
        width: 40px; /* Un poco más pequeño en móvil */
        height: 40px;
    }
    .back-arrow-cta .material-symbols-outlined {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .back-nav-container {
        top: 85px; /* Navbar mobile ≈ 60px + ~25px de respiro */
        padding: 0 18px;
    }
}
/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1450px) {
    .video-mask, .video-container-fix { 
        max-width: 90vw; /* Ajuste dinámico para pantallas intermedias */
    }
}

@media (max-width: 1024px) {
    .video-mask, .video-container-fix { max-width: 100%; }
    .gallery-row.split-equal { grid-template-columns: 1fr; gap: 20px; }
    .video-final-row {
        padding: 40px var(--grid-margin);
    }
}

.reveal-frame { width: 100%; overflow: hidden; background-color: #151515; }
.aspect-framed { aspect-ratio: 16 / 10; }
.long-frame { aspect-ratio: auto; }
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--reveal-curve); }
.reveal-frame:hover img { transform: scale(1.03); }
.gallery-row.split-equal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 45px; }

/* --- BREAK & FOOTER REFINADO --- */
.gretel-break { padding: 20vh var(--grid-margin); text-align: center; }
.break-text { font-size: clamp(1.8rem, 6vw, 4.2rem); line-height: 1; font-weight: 700; }

.footer-project-nav { padding: 100px var(--grid-margin); border-top: 1px solid rgba(255,255,243,0.1); background-color: var(--bg-dark); }
.next-link { text-decoration: none !important; color: var(--crema); display: block; }
.mono-label-footer { font-family: "cofo-sans-mono-variable", monospace; font-size: 11px; opacity: 0.4; text-transform: uppercase; display: block; margin-bottom: 20px; }
.next-title-display { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; transition: transform 0.4s var(--reveal-curve); }
.next-link:hover .next-title-display { transform: translateX(25px); }

/* --- FIX GLOBAL: FOOTER SIEMPRE AL FONDO --- */
.site-wrapper { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
.archive-main-content { 
    flex: 1; 
}
/* ==========================================================================
   PROJECT V2 — Sistema editorial estilo estrela.studio
   (navbar consolidado arriba; ver "NAVBAR GLOBAL")
   ========================================================================== */

/* --- SCROLL REVEAL REFINADO (estrela style) -------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(48px);
    filter: blur(6px);
    transition:
        opacity 1.1s var(--reveal-curve),
        transform 1.2s var(--reveal-curve),
        filter 0.9s ease;
    will-change: opacity, transform, filter;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger entre items del mismo grupo (.scroll-reveal-stagger > *) */
.scroll-reveal-stagger > * {
    opacity: 0;
    transform: translateY(48px);
    filter: blur(6px);
    transition:
        opacity 1.0s var(--reveal-curve),
        transform 1.1s var(--reveal-curve),
        filter 0.8s ease;
    will-change: opacity, transform, filter;
}
.scroll-reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.scroll-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.scroll-reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.scroll-reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.scroll-reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }

/* Reveal-frame mejorado: imagen entra con sutil scale-in */
.reveal-frame.visible img,
.reveal-frame img {
    transition: transform 1.4s var(--reveal-curve), opacity 1.1s ease;
}
.reveal-frame:not(.visible) img {
    transform: scale(1.08);
    opacity: 0.6;
}
.reveal-frame.visible img {
    transform: scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-stagger > *,
    .reveal-frame:not(.visible) img {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* --- PROJECT V2 — HERO -------------------------------------------- */
.projv2-hero {
    position: relative;
    min-height: 100vh;
    padding: 0 var(--grid-margin);
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: var(--bg-dark);
}
.projv2-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.projv2-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.projv2-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29,30,28,0.15) 0%, rgba(29,30,28,0.55) 60%, rgba(29,30,28,0.95) 100%);
}
.projv2-hero-content {
    position: relative;
    z-index: 2;
    align-self: end;
    padding: 0 0 80px;
    max-width: 1100px;
}
.projv2-hero-eyebrow {
    display: inline-block;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #f2c335;
    margin-bottom: 28px;
}
.projv2-hero-title {
    font-family: "Geist", sans-serif;
    font-size: clamp(2.8rem, 8.5vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--crema);
    margin: 0;
}

/* --- PROJECT V2 — META TABLE -------------------------------------- */
.projv2-meta {
    padding: 90px var(--grid-margin) 60px;
    border-bottom: 1px solid rgba(255,253,243,0.10);
}
.projv2-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 48px;
}
.projv2-meta-cell .label {
    display: block;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(255, 253, 243, 0.45);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.projv2-meta-cell p {
    font-family: "Geist", sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--crema);
    line-height: 1.4;
}

/* --- PROJECT V2 — STATEMENT (Nuestro enfoque) -------------------- */
.projv2-statement {
    padding: 130px var(--grid-margin);
    max-width: 1300px;
}
.projv2-statement .label {
    display: block;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #f2c335;
    margin-bottom: 36px;
}
.projv2-statement-title {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--crema);
    margin: 0 0 36px;
    max-width: 1100px;
}
.projv2-statement-body {
    font-family: "Geist", sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 253, 243, 0.72);
    max-width: 720px;
}

/* --- PROJECT V2 — MODULAR GALLERY -------------------------------- */
.projv2-gallery {
    padding: 0 var(--grid-margin) 120px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
.projv2-gallery figure {
    margin: 0;
    overflow: hidden;
    background-color: #151515;
}
.projv2-gallery figure img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Spans */
.projv2-gallery .span-12 { grid-column: span 12; }
.projv2-gallery .span-8  { grid-column: span 8;  }
.projv2-gallery .span-7  { grid-column: span 7;  }
.projv2-gallery .span-6  { grid-column: span 6;  }
.projv2-gallery .span-5  { grid-column: span 5;  }
.projv2-gallery .span-4  { grid-column: span 4;  }
/* Aspect ratios */
.projv2-gallery .ratio-21  { aspect-ratio: 21 / 9; }   /* 2.33  ultra-pano */
.projv2-gallery .ratio-16  { aspect-ratio: 16 / 9; }   /* 1.78  panorámica */
.projv2-gallery .ratio-32  { aspect-ratio: 3 / 2;  }   /* 1.50  horizontal foto */
.projv2-gallery .ratio-43  { aspect-ratio: 4 / 3;  }   /* 1.33  horizontal contenida */
.projv2-gallery .ratio-11  { aspect-ratio: 1 / 1;  }   /* 1.00  cuadrada */
.projv2-gallery .ratio-45  { aspect-ratio: 4 / 5;  }   /* 0.80  vertical foto */
.projv2-gallery .ratio-34  { aspect-ratio: 3 / 4;  }   /* 0.75  vertical contenida */
.projv2-gallery .ratio-916 { aspect-ratio: 9 / 16; }   /* 0.56  story / reel */

/* --- PROJECT V2 — CHALLENGE LIST --------------------------------- */
.projv2-challenge {
    padding: 60px var(--grid-margin) 130px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    border-top: 1px solid rgba(255,253,243,0.10);
}
.projv2-challenge .label {
    display: block;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #f2c335;
    text-transform: uppercase;
    margin-top: 8px;
}
.projv2-challenge-list {
    list-style: none;
    margin: 0; padding: 0;
}
.projv2-challenge-list li {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,253,243,0.10);
}
.projv2-challenge-list li:first-child { padding-top: 0; }
.projv2-challenge-list li:last-child  { border-bottom: none; }
.projv2-challenge-list h4 {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--crema);
    margin: 0 0 10px;
}
.projv2-challenge-list p {
    font-family: "Geist", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 253, 243, 0.7);
    max-width: 720px;
}

/* --- PROJECT V2 — MARK / COLOR DISPLAY --------------------------- */
.projv2-asset {
    padding: 90px var(--grid-margin);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    border-top: 1px solid rgba(255,253,243,0.10);
}
.projv2-asset .label {
    display: block;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #f2c335;
    margin-bottom: 16px;
}
.projv2-asset h3 {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--crema);
    margin: 0;
}
.projv2-asset-visual {
    background: var(--bg-dark);
    border: 1px solid rgba(255,253,243,0.08);
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
.projv2-asset-visual img {
    max-width: 60%;
    max-height: 280px;
    height: auto;
}

/* --- PROJECT V2 — TONE GRID (dos columnas) ----------------------- */
.projv2-tone {
    padding: 110px var(--grid-margin);
    border-top: 1px solid rgba(255,253,243,0.10);
}
.projv2-tone .label {
    display: block;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #f2c335;
    margin-bottom: 40px;
}
.projv2-tone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.projv2-tone-item h4 {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--crema);
    margin: 0 0 14px;
}
.projv2-tone-item p {
    font-family: "Geist", sans-serif;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 253, 243, 0.72);
    max-width: 540px;
}

/* --- PROJECT V2 — BREAK QUOTE ------------------------------------ */
.projv2-break {
    padding: 22vh var(--grid-margin);
    text-align: center;
    border-top: 1px solid rgba(255,253,243,0.10);
}
.projv2-break-quote {
    font-family: "Geist", sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: -0.018em;
    font-weight: 500;
    color: var(--crema);
    margin: 0 auto;
    max-width: 1100px;
}

/* --- PROJECT V2 — Responsive ------------------------------------ */
@media (max-width: 1024px) {
    .projv2-hero { padding: 0 30px; }
    .projv2-meta,
    .projv2-statement,
    .projv2-gallery,
    .projv2-challenge,
    .projv2-asset,
    .projv2-tone,
    .projv2-break { padding-left: 30px; padding-right: 30px; }
    .projv2-meta-grid { grid-template-columns: 1fr; gap: 28px; }
    .projv2-challenge,
    .projv2-asset { grid-template-columns: 1fr; gap: 32px; }
    .projv2-gallery { grid-template-columns: repeat(6, 1fr); gap: 16px; }
    .projv2-gallery .span-12 { grid-column: span 6; }
    .projv2-gallery .span-8,
    .projv2-gallery .span-7,
    .projv2-gallery .span-6,
    .projv2-gallery .span-5,
    .projv2-gallery .span-4 { grid-column: span 6; }
    .projv2-tone-grid { grid-template-columns: 1fr; gap: 36px; }
    .projv2-asset-visual { padding: 48px; min-height: 260px; }
    .nav-cta-btn { display: none; }
}

@media (max-width: 640px) {
    .navbar-brand { padding: 12px 18px; }
    .projv2-hero { padding: 0 22px; }
    .projv2-meta,
    .projv2-statement,
    .projv2-gallery,
    .projv2-challenge,
    .projv2-asset,
    .projv2-tone,
    .projv2-break { padding-left: 22px; padding-right: 22px; }
    .projv2-gallery { grid-template-columns: 1fr; }
    .projv2-gallery .span-12,
    .projv2-gallery .span-8,
    .projv2-gallery .span-7,
    .projv2-gallery .span-6,
    .projv2-gallery .span-5,
    .projv2-gallery .span-4 { grid-column: 1 / -1; }
    .projv2-hero-content { padding-bottom: 60px; }
    .projv2-statement { padding-top: 80px; padding-bottom: 80px; }
}

/* ==========================================================================
   PROJECT V2 — Soporte de VIDEO en hero y galería
   ========================================================================== */

/* Video como background del hero */
.projv2-hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    display: block;
}

/* Video dentro de figuras de la galería modular (mismo comportamiento que img) */
.projv2-gallery figure video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Esquina decorativa: pequeño logo de proyecto en la parte sup. del hero
   (útil cuando el hero tiene video bg y queremos refuerzo de marca). */
.projv2-hero-mark {
    position: absolute;
    top: 110px;
    left: var(--grid-margin);
    z-index: 3;
    width: 90px;
    height: auto;
    opacity: 0.85;
}

@media (max-width: 1024px) {
    .projv2-hero-mark {
        top: 90px;
        left: 30px;
        width: 70px;
    }
}

/* ==========================================================================
   MODIFICADOR .fit-contain (GLOBAL)
   Sirve para cualquier <figure> que use sistema editorial (projv2-gallery,
   reveal-frame, gretel-gallery, etc.). La imagen/video se muestra COMPLETA
   (object-fit: contain) sobre un encuadre dark coherente con la página.
   ========================================================================== */
figure.fit-contain,
.reveal-frame.fit-contain {
    background: #14140f;
}

figure.fit-contain img,
figure.fit-contain video,
.reveal-frame.fit-contain img,
.reveal-frame.fit-contain video {
    object-fit: contain !important;
    object-position: center center;
    width: 100%;
    height: 100%;
    /* Anula el scale(1.08) del estado no-revelado del reveal-frame para que
       la imagen no se "crop-out" justo cuando entra al viewport. */
    transform: none !important;
    opacity: 1 !important;
}

/* En hover, mantenemos un sutil scale para vida visual pero sin overflow */
.reveal-frame.fit-contain:hover img,
.reveal-frame.fit-contain:hover video {
    transform: scale(1.02) !important;
}