/**
 * SISTEMA DE DISEÑO CRUZ ESTUDIO ® 2026
 * Tipografías: Neue Haas Grotesk + IBM Plex Sans + Cofo Sans Mono
 */

/* --- 1. VARIABLES Y FUENTES SISTEMATIZADAS --- */
:root {
    --bg-dark: #1D1E1C;
    --crema: #FFFDF3;
    --amarillo-acento: #f2c335;
    
    /* Tipografías */
    --font-header: 'neue-haas-grotesk-display', sans-serif;
    --font-reading: 'IBM Plex Sans', sans-serif;
    --font-mono: 'cofo-sans-mono-variable', monospace;

    /* Escala */
  /* ESCALA DE IMPACTO SUIZO */
    --h1-size: clamp(4.2rem, 10vw, 150px); /* Tamaño masivo según referencia */
    --h1-leading: 0.90;                   /* Interlineado extremadamente cerrado */
    --h1-spacing: -0.05rem;                /* Tensión en el kerning */
    --body-size: 18px;
    --detail-size: 14px;
    
    --loader-yellow: #f2c335;
    --loader-black: #1D1E1C;
    --loader-transition: cubic-bezier(0.77, 0, 0.175, 1);
    --loader-margin: 45px;
}

/* --- 2. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-header), var(--font-mono), sans-serif;
}

body {
    font-family: var(--font-reading), sans-serif;
    background-color: var(--bg-dark);
    color: var(--crema);
    cursor: crosshair;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Activa el desplazamiento suave en toda la web */
html {
    scroll-behavior: smooth;
}

/* Evita que el menú fijo tape el inicio de la sección */
section[id] {
    scroll-margin-top: 100px; /* Ajusta según la altura de tu navbar */
}

/* Opcional: Mejora la sensación de la animación al llegar */
#featured-works, #contact {
    transition: all 0.5s ease-in-out;
}

/* Modifica esto en tu style.css */
body.scroll-locked {
    overflow: hidden !important;
    /* Elimina 'position: fixed' si ves que el scroll salta a lugares raros al hacer clic */
}
/* TRANSICION */


.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    pointer-events: none;
}

.page-transition.entering {
    transform: scaleX(1);
}

.page-transition.exiting {
    transform: scaleX(0);
}

.page-transition.returning {
    transform: scaleX(1);
    transform-origin: right;
}

.page-transition.returning ~ * {
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition.exit-to-index {
    transform: scaleX(1);
    transform-origin: right;
}

:root {
    --loader-yellow: #f2c335;
    --loader-black: #1D1E1C;
    --loader-transition: cubic-bezier(0.77, 0, 0.175, 1);
    --loader-margin: 45px;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOD 2 — LOADER REDISEÑADO
   ══════════════════════════════════════════════════════════════════════════ */

#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: #111110;          
    color: #FFFDF3;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1.1s;
    padding: 0;                         
}

#loader.hidden {
    transform: translateY(-100%);
    visibility: hidden;
}

.loader-vline {
    position: absolute;
    top: 0; bottom: 0;
    width: 0.5px;
    background: rgba(255, 253, 243, 0.04);
    pointer-events: none;
    z-index: 0;
}

.loader-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 45px;
    border-bottom: 0.5px solid rgba(255, 253, 243, 0.06);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.loader-meta-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 253, 243, 0.22);
}

.loader-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    gap: 0;
    padding: 40px;
}

.loader-logo-wrap {
    text-align: center;
    margin-bottom: 48px;
    overflow: hidden;
}

/* CLASE ESPECÍFICA PARA TU SVG */
.loader-logotype-svg {
    height: clamp(30px, 6vw, 65px); /* Se adapta proporcionalmente a la pantalla */
    width: auto;
    margin: 0 0 18px;
    filter: brightness(1.1); /* Mantiene el brillo de tu logo actual */
    animation: loaderLogoReveal 1s cubic-bezier(0.77, 0, 0.175, 1) both;
}

@keyframes loaderLogoReveal {
    from { opacity: 0; transform: translateY(40px) skewY(6deg); }
    to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

.loader-tagline {
    font-family: var(--font-mono);
    font-size: clamp(8px, 1vw, 11px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 253, 243, 0.28);
    animation: loaderFadeUp 0.9s 0.5s both;
}

@keyframes loaderFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loader-progress-wrap {
    width: min(320px, 70vw);
    position: relative;
    animation: loaderFadeUp 0.9s 0.7s both;
}

.loader-progress-track {
    width: 100%;
    height: 0.5px;
    background: rgba(255, 253, 243, 0.1);
    margin-bottom: 16px;
}

.loader-progress-fill {
    height: 0.5px;
    background: var(--amarillo-acento); /* Vinculado a tu color corporativo */
    width: 0%;
    transition: width 0.3s ease;
}

.loader-pct-ghost {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: clamp(5rem, 14vw, 16rem);
    color: rgba(255, 253, 243, 0.04);
    line-height: 0.8;
    letter-spacing: -0.04em;
    position: absolute;
    right: -10px;
    bottom: -20px;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    user-select: none;
    animation: loaderFadeUp 0.9s 0.4s both;
}

.loader-bottombar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 45px;
    border-top: 0.5px solid rgba(255, 253, 243, 0.06);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    animation: loaderFadeUp 0.9s 0.6s both;
}

@media (max-width: 768px) {
    .loader-topbar,
    .loader-bottombar { padding: 14px 24px; }
    
    .loader-topbar .loader-meta-text:nth-child(1),
    .loader-topbar .loader-meta-text:nth-child(3),
    .loader-bottombar .loader-meta-text:nth-child(1),
    .loader-bottombar .loader-meta-text:nth-child(2) { display: none; }
    
    .loader-vline { display: none; }
    .loader-center { padding: 24px; }
}

/*------------------ Contenedor del tipo de letra y cursor */
#typewriter {


font-family: 'Chivo';
display: inline-block; /* Permite que el cursor esté alineado con el texto */
position: relative; /* Posiciona el cursor relativo al texto */
}


/* Estilo para el texto */
#text {
font-family: "neue-haas-grotesk-display", sans-serif;
font-size: 120px;
font-weight: 700;
color: #FFFDF3;
white-space: nowrap; /* Evita saltos de línea */
margin: 0; /* Elimina margen */
display: inline; /* Permite que el cursor esté al lado */
}


/* Estilos para la barra titilante */
#cursor {
display: inline-block; /* Permite que se comporte como un elemento en línea */
border-bottom: 0.05em solid #FFFDF3; /* Cursor parpadeante horizontal */
margin-left: 5px; /* Espacio entre el texto y el cursor */
animation: blink-caret 0.90s step-end infinite; /* Animación del cursor */
height: 1em; /* Ajusta la altura del cursor */
}


/* Animación del cursor parpadeante */
@keyframes blink-caret {
from, to {
    border-color: transparent;
}
50% {
    border-color: #FFFDF3;
}
}


/*estilo cursor*/


.crosshair {
cursor: crosshair;
}


/* color cursor */


::selection {
    background-color: #FFD700; /* Color de fondo al seleccionar */
    color: #000; /* Color del texto al seleccionar */
}


::-moz-selection {
    background-color: #FFD700;
    color: #1D1E1C;
}




/* Cursor en forma de localización */
.link-location {
cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><circle cx="5" cy="5" r="5" fill="%23FFF"/></svg>') 5 5, auto; /* Ajusta el tamaño si es necesario */
}




/*Pagina en construccion*/

.construction-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #FFFDF3;
    text-align: center;
    padding: 2rem;
}

.construction-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Chivo', sans-serif;
}

.construction-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.construction-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: rotate 4s infinite linear;
}

.return-link {
    color: #FFFDF3;
    text-decoration: none;
    border: 1px solid #FFFDF3;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    font-family: 'Chivo', sans-serif;
}

.return-link:hover {
    background-color: #FFFDF3;
    color: #000;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* --- ESTILO DEL LOGO (FIX) --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-vectorial {
    /* Si no defines altura, el SVG no se visualiza */
    height: 15px; 
    width: auto;
    display: block;
    /* Mantenemos la pureza del color crema de Cruz Diseño */
    filter: brightness(1.1); 
}


/* --- NAVBAR BRAND (ESPACIADO) --- */

.navbar-brand {
    padding: 10px 65px !important; 
    border-bottom: 1px solid rgba(255, 253, 243, 0.1);
    /* EFECTO GLASS */
    background-color: rgba(29, 30, 28, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.containerNav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: relative; /* ¡CRÍTICO para el centrado perfecto! */
}


/* Botón hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    order: 2;
    z-index: 1000;
}


.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px auto;
    background-color: #FFFDF3;
    transition: 0.3s;
}


/* --- EL MENÚ DERECHO --- */
.nav-links-brands {
    list-style: none;
    display: flex;
    align-items: center;
    margin-left: auto; /* Empuja todo hacia la derecha */
    margin-top: 0;     /* Alineamos verticalmente con el logo */
    padding-right: 0;  /* Eliminamos el exceso de 150px */
}

.nav-links-brands li {
    /* Reducimos el margen entre links para que no se amontonen pero respiren */
    margin-left: 50px; 
    margin-right: 0;
}

.nav-links-brands a {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 14px;
    color: #FFFDF3;
    text-decoration: none !important;
    
    /* Aumentamos el padding vertical para mejorar el área de clic (UX) */
    /* El 15px arriba/abajo le da el "aire" que buscabas */
    padding: 30px 0; 
    
    display: inline-block;
    line-height: 1;
    transition: opacity 0.3s ease;
}
/*-----responsive menu*/


/* Estilo para el botón de menú hamburguesa */
.menu-toggle {
display: none; /* Oculto por defecto */
flex-direction: column;
cursor: pointer;
}


/* Estilos de las barras del menú hamburguesa */
.menu-toggle .bar {
height: 3px;
width: 25px;
background-color: #FFFDF3;
margin: 3px 0;
}




/* --- EL MENÚ CENTRADO --- */

.nav-links-brands {
    list-style: none;
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centrado matemático perfecto (inmune a los costados) */
    gap: 70px;
    margin: 0;
    padding: 0;
}

.nav-links-brands li { margin: 0; }

.nav-links-brands a {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255, 253, 243, 0.5); /* Gris tenue por defecto */
    text-decoration: none !important;
    padding: 18px 0; 
    display: inline-block;
    line-height: 1;
    transition: color 0.3s ease;
}

.nav-links-brands a:hover {
    color: #FFFDF3 !important; 
}

/* Ocultar en escritorio el item de contacto de la lista central */
.mobile-contact-item {
    display: none !important;
}

/* --- LINK DERECHO (CONTACTO) - TEXTO MINIMALISTA --- */
.nav-right-text {
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-contact-link {
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255, 253, 243, 0.5); /* Mismo gris tenue que los demás */
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.nav-contact-link:hover {
    color: #FFFDF3 !important;
}

/* --- BOTÓN DERECHO (CONTACTO AMARILLO) --- */
.nav-right-cta {
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-cta-btn {
    background-color: var(--amarillo-acento); 
    color: var(--bg-dark) !important;
    font-family: "cofo-sans-mono-variable", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 30px; 
    text-decoration: none !important;
    border-radius: 50px; /* Efecto píldora */
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-cta-btn:hover {
    background-color: var(--crema); 
    color: var(--bg-dark) !important;
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
}


/* ==========================================================================
   NUEVO SISTEMA HERO ESFERA 3D CRUZ ESTUDIO
   ========================================================================== */
   /* Grid de fondo y Canvas fijo */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
#canvas-wrap { position: fixed; inset: 0; z-index: 2; }
#canvas-wrap canvas { display: block; }

/* --- TEXTOS DEL HERO (FIX FINAL SIN ERRORES) --- */
#hero-text {
  position: fixed; 
  top: 50%; 
  left: 48px; 
  transform: translateY(-50%);
  z-index: 20; 
  /* 1. AMPLIAMOS LA CAJA: Ahora tiene espacio para la tipografía masiva */
  width: calc(100% - 100px);
  max-width: 1100px; 
  opacity: 0; 
  pointer-events: none; 
  will-change: opacity;
}

.label-tag {
  font-family: var(--font-mono); 
  font-size: 9px; 
  color: rgba(255, 253, 243, 0.4);
  letter-spacing: 0.18em; 
  text-transform: uppercase; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 28px;
}
.label-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--amarillo-acento); flex-shrink: 0; }

#hero-text h1 {
  font-family: var(--font-header); 
  font-weight: 700; 
  /* 2. ESCALA SUIZA: Clamp ajustado para que nunca desborde */
  font-size: clamp(45px, 8vw, 110px); 
  line-height: 0.95; /* Interlineado cerrado para mayor impacto visual */
  letter-spacing: -0.05em; 
  color: var(--crema); 
  margin-bottom: 28px;
}

#hero-text h1 .hl { 
  color: var(--amarillo-acento); 
  font-style: normal; /* CORRECCIÓN: 'none' era el error */
}

#hero-text h1 .out { 
  -webkit-text-stroke: 1.5px rgba(255, 253, 243, 0.38); 
  color: transparent; /* CORRECCIÓN: 'none' era el error */
}

.body-copy {
  font-family: var(--font-reading);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 253, 243, 0.85); 
  line-height: 1.6;
  border-left: 1px solid rgba(255, 253, 243, 0.25); 
  padding-left: 20px;
  max-width: 520px;
}

/* --- 3. RESPONSIVE MÓVIL (Garantiza que no se rompa en el celular) --- */

@media (max-width: 768px) {
    #hero-text {
        left: 25px;
        max-width: calc(100% - 50px);
    }
    #hero-text h1 {
        font-size: clamp(38px, 10vw, 60px);
        line-height: 1.0;
    }
}

/* --- HERO WE.DIRECTORY BADGE (Featured on WeDirectory) ---
   Pieza editorial pequeña, anclada bottom-left del hero.
   Se oculta al hacer scroll-down (clase .hide vía JS). */
.hero-we-badge {
    position: fixed;
    bottom: 110px;
    left: 48px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-we-badge-logo {
    height: 16px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.4s ease;
}

.hero-we-badge:hover .hero-we-badge-logo {
    opacity: 1;
}

/* Wrapper de los dos textos: usamos grid para que ambos
   ocupen la misma celda y hagan crossfade limpio en hover. */
.hero-we-badge-text {
    position: relative;
    display: inline-grid;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.we-text-default,
.we-text-hover {
    grid-column: 1;
    grid-row: 1;
    transition:
        opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s ease;
}

.we-text-default {
    color: rgba(255, 253, 243, 0.5);
    opacity: 1;
    transform: translateY(0);
}

.we-text-hover {
    color: var(--amarillo-acento);
    opacity: 0;
    transform: translateY(4px);
}

.hero-we-badge:hover .we-text-default {
    opacity: 0;
    transform: translateY(-4px);
}

.hero-we-badge:hover .we-text-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Subrayado amarillo corporativo dibujándose de izq. a der. */
.hero-we-badge-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1px;
    width: 100%;
    background: var(--amarillo-acento);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-we-badge:hover .hero-we-badge-text::after {
    transform: scaleX(1);
}

/* Estado oculto al scrollear (toggle vía JS) */
.hero-we-badge.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Outline amarillo en focus en lugar del azul del navegador */
.hero-we-badge:focus,
.hero-we-badge:focus-visible {
    outline: 1px solid var(--amarillo-acento);
    outline-offset: 6px;
}

@media (max-width: 768px) {
    .hero-we-badge {
        display: none; /* En móvil priorizamos espacio para el stat-strip */
    }
}

/* --- CONTEXT BAR (LEVEL: DETAIL / SWISS EDITORIAL) --- */
#stat-strip {
  position: fixed; 
  bottom: 40px; 
  left: 48px; 
  right: 48px;
  z-index: 20; 
  display: flex; 
  justify-content: flex-start;
  gap: 60px; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.8s ease;
}

.context-item {
    display: flex;
    flex-direction: column;
    gap: 4px; 
}

.context-item .mono-tag {
    font-family: var(--font-mono);
    font-size: 8px;
    color: rgba(255, 253, 243, 0.3);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.context-data {
    font-family: var(--font-header); 
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 253, 243, 0.7);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.context-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 253, 243, 0.15);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

#hero-weather-icon {
    font-size: 14px;
    color: var(--amarillo-acento);
}

/* Responsivo: En móvil lo mantenemos limpio */
/* --- FIX FINAL: OCULTAR DATOS EN MOBILE --- */
@media (max-width: 768px) {
    /* --- 1. CONTENEDOR PRINCIPAL (STACK VERTICAL) --- */
    #stat-strip {
        bottom: 35px;
        left: 25px;
        right: 25px;
        display: flex;
        flex-direction: column; /* Alineación vertical como la imagen */
        gap: 8px; /* Espaciado estrecho y técnico */
        opacity: 0;
        pointer-events: none;
    }

    /* --- 2. ELIMINACIÓN DE ETIQUETAS (PUREZA VISUAL) --- */
    /* Ocultamos los "// LOCATION", "// LIVE DATA" para imitar a Mother Design */
    #stat-strip .mono-tag {
        display: none;
    }

    /* --- 3. ESTILO DE LÍNEA (DETALLE TÉCNICO) --- */
    .context-item { 
        display: block;
    }

    .context-data {
        font-family: var(--font-header);
        font-size: 14px; /* Un poco más grande para que se lea como la imagen */
        font-weight: 400;
        color: var(--crema);
        text-transform: none; /* Quitamos el uppercase para mayor naturalidad */
        letter-spacing: -0.01em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* --- 4. ESTILO DEL EMAIL (GRISADO) --- */
    .context-link {
        color: rgba(255, 253, 243, 0.4) !important; /* Gris suave como en la imagen */
        border-bottom: none; /* Limpiamos la línea para no ensuciar */
        padding: 0;
        margin-top: 4px;
    }

    /* Ajuste del icono para que no sea muy grande */
    #hero-weather-icon {
        font-size: 16px;
        margin: 0;
    }
}

/* Indicador de Clic (Hint) - Centrado bajo la Esfera */

#click-hint {
  /* Posicionamiento centrado absoluto */
  position: absolute; 
  bottom: 4vh; /* Distancia desde abajo, ajustable según preferencia */
  left: 50%;
  transform: translateX(-50%); /* El truco matemático para centrar perfectamente */
  
  z-index: 20; 
  font-family: 'cofo-sans-mono-variable', monospace; 
  font-size: 9px;
  color: var(--amarillo-acento); /* Texto en color amarillo institucional */
  letter-spacing: 0.12em; 
  text-transform: uppercase; 
  
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 8px; 
  transition: opacity 0.5s;
}

#click-hint.hide { 
  opacity: 0; 
  pointer-events: none; /* Asegura que no estorbe si está oculto */
}

/* La línea animada ahora es amarilla */
.hint-line { 
  width: 1px; 
  height: 36px; 
  background: linear-gradient(to bottom, var(--amarillo-acento), transparent); /* Gradiente amarillo */
  animation: pulse 2.2s ease-in-out infinite; 
}

/* Ajuste de la animación para mantener el color */
@keyframes pulse { 
  0%, 100% { opacity: 0.28; } 
  50% { opacity: 0.9; } 
}

/* Ticker Footer Hero */
#ticker {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--yellow); overflow: hidden; padding: 8px 0;
}
.tick-inner { display: flex; white-space: nowrap; animation: tick 22s linear infinite; }
.tick-item { font-family: 'cofo-sans-mono-variable', monospace; font-size: 8px; font-weight: 700; color: var(--dark); letter-spacing: 0.14em; text-transform: uppercase; padding: 0 36px; }
.tick-dot { display: inline-block; width: 3px; height: 3px; background: rgba(17,17,16,0.32); border-radius: 50%; vertical-align: middle; margin: 0 14px; }
@keyframes tick { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* Card Interactiva */
#proj-card {
  position: fixed; z-index: 60; background: rgba(13,13,12,0.97); border: 0.5px solid rgba(240,192,64,0.5);
  padding: 20px 22px 18px; min-width: 230px; max-width: 280px;
  opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease;
}
#proj-card.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.pc-label { font-family: var(--f-mono); font-size: 8px; color: var(--yellow); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.pc-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--white); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.pc-desc { font-family: var(--f-body); font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 14px; }
.pc-link { font-family: var(--f-mono); font-size: 8px; color: var(--yellow); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; }
.pc-close { position: absolute; top: 10px; right: 14px; font-family: var(--f-mono); font-size: 10px; color: rgba(255,255,255,0.25); background: none; border: none; cursor: pointer; transition: color 0.15s; }
.pc-close:hover { color: var(--yellow); }

/* ESPACIADOR Y CUBIERTA DEL SITIO (CRÍTICO PARA EL SCROLL) */
#spacer { height: 350vh; } 
.site-content-wrapper {
  position: relative;
  z-index: 100; /* Se desliza por encima de la esfera fija */
  background-color: var(--dark); /* Oculta lo que queda atrás */
}

/* Estilos para la imagen dentro de la Card */
.pc-image-container {
  width: 100%;
  height: 130px; /* Altura controlada para no tapar el texto */
  margin-bottom: 16px;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 195, 53, 0.3); /* Línea amarilla sutil */
  background-color: #111110;
}

.pc-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

/* Micro-interacción: leve zoom al pasar el mouse por la card */
#proj-card:hover .pc-image-container img {
  opacity: 1;
  transform: scale(1.05);
}


/* ==========================================================================
   AJUSTES MOBILE: HERO (CRUZ ESTUDIO ®)
   ========================================================================== */

@media (max-width: 768px) {
    /* Eliminamos la flecha para limpiar el encuadre */
  .hero-main-wrapper { flex-direction: column; padding-top: 180px !important; transform: none !important; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.1rem; max-width: 100%; }
}

/*-----Animación*/



.nav-links li::after {
content: ''; /* Crear un pseudo-elemento para la línea */
display: block; /* Hacerlo un bloque */
width: 100%; /* Ancho del elemento */
height: 3px; /* Altura de la línea */
background-color: #FFFDF3; /* Color de la línea */
position: absolute; /* Posicionarlo de forma absoluta */
left: 0; /* Alinear a la izquierda */
bottom: -5px; /* Espacio debajo del enlace */
transform: scaleX(0); /* Ocultar inicialmente */
transition: transform 0.3s; /* Animación suave */
}


.nav-links li:hover::after {
transform: scaleX(1); /* Mostrar la línea al hacer hover */
}


.nav-links li::before {


position: absolute; /* Posicionarlo de forma absoluta */
left: 50%; /* Centrar horizontalmente */
transform: translateX(-50%); /* Ajustar para centrar */
bottom: -25px; /* Ajustar la posición debajo del enlace */
opacity: 0; /* Ocultar inicialmente */
transition: opacity 0.3s; /* Animación suave */
}


.nav-links li:hover::before {
opacity: 1; /* Mostrar el número al hacer hover */
}



.hero-button:hover {
background-color: #444; /* Color de fondo al pasar el mouse */
color: #FFFDF3; /* Cambia el color del texto al pasar el mouse */
text-decoration: none;
}




.language-switch button:hover {
background-color: #444; /* Color al pasar el ratón */
}

/* ==========================================================================
   4. BOTÓN SCROLL DOWN (EFECTO DROP)
   ========================================================================== */
.scroll-down-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 253, 243, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    /* Animación de invitación */
    animation: bounce-drop 3s infinite;
}

.scroll-down-btn svg {
    fill: #FFFDF3;
    width: 30px;
    height: 30px;
}

.scroll-down-btn:hover {
    border-color: #FFFDF3;
    background-color: rgba(255, 253, 243, 0.1);
}

@keyframes bounce-drop {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* ==========================================================================
   5. MEDIA QUERIES (ADAPTACIÓN MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-brand { padding: 40px !important; }
    
    .hero-main-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        transform: translateY(-5vh);
        padding: 0 0px !important;
    }

   
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.1rem; max-width: 100%; }
    
    .nav-links-brands { display: none; } /* Ocultar para menú móvil */
    
    .scroll-down-btn { bottom: 80px; }
}

/* ==========================================================================
   CLASE DE UTILIDAD: BLOQUEO DE SCROLL
   ========================================================================== */
/* Esta clase se añade vía JS al cargar la página */
body.scroll-locked {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100%;
}


/* ==========================================================================
   SECCIÓN STUDIO INTRO (VIDEO + REVEAL)
   ========================================================================== */

/* ==========================================================================
   STUDIO INTRO — Layout original con video + bloque inferior editorial
   ========================================================================== */

.studio-section {
    position: relative;
    width: 100%;
    /* IMPORTANTE: height:auto y overflow:visible para que ScrollTrigger pueda
       extender el pinSpacer interno y NO quede cortado el scroll del pin.
       El .studio-stage hijo es 100vh con su propio overflow:hidden. */
    height: auto;
    background-color: var(--bg-dark);
    z-index: 10;
}

/* Stage = ventana visible mientras la sección está pineada */
.studio-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* --- BLOQUE DE VIDEO (arranca chico, crece con scroll) --- */
.studio-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* tamaño inicial del "recuadro" pequeño */
    width: 38vw;
    height: 58vh;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    will-change: width, height, border-radius;
    z-index: 1;
}

.studio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

/* --- BLOQUE DE TEXTO (overlay sobre el video cuando llega a full-bleed) --- */
.studio-text-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 45px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 5;
    opacity: 0;       /* GSAP revela */
    will-change: opacity;
}

/* Wrapper que centra el frame */
.studio-frame-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
    box-sizing: border-box;
    pointer-events: auto;
}

/* Frame translúcido con marcadores en las esquinas */
.studio-frame {
    position: relative;
    padding: 44px 64px;
    background: rgba(20, 21, 19, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 253, 243, 0.05);
    border-radius: 2px;
    text-align: center;
}

/* Marcadores + en las esquinas (estilo blueprint editorial) */
.studio-corner {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 18px;
    line-height: 1;
    color: var(--amarillo-acento);
    opacity: 0.85;
    user-select: none;
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.studio-corner--tl { top: 0;   left: 0;   }
.studio-corner--tr { top: 0;   left: 100%; }
.studio-corner--bl { top: 100%; left: 0;   }
.studio-corner--br { top: 100%; left: 100%; }

/* Eyebrow opcional */
.studio-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 253, 243, 0.4);
    margin-bottom: 28px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s ease,
        transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.studio-section.visible .studio-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

/* Statement: 3 líneas con máscara individual */
.studio-statement-v2 {
    margin: 0;
    font-family: 'neue-haas-grotesk-display', var(--font-header), sans-serif;
    font-weight: 500;
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: var(--crema);
}

.studio-reveal-line {
    display: block;
    overflow: hidden;
    line-height: 1.45;
}

/* GSAP controla transform/opacity por scrub — no usamos transition CSS
   acá para que no compita con la timeline. Estado inicial oculto. */
.studio-reveal-line > span {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
}

/* ==========================================================================
   STUDIO INTRO — RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .studio-frame {
        padding: 48px 36px;
    }
    .studio-frame-wrap {
        padding: 0 28px;
    }
    .studio-statement-v2 {
        font-size: clamp(0.95rem, 3.2vw, 1.15rem);
        line-height: 1.5;
    }
    .studio-corner {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .studio-frame {
        padding: 38px 22px;
    }
    .studio-eyebrow {
        font-size: 9px;
        margin-bottom: 20px;
    }
}


/* Ocultamos el botón amarillo solo en celulares */


/* ==========================================================================
   TRUSTED BY — Marquee infinito de logos de clientes
   Inspiración: https://wearemotto.com/  (sección "Trusted By")
   ========================================================================== */

/* Sección INVERTIDA: fondo crema corporativo, contenidos en black corporativo */
.trusted-by {
    position: relative;
    padding: 110px 0 100px;
    background: var(--crema);           /* #FFFDF3 */
    color: var(--bg-dark);              /* #1D1E1C */
    overflow: hidden;
    z-index: 5;
}

.trusted-header {
    max-width: 1400px;
    margin: 0 auto 70px;
    padding: 0 48px;
    text-align: center;
}

.trusted-header .mono-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(29, 30, 28, 0.55);      /* black con opacidad — secundario */
    margin-bottom: 16px;
}

/* H3 — Mismo sistema tipográfico que .sw-project-title y .block-main h3 */
.trusted-title {
    margin: 0;
    font-family: var(--font-header);
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--bg-dark);              /* #1D1E1C — protagonista */
}

/* Contenedor del marquee con máscara lateral para fade-in/out */
.trusted-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
            mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

/* Track con los logos duplicados (loop seamless) */
.trusted-track {
    display: flex;
    align-items: center;
    gap: 90px;
    width: max-content;
    animation: trustedScroll 55s linear infinite;
    will-change: transform;
}

/* Al hover sobre el marquee, pausamos el scroll */
.trusted-marquee:hover .trusted-track {
    animation-play-state: paused;
}

/* Cada logo se renderiza dentro de un slot de tamaño fijo
   (mismo width + height para TODOS los logos) y se ajusta por dentro
   con object-fit: contain → uniformidad visual estilo motto.com. */
.trusted-logo {
    flex-shrink: 0;
    display: block;
    width: 150px;
    height: 38px;
    object-fit: contain;
    object-position: center center;
    /* INVERTIDO: forzamos a monocromo black sobre el fondo crema */
    filter: brightness(0);
    opacity: 0.55;
    transition:
        opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        filter   0.4s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.trusted-logo:hover {
    opacity: 1;
}

/* Variante para logos que visualmente quedan chicos en el slot estándar
   (mucho whitespace interno, trazo fino, etc.). Slot más grande. */
.trusted-logo--lg {
    width: 200px;
    height: 52px;
}

/* Animación: trasladamos -50% (porque el track contiene la lista 2 veces).
   Al llegar a -50% el frame es idéntico al inicio → loop sin saltos. */
@keyframes trustedScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
    .trusted-by {
        padding: 80px 0 70px;
    }
    .trusted-header {
        margin-bottom: 50px;
        padding: 0 28px;
    }
    .trusted-track {
        gap: 60px;
        animation-duration: 42s;
    }
    .trusted-logo {
        width: 120px;
        height: 32px;
    }
    .trusted-logo--lg {
        width: 165px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .trusted-track {
        gap: 44px;
        animation-duration: 36s;
    }
    .trusted-logo {
        width: 100px;
        height: 28px;
        opacity: 0.6;
    }
    .trusted-logo--lg {
        width: 138px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trusted-track {
        animation: none;
    }
}

/* Override del .scroll-reveal global para esta sección:
   solo queremos fade de opacidad (sin translateY) como pidió el usuario. */
.js-ready .trusted-by.scroll-reveal,
.js-ready .trusted-by.scroll-reveal.visible {
    transform: none;
}
.js-ready .trusted-by.scroll-reveal {
    transition: opacity 1.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/*----- Carrusell -----*/

.carousel-item {
    transition: none !important;
}

.carousel {
    transition: none !important;
}

.carousel-fade .carousel-item {
    transition: none !important;
}


#carouselExample {
    width: 100%;
    max-height: 600px; /* Ajusta la altura del carrusel según sea necesario */
    overflow: hidden;
    margin: 0 auto; /* Centra el carrusel horizontalmente */
}

.carousel-inner {
    height: 600px; /* Ajusta la altura del carrusel según sea necesario */
}

.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Asegura que el contenedor del carrusel ocupe toda la altura */
}

.carousel-item img {
    height: 100%;
    width: auto; /* Mantiene la proporción de la imagen */
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para mejor visibilidad */
    border-radius: 50%; /* Opcional: redondea los bordes */
    width: 50px; /* Ajusta el tamaño del icono */
    height: 50px; /* Ajusta el tamaño del icono */
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Ajusta el ancho del área de control */
}


/*Bullets------------------*/

.carousel-indicators li {
    width: 12px;
    height: 12px;    
    background-color: #f0f0f0; /* Color de los bullets */
    border: 1px solid #000000; /* Borde de los bullets */
}

.carousel-indicators .active {
    background-color: #1D1E1C; /* Color del bullet activo */
}

/*----- Trabajos Destacados V2 -----*/
.featured-works-v2.light-version {
    background-color: #FFFFFF !important;
    padding: 120px 0;
    border-top: 1px solid rgba(29, 30, 28, 0.1);
}

.featured-works-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 45px;
}

.works-header-v2 {
    margin-bottom: 80px;
}

.featured-works-v2.light-version .display-title {
    font-family: var(--font-header);
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: #1D1E1C !important;
}

.featured-container-v2 {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 120px;
    align-items: flex-start;
}

/* Columna Izquierda: Preview Sticky */
.works-preview-v2 {
    position: sticky;
    top: 150px;
}

.preview-inner-v2 {
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.preview-inner-v2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.preview-inner-v2 img.active {
    opacity: 1;
}

/* --- BOTÓN "VER TODOS LOS PROYECTOS" --- */
.view-all-v2 {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 16px 35px;
    border: 1px solid #1D1E1C; /* Outline negro */
    border-radius: 50px; /* Forma de píldora institucional */
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    background-color: transparent;
}

.view-all-v2 .btn-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #1D1E1C;
}

.view-all-v2 .material-symbols-outlined {
    font-size: 20px;
    color: #1D1E1C;
    transition: transform 0.4s ease;
}

/* HOVER DEL BOTÓN */
.view-all-v2:hover {
    background-color: var(--amarillo-acento); /* Amarillo pleno */
    border-color: var(--amarillo-acento);
}

.view-all-v2:hover .btn-text,
.view-all-v2:hover .material-symbols-outlined {
    color: #1D1E1C; /* Texto negro sobre amarillo */
}

.view-all-v2:hover .material-symbols-outlined {
    transform: translate(3px, -3px);
}

/* Columna Derecha: Lista Interactiva */
.featured-list-v2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fwv2-item {
    display: grid;
    /* Ajuste de aire: 180px para la columna del tag */
    grid-template-columns: 180px 1fr 80px; 
    gap: 30px; /* Separación clara entre elementos */
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid rgba(29, 30, 28, 0.1);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.fwv2-category, .fwv2-year {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(29, 30, 28, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fwv2-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: #1D1E1C;
    margin: 0;
    line-height: 1.05;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

/* Interacción Hover de la lista */
.fwv2-item:hover .fwv2-title {
    transform: translateX(25px);
    color: var(--amarillo-acento);
}

.fwv2-item:hover .fwv2-category {
    color: #1D1E1C;
}

/* --- Adaptación Mobile: Reordenamiento UX --- */
@media (max-width: 1024px) {
    .featured-container-v2 {
        display: flex;
        flex-direction: column;
        gap: 0; 
    }
    
    /* El truco suizo: "disolvemos" la caja contenedora para liberar sus elementos internos */
    .works-preview-v2 {
        display: contents;
    }
    
    /* 1. La imagen queda arriba */
    .preview-inner-v2 {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* 2. La lista de proyectos pasa al medio */
    .works-list-v2 {
        order: 2;
        width: 100%;
    }
    
    /* 3. El botón se empuja al final de la sección */
    .works-footer-v2 {
        order: 3;
        width: 100%;
        margin-top: 50px; /* Respiro visual antes del botón */
    }
    
    /* Ajustes internos de los items en mobile */
    .fwv2-item {
        grid-template-columns: 1fr auto;
        padding: 35px 0;
        gap: 15px;
    }
    
    .fwv2-category {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }
    
    .fwv2-title {
        font-size: 1.7rem;
    }

    .view-all-v2 {
        width: 100%;
        justify-content: space-between;
    }
}


/* ===================================================
   SCROLL REVEAL SYSTEM — Cruz Estudio ®
   Animaciones suaves al entrar al viewport.
   Respeta el design system: easing y timing consistentes.
   =================================================== */

/* Easing común para toda la sistematización editorial */
:root {
    --reveal-easing: cubic-bezier(0.25, 1, 0.5, 1);
    --reveal-duration: 1.4s;
}

/* Reveal básico: SOLO se oculta si <html> tiene .js-ready (inline en <head>).
   Si el inline script falla o JS está deshabilitado, el contenido se ve siempre. */
.js-ready .scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity var(--reveal-duration) var(--reveal-easing),
        transform var(--reveal-duration) var(--reveal-easing);
    will-change: opacity, transform;
}

.js-ready .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: hijos directos revelan en cascada cuando el padre entra al viewport */
.js-ready .scroll-reveal-stagger > * {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 1.3s var(--reveal-easing),
        transform 1.3s var(--reveal-easing);
    will-change: opacity, transform;
}

.js-ready .scroll-reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Failsafe duro: a los 5s, todo lo que aún no se haya revelado se vuelve visible.
   La clase .reveal-fallback la añade un setTimeout en el inline script del <head>. */
html.reveal-fallback .scroll-reveal,
html.reveal-fallback .scroll-reveal-stagger > *,
html.reveal-fallback .text-reveal > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.scroll-reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.scroll-reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.30s; }
.scroll-reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.45s; }
.scroll-reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.60s; }
.scroll-reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.75s; }
.scroll-reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.90s; }
.scroll-reveal-stagger.visible > *:nth-child(8) { transition-delay: 1.05s; }

/* Text reveal mask: tipografías grandes "emergen" por debajo (solo con .js-ready) */
.text-reveal {
    display: block;
    overflow: hidden;
    line-height: inherit;
}

.js-ready .text-reveal > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.5s var(--reveal-easing);
    will-change: transform;
}

.js-ready .text-reveal.visible > span,
.js-ready .scroll-reveal.visible .text-reveal > span,
.js-ready .visible > .text-reveal > span {
    transform: translateY(0);
}

/* Línea editorial que se dibuja de izquierda a derecha al revelar */
.line-reveal {
    position: relative;
}

.line-reveal::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s var(--reveal-easing);
}

.line-reveal.visible::after {
    transform: scaleX(1);
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-stagger > *,
    .text-reveal > span {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===================================================
   SCROLL PROGRESS BAR — finita, color amarillo acento
   =================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--amarillo-acento);
    z-index: 99998;
    pointer-events: none;
    transition: width 0.08s linear;
    will-change: width;
}

/* ===================================================
   CURSOR MAGNÉTICO — atrae elementos clave
   =================================================== */
[data-magnetic],
.view-all-v2,
.cta-submit {
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.4s cubic-bezier(0.77, 0, 0.175, 1),
                border-color 0.4s cubic-bezier(0.77, 0, 0.175, 1),
                color 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* ===================================================
   SELECTED WORK — Lista numerada + cursor morph card
   =================================================== */

.selected-work.light-version {
    background-color: var(--crema); /* #FFFDF3 — design system */
    padding: 100px 0 90px;
    border-top: 1px solid rgba(29, 30, 28, 0.1);
}

.sw-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.sw-header {
    margin-bottom: 64px;
}

/* H2 — Título de sección "Proyectos destacados" */
.sw-title {
    font-family: var(--font-header);
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: #1D1E1C;
    margin-top: 12px;
}

.sw-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Línea editorial superior animada (line-reveal) */
.sw-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(29, 30, 28, 0.15);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s var(--reveal-easing);
}

.sw-list.visible::before {
    transform: scaleX(1);
}

.sw-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 28px 0;
    border-bottom: 1px solid rgba(29, 30, 28, 0.15);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sw-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(29, 30, 28, 0.35);
    letter-spacing: 0.08em;
    width: 56px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

/* H3 — Título de cada proyecto: claramente menor que el H2 */
.sw-project-title {
    flex: 1;
    font-family: var(--font-header);
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    font-weight: 500;
    color: #1D1E1C;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.015em;
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sw-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    margin-left: 32px;
    margin-right: 20px;
}

.sw-category,
.sw-year {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(29, 30, 28, 0.4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.sw-arrow {
    font-size: 18px;
    color: rgba(29, 30, 28, 0.25);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

/* Hover */
.sw-item:hover .sw-project-title {
    color: #1D1E1C;
    transform: translateX(12px);
}

.sw-item:hover .sw-number {
    color: var(--amarillo-acento);
}

.sw-item:hover .sw-category,
.sw-item:hover .sw-year {
    color: rgba(29, 30, 28, 0.7);
}

.sw-item:hover .sw-arrow {
    transform: translate(5px, -5px);
    color: #1D1E1C;
}

/* Footer del bloque */
.sw-footer {
    margin-top: 60px;
}

/* ============================================
   CURSOR CARD — preview siguiendo al cursor (estilo Studio Namma)
   ============================================ */

/* La posición, rotación, escala y opacidad las controla GSAP
   (cursor-preview.js) vía gsap.quickTo() / gsap.to(). El CSS solo
   define el aspecto visual de la card. */
.sw-cursor-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    pointer-events: none;
    z-index: 99999;
    background: var(--bg-dark);
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    will-change: transform, opacity;
    opacity: 0;
    visibility: hidden;
}

.sw-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #2a2b29;
}

.sw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sw-card-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 253, 243, 0.08);
}

.sw-card-label span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

#sw-card-category {
    color: var(--amarillo-acento);
}

#sw-card-title {
    color: rgba(255, 253, 243, 0.9);
    text-align: right;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tablet / pantallas medianas */
@media (max-width: 1024px) {
    .sw-inner {
        padding: 0 40px;
    }

    .sw-item {
        padding: 24px 0;
        gap: 0;
    }

    .sw-number {
        width: 44px;
        font-size: 10px;
    }

    .sw-project-title {
        font-size: clamp(1.2rem, 3.2vw, 1.6rem);
    }

    .sw-meta {
        display: none;
    }

    .sw-item:hover .sw-project-title {
        transform: none;
    }
}

/* La card sólo se desactiva en pantallas táctiles / muy chicas */
@media (max-width: 768px), (hover: none) {
    .sw-cursor-card {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .sw-inner {
        padding: 0 24px;
    }

    .selected-work.light-version {
        padding: 80px 0 70px;
    }

    .sw-header {
        margin-bottom: 50px;
    }

    .sw-footer {
        margin-top: 40px;
    }

    .sw-item {
        padding: 28px 0;
    }
}

/*----- Sección About Me -----*/


.about-me {
display: flex;
justify-content: space-between; /* Espacio entre columnas */
padding: 50px;
background-color: #f7f7f7; /* Color de fondo de la sección */
}


.about-content {
flex: 0.5; /* Ocupa el 50% del ancho de la sección */
padding-left: 80px; /* Espacio a la izquierda para separarlo de la imagen */
}


.about-image {
max-width: 49%; /* Ajusta el tamaño de la imagen (puedes cambiar el porcentaje) */
flex: 0.5%; /* Ocupa el 50% del ancho de la sección */
display: flex;
align-items: center; /* Centrar verticalmente */
justify-content: center; /* Centrar horizontalmente */
font-weight: 700;
}


.about-image img {
max-width: 100%; /* Ajusta la imagen al contenedor */
height: auto; /* Mantiene la proporción de la imagen */
}


.decorative-line {
border: none;
height: 1px;
background-color: #979797; /* Color de la línea decorativa */
margin: 20px 0; /* Espaciado arriba y abajo de la línea */
}


.subtitulo {
font-size: 60px;
font-weight: 700;
}


.lectura {
font-family: "cofo-sans-mono-variable";
font-weight: 10;
font-size: 16px;
color: #838383;
font-display: swap;
}


.subtitulosIconos {
font-size: 20px;
font-weight: 700;
color: #1D1E1C;
}


.icons {
display: flex;
justify-content: start; /* Alinear los íconos a la izquierda */
margin-top: 20px; /* Espacio superior para los íconos */
}


.icon {
font-size: 24px; /* Tamaño de los íconos */
margin-right: 15px; /* Espaciado entre los íconos */
}


.icon2 {
margin-right: 15px; /* Espaciado entre los íconos */
width: 30px; /* Ajusta el ancho */
height: auto; /* Mantiene la proporción */
}


.iconSkills {
margin-right: 40px; /* Espaciado entre los íconos */
width: 20px; /* Ajusta el ancho */
height: auto; /* Mantiene la proporción */
}

/* --- INTERACCIÓN LINKS DERECHOS --- */
.hero-link {
    color: #FFFDF3 !important; /* Crema base */
    text-decoration: none !important;
    font-family: 'cofo-sans-mono-variable', monospace;
    font-size: 18px;
    display: block;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0.6; /* Estado pasivo sutil */
}

.hero-link:hover {
    color: #FFD700 !important; /* Cambio a Amarillo en hover */
    opacity: 1; /* Brillo total */
    transform: translateX(-10px); /* Sutil desplazamiento técnico */
}


/*----- WORKS SECTION -----*/




.work {




padding: 40px;
background-color: #f7f7f7; /* Color de fondo de la sección */  


}


.works-section {
display: flex;
background-color: #f7f7f7; /* Fondo gris claro */
}


.works-image {
flex: 1;
padding: 20px;
display: flex;
justify-content: center; /* Centrar imagen horizontalmente */
align-items: center; /* Centrar imagen verticalmente */
}


.works-image img {
max-width: 100%;
height: auto;
border: 2px solid #ccc; /* Borde gris claro para las imágenes */
transition: opacity 0.5s ease-in-out;
}


.works-list {
flex: 1;
padding: 20px;
}


.works-list ul {
list-style-type: none; /* Sin viñetas */
padding: 0;


}


.works-list .accordion span {
font-family: "neue-haas-grotesk-display"; /* Tipografía específica */
font-size: 20px;
font-weight: 400;
color: #1D1E1C; /* Cambia el color del texto según tu diseño */
}


.works-list .accordion span:hover {
color: #f7f7f7; /* Cambia el color al pasar el ratón */
text-decoration: underline; /* Subrayar el texto al pasar el ratón (opcional) */
}


.accordion {


cursor: pointer;
padding: 10px;
border: none; /* Sin borde para el acordeón */
margin-bottom: 10px;
background-color: #f7f7f7; /* Fondo blanco para los ítems */
transition: background-color 0.3s;
}


.accordion:hover {
background-color: #1D1E1C; /* Fondo oscuro al pasar el ratón */
color: #f7f7f7; /* Color de texto blanco al pasar el ratón */
}


.accordion-content {
display: none; /* Ocultar contenido por defecto */
padding: 10px;


}


.accordion.active + .accordion-content {
display: block; /* Mostramos el contenido si el acordeón está activo */
}


hr.decorative-line {
border: 1px solid #f7f7f7; /* Línea decorativa gris claro */
}


.project-info {
text-align: center;
}


#project-button {
padding: 10px 20px;
background-color: #1D1E1C; /* Fondo azul para el botón */
color: #f7f7f7; /* Texto blanco en el botón */
border: none;
cursor: pointer;
border-radius: 5px; /* Bordes redondeados */
transition: background-color 0.3s;
}


#project-button:hover {
background-color: #696969; /* Fondo azul oscuro al pasar el ratón */
}




/* ==========================================================================
   SISTEMA DE DISEÑO CRUZ ESTUDIO ® 2026
   Arquitectura: Neue Haas (H) + IBM Plex (B) + Cofo Mono (D)
   ========================================================================== */

:root {
    --bg-dark: #1D1E1C;
    --crema: #FFFDF3;
    --amarillo-acento: #f2c335;
    --font-header: 'neue-haas-grotesk-display', sans-serif;
    --font-reading: 'IBM Plex Sans', sans-serif;
    --font-mono: 'cofo-sans-mono-variable', monospace;
    --swiss-easing: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 1. CONTACT COMPONENT --- */
.contact-section {
    background-color: var(--bg-dark) !important;
    padding: 160px 45px;
    width: 100%;
    border-top: 1px solid rgba(255, 253, 243, 0.05);
}

.contact-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.contact-display {
    font-family: var(--font-header);
    font-size: clamp(3.5rem, 8vw, 110px); 
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--crema) !important;
    margin-bottom: 25px;
    text-align: left;
}

/* --- 2. SEGMENTACIÓN Y CONTRASTE (FIXED) --- */
.form-segment { 
    margin-top: 100px; /* Espaciado generoso entre bloques */
}

.form-segment .reading-small {
    font-family: var(--font-reading);
    font-size: 1.1rem;
    color: var(--crema) !important; /* Contraste absoluto */
    line-height: 1.5;
    margin-bottom: 45px; /* Evita el amontonamiento con los inputs */
    display: block;
    letter-spacing: 0.01em;
}

.required-notice {
    font-family: var(--font-mono);
    color: var(--amarillo-acento);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-left: 10px;
    vertical-align: middle;
}

.mono-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--amarillo-acento); 
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* --- 3. SELECCIÓN TÉCNICA (PILLS) --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.service-chip input { display: none; }

.chip-box {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid rgba(255, 253, 243, 0.15);
    border-radius: 50px; /* Redondeado suave sistematizado */
    color: var(--crema) !important;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--swiss-easing);
}

.service-chip:hover .chip-box { 
    border-color: var(--crema); 
    background-color: rgba(255, 253, 243, 0.05);
}

.service-chip input:checked + .chip-box {
    background-color: var(--crema);
    color: var(--bg-dark) !important;
    border-color: var(--crema);
}

/* --- 4. INPUTS FLOTANTES --- */
.fields-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 85px 45px; /* Tensión visual entre filas */
    margin-top: 80px;
}

.full-col { grid-column: 1 / -1; }

.input-container {
    position: relative;
    border-bottom: 1px solid rgba(255, 253, 243, 0.15);
    padding-bottom: 10px;
}

.input-container input, 
.input-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    color: var(--crema) !important;
    font-size: 22px;
    outline: none;
    font-family: var(--font-header);
}

.input-container label {
    position: absolute;
    top: 15px;
    left: 0;
    /* ESTA ES LA LÍNEA QUE DEBÉS MODIFICAR */
    color: rgba(255, 253, 243, 0.863); 
    font-family: var(--font-reading);
    font-size: 18px;
    font-weight: 300;
    pointer-events: none;
    transition: all 0.4s var(--swiss-easing);
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.input-container textarea:focus + label,
.input-container textarea:not(:placeholder-shown) + label {
    top: -25px;
    font-size: 10px;
    color: var(--amarillo-acento);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* --- 5. ACCIÓN FINAL (CTA) - TAMAÑO MEDIUM (AJUSTADO) --- */
.ux-submit-btn {
    margin-top: 40px !important;
    padding: 16px 32px !important; /* Ajuste sutil para que la píldora respire bien */
    background-color: var(--crema) !important; 
    color: var(--bg-dark) !important; 
    border: none !important;
    border-radius: 50px !important; 
    
    /* CAMBIOS CLAVE PARA EL ANCHO: */
    width: fit-content !important; /* Se ajusta exactamente al tamaño del texto + ícono */
    display: flex;
    justify-content: center; 
    gap: 20px; /* Separación fija y controlada entre texto y flecha */
    align-items: center;
    
    cursor: pointer;
    transition: all 0.4s var(--swiss-easing, cubic-bezier(0.77, 0, 0.175, 1));
}

.ux-submit-btn .cta-text {
    font-family: var(--font-mono);
    font-size: 13px; 
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--bg-dark) !important; 
}

.ux-submit-btn .material-symbols-outlined {
    font-size: 22px; 
    color: var(--bg-dark) !important;
    transition: transform 0.4s ease;
}

/* --- ESTADO HOVER (Feedback Interactivo) --- */
.ux-submit-btn:hover {
    background-color: var(--amarillo-acento) !important; 
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
}

.ux-submit-btn:hover .material-symbols-outlined {
    transform: translate(5px, -5px); 
}



/* --- 6. WHATSAPP FIXED (5491161105751) --- */
.whatsapp-fixed {
    position: fixed;
    bottom: 40px;
    right: 45px;
    width: 60px;
    height: 60px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 253, 243, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: all 0.4s var(--swiss-easing);
}

.whatsapp-fixed svg { width: 26px; height: 26px; fill: var(--crema); z-index: 2; }

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--amarillo-acento);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 18px;
    white-space: nowrap;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.4s var(--swiss-easing);
}

.whatsapp-fixed:hover { background-color: var(--amarillo-acento); transform: scale(1.05); }
.whatsapp-fixed:hover .wa-tooltip { opacity: 1; visibility: visible; transform: translateX(0); }
.whatsapp-fixed:hover svg { fill: var(--bg-dark); }
/* ==========================================================================
   FOOTER GLOBAL - SISTEMA CRUZ ESTUDIO ®
   Inspiración: Mother Design / Studio Okay
   Fondo: Crema | Texto: Dark | Estilo: Swiss Editorial
   ========================================================================== */

/* --- Badge WE.directory: Website of the day --- */
.we-directory-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 36px;
    margin: 0 0 60px 0;
    border: 1px solid rgba(29, 30, 28, 0.15);
    border-radius: 4px;
    text-decoration: none;
    color: var(--bg-dark);
    background: transparent;
    transition: background 0.5s var(--reveal-easing), border-color 0.5s var(--reveal-easing), transform 0.6s var(--reveal-easing);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Reemplaza el outline azul del navegador por el amarillo corporativo */
.we-directory-badge:focus,
.we-directory-badge:focus-visible {
    outline: 2px solid var(--amarillo-acento);
    outline-offset: 4px;
}

.we-directory-badge,
.we-directory-badge * {
    text-decoration: none !important;
}

.we-directory-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
    transform: translateY(101%);
    transition: transform 0.6s var(--reveal-easing);
    z-index: 0;
}

.we-directory-badge > * {
    position: relative;
    z-index: 1;
    transition: color 0.5s var(--reveal-easing);
}

.we-directory-badge:hover {
    border-color: var(--bg-dark);
}

.we-directory-badge:hover::before {
    transform: translateY(0);
}

.we-directory-badge:hover .we-badge-label,
.we-directory-badge:hover .we-badge-title,
.we-directory-badge:hover .we-badge-link {
    color: var(--crema);
}

.we-directory-badge:hover .we-badge-logo {
    filter: invert(1);
}

.we-badge-left {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.we-badge-logo {
    height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
    transition: filter 0.5s var(--reveal-easing);
}

.we-badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.we-badge-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(29, 30, 28, 0.5);
    line-height: 1;
}

.we-badge-title {
    font-family: var(--font-header);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--bg-dark);
    position: relative;
    display: inline-block;
    width: fit-content;
}

/* Línea amarilla corporativa que se dibuja de izquierda a derecha en hover */
.we-badge-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 100%;
    background: var(--amarillo-acento);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s var(--reveal-easing);
}

.we-directory-badge:hover .we-badge-title::after,
.we-directory-badge:focus-visible .we-badge-title::after {
    transform: scaleX(1);
}

.we-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.we-badge-link .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.4s var(--reveal-easing);
}

.we-directory-badge:hover .we-badge-link .material-symbols-outlined {
    transform: translate(3px, -3px);
}

@media (max-width: 768px) {
    .we-directory-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 24px;
    }
    .we-badge-left {
        gap: 18px;
    }
    .we-badge-logo {
        height: 28px;
    }
}

.footer-global {
    background-color: var(--crema);
    color: var(--bg-dark);
    padding: 100px 45px 60px 45px;
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(29, 30, 28, 0.1);
    /* Rigor Flair Digital: el cursor personalizado toma el control */
    cursor: none; 
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: var(--bg-dark);
    margin-bottom: 60px;
    opacity: 0.1;
}

/* Grilla Técnica Asimétrica */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- ELEMENTOS DE TEXTO Y MARCA --- */
.copyright-text {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--bg-dark);
    margin: 0;
}

.footer-link {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s var(--swiss-easing);
}

.footer-link:hover {
    color: var(--amarillo-acento);
}

/* Visibilidad técnica de etiquetas */
.mono-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1D1E1C !important; /* Forzamos contraste sobre crema */
    opacity: 0.5;
    display: block;
    margin-bottom: 30px;
    visibility: visible !important;
}

.reading-small {
    font-family: var(--font-reading);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(29, 30, 28, 0.7);
}

/* Sello Pluma */
.pluma-seal {
    height: 45px;
    width: auto;
    filter: brightness(0); /* Negro puro sobre fondo claro */
    margin-bottom: 20px;
    display: block;
}

/* --- CURSOR PERSONALIZADO --- */
.custom-cursor {
    width: 18px;
    height: 18px;
    background-color: var(--amarillo-acento);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply; 
    transition: transform 0.15s ease-out;
}

/* ==========================================================================
   UX UPGRADE: CONTACT FORM GRID (NO INVASIVO)
   ========================================================================== */

/* Grilla asimétrica para escritorio */
.ux-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Da un poco más de aire a la derecha para escribir */
    gap: 80px;
    margin-top: 80px;
    align-items: flex-start;
}

.form-intent, .form-data {
    display: flex;
    flex-direction: column;
}

/* Reducimos el margen inferior exagerado de tus inputs anteriores 
   solo para esta columna, para que no quede tan largo */
.form-data .input-container {
    margin-bottom: 35px;
    padding-bottom: 5px;
}

/* Modificación específica para el botón dentro de la nueva grilla */
.ux-submit-btn {
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 253, 243, 0.1) !important;
    width: 100%; 
    justify-content: space-between;
}

/* --- ADAPTACIÓN MÓVIL (Vuelve a 1 columna en celulares) --- */
@media (max-width: 1024px) {
    .ux-form-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-top: 60px;
    }
}

/* ==========================================================================
   RESPONSIVE: FIX DE ENCUADRE Y GRIDS
   ========================================================================== */

/* Ajuste para Tablets y Laptops pequeñas (1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Colapsamos a 2 columnas */
        gap: 60px 40px;
    }
}

/* Ajuste Crítico para Móviles (768px) */
@media (max-width: 768px) {
    .footer-global {
        padding: 60px 35px;
        cursor: auto; /* Devolvemos el cursor estándar en táctil */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna vertical */
        gap: 50px;
    }

    .custom-cursor {
        display: none; /* Innecesario en mobile */
    }

    /* Reducción del sello para no saturar el encuadre */
    .pluma-seal {
        height: 30px; 
        margin-bottom: 15px;
    }

    .copyright-text {
        font-size: 1.6rem; 
        letter-spacing: -0.03em;
    }

    /* Forzamos alineación segura a la izquierda */
    .footer-col, 
    .footer-brand-end {
        align-items: flex-start !important;
        text-align: left !important;
    }
}

/* --- BOTÓN WHATSAPP MONOCROMO --- */
.whatsapp-fixed {
    position: fixed;
    bottom: 40px; /* Alineación suiza con el footer */
    right: 45px;  /* Sigue tu grilla de 45px */
    width: 60px;
    height: 60px;
    background-color: var(--bg-dark); /* Fondo oscuro por defecto */
    border: 1px solid rgba(255, 253, 243, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.whatsapp-fixed svg {
    width: 28px;
    height: 28px;
    fill: var(--crema); /* Icono crema sobre fondo oscuro */
    transition: transform 0.4s ease, fill 0.4s ease;
}

/* Interacción: Aquí revelamos el Amarillo Acento */
.whatsapp-fixed:hover {
    background-color: var(--amarillo-acento);
    transform: translateY(-5px) scale(1.05);
    border-color: var(--amarillo-acento);
}

.whatsapp-fixed:hover svg {
    fill: var(--bg-dark); /* El icono se vuelve oscuro en hover */
    transform: rotate(10deg);
}

/* Ajuste Responsive */
@media (max-width: 768px) {
    .whatsapp-fixed {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-fixed svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   SECCIÓN SERVICIOS (SISTEMA CRUZ ESTUDIO ®)
   Arquitectura: Neue Haas (H) + IBM Plex (B) + Cofo Mono (D)
   ========================================================================== */

:root {
    --bg-dark: #1D1E1C;
    --crema: #FFFDF3;
    --amarillo-acento: #f2c335;
    --font-header: 'neue-haas-grotesk-display', sans-serif;
    --font-reading: 'IBM Plex Sans', sans-serif;
    --font-mono: 'cofo-sans-mono-variable', monospace;
}

.services-v2 {
    background-color: var(--bg-dark);
    color: var(--crema);
    padding: 100px 0 90px;
    overflow: hidden; /* Evita que el sello rompa el layout */
}

.obys-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

/* --- HEADER STYLE --- */
.services-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
    gap: 40px;
}

.hero-text-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

/* H2 — Mismo sistema que .sw-title de Proyectos destacados */
.display-title {
    font-family: var(--font-header);
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: var(--crema);
    margin-top: 12px;
}

.bold-highlight {
    font-weight: 700;
    color: var(--amarillo-acento);
}

/* --- SELLO CIRCULAR --- */
.circular-text-box {
    width: 140px;
    height: 140px;
    position: relative;
    flex-shrink: 0;
}

.rotating-svg {
    width: 100%;
    height: 100%;
    animation: spin 15s linear infinite;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 8px;
    fill: var(--amarillo-acento);
    letter-spacing: 2px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- SERVICES LIST --- */
.services-list-v2 {
    position: relative;
    border-bottom: 1px solid rgba(255, 253, 243, 0.1);
}

/* Línea editorial superior animada (line-reveal) */
.services-list-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 253, 243, 0.1);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s var(--reveal-easing);
}

.services-list-v2.visible::before {
    transform: scaleX(1);
}

.service-block {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0;
    padding: 36px 0;
    transition: background 0.4s ease;
    align-items: start;
}

.service-block + .service-block {
    border-top: 1px solid rgba(255, 253, 243, 0.1);
}

.service-block:hover {
    background-color: rgba(242, 195, 53, 0.03);
}

/* La regla del stagger (0,2,0) sobreescribe el transition de .service-block.
   Este override (0,3,0) lo restaura e incluye background-color para que el hover anime. */
.js-ready .scroll-reveal-stagger > .service-block {
    transition:
        opacity 0.85s var(--reveal-easing),
        transform 0.85s var(--reveal-easing),
        background-color 0.4s ease;
}

.block-number {
    font-family: var(--font-mono);
    color: rgba(255, 253, 243, 0.4);
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-block:hover .block-number {
    color: var(--amarillo-acento);
}

/* H3 — Mismo sistema que .sw-project-title */
.block-main h3 {
    font-family: var(--font-header);
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    margin: 0 0 14px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--crema);
}

.block-main p {
    font-family: var(--font-reading);
    font-size: 16px;
    max-width: 640px;
    line-height: 1.55;
    color: rgba(255, 253, 243, 0.7);
    font-weight: 400;
}

/* Pills de Metodología */
.method-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.pill {
    font-family: var(--font-reading);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 253, 243, 0.75);
    border: 1px solid rgba(255, 253, 243, 0.18);
    padding: 16px 18px;
    flex: 1;
    min-width: 220px;
    border-radius: 2px;
}

.pill span {
    display: block;
    font-family: var(--font-mono);
    color: var(--amarillo-acento);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Responsive — mismo enfoque que Proyectos destacados */
@media (max-width: 1024px) {
    .services-v2 {
        padding: 80px 0 70px;
    }
    .obys-container {
        padding: 0 40px;
    }
    .services-hero {
        margin-bottom: 48px;
        flex-direction: column;
        align-items: flex-start;
    }
    .service-block {
        grid-template-columns: 44px 1fr;
        padding: 28px 0;
    }
    .block-main h3 {
        font-size: clamp(1.2rem, 3.2vw, 1.6rem);
    }
    .block-main p {
        font-size: 15px;
    }
    .pill {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .obys-container {
        padding: 0 24px;
    }
    .circular-text-box {
        width: 110px;
        height: 110px;
    }
}

/* ==========================================================================
   SERVICES V3 — 2-col: acordeón ↔ Three.js layered wireframe
   ========================================================================== */

.services-v3 .svc-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.services-v3 .svc-header {
    margin-bottom: 64px;
    max-width: 1100px;
}

.services-v3 .svc-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amarillo-acento); /* eyebrow en amarillo per spec */
    margin-bottom: 18px;
}

/* Título (mismo sistema H2 que .display-title, ajustado para 2 cols) */
.services-v3 .svc-title {
    margin: 0;
    font-family: var(--font-header);
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--crema);
}

/* Layout 2 columnas — accordion | canvas */
.services-v3 .svc-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 80px;
    align-items: start;
}

/* ── Canvas Three.js (columna derecha) ──
   SIN contenedor visible: el canvas vive flotando directamente sobre
   el fondo de la sección — sin fondo, sin borde, sin radius.
   Altura ampliada (680px) para dar espacio vertical a los picos de las
   olas cuando la capa activa entra en estado de amplitud máxima. */
.services-v3 .svc-canvas-wrap {
    position: sticky;
    top: 150px;
    width: 100%;
    height: 120vh;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.services-v3 .svc-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Acordeón (columna izquierda) ── */
.services-v3 .svc-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 253, 243, 0.12);
}

.svc-item {
    border-bottom: 1px solid rgba(255, 253, 243, 0.12);
    padding: 26px 0;
    cursor: pointer;
    transition: padding 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.svc-item:hover {
    padding: 32px 0;
}

.svc-head {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: baseline;
    gap: 12px;
}

.svc-num {
    font-family: var(--font-mono);
    color: rgba(255, 253, 243, 0.4);
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.svc-item:hover .svc-num {
    color: var(--amarillo-acento);
}

/* H3 — mismo sistema que .sw-project-title */
.svc-h3 {
    margin: 0;
    font-family: var(--font-header);
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--crema);
    transition: color 0.4s ease;
}

.svc-item:hover .svc-h3 {
    color: var(--amarillo-acento);
}

/* Acordeón body: grid 0fr → 1fr (auto-height animable, sin JS) */
.svc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.svc-body-inner {
    overflow: hidden;
    min-height: 0;
    padding-left: 76px; /* 64px col + 12px gap del .svc-head */
}

.svc-body-inner > * {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.svc-item:hover .svc-body {
    grid-template-rows: 1fr;
}

.svc-item:hover .svc-body-inner > * {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.18s;
}

.svc-body p {
    margin: 18px 0 0;
    font-family: var(--font-reading);
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 253, 243, 0.7);
    max-width: 540px;
}

.svc-body .method-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.svc-body .pill {
    font-family: var(--font-reading);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 253, 243, 0.75);
    border: 1px solid rgba(255, 253, 243, 0.18);
    padding: 14px 16px;
    flex: 1;
    min-width: 200px;
    border-radius: 2px;
}

.svc-body .pill span {
    display: block;
    font-family: var(--font-mono);
    color: var(--amarillo-acento);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-v3 .svc-container {
        padding: 0 40px;
    }
    .services-v3 .svc-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .services-v3 .svc-canvas-wrap {
        position: relative;
        top: auto;
        height: 460px;
        order: -1;
    }
    .svc-head {
        grid-template-columns: 52px 1fr;
    }
    .svc-body-inner {
        padding-left: 64px;
    }
}

@media (max-width: 640px) {
    .services-v3 .svc-container {
        padding: 0 24px;
    }
    .services-v3 .svc-canvas-wrap {
        height: 360px;
    }
    .svc-body-inner {
        padding-left: 0;
    }
    .svc-body .pill {
        min-width: 100%;
    }
}

/* ==========================================================================
   WHY US — Single column, centered, scroll-to-type cinematográfico
   Inspirado en https://codepen.io/jh3y/pen/ZYzKyXx
   ========================================================================== */

.why-us {
    position: relative;
    background: var(--bg-dark);
    color: var(--crema);
    padding: 0;                       /* el espaciado lo da .why-us-container con flex centrado */
    overflow: hidden;
    font-style: normal;
    z-index: 4;
    min-height: 100vh;               /* asegura que ocupe 1 viewport completo cuando se pinea */
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-container {
    /* Container más ancho para que el H2 respire en el centro de la pantalla */
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Mantiene todo centrado */
    gap: 2.5rem; /* Este es el "aire". Se aplicará de forma pareja entre cada elemento */
}

.why-us-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amarillo-acento);
    margin-bottom: 8px;
    font-weight: 400;
    font-style: normal;
}

.why-us-title {
    /* H2 a todo el ancho del container (1180px max).
       Espaciado generoso al body abajo (140px). */
    margin-top: 0;
    margin: 0 auto 140px;
    margin-bottom: 3rem;
    max-width: 1100px;
    text-align: center;
    font-size: clamp(1.8rem, 3.2vw, 2.9rem);
    line-height: 1.18;
    letter-spacing: -0.022em;
    color: var(--crema);
    font-style: normal;
}

.why-us-body {
    /* Body más angosto para mantener legibilidad clásica */
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
    font-family: var(--font-reading);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.7;
    color: var(--crema);
    font-weight: 400;
    font-style: normal;
}

/* ── Estado inicial de los CARACTERES (invisibles) ──
   Arrancan en opacity 0 — el texto NO se ve.
   GSAP scrubea opacidad → 1 ligada directamente al scroll wheel,
   revelando cada char a medida que el usuario scrollea.
   Soporta tanto .tp-char (módulo type.js) como .stw-char (text-reveal.js). */
.why-us-title .tp-char,
.why-us-body  .tp-char,
.why-us-title .stw-char,
.why-us-body  .stw-char {
    color: var(--crema);
    opacity: 0;
    will-change: opacity;
    font-style: normal;
}

/* Word wrapper: mantiene la integridad de cada palabra (no se parte mid-word) */
.why-us-title .tp-word,
.why-us-body  .tp-word,
.why-us-title .stw-word,
.why-us-body  .stw-word {
    display: inline-block;
    white-space: nowrap;
    font-style: normal;
}

/* Fallback sin JS: si el splitter no envolvió, el texto queda legible */
.why-us-title:not(:has(.tp-char)):not(:has(.stw-char)),
.why-us-body:not(:has(.tp-char)):not(:has(.stw-char)) {
    color: rgba(255, 253, 243, 0.9);
}

/* Respeta reduced-motion: muestra texto en estado final sin scrub */
@media (prefers-reduced-motion: reduce) {
    .why-us-title .tp-char,
    .why-us-body  .tp-char,
    .why-us-title .stw-char,
    .why-us-body  .stw-char {
        opacity: 1 !important;
    }
}

/* Responsive */
@media (max-width: 720px) {
    .why-us {
        padding: 110px 0 100px;
    }
    .why-us-container {
        padding: 0 24px;
    }
    .why-us-eyebrow {
        margin-bottom: 40px;
    }
    .why-us-title {
        margin-bottom: 44px;
    }
}

/* ==========================================================================
   SECTION DISPLAY TITLE — sistema H2 unificado
   Aplicado a "Proyectos destacados", "Capas donde operamos",
   "Hablemos de tu próximo proyecto" para garantizar la misma
   tipografía display en toda la web. El color lo hereda cada sección.
   Selector h2.section-display-title para ganar especificidad sobre
   las clases legacy (.sw-title, .sv4-title, .contact-display).
   ========================================================================== */
h2.section-display-title,
h2.section-display-title * {
    font-style: normal;
}

h2.section-display-title {
    font-family: var(--font-header);
    font-size: clamp(2.8rem, 5.8vw, 6rem);
    line-height: 0.93;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   SERVICES V4 — Grid 3 columnas (Swiss / Technical Minimalism)
   - Dark bg corporativo, crema en texto, amarillo solo en hover.
   - Sin "cajas": columnas separadas por líneas 1px sutiles.
   - Sin itálicas en ningún lado.
   - 3 canvas Three.js independientes (geometrías distintas).
   ========================================================================== */

.services-grid-v4 {
    background: var(--bg-dark);
    color: var(--crema);
    padding: 120px 0 110px;
    position: relative;
    overflow: hidden;
    font-style: normal;
}

.sv4-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

.sv4-header {
    margin-bottom: 84px;
    max-width: 1100px;
}

.sv4-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amarillo-acento);
    margin-bottom: 18px;
    font-style: normal;
    font-weight: 400;
}

.sv4-title {
    margin: 0;
    font-family: var(--font-header);
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--crema);
    font-style: normal;
}

.sv4-title .bold-highlight {
    color: var(--amarillo-acento);
    font-style: normal;
}

/* Grid 4 columnas separadas por líneas verticales 1px (no cajas) */
.sv4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 253, 243, 0.10);
}

.sv4-col {
    padding: 68px 44px 60px; /* +16px top para dejar lugar al [0X] */
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    font-style: normal;
}

/* Separadores verticales entre columnas (1px, sutiles) */
.sv4-col + .sv4-col {
    border-left: 1px solid rgba(255, 253, 243, 0.10);
}

/* Sutil tinte amarillo al hover en la columna (sin caja, solo wash) */
.sv4-col:hover {
    background: rgba(242, 195, 53, 0.025);
}

/* ── Canvas wrapper ── */
.sv4-canvas-wrap {
    width: 100%;
    height: 280px;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
}

.sv4-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Contenido textual (debajo del canvas) ── */
.sv4-content {
    position: relative;
    font-style: normal;
}

/* Número anclado en la esquina superior izquierda de la card.
   Sale del flow normal y se posiciona absolute respecto a .sv4-col. */
.sv4-num {
    position: absolute;
    top: 28px;
    left: 44px;
    z-index: 3;
    font-family: var(--font-mono);
    color: rgba(255, 253, 243, 0.55);
    font-size: 11px;
    letter-spacing: 0.12em;
    font-style: normal;
    font-weight: 400;
    pointer-events: none;
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* H3 — sistema editorial corporativo (no itálicas, weight 500) */
.sv4-h3 {
    margin: 0;
    font-family: var(--font-header);
    font-size: clamp(1.3rem, 1.75vw, 1.75rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--crema);
    font-style: normal;
    position: relative;
    display: inline-block;
    transition: color 0.4s ease, transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Línea amarilla corporativa que se dibuja izq→der al hover */
.sv4-h3::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--amarillo-acento);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sv4-desc {
    margin: 24px 0 0;
    font-family: var(--font-reading);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 253, 243, 0.65);
    max-width: 380px;
    font-style: normal;
    font-weight: 400;
    transition: color 0.4s ease;
}

/* ── Hover sobre la columna entera ── */
.sv4-col:hover .sv4-num {
    color: var(--amarillo-acento);
    transform: translateY(-2px);
}

.sv4-col:hover .sv4-h3 {
    color: var(--amarillo-acento);
    transform: translateY(-4px);
}

.sv4-col:hover .sv4-h3::after {
    transform: scaleX(1);
}

.sv4-col:hover .sv4-desc {
    color: rgba(255, 253, 243, 0.85);
}

/* ── CTA "NUESTRO PROCESO" (variante dark del .view-all-v2) ──
   Misma morfología pill que el botón principal de la web, pero invertida
   para vivir sobre el fondo dark de esta sección. */
.sv4-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    margin-top: 32px;
    border: 1px solid rgba(255, 253, 243, 0.7);
    border-radius: 50px;
    background-color: transparent;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.45s cubic-bezier(0.77, 0, 0.175, 1),
                border-color 0.45s cubic-bezier(0.77, 0, 0.175, 1),
                transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.sv4-cta .btn-text {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--crema);
    font-style: normal;
    transition: color 0.4s ease;
}

.sv4-cta .material-symbols-outlined {
    font-size: 18px;
    color: var(--crema);
    transition: transform 0.4s ease, color 0.4s ease;
}

.sv4-cta:hover {
    background-color: var(--amarillo-acento);
    border-color: var(--amarillo-acento);
}

.sv4-cta:hover .btn-text,
.sv4-cta:hover .material-symbols-outlined {
    color: var(--bg-dark);
}

.sv4-cta:hover .material-symbols-outlined {
    transform: translate(3px, -3px);
}

.sv4-cta:focus-visible {
    outline: 1px solid var(--amarillo-acento);
    outline-offset: 4px;
}

/* ── Scroll reveal cinematográfico de las cards ──
   Estado inicial oculto (solo con .js-ready, failsafe natural si JS no carga).
   La animación de entrada la maneja GSAP desde capas.js, NO el sistema global
   de scroll-reveal — así evitamos el bug donde .reveal-fallback dejaba
   propiedades como `filter` colgadas.
   Las cards ganan la clase .is-revealed cuando entran al viewport. */
.js-ready .sv4-grid[data-sv4-grid] > .sv4-col {
    opacity: 0;
    transform: translate3d(0, 60px, 0) scale(0.96);
    will-change: opacity, transform;
}

/* Cuando JS marca la card como revelada → estado final (GSAP la anima) */
.js-ready .sv4-grid[data-sv4-grid] > .sv4-col.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .js-ready .sv4-grid[data-sv4-grid] > .sv4-col {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sv4-container {
        padding: 0 40px;
    }
    .sv4-header {
        margin-bottom: 60px;
    }
    .sv4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* En 2×2: la fila inferior (cards 3 y 4) lleva separador superior */
    .sv4-col:nth-child(3),
    .sv4-col:nth-child(4) {
        border-top: 1px solid rgba(255, 253, 243, 0.10);
    }
    /* La card 3 inicia fila → sin línea izquierda */
    .sv4-col:nth-child(3) {
        border-left: none;
    }
    .sv4-col {
        padding: 60px 32px 52px;
    }
    .sv4-num {
        top: 22px;
        left: 32px;
    }
    .sv4-canvas-wrap {
        height: 240px;
        margin-bottom: 32px;
    }
    .sv4-cta {
        padding: 12px 24px;
        margin-top: 28px;
    }
}

@media (max-width: 720px) {
    .sv4-container {
        padding: 0 24px;
    }
    .sv4-grid {
        grid-template-columns: 1fr;
    }
    .sv4-col + .sv4-col {
        border-left: none;
        border-top: 1px solid rgba(255, 253, 243, 0.10);
    }
    .sv4-col {
        padding: 50px 0 44px;
    }
    .sv4-num {
        top: 14px;
        left: 0;
    }
    .sv4-canvas-wrap {
        height: 220px;
        margin-bottom: 24px;
    }
    .sv4-desc {
        max-width: 100%;
    }
    .sv4-cta {
        padding: 12px 22px;
        margin-top: 24px;
    }
}

/* Respeta usuarios con reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .sv4-col,
    .sv4-num,
    .sv4-h3,
    .sv4-h3::after,
    .sv4-desc {
        transition: none !important;
    }
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE DEFINITIVA (CRUZ ESTUDIO ®)
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1600px) {

    /* --- 1. RESPIRO SUPERIOR (AIRE CON EL NAVBAR) --- */
    

    /* --- 2. ESCALA REDUCIDA DE H1 Y H2 (SOPHISTICATED LOOK) --- */
    .hero-main-wrapper {
        padding: 0 var(--container-padding) !important;
        /* Bajamos el bloque para que no compita con el Navbar en pantallas bajas */
        transform: translateY(-5vh) !important; 
    }

    .hero-left {
        width: 75%; /* Damos más aire a la derecha para que el texto "respire" */
    }

    .hero-title {
         font-size: 7rem !important;
        /* Ajuste fino de interlineado para evitar solapamiento de ascendentes */
        line-height: 0.88;
        letter-spacing: -0.05rem;
        margin-bottom: 2rem;
        padding-left: 3%;
    }
    
    .hero-link {
    
    
    font-size: 14px;

     }
    .hero-subtitle {
        /* IBM Plex Sans escalada para lectura cómoda en 13 pulgadas */
        font-size: 18px !important;
        max-width: 520px;
        line-height: 1.5;
    }

    .word-slider {
        /* En pantallas Retina, la mono regular puede verse muy delgada; 
           un sutil ajuste de escala ayuda a equilibrar el peso visual */
        transform: scale(1.02);
        
    }
    
        
        /* BLOQUEO RÍGIDO: 
        width: 480px !important; 
        max-width: 480px !important;
        flex-shrink: 0;
        display: block;*/
    }

   /* --- 4. ELEMENTOS PERIFÉRICOS --- */
    
    /* Footer Institucional Izquierda */
    .hero-footer {
        position: absolute;
        bottom: 35px;
        left: 45px;
        z-index: 2;
        text-align: left;
    }

    .hero-right {

    
        padding-right: 3%;

    }


 /* --- FLECHA HERO (IMAGEN SVG ANIMADA) --- */

.hero-arrow img {
    /* Tus estilos base */
    width: 250px;
    height: auto;
    margin-top: 250px;

    /* --- 1. COLOR AMARILLO (#f2c335) --- */
    /* Usamos un filtro para transformar el gris del SVG al amarillo corporativo */
    filter: brightness(0) saturate(100%) invert(82%) sepia(37%) saturate(1093%) hue-rotate(354deg) brightness(103%) contrast(93%);

    /* --- 2. ANIMACIÓN DE ENTRADA --- */
    /* Estado inicial: invisible y desplazada arriba-izquierda */
    opacity: 0;
    transform: translate(-30px, -30px); 
    
    /* Ejecución: 1.2s de duración, curva suave profesional, se queda en el estado final */
    animation: arrowEmergenceImg 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    
    /* Retraso: Aparece 1.5s después de que carga la página */
    animation-delay: 1.5s;
}

/* Definición del movimiento */
@keyframes arrowEmergenceImg {
    0% {
        opacity: 0;
        /* Empieza desplazada siguiendo la diagonal de la flecha */
        transform: translate(-30px, -30px);
    }
    100% {
        opacity: 1;
        /* Termina en su posición original */
        transform: translate(0, 0);
    }
}

    .hero-fecha {
        font-size: 18px;
        font-weight: 700;
    }

    /* Botón Idioma Derecha */
    .language-switch {
        position: fixed;
        right: 45px;
        bottom: 35px;
        z-index: 1000;
    }

    .language-switch button {
        font-size: 11px;
        padding: 6px 12px;
    }

    

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE DEFINITIVA (CRUZ ESTUDIO ®)
   ========================================================================== */

@media (max-width: 768px) {

    featured-works-container {
        grid-template-columns: 1fr; /* Columna única */
        gap: 40px;
    }

    /* Ocultamos la previsualización de imagen para priorizar la lista */
    .works-preview .preview-inner {
        display: none;
    }

    /* Posicionamos el botón al final de la sección */
    .works-preview {
        position: static;
        order: 2; /* Baja después de la lista */
        align-items: flex-start;
        padding-top: 20px;
    }

    .works-list-wrapper {
        order: 1;
    }

    .featured-work-item {
        padding: 35px 0;
    }

    .work-title {
        font-size: 1.6rem;
    }

    /* Forzamos visibilidad absoluta del botón en móvil */
    .works-cta {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }

    .view-all-link {
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    /* 1. Ocultamos el bloque de la imagen (lado izquierdo) */
    .works-preview {
        display: none !important;
    }

    /* 2. Hacemos que la lista ocupe el 100% del ancho */
    .works-list-wrapper {
        width: 100% !important;
        flex: none !important;
    }

    /* 3. Ajustamos el contenedor para que no tenga gaps innecesarios */
    .featured-works-container {
        display: block !important;
        padding: 0 !important;
    }

    /* 4. Opcional: Ajustar el padding de la sección para celulares */
    .featured-works {
        padding: 60px 25px !important;
    }

    /* 5. Ajustar el tamaño de los títulos en móvil para que no se pisen */
    .work-title {
        font-size: 1.5rem !important;
        margin: 0 15px !important;
    }

    /* --- 1. CONFIGURACIÓN BASE --- */
    body {
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* ELIMINAMOS EL BLOQUEO EXTERNO: 
       Si la clase .scroll-locked está activa, en móvil la ignoramos */
    body.scroll-locked {
        overflow-y: visible !important;
        position: static !important;
        height: auto !important;
    }

    /* Bloqueo de scroll cuando el menú está abierto */
    body.menu-open {
        overflow: hidden !important;
        height: 100vh;
        position: fixed;
        width: 100%;
    }


    /* --- 2. NAVBAR & HAMBURGER (CON RESPIRO LATERAL) --- */

    .navbar-brand {
        /* Redujimos el padding vertical y la altura general */
        padding: 10px 35px !important; 
        height: 60px;
        /* EFECTO GLASS MÓVIL */
        background-color: rgba(28, 28, 28, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(5px);
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 2000;
    }

    .logo {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        font-size: 20px;
        color: #FFFDF3;
        text-decoration: none;
    }

    /* Hamburguesa corregida */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between; 
        width: 30px;
        height: 22px; 
        position: relative;
        cursor: pointer;
        z-index: 2100;
    }

    .bar {
        height: 2px;
        width: 100%;
        background-color: #FFFDF3;
        margin: 0 !important;
        transition: all 0.3s ease;
    }

    /* Animación a X */
    .menu-toggle.open .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .menu-toggle.open .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.open .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* MENÚ OVERLAY CENTRADO */
    .nav-links-brands {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: #1D1E1C;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 3.5rem;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: 1000;
    }
    .nav-links-brands.active { transform: translateY(0); }
    .nav-links-brands a {
        font-family: 'neue-haas-grotesk-display', sans-serif;
        font-size: 32px !important;
        font-weight: 700;
        text-transform: uppercase;
        color: #FFFDF3;
        text-decoration: none;
    }

    /* --- 3. HERO: ALINEACIÓN Y RESPIRO SUPERIOR --- */
    .hero {
        /* AJUSTE: Aumentado a 220px para separar del Navbar */
        padding: 220px 35px 60px 35px !important; 
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
    }    
    
    .hero-main-wrapper {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left !important;
        transform: none !important;
        padding: 0;
        width: 100%;
    }

    .hero-left {
        width: 100% !important;
        display: block;
    }
 
    /* Título: Justificado a la izquierda y con espacio reservado */
    .hero-title {
        font-family: 'neue-haas-grotesk-display', sans-serif;
        font-weight: 700;
        font-size: clamp(3.2rem, 11vw, 4rem);
        line-height: 1.05;
        margin: 0 0 25px 0 !important;
        width: 100% !important;
        text-align: left !important;
        min-height: 3.5em; /* Bloqueo vertical typewriter */
        display: block;
    }
    
    /* Subtítulo: COLUMNA FIJA (No se deforma) */
    .hero-subtitle {
        font-family: 'cofo-sans-mono-variable', monospace;
        font-weight: 200;
        font-size: 1.3rem;
        line-height: 1.5;
        color: #FFFDF3;
        text-align: left !important;
        
        display: block;
        width: 100%;
        max-width: 280px !important; /* Ancho rígido constante */
        margin: 0 !important;
        
        opacity: 0.9;
        word-wrap: break-word;
    }

    /* Sacar "2018-2025" en Responsive */
    .hero-footer, .hero-fecha { display: none !important; }

    /* Flecha y Botones */
    .hero-arrow { margin-top: 40px; text-align: left; }
    .hero-arrow img { width: 140px; height: auto; }
    .hero-right { display: none !important; }
    .scroll-down-btn { bottom: 80px; }
    .language-switch { bottom: 20px; right: 35px; }
}

@media (max-width: 768px) {
    /* 1. ESTO DESAPARECE EL BOTÓN AMARILLO DEL NAVBAR EN CELULARES */
    .nav-right-cta {
        display: none !important; 
    }
    
    /* 2. ESTO LO HACE APARECER DENTRO DEL MENÚ HAMBURGUESA */
    .mobile-contact-item {
        display: block !important; 
        margin-top: 20px;
    }
    
    /* 3. LO PONEMOS EN AMARILLO INSTITUCIONAL DENTRO DEL MENÚ */
    .mobile-contact-item a {
        color: #f2c335 !important; 
    }
}


/* Animación de rebote */
@keyframes bounce-drop {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}



/* ==========================================================================
   NAV ACTIVE STATE — Página actual marcada en el navbar
   (about, contacto, metodologia, trabajos, política, etc.)
   ========================================================================== */
.nav-links-brands a.is-active {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}
.nav-links-brands a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    height: 1px;
    background: #f2c335;
    opacity: 0.9;
}

/* ==========================================================================
   WE SIDE TAG — Etiqueta vertical fija pegada al margen derecho
   Cambia de blanco→negro según body[data-bg] para mantener contraste.
   ========================================================================== */
.we-side-tag {
    position: fixed;
    top: 50%;
    right: 0;
    /* Wrapper representa el tamaño VISIBLE (vertical) tras rotar la imagen.
       Aspecto SVG 609x185 ≈ 3.29:1. width 38px → height 38 * 3.29 = 125px */
    width: 38px;
    height: 125px;
    z-index: 95;
    transform: translateY(-50%);
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.we-side-tag.is-ready { opacity: 1; }

.we-side-tag:hover {
    transform: translateY(-50%) translateX(-4px);
}

.we-side-tag-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 125px;        /* tamaño horizontal nativo previo a rotar */
    height: auto;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    display: block;
    transition: opacity 0.35s ease;
    user-select: none;
    pointer-events: none;
}

.we-side-tag-img--white { opacity: 1; }
.we-side-tag-img--black { opacity: 0; }

body[data-bg="light"] .we-side-tag-img--white { opacity: 0; }
body[data-bg="light"] .we-side-tag-img--black { opacity: 1; }

/* Mobile: levemente más chica para no robar área */
@media (max-width: 760px) {
    .we-side-tag {
        width: 30px;
        height: 99px;
    }
    .we-side-tag-img {
        width: 99px;
    }
}

/* PANEL STACK removido — causaba conflictos de stacking con secciones
   posteriores. Flujo natural sin transforms ni z-indexes elevados. */
