/* ==========================================================================
   FUENTES (alojadas en el sitio; se precarga la de los titulos)
   ==========================================================================
   Big Shoulders va en archivos estaticos (700 y 800): pesan menos que la variable y
   se ven igual en cualquier motor. Los respaldos llevan las metricas ajustadas:
   mientras llega la fuente real el texto ocupa el mismo espacio, y al cambiar no se
   mueve nada. Los override se calculan sobre el tamano ya ajustado (metrica real /
   size-adjust). */
@font-face {
    font-family: 'Big Shoulders Display';
    src: url('../fonts/big-shoulders-display-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Big Shoulders Display';
    src: url('../fonts/big-shoulders-display-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Display respaldo';
    src: local('Arial'), local('Helvetica'), local('Liberation Sans');
    size-adjust: 70%;
    ascent-override: 140.6%;
    descent-override: 30.4%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Manrope respaldo';
    src: local('Arial'), local('Helvetica'), local('Liberation Sans');
    size-adjust: 102%;
    ascent-override: 104.5%;
    descent-override: 29.4%;
    line-gap-override: 0%;
}

/* ==========================================================================
   VARIABLES Y RESET
   ========================================================================== */
:root {
    color-scheme: dark;

    /* Fondos: azul marino, nunca negro. */
    --bg: #0D1D3B;
    --bg-alt: #0A1730;
    --panel: #11254A;
    --panel-hi: #152D59;
    --footer: #071226;

    /* Lineas y grilla de plano. */
    --line: rgba(143, 180, 255, 0.16);
    --line-strong: rgba(143, 180, 255, 0.30);
    --grilla: rgba(143, 180, 255, 0.12);
    --grilla-fina: rgba(143, 180, 255, 0.055);
    --grilla-capas:
        linear-gradient(to right, var(--grilla) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grilla) 1px, transparent 1px),
        linear-gradient(to right, var(--grilla-fina) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grilla-fina) 1px, transparent 1px);
    --grilla-tamanos: 120px 120px, 120px 120px, 24px 24px, 24px 24px;

    /* Dibujo, texto y acentos. */
    --draft: #8FB4FF;
    --ink: #F3F6FD;
    --muted: #A9B8D6;
    --nav: #C9D5EE;
    --apagado: #6F82AA;         /* filas inactivas: solo texto grande (4,3:1) */
    --apagado-chico: #7A8CB3;   /* lo mismo en texto chico: llega a AA (4,9:1) */
    --gold: #D4AF37;
    --gold-hover: #E3C35A;
    --sobre-oro: #0D1A33;
    --whatsapp: #25D366;

    --font-display: 'Big Shoulders Display', 'Display respaldo', sans-serif;
    --font-texto: 'Manrope', 'Manrope respaldo', sans-serif;
    /* Rotulos de plano: monoespaciada del sistema, sin descarga. */
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    /* Las mismas dos curvas que usa GSAP (expo.out y power3.out). */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Margen de pagina. A 1440 px son 120 px, justo una linea mayor de la grilla. */
    --margen: max(clamp(20px, 8.34vw, 120px), calc((100vw - 1320px) / 2));

    /* Capas, de abajo hacia arriba. */
    --capa-flotante: 900;
    --capa-header: 1000;
    --capa-menu: 1050;
    --capa-boton-menu: 1100;
    --capa-saltar: 2000;
    --capa-modal: 3000;
}

/* En celular el margen es fijo: el titular y las secciones van a lo ancho. */
@media (max-width: 600px) {
    :root { --margen: 20px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* hidden tiene que ganarle a cualquier display de autor: asi la seccion de
   testimonios queda oculta de verdad hasta que tenga reseñas reales. */
[hidden] { display: none !important; }

html {
    background: var(--bg);
    scroll-padding-top: 88px;
    /* clip y no hidden: hidden crearia un contenedor de scroll y romperia el sticky. */
    overflow-x: clip;
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-texto);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
p { text-wrap: pretty; }
h3 { text-wrap: balance; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--sobre-oro); }

/* El foco visible es un contorno dorado en todo el sitio. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(143, 180, 255, 0.28); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(143, 180, 255, 0.45); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.ico {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: none;
    display: inline-block;
    vertical-align: -0.125em;
}
.ico-check {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--gold);
}

/* Enlace para saltar al contenido: invisible hasta recibir foco con el teclado. */
.saltar {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: var(--capa-saltar);
    padding: 12px 18px;
    border-radius: 3px;
    background: var(--gold);
    color: var(--sobre-oro);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 200ms var(--ease-out);
}
.saltar:focus-visible { transform: none; }

/* ==========================================================================
   LOGO (globo tipo Saturno)
   ========================================================================== */
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    /* 44 px de area tactil sin agrandar la barra. */
    padding-block: 8px;
    margin-block: -8px;
}
.globe-icon-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.globe-core {
    font-size: 1.4rem;
    color: var(--ink);
    position: relative;
    z-index: 2;
}
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--gold);
    opacity: 0.85;
}
.orbit-1 {
    width: 140%; height: 40%;
    animation: orbit-spin-1 6s linear infinite;
}
.orbit-2 {
    width: 120%; height: 120%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: orbit-spin-2 8s linear infinite reverse;
}
@keyframes orbit-spin-1 {
    0% { transform: translate(-50%, -50%) rotateZ(30deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateZ(30deg) rotateY(360deg); }
}
@keyframes orbit-spin-2 {
    0% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--ink);
    text-transform: uppercase;
}

/* ==========================================================================
   MENU
   ==========================================================================
   Sobre la portada va transparente; al pasarla aparece la barra (js/sitio.js).
   La barra es un seudoelemento para fundirla con opacity. Sin JS se ve siempre. */
.cabecera {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--capa-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px var(--margen);
}
.cabecera::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(13, 29, 59, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: opacity 250ms var(--ease-out);
}
/* Sin barra tampoco hay desenfoque: sobre la portada, que se redibuja en cada cuadro
   por el giro del globo, costaria trabajo de GPU para nada. */
.js .cabecera:not(.con-barra)::before {
    opacity: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav-links a {
    color: var(--nav);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current] { color: var(--ink); }
/* Indicador de seccion activa: una linea dorada que crece bajo el enlace. */
.nav-links a:not(.nav-cta):not(.nav-instagram) { position: relative; }
.nav-links a:not(.nav-cta):not(.nav-instagram)::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -7px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 350ms var(--ease-out-expo);
}
.nav-links a[aria-current]::after { transform: none; }
.nav-links a.nav-cta {
    padding: 10px 20px;
    border-radius: 3px;
    background: var(--gold);
    color: var(--sobre-oro);
    font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--gold-hover); color: var(--sobre-oro); }
.nav-links a.nav-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    font-size: 20px;
}

.menu-toggle {
    display: none;
    background: none; border: none;
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    z-index: var(--capa-boton-menu);
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 78%; max-width: 320px;
        height: 100vh; height: 100dvh;
        background: var(--panel);
        border-left: 1px solid var(--line-strong);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        padding: 0 32px;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1), visibility 400ms;
        z-index: var(--capa-menu);
    }
    .nav-links.open { transform: none; visibility: visible; }
    .nav-links a { padding: 12px 0; font-size: 17px; }
    .nav-links a.nav-instagram { width: auto; height: auto; margin-left: 0; gap: 10px; font-size: 17px; }
    .nav-links a.nav-instagram::after { content: 'Instagram'; }
    .nav-links a.nav-cta { margin-top: 12px; padding: 12px 24px; }
}

/* ==========================================================================
   COMPONENTES COMUNES
   ========================================================================== */
.seccion { padding: clamp(80px, 10.5vw, 150px) var(--margen); }
.seccion-alt { background: var(--bg-alt); }

.titulo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(50px, 6.2vw, 92px);
    line-height: 0.94;
    text-wrap: balance;
}
.bajada {
    font-size: clamp(16px, 1.35vw, 19.5px);
    line-height: 1.55;
    color: var(--muted);
}
/* Etiqueta de seccion, en monoespaciada: una linea dorada corta y el nombre en mayusculas. */
.etiqueta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(16px, 2vw, 24px);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--draft);
}
.etiqueta::before { content: ''; flex: none; width: 24px; height: 1px; background: var(--gold); }
.bajada-doble { display: grid; gap: 16px; }
/* Leyenda de plano: una fila fija en monoespaciada entre dos lineas finas. */
.leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin-top: clamp(32px, 4vw, 56px);
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}
.leyenda-rotulo { flex: none; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--draft); }
.seccion-cabeza {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 20px clamp(32px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 72px);
}
/* Con textos largos a la derecha, el titulo va arriba y la columna es mas ancha. */
.seccion-cabeza-arriba { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
/* Bajo este ancho un titulo largo quedaria apretado junto a la bajada. */
@media (max-width: 1023.98px) {
    .seccion-cabeza, .seccion-cabeza-arriba { grid-template-columns: 1fr; }
    .seccion-cabeza .bajada { max-width: 34em; }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 3px;
    border: 1.5px solid transparent;
    font-family: var(--font-texto);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn .ico { width: 20px; height: 20px; }
.btn-oro { background: var(--gold); border-color: var(--gold); color: var(--sobre-oro); }
.btn-oro:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-borde { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-borde:hover { background: var(--gold); color: var(--sobre-oro); }

.enlace {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 200ms var(--ease-out);
}
.enlace:hover { color: var(--gold); }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
}

/* Cuadro de rotulo de plano. */
.rotulo {
    border: 1px solid var(--line-strong);
    border-radius: 3px;
}
.rotulo > div {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.4;
}
.rotulo > div:last-child { border-bottom: 0; }
.rotulo dt { color: var(--muted); }
.rotulo dd { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   PORTADA "EL PLANO"
   ========================================================================== */
.portada-escena { position: relative; background: var(--bg); }

.portada {
    /* Tamanos de la composicion en escritorio. A 1440x900 el titular mide 662 px:
       tres lineas con una fuente de unos 145 px. */
    --titular-w: min(46vw, 75vh, 820px);
    /* El titular queda a la altura del centro del globo. */
    --pt: clamp(88px, 18vh, 190px);
    --etiqueta-h: 16px;
    --etiqueta-mb: 14px;
    --cota-h: 24px;
    --cota-mb: 10px;
    --globo: min(38vw, 64vh, 640px);
    --globo-derecha: calc(var(--margen) * 0.45);
    --globo-arriba: clamp(60px, 9vh, 96px);
    position: relative;
    /* vh y no svh: en iPhone es la altura con la barra de Safari oculta. Asi la portada
       sigue llenando la pantalla cuando la barra se esconde al hacer scroll. */
    min-height: 100vh;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}
@supports (height: 1svh) {
    .portada {
        --titular-w: min(46vw, 75svh, 820px);
        --pt: clamp(88px, 18svh, 190px);
        --globo: min(38vw, 64svh, 640px);
        --globo-arriba: clamp(60px, 9svh, 96px);
    }
}
/* La escena de scroll solo existe con GSAP cargado (.js-anim). Si la portada es mas
   alta que la pantalla, primero se recorre entera y recien ahi queda fija. */
.portada-pista { display: none; }
.js-anim .portada-pista { display: block; height: 110vh; }
.js-anim .portada {
    position: sticky;
    top: 0;
    top: min(0px, calc(100vh - var(--portada-alto, 100vh)));
}

.portada-fondo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Grilla alineada al titular: en X, una linea mayor pasa por su margen izquierdo; en
   Y, otra pasa por la primera linea base (0,1765 = base / ancho, del generador). */
.portada-grilla {
    position: absolute;
    inset: 0;
    background-image: var(--grilla-capas);
    background-size: var(--grilla-tamanos);
    --gx: var(--margen);
    --gy: calc(var(--pt) + var(--etiqueta-h) + var(--etiqueta-mb) + var(--cota-h) + var(--cota-mb) + var(--titular-w) * 0.1765);
    background-position: var(--gx) var(--gy), var(--gx) var(--gy), var(--gx) var(--gy), var(--gx) var(--gy);
}
.portada-vineta {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 88% 88% at 50% 46%, rgba(13, 29, 59, 0) 52%, rgba(7, 18, 38, 0.78) 100%);
}
.portada-grano {
    position: absolute;
    inset: 0;
    background-image: url('../img/grano.png');
    background-size: 96px 96px;
}
/* Brillo dorado muy tenue que sigue al mouse (js/sitio.js, solo puntero fino). Es un
   circulo fijo que se mueve con transform: no se repinta el fondo. */
.portada-brillo {
    position: absolute;
    top: 0; left: 0;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.11) 0%, rgba(212, 175, 55, 0) 68%);
    opacity: 0;
    transform: translate(-360px, -360px);
    transition: opacity 700ms var(--ease-out), transform 500ms var(--ease-out);
    pointer-events: none;
}
.portada.con-brillo .portada-brillo { opacity: 1; }

.portada-contenido {
    position: relative;
    z-index: 1;
    min-height: inherit;
    padding: var(--pt) var(--margen) clamp(28px, 6vh, 64px);
}
.portada-texto {
    position: relative;
    z-index: 2;
    width: var(--titular-w);
}

/* Cota de plano sobre el titular. */
.cota {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--cota-h);
    margin-bottom: var(--cota-mb);
    color: var(--draft);
    font-size: 14px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cota-linea {
    position: relative;
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}
.cota-linea::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 1px;
    height: 13px;
    background: currentColor;
}
.cota-linea:first-child::after { left: 0; }
.cota-linea:last-child::after { right: 0; }
.cota-valor:empty { display: none; }

.titular { position: relative; display: block; font-weight: inherit; }
.titular-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.tinta { fill: var(--ink); }
.contorno {
    fill: none;
    stroke: var(--draft);
    stroke-width: 1.3;
    stroke-linejoin: round;
    opacity: 0;
}
.lapiz { fill: var(--gold); opacity: 0; }

/* Guias de construccion: cruzan toda la pantalla y quedan suaves. */
.guias { position: absolute; inset: 0; pointer-events: none; }
.guia { position: absolute; display: block; background: var(--draft); opacity: 0.2; }
.guia-h {
    left: calc(-1 * var(--margen));
    width: 100vw;
    height: 1px;
    transform-origin: 0 50%;
}
.guia-v {
    top: -100vh;
    width: 1px;
    height: 300vh;
    transform-origin: 50% 33%;
}
.guia-izquierda { left: 0; }
.guia-derecha { left: 100%; }

.portada-bajada {
    max-width: 34em;
    margin-top: clamp(18px, 3vh, 30px);
    color: var(--nav);
    font-size: clamp(17px, 1.35vw, 19.5px);
    line-height: 1.55;
}
.portada-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: clamp(18px, 3.4vh, 34px);
}
.enlace-portada { display: inline-block; padding: 10px 2px; }
.btn-relleno { display: none; }
.btn-contenido { position: relative; display: inline-flex; align-items: center; gap: 10px; }

/* Rotulo sobre la cota, en monoespaciada. Altura fija: la grilla se alinea con ella. */
.portada-etiqueta {
    height: var(--etiqueta-h);
    margin-bottom: var(--etiqueta-mb);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--draft);
}
.portada-disponible {
    margin-top: clamp(16px, 2.6vh, 26px);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.portada-disponible::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; background: var(--gold); }
/* "Ver reel": oculto hasta que exista el video (MOSTRAR_REEL en data/sitio.json). */
.btn-reel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--font-texto);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-reel .ico { width: 36px; height: 36px; padding: 9px 7px 9px 11px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); }
.desliza-flecha { display: inline-block; animation: rebote 1.6s ease-in-out infinite; }
@keyframes rebote { 50% { transform: translateY(4px); } }
.portada-desliza.oculto { opacity: 0; }
.portada-desliza {
    transition: opacity 400ms var(--ease-out);
    position: absolute;
    z-index: 2;
    left: var(--margen);
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--draft);
}

/* Globo. Sus tamanos estan definidos en .portada. */
.globo-marco {
    position: absolute;
    z-index: 1;
    top: var(--globo-arriba);
    right: var(--globo-derecha);
    width: var(--globo);
    aspect-ratio: 1;
}
.portada-luz {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180%;
    aspect-ratio: 1;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(22, 46, 90, 0.95) 0%, rgba(22, 46, 90, 0.6) 36%, rgba(22, 46, 90, 0) 68%);
}
.globo-svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.globo-borde { fill: none; stroke: var(--draft); stroke-width: 1.5; }
.meridiano, .paralelo { fill: none; stroke: var(--draft); stroke-opacity: 0.5; stroke-width: 1; }
.orbita { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.orbitas-atras .orbita { stroke-opacity: 0.55; }
.orbita-2 { stroke-opacity: 0.8; }
.satelite { fill: var(--gold); }
.globo-construccion { fill: none; stroke: var(--draft); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 3 7; }
.globo-eje { stroke: var(--draft); stroke-opacity: 0.22; stroke-width: 1; stroke-dasharray: 14 5 2 5; }
.globo-centro { stroke: var(--ink); stroke-width: 1; }
.globo-radio-linea { stroke: var(--ink); stroke-opacity: 0.8; stroke-width: 1; }
.globo-radio {
    position: absolute;
    left: 61%;
    top: 40%;
    transform: translate(-50%, -135%) rotate(-40deg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.globo-radio:empty { display: none; }

.rotulo-portada {
    position: absolute;
    z-index: 2;
    right: var(--margen);
    bottom: clamp(28px, 6vh, 64px);
    width: clamp(300px, 25vw, 360px);
    background: rgba(10, 23, 48, 0.72);
}

/* "Elige tu sitio.": ocupa la ultima pantalla de la portada, centrado. */
.elige {
    position: absolute;
    z-index: 3;
    left: 0; right: 0; bottom: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(44px, 6.2vw, 92px);
    line-height: 0.94;
    color: var(--ink);
    text-wrap: initial;
}
.elige span { display: block; max-width: 11ch; opacity: 0; text-align: center; }

/* Celular y tablet: titular a lo ancho, globo chico entre los botones y el rotulo,
   solo las guias de las lineas base. */
@media (max-width: 899.98px) {
    .portada {
        --titular-w: calc(100vw - 2 * var(--margen));
        --pt: 84px;
    }
    @supports (height: 1svh) {
        .portada { --titular-w: calc(100vw - 2 * var(--margen)); --pt: 84px; }
    }
    .portada-contenido {
        display: flex;
        flex-direction: column;
        padding-bottom: 28px;
    }
    .contorno { stroke-width: 2.4; }
    .guia-techo1, .guia-equis2, .guia-equis3, .guia-v { display: none; }
    .globo-marco {
        position: relative;
        top: auto; right: auto;
        align-self: center;
        width: clamp(150px, 42vw, 240px);
        margin-block: 12px 6px;
    }
    .globo-radio, .globo-radio-linea, .globo-eje { display: none; }
    .rotulo-portada {
        position: relative;
        right: auto; bottom: auto;
        width: 100%;
    }
    .portada-desliza { position: static; margin-top: 20px; }
}
/* En celular el rotulo de la portada ocupa dos lineas. */
@media (max-width: 600px) {
    .portada { --etiqueta-h: 32px; }
}

/* ==========================================================================
   TRES COLUMNAS (metricas de "Para quien" y principios de "El estudio")
   ========================================================================== */
.tres-columnas {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin-top: clamp(40px, 5vw, 64px);
}
.tres-columnas h3,
.metrica-valor {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 2.3vw, 32px);
    line-height: 1.05;
}
.metrica-valor { font-size: clamp(30px, 2.8vw, 40px); }
.metrica-valor.tipeando::after {
    content: '';
    display: inline-block;
    width: 0.08em;
    height: 0.86em;
    margin-left: 0.1em;
    vertical-align: -0.06em;
    background: var(--gold);
    animation: parpadeo 700ms steps(2) infinite;
}
@keyframes parpadeo { to { opacity: 0; } }
.tres-columnas p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 600px) {
    .tres-columnas { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================================
   PARA QUIEN Y EL ESTUDIO
   ========================================================================== */
/* La frase filtro: una nota de plano con una linea dorada al costado. */
.filtro {
    max-width: 46em;
    margin-top: clamp(40px, 5vw, 64px);
    padding-left: 22px;
    border-left: 2px solid var(--gold);
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.5;
    color: var(--ink);
}
/* Foto y firma del fundador: oculto (hidden) hasta que exista la foto. */
.estudio-firma { display: flex; align-items: center; gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.estudio-firma img { width: 72px; height: 72px; border: 1px solid var(--line-strong); border-radius: 50%; object-fit: cover; }
.estudio-firma p { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.estudio-firma span { color: var(--muted); }

/* ==========================================================================
   SERVICIOS (sin precios: cada proyecto se cotiza a medida)
   ========================================================================== */
.servicios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
}
.servicio {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px) clamp(16px, 1.6vw, 22px);
}
.servicio-nombre {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1;
}
.servicio-para { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.servicio-lista { list-style: none; margin-top: 20px; }
.servicio-lista li {
    display: flex;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.45;
}
.servicio-lista li:last-child { border-bottom: 1px solid var(--line); }
/* Cuatro columnas: la descripcion reserva espacio para que las listas partan parejas. */
@media (min-width: 1280px) {
    .servicio-para { min-height: 7.5em; }
}
.servicios-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: clamp(32px, 4vw, 48px);
}
.servicios-nota { max-width: 44em; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 1279.98px) {
    .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .servicios { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   PORTAFOLIO (home)
   ========================================================================== */
.portafolio-escena {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
/* En el HTML el monitor va primero (celular: arriba de la lista). */
.monitor-columna { grid-column: 2; grid-row: 1; position: sticky; top: max(90px, calc(50vh - 17rem)); }
.portafolio-lista { grid-column: 1; grid-row: 1; }

.filas-proyectos { list-style: none; border-top: 1px solid var(--line); }
.fila-proyecto {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(28px, 4.6vh, 46px) 2px;
    border-bottom: 1px solid var(--line);
    color: var(--apagado);
    text-decoration: none;
    transition: color 250ms var(--ease-out);
}
.fila-nombre {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1;
}
.fila-datos {
    flex: 0 1 36%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}
.fila-rubro {
    color: var(--apagado-chico);
    font-size: 15px;
    line-height: 1.3;
    transition: color 250ms var(--ease-out);
}
.fila-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apagado-chico);
    transition: color 250ms var(--ease-out);
}
/* Fila activa: en blanco, con una linea dorada debajo que crece con scaleX. */
.fila-proyecto::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -1px;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 450ms var(--ease-out-expo);
}
.fila-proyecto.activa { color: var(--ink); }
.fila-proyecto.activa .fila-rubro,
.fila-proyecto.activa .fila-meta { color: var(--muted); }
.fila-proyecto.activa::after { transform: none; }
@media (hover: hover) {
    .fila-proyecto:hover { color: var(--ink); }
    .fila-proyecto:hover::after { transform: none; }
}

.monitor {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}
.monitor-barra {
    display: flex;
    gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
}
.monitor-barra span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(143, 180, 255, 0.32);
}
.monitor-pantalla {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}
.monitor-captura {
    position: absolute;
    inset: 0;
    display: block;
    visibility: hidden;
}
.monitor-captura.activa { visibility: visible; }
.monitor-captura img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
/* Linea dorada que barre la pantalla al cambiar de proyecto (js/animaciones.js). */
.monitor-linea {
    position: absolute;
    z-index: 1000;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    opacity: 0;
}
.monitor-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
    margin-top: 16px;
}
.monitor-nombre {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.05;
}
.monitor-enlace { display: inline-block; padding: 8px 0; }
.ver-todos { display: inline-block; margin-top: 18px; padding: 10px 0; }

@media (max-width: 899.98px) {
    .portafolio-escena { grid-template-columns: 1fr; gap: 28px; }
    .monitor-columna { grid-column: 1; grid-row: auto; position: static; }
    .portafolio-lista { grid-column: 1; grid-row: auto; }
    .fila-proyecto { padding: 20px 2px; cursor: pointer; }
    /* En celular la fila activa cambia al tocar; hover no aplica. */
}

/* ==========================================================================
   FRASE GRANDE
   ========================================================================== */
.frase { padding: clamp(90px, 13vw, 190px) var(--margen); }
/* Sin text-wrap: balance: interfiere con la division en palabras de SplitText. */
.frase-texto {
    max-width: 13ch;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(50px, 8.2vw, 118px);
    line-height: 0.94;
    color: var(--ink);
    text-wrap: wrap;
}

/* ==========================================================================
   EL ESTANDAR: tabla tipo plano
   ========================================================================== */
.estandar-tabla {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line-strong);
    border-radius: 3px;
}
.estandar-tabla li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 18px clamp(16px, 2vw, 26px);
    border-bottom: 1px solid var(--line);
    line-height: 1.4;
}
.estandar-tabla li:nth-child(odd) { border-right: 1px solid var(--line); }
.estandar-tabla li:nth-last-child(-n + 2) { border-bottom: 0; }
.estandar-tabla li > strong { grid-column: 2; font-weight: 600; font-size: 17px; color: var(--ink); }
.estandar-tabla li > span { grid-column: 2; margin-top: 2px; font-size: 15px; color: var(--muted); }
/* Check de trazo: pathLength="1" normaliza el largo, asi dibujarlo es solo
   stroke-dashoffset de 1,05 a 0 (el 0,05 evita el punto de la punta redonda). */
.check { grid-row: 1 / span 2; width: 24px; height: 24px; }
.check path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1 2;
    stroke-dashoffset: 0;
}
/* Cuatro pilares: titulo grande y un texto mas largo. */
.pilares li { padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px); column-gap: 18px; }
.pilares strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.3vw, 32px); line-height: 1; }
.pilares li > span { max-width: 40em; margin-top: 10px; font-size: 16px; line-height: 1.6; }
.pilares .check { width: 26px; height: 26px; margin-top: 1px; }
.estandar-nota {
    max-width: 62ch;
    margin-top: 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 760px) {
    .estandar-tabla { grid-template-columns: 1fr; }
    .estandar-tabla li:nth-child(odd) { border-right: 0; }
    .estandar-tabla li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   COMO TRABAJAMOS
   ==========================================================================
   Seis pasos en vertical con la cabeza fija a la izquierda. Cada paso (menos el
   ultimo) lleva un tramo de linea desde su nodo hasta el del siguiente; con el scroll
   el relleno avanza tramo a tramo y enciende el nodo y el numero. Lo terminado es el
   estado por defecto: asi se ve sin JS o con movimiento reducido. */
.proceso-escena {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.proceso-cabeza { position: sticky; top: 100px; }
.proceso-cabeza .bajada { max-width: 30em; margin-top: 18px; }
.proceso-pasos {
    --nodo: 11px;
    list-style: none;
}
.proceso-paso {
    position: relative;
    display: grid;
    grid-template-columns: clamp(60px, 6vw, 84px) minmax(0, 1fr);
    column-gap: clamp(18px, 2.6vw, 36px);
    padding: 0 0 clamp(36px, 4.5vw, 60px) clamp(28px, 3vw, 44px);
}
.proceso-paso:last-child { padding-bottom: 0; }
.paso-tramo {
    position: absolute;
    top: 14px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: var(--line-strong);
    pointer-events: none;
}
.paso-relleno {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform-origin: 50% 0;
}
.js-anim .paso-relleno { transform: scaleY(0); }
.paso-nodo {
    position: absolute;
    top: 9px;
    left: 0;
    width: var(--nodo);
    height: var(--nodo);
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--gold);
    transition: border-color 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.paso-numero {
    grid-row: 1 / span 2;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(44px, 4.2vw, 60px);
    line-height: 0.9;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    transition: color 300ms var(--ease-out);
}
.proceso-paso h3 {
    margin-top: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(26px, 2.3vw, 32px);
    line-height: 1;
}
.proceso-paso p { max-width: 46ch; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }
/* Antes de llegar: nodo vacio y numero apagado. */
.js-anim .proceso-paso:not(.encendido) .paso-nodo { border-color: var(--draft); background: var(--bg); }
.js-anim .proceso-paso:not(.encendido) .paso-numero { color: var(--apagado); }
.proceso-cierre {
    max-width: 34em;
    margin-top: clamp(36px, 4vw, 56px);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: clamp(17px, 1.35vw, 19.5px);
    line-height: 1.55;
}
.proceso-cta { display: inline-block; margin-top: 14px; padding: 8px 0; font-weight: 600; }
@media (max-width: 899.98px) {
    .proceso-escena { grid-template-columns: 1fr; gap: 36px; }
    .proceso-cabeza { position: static; }
    .proceso-paso { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding-left: 24px; }
    .paso-numero { font-size: 40px; }
}

/* ==========================================================================
   TESTIMONIOS (oculta con hidden hasta tener reseñas reales)
   ========================================================================== */
.testimonios-lista {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
}
.testimonio { padding: 28px; }
.testimonio figure { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.estrellas { display: flex; gap: 3px; color: var(--gold); font-size: 17px; }
.testimonio-cita p { font-size: 17px; line-height: 1.55; }
.testimonio figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testimonio-nombre { font-weight: 700; }
.testimonio-negocio { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   PREGUNTAS FRECUENTES
   ========================================================================== */
.faq-escena {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.faq-cabeza { position: sticky; top: 100px; }
.faq-cabeza .bajada { margin-top: 18px; }
.faq-cierre { margin-top: 18px; font-size: 16px; }
.faq-cierre .enlace { display: inline-block; padding: 8px 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 2px;
    list-style: none;
    cursor: pointer;
    font-size: clamp(17px, 1.35vw, 19px);
    font-weight: 600;
    line-height: 1.35;
    transition: color 200ms var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--gold); }
@media (hover: hover) {
    .faq-item summary:hover { color: var(--gold-hover); }
}
/* Signo + celeste hecho con dos lineas; al abrir, la vertical se aplana y queda un -. */
.faq-icono { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icono::before,
.faq-icono::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 16px;
    height: 1.5px;
    margin: auto;
    background: var(--draft);
    transition: transform 300ms var(--ease-out-expo);
}
.faq-icono::after { transform: rotate(90deg); }
.faq-item[open] .faq-icono::after { transform: rotate(90deg) scaleX(0); }
.faq-respuesta { padding: 0 38px 22px 2px; }
.js-anim .faq-respuesta { overflow: hidden; }
.faq-respuesta p { color: var(--muted); font-size: 16px; line-height: 1.65; }
@media (max-width: 899.98px) {
    .faq-escena { grid-template-columns: 1fr; }
    .faq-cabeza { position: static; }
    .faq-respuesta { padding-right: 2px; }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contacto {
    position: relative;
    isolation: isolate;
    border-top: 1px solid var(--line);
}
/* Grilla de plano suave, desvanecida en los bordes. */
.contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grilla-capas);
    background-size: var(--grilla-tamanos);
    background-position: var(--margen) 0;
    -webkit-mask-image: radial-gradient(ellipse 68% 72% at 50% 50%, #000 15%, transparent 100%);
    mask-image: radial-gradient(ellipse 68% 72% at 50% 50%, #000 15%, transparent 100%);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.contact-info .bajada { margin-top: 18px; max-width: 30em; }
.rotulo-contacto {
    max-width: 420px;
    margin-top: clamp(24px, 3vw, 40px);
    background: rgba(10, 23, 48, 0.72);
}
.rotulo-contacto > div { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); align-items: center; }
.rotulo-contacto .enlace { font-weight: 600; word-break: break-word; }
.contact-form { padding: clamp(22px, 3vw, 40px); }
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid rgba(143, 180, 255, 0.28);
    border-radius: 3px;
    color: var(--ink);
    font-family: var(--font-texto);
    /* 16 px: con menos, iPhone hace zoom al enfocar el campo. */
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 200ms var(--ease-out);
}
.input-group textarea { display: block; resize: vertical; }
.input-group ::placeholder { color: var(--apagado-chico); opacity: 1; }
.input-group select {
    width: 100%;
    padding: 14px 44px 14px 14px;
    background: var(--bg-alt) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%238FB4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
    border: 1px solid rgba(143, 180, 255, 0.28);
    border-radius: 3px;
    color: var(--ink);
    font-family: var(--font-texto);
    font-size: 16px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 200ms var(--ease-out);
}
.input-group select:focus { outline: 1px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.campos-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
/* Las dos etiquetas reservan dos lineas, asi los campos quedan a la misma altura. */
.campos-2 .input-group label { display: flex; align-items: flex-end; min-height: 2.7em; }
.opcional { font-weight: 400; }
.ayuda { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 600px) {
    .campos-2 { grid-template-columns: 1fr; }
}
.input-group input:focus,
.input-group textarea:focus {
    outline: 1px solid var(--gold);
    outline-offset: 0;
    border-color: var(--gold);
}
.input-group input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0 100px var(--bg-alt) inset;
}
.submit-btn { width: 100%; }
.submit-btn:disabled { opacity: 0.65; cursor: wait; }
.form-alt-link { display: inline-block; margin-top: 14px; padding: 8px 0; font-size: 15px; }
.form-success, .form-error { display: none; padding: 20px 4px; }
.form-success:focus { outline: none; }
.form-success > .ico, .form-error > .ico { font-size: 36px; margin-bottom: 14px; color: var(--gold); }
.form-success h3, .form-error h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    margin-bottom: 8px;
}
.form-success p, .form-error p { color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 899.98px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pie {
    background: var(--footer);
    padding: clamp(52px, 6vw, 84px) var(--margen) 26px;
}
.pie-conversemos {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1em;
    margin-bottom: clamp(40px, 5vw, 72px);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(64px, 11vw, 168px);
    line-height: 0.9;
    color: var(--ink);
    text-decoration: none;
}
.pie-conversemos-texto { position: relative; }
.pie-conversemos-texto::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -0.03em;
    height: 0.045em;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 600ms var(--ease-out-expo);
}
.pie-conversemos:hover .pie-conversemos-texto::after,
.pie-conversemos:focus-visible .pie-conversemos-texto::after { transform: none; }
.pie-conversemos-flecha {
    font-family: var(--font-texto);
    font-size: 0.42em;
    font-weight: 700;
    color: var(--gold);
    transition: transform 400ms var(--ease-out-expo);
}
.pie-conversemos:hover .pie-conversemos-flecha { transform: translate(0.12em, -0.12em); }
.pie-columnas {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 36px clamp(32px, 5vw, 80px);
    padding-bottom: clamp(36px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
}
.pie-descriptor { margin-top: 16px; max-width: 26em; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pie-eslogan { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); }
.pie-columna { display: flex; flex-direction: column; align-items: flex-start; }
.pie-columna h2 {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}
.pie-columna a {
    padding: 7px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 200ms var(--ease-out);
}
.pie-columna a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pie-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.pie-legal a { display: inline-block; padding: 8px 0; color: var(--muted); }
.pie-legal a:hover { color: var(--ink); }
@media (max-width: 760px) {
    .pie-columnas { grid-template-columns: 1fr; }
    /* El boton flotante de WhatsApp no tapa el enlace legal. */
    .pie-legal { flex-direction: column; align-items: flex-start; padding-bottom: 64px; }
}

/* ==========================================================================
   BOTON FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: var(--capa-flotante);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--sobre-oro);
    text-decoration: none;
    transition: transform 200ms var(--ease-out);
}
.whatsapp-btn .ico { width: 28px; height: 28px; }
@media (hover: hover) {
    .whatsapp-btn:hover { transform: translateY(-3px); }
}
.whatsapp-btn:active { transform: scale(0.96); }

/* ==========================================================================
   REEL (overlay de video)
   ========================================================================== */
.reel {
    width: min(92vw, 1100px);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}
.reel::backdrop { background: rgba(7, 18, 38, 0.9); }
.reel[open] .reel-marco { animation: reel-entra 500ms var(--ease-out-expo) both; }
@keyframes reel-entra { from { opacity: 0; transform: scale(0.96); } }
.reel-marco { position: relative; }
.reel-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}
.reel-tiempo {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--draft);
}
.reel-cerrar {
    position: absolute;
    top: -54px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.reel-cerrar:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   MODAL DE POLITICA DE PRIVACIDAD
   ========================================================================== */
#privacy-modal {
    position: fixed;
    inset: 0;
    z-index: var(--capa-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 18, 38, 0.84);
    opacity: 0;
    visibility: hidden;
    overscroll-behavior: contain;
    transition: opacity 300ms var(--ease-out), visibility 300ms var(--ease-out);
}
#privacy-modal.abierto { opacity: 1; visibility: visible; }
.privacy-box {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: clamp(24px, 4vw, 44px);
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}
.close-privacy-btn {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    transition: color 200ms var(--ease-out);
}
.close-privacy-btn:hover { color: var(--ink); }
.privacy-box h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 44px;
    line-height: 0.94;
    margin-bottom: 18px;
}
.privacy-box h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.05; margin: 22px 0 8px; }
.privacy-box p, .privacy-box li { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.privacy-box strong { color: var(--ink); }
.privacy-box ul { margin: 0 0 14px 20px; }

/* ==========================================================================
   PORTAFOLIO.HTML
   ========================================================================== */
.pagina-cabeza {
    position: relative;
    isolation: isolate;
    padding: clamp(130px, 15vw, 190px) var(--margen) clamp(50px, 6vw, 80px);
}
.pagina-cabeza::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grilla-capas);
    background-size: var(--grilla-tamanos);
    background-position: var(--margen) 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.pagina-cabeza .bajada { max-width: 34em; margin-top: 18px; }
.pagina-cabeza .btn { margin-top: 26px; }

.galeria {
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 9vw, 130px);
    padding: clamp(24px, 3vw, 40px) var(--margen) clamp(80px, 10.5vw, 150px);
}
.proyecto {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    scroll-margin-top: 110px;
}
.proyecto.imagen-derecha { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.proyecto.imagen-derecha .proyecto-marco { order: 2; }
.proyecto-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}
.proyecto-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proyecto-texto h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 10px;
    text-wrap: balance;
}
.proyecto-rubro { font-size: 17px; margin-bottom: 10px; }
.proyecto-desc { max-width: 46ch; margin-bottom: 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.proyecto-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin-bottom: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.proyecto-datos dt { margin-bottom: 2px; color: var(--muted); font-size: 14px; }
.proyecto-datos dd { font-size: 15px; }
.proyecto-enlace { display: inline-block; padding: 8px 0; font-weight: 600; }
/* Mini-caso: reto, solucion y resultado. */
.caso { display: grid; gap: 12px; margin: 18px 0 20px; }
.caso > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.caso dt { padding-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.caso dd { color: var(--muted); font-size: 16px; line-height: 1.6; }
.cierre { padding: clamp(60px, 8vw, 120px) var(--margen); border-top: 1px solid var(--line); }
.cierre .titulo { max-width: 15ch; }
.cierre .btn { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 900px) {
    .proyecto,
    .proyecto.imagen-derecha { grid-template-columns: 1fr; }
    .proyecto.imagen-derecha .proyecto-marco { order: 0; }
}

/* ==========================================================================
   SISTEMA DE ANIMACION
   ==========================================================================
   .intro la pone el script de la cabecera antes del primer pintado: la portada espera
   dibujarse. El subtitulo no se oculta: es el LCP y tiene que pintarse de inmediato
   (un elemento que parte en opacidad 0 no cuenta hasta el siguiente repintado).
   .js-anim tambien va en la cabecera: habilita la escena de scroll y los estados iniciales
   de los checks y del proceso. Sin JS ninguna de las dos existe, y si GSAP no llega se
   quitan a los 2,5 s: la pagina queda completa. */
.intro .guia,
.intro .portada-etiqueta,
.intro .portada-disponible,
.intro .portada-desliza,
.intro .cota,
.intro .tinta,
.intro .globo-svg,
.intro .globo-radio,
.intro .portada-acciones,
.intro .rotulo-portada { opacity: 0; }

/* La grilla entra con el primer pintado, sin esperar a GSAP. */
@keyframes fundido { from { opacity: 0; } }
.intro .portada-grilla { animation: fundido 500ms linear both; }

/* Trazos por dibujar: con pathLength="1" no hay que medir nada. El 1,05 evita el punto
   que deja la punta redonda. Al quitar .intro desaparece el guion y queda el trazo entero. */
.intro .contorno path,
.intro .globo-borde,
.intro .paralelo,
.intro .orbita {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.05;
}

/* El boton de la portada aparece como contorno y se rellena: durante la intro el
   relleno es una capa aparte que crece con scaleX. */
.intro .boton-portada { transition: none; }
.intro .btn-relleno {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.js-anim .estandar-tabla li:not(.revelado) .check path { stroke-dashoffset: 1.05; }

/* Reveal liviano: solo CSS + IntersectionObserver (js/sitio.js). Los hijos de un
   data-reveal-grupo entran escalonados (el retraso lo pone el script). */
.js-anim [data-reveal] { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js-anim [data-reveal]:not(.visible) { opacity: 0; transform: translateY(24px); }

/* Titulos de seccion: js/sitio.js los parte en lineas reales y cada una sube dentro
   de su mascara. Los titulos que ya estan a la vista al cargar no se tocan. */
.linea { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0 0.12em; margin: -0.08em 0 -0.12em; }
.linea-int { display: block; }
.js-anim .con-lineas .linea-int { transition: transform 900ms var(--ease-out-expo); }
.js-anim .con-lineas:not(.visible) .linea-int { transform: translateY(112%); }

/* Scroll suave (Lenis), solo en escritorio con puntero fino. */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* Transicion entre paginas (View Transitions, progresivo): fundido y 20 px. El opt-in
   (@view-transition { navigation: auto }) va en un <style> de la cabecera de cada pagina. */
@keyframes vt-salida { to { opacity: 0; transform: translateY(-20px); } }
@keyframes vt-entrada { from { opacity: 0; transform: translateY(20px); } }
::view-transition-old(root) { animation: vt-salida 350ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-entrada 350ms var(--ease-out) both; }

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ==========================================================================
   Va al final a proposito. Todo queda en su estado final y nada se mueve solo. */
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .orbit-1,
    .orbit-2,
    .desliza-flecha,
    .reel[open] .reel-marco { animation: none; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
