/* fraunces-vietnamese-opsz-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/fraunces-vietnamese-opsz-normal.Czevyj-6.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* fraunces-latin-ext-opsz-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/fraunces-latin-ext-opsz-normal.CJcjJNj7.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* fraunces-latin-opsz-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/fraunces-latin-opsz-normal.DihXLNYH.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* dm-sans-latin-ext-opsz-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/_astro/dm-sans-latin-ext-opsz-normal.oos9povj.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-sans-latin-opsz-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/_astro/dm-sans-latin-opsz-normal.Bf69Tn_J.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* Estilos de la web, pasados tal cual desde borradores/home-animada-v2.html. */

/* Fuentes de respaldo con las medidas de Fraunces y DM Sans (ancho, alto y bajada, medidos en Chromium sobre texto de la web):
   mientras la fuente real no llegó, el texto ocupa casi lo mismo, así que al cambiar de fuente no se corre nada (sin saltos
   ni desplazamientos que cuenten para el CLS). Cuando la fuente real está, estas no se usan. Donde no existe Georgia o Arial
   (Android), se ignoran y queda la lista de siempre. Cubren solo los caracteres del subconjunto latino de las fuentes reales
   (mismo unicode-range que @fontsource): lo que esas fuentes no tienen (flechas, emojis) sigue saliendo de la lista de siempre. */
@font-face { font-family: "Fraunces Respaldo"; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: local("Georgia"); size-adjust: 97.2%; ascent-override: 101.3%; descent-override: 25.7%; line-gap-override: 0%; }
/* Fraunces cambia de proporción con el tamaño (eje óptico): en los titulares gigantes y en el logo (corte 144) es ~15 % más
   angosta que Georgia, así que esos usan un respaldo propio (--f-display-144 y, en pantallas anchas, --f-display-grande). */
@font-face { font-family: "Fraunces Respaldo XL"; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: local("Georgia"); size-adjust: 84.5%; ascent-override: 116.4%; descent-override: 29.6%; line-gap-override: 0%; }
@font-face { font-family: "DM Sans Respaldo"; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: local("Arial"); size-adjust: 103.6%; ascent-override: 96.5%; descent-override: 30.2%; line-gap-override: 0%; }
/* Base que traía el envoltorio del borrador (va primero: el resto la pisa donde corresponde) */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}
img{max-width:100%}
[hidden]:not([hidden=until-found i]){display:none!important}

/* Layout: home de una sola columna; azul noche en intro, hero, productos y contacto; blanco y gris frío en el resto.
   El avatar es el hilo conductor: aterriza en el hero, sigue al cursor, y al bajar vuela al botón del chat,
   que le cambia el globo según la sección. Movimiento con resortes y máscaras, nunca fundidos genéricos. */
:root {
  --night: #0B1020;
  --night-2: #121A33;
  --night-3: #17213F;
  --electric: #3D6BFF;
  --electric-ink: #3D5BCC;   /* azul para texto chico sobre claro (contraste AA) */
  --electric-soft: #8EA6FF;  /* azul para texto chico sobre azul noche */
  --electric-btn: #3863F0;   /* fondo de los botones con texto blanco (contraste AA; --electric da 4,3:1) */
  --electric-btn-hover: #2A4FE0; /* hover de los botones: más oscuro, texto blanco 6,4:1 */
  --ink: #0B1020;
  --ink-2: #4A5470;
  --muted: #AEB6CC;
  --paper: #FFFFFF;
  --cool: #F3F4F8;
  --rule: #DDE1EA;
  --f-display: "Fraunces Variable", "Fraunces Respaldo", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-display-144: "Fraunces Variable", "Fraunces Respaldo XL", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-display-grande: var(--f-display);
  --f-text: "DM Sans Variable", "DM Sans Respaldo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
/* desde 1100 px los titulares gigantes pasan los ~125 px, donde Fraunces ya va en su corte más angosto */
@media (min-width: 1100px) { :root { --f-display-grande: var(--f-display-144); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; }
.gut { padding-left: max(16px, 4vw, env(safe-area-inset-left, 0px)); padding-right: max(16px, 4vw, env(safe-area-inset-right, 0px)); }

/* ---------- Botones: el texto queda quieto; con el mouse solo cambia el color ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 500 16px/1 var(--f-text); text-decoration: none; overflow: hidden; cursor: pointer; border: 0; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn-primary { background: var(--electric-btn); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(174,182,204,.45); }
/* el contorneado sobre fondo blanco: el mismo .btn-ghost, en tinta */
.btn-claro { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #C9CFDC; }
/* el hover solo con mouse: en el celular, después de tocar, el botón quedaba marcado */
@media (hover: hover) {
  .btn-primary:hover { background: var(--electric-btn-hover); }
  .btn-ghost:hover, .btn-claro:hover { background: var(--electric-btn-hover); color: #fff; box-shadow: inset 0 0 0 1px var(--electric-btn-hover); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Navegación ---------- */
/* Barra de ancho completo, en dos mitades simétricas (como Goodpatch): logo + secciones a la izquierda, estudio + acción a la derecha.
   Arriba de todo es transparente sobre el hero; al bajar toma fondo azul noche. */
header.nav { position: sticky; top: 0; z-index: 40; color: #fff; padding-top: env(safe-area-inset-top, 0px); background: rgba(11,16,32,0); border-bottom: 1px solid rgba(255,255,255,.16); transition: background .3s cubic-bezier(.33,1,.68,1), border-color .3s; }
header.nav.solid { background: rgba(11,16,32,.97); border-bottom-color: rgba(174,182,204,.14); }
header.nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; padding: 0 max(16px, 2.8vw, env(safe-area-inset-right, 0px)) 0 max(16px, 2.8vw, env(safe-area-inset-left, 0px)); }
header.nav .side { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); min-width: 0; }
header.nav .sep { width: 1px; height: 36px; background: rgba(255,255,255,.22); flex: none; }
/* mismo corte de Fraunces que el intro: el "tamaño óptico" grande (144), más fino y contrastado.
   Sin esto, a 30 px la fuente elige su corte de texto y la palabra cambia de forma al aterrizar. */
.logo { font-family: var(--f-display-144); font-size: 30px; line-height: 1; color: #fff; text-decoration: none; font-optical-sizing: none; font-variation-settings: "opsz" 144; }
.fly-word, .intro .wm { font-optical-sizing: none; font-variation-settings: "opsz" 144; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a.l { color: rgba(255,255,255,.86); text-decoration: none; position: relative; padding: 8px 0; }
.nav-links a.l::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--out); }
.nav-links a.l:hover { color: #fff; }
.nav-links a.l:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 42px; padding: 0 22px; font-size: 15px; }


/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 128px); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 70% at 22% 60%, #17213F 0%, transparent 70%); pointer-events: none; }
.hero .grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 72px; }
.stagebox { flex: 1 1 300px; max-width: 400px; position: relative; height: clamp(380px, 46vw, 560px); display: flex; align-items: flex-end; justify-content: center; }
.floor { position: absolute; left: 50%; bottom: 10px; width: 62%; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(61,107,255,.55), rgba(61,107,255,0)); filter: blur(2px); }
.ring { position: absolute; left: 50%; bottom: 12px; width: 60%; height: 24px; transform: translateX(-50%) scale(.2); border-radius: 50%; border: 2px solid rgba(169,188,255,.9); opacity: 0; }
.avatar { position: relative; height: 92%; cursor: pointer; transform-origin: 50% 100%; will-change: transform; background: none; border: 0; padding: 0; }
.avatar img { height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.avatar .inner { height: 100%; transform-origin: 50% 100%; will-change: transform; }
.bubble { position: absolute; z-index: 3; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.35; padding: 13px 17px; border-radius: 18px 18px 18px 4px; box-shadow: 0 14px 34px rgba(0,0,0,.3); max-width: 210px; transform-origin: 0 100%; transform: scale(0); }
.bubble.show { animation: pop .55s var(--spring) forwards; }
.bubble.hide { animation: unpop .25s ease-in forwards; }
@keyframes pop { from { transform: scale(0) rotate(-8deg); } to { transform: scale(1) rotate(0); } }
@keyframes unpop { from { transform: scale(1); } to { transform: scale(0); } }

.copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.eyebrow.dark { color: var(--ink-2); }
h1.title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 86px); line-height: 1.03; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 58ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
/* palabras que suben desde su máscara. La máscara se agranda por arriba (tildes de mayúsculas) y por abajo
   (descendentes de g, j, p, q, y en Fraunces, que salen hasta ~.16em de la caja) y el margen negativo lo
   compensa, así el layout no se mueve. La palabra arranca corrida su alto más esos dos márgenes: totalmente oculta. */
.w { --mask-arriba: .1em; --mask-abajo: .2em; display: inline-block; overflow: hidden; vertical-align: top; padding-block: var(--mask-arriba) var(--mask-abajo); margin-block: calc(-1 * var(--mask-arriba)) calc(-1 * var(--mask-abajo)); }
.w > span { display: inline-block; transform: translateY(calc(100% + var(--mask-arriba) + var(--mask-abajo))); }
.lines-in .w > span { animation: rise .9s var(--out) forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes rise { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(18px); }
.lines-in .fade-up, .in .fade-up { animation: fadeUp .8s var(--out) forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Cinta de servicios (marquee) ---------- */
.marquee { background: var(--electric); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee .track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-size: clamp(24px, 3vw, 38px); white-space: nowrap; padding-right: 48px; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section.block { padding-block: clamp(72px, 9vw, 120px); }
/* las demos suben por debajo del titular recompuesto mientras todavía está fijo: se lee como una sola sección */
/* el navegador no corrige solo el scroll cuando una sección fija se libera (lo compensa el JS; si no, se corregía dos veces) */
html { overflow-anchor: none; scrollbar-gutter: stable; }
#proyectos { position: relative; z-index: 1; margin-top: -36vh; padding-top: clamp(20px, 3vw, 36px); }
@media (max-width: 760px) { #proyectos { margin-top: -30vh; } }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.005em; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.reveal .w > span { transform: translateY(calc(100% + var(--mask-arriba) + var(--mask-abajo))); }
.reveal.in .w > span { animation: rise .9s var(--out) forwards; animation-delay: calc(var(--d, 0) * 1s); }

/* servicios */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--rule); }
.svc article { position: relative; padding: 36px 32px 40px 0; display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--rule); }
.svc article::before { content: ""; position: absolute; left: 0; right: 32px; top: -1px; height: 2px; background: var(--electric); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--out); }
.svc article:hover::before { transform: scaleX(1); }
.svc h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.svc p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.svc svg path, .svc svg rect, .svc svg circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.svc .in svg path, .svc .in svg rect, .svc .in svg circle,
.svc.in svg path, .svc.in svg rect, .svc.in svg circle { animation: draw 1.2s var(--out) forwards; animation-delay: calc(var(--d, 0) * 1s + .2s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.svc article .ic { transition: transform .5s var(--spring); }
.svc article:hover .ic { transform: translateY(-4px) rotate(-6deg); }

/* productos */
section.dark { background: var(--night); color: #fff; }
.dark .sec-head p { color: var(--muted); }
.prod { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.card { background: var(--night-2); border: 1px solid rgba(174,182,204,.14); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--out), border-color .4s; transform-style: preserve-3d; will-change: transform; }
.card:hover { border-color: rgba(61,107,255,.6); }
.card .shot { background: var(--night-3); padding: 32px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.card .body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.tag { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--electric-soft); }
.card h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.card p.d { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.chip { font-size: 12px; color: var(--ink); background: var(--muted); padding: 3px 10px; border-radius: 999px; }
.more { color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.more i { font-style: normal; transition: transform .4s var(--spring); }
.more:hover i { transform: translateX(6px); }
/* panel del CRM: barras que crecen */
.mock { background: var(--night); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid rgba(174,182,204,.14); }
.mock .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.live { color: #fff; background: var(--electric); padding: 4px 10px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.bars span { flex: 1; background: linear-gradient(#3D6BFF, #2a49b8); border-radius: 6px 6px 2px 2px; height: 0; transition: height 1.1s var(--out); }
.in .bars span { height: var(--h); }
.rowln { height: 12px; border-radius: 8px; background: var(--night-3); }
/* chat del agente: mensajes que aparecen en bucle */
.msg { max-width: 82%; padding: 12px 16px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(10px) scale(.96); }
.msg.u { align-self: flex-start; background: var(--night); border: 1px solid rgba(174,182,204,.14); border-radius: 16px 16px 16px 4px; }
.msg.a { align-self: flex-end; background: var(--electric); border-radius: 16px 16px 4px 16px; }
.msg.on { animation: msgIn .5s var(--spring) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.typing { align-self: flex-end; display: none; gap: 5px; padding: 12px 14px; background: var(--electric); border-radius: 999px; }
.typing.on { display: inline-flex; }
/* el chat del agente tiene alto fijo: antes la tarjeta crecía y se achicaba con cada mensaje y movía toda la página */
#agentCard .shot { height: 300px; min-height: 0 !important; justify-content: flex-start; overflow: hidden; }
@media (max-width: 760px) { #agentCard .shot { height: 340px; } }
.typing b { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot 1s infinite; }
.typing b:nth-child(2) { animation-delay: .15s; } .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* proyectos */
.cool { background: var(--cool); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 500 14px var(--f-text); color: var(--ink); background: transparent; border: 1px solid #C9CFDC; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.projs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.proj { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: opacity .4s, transform .5s var(--out); }
.proj .img { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; border: 1px solid #E3E6EE; cursor: none; }
.proj .img > * { transition: transform .8s var(--out); }
.proj:hover .img > *, .proj:focus-visible .img > * { transform: scale(1.05); }
.proj .tagd { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--electric-ink); }
.proj h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.2; }
.proj p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.demo-chip { font-size: 12px; color: var(--ink-2); border: 1px solid #C9CFDC; padding: 3px 10px; border-radius: 999px; }
.proj .avatar-shot { width: 100%; height: 100%; background: radial-gradient(60% 70% at 50% 60%, #1c2850, #0B1020); display: flex; align-items: flex-end; justify-content: center; }
.proj .avatar-shot img { height: 92%; width: auto; }
/* cursor "Ver" que sigue al mouse sobre las imágenes */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--electric); color: #fff; font: 500 14px var(--f-text); display: flex; align-items: center; justify-content: center; pointer-events: none; transform: scale(0); transition: transform .35s var(--spring); }
.cursor.on { transform: scale(1); }

/* proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.steps.in li::before { animation: grow 1s var(--out) forwards; animation-delay: calc(var(--d) * 1s); }
@keyframes grow { to { transform: scaleX(1); } }
.steps .n { font-family: var(--f-display); font-size: 22px; color: var(--electric); }
.steps h3 { margin: 0; font-size: 22px; font-weight: 500; }
.steps p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* nosotros */
.about { background: var(--cool); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.face { flex: 0 0 auto; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; background: radial-gradient(60% 70% at 50% 40%, #1c2850, #0B1020); position: relative; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about .t { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; text-wrap: balance; }
.about p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* contacto: el avatar se asoma desde el costado */
.contact { position: relative; overflow: hidden; }
.contact .grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.contact h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 92px); line-height: 1.02; }
.contact .lead { color: var(--muted); }
.contact .info { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.contact .info span { font-size: 16px; user-select: all; }
.peek { flex: 1 1 240px; max-width: 300px; height: 380px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.peek .avatar { height: 100%; transform: translateY(110%); }
.contact.in .peek .avatar { animation: peek 1.1s var(--spring) .2s forwards; }
@keyframes peek { to { transform: translateY(0); } }
.contact .bubble { top: 4%; left: -12%; border-radius: 18px 18px 4px 18px; transform-origin: 100% 100%; }

footer { background: #070A16; color: var(--muted); font-size: 14px; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); text-decoration: none; }
footer nav a { display: inline-flex; align-items: center; min-height: 24px; padding-block: 4px; } /* área tocable mínima (WCAG 2.5.8) */
footer a:hover { color: #fff; }
footer button { font: 400 14px var(--f-text); color: var(--muted); background: none; border: 1px solid rgba(174,182,204,.3); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }


/* ---------- Intro (versión I) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--night); display: grid; grid-template-columns: 1fr; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 48%, #111a35 0%, transparent 70%); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.intro .bz { position: relative; z-index: 2; grid-column: 1; display: grid; place-content: center; justify-items: center; gap: clamp(14px, 2.2vw, 26px); min-width: 0; }
.intro .wm { margin: 0; font-family: var(--f-display-144); font-weight: 400; font-size: clamp(3.4rem, 12vw, 11rem); line-height: 1; white-space: nowrap; color: transparent; user-select: none; }
.intro .tg { margin: 0; font: 400 clamp(.72rem, 1.1vw, .95rem)/1.4 var(--f-text); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); text-align: center; text-wrap: balance; transition: opacity .3s; }
.intro .tg .sc { color: var(--electric); }
.intro .tg .gh { opacity: 0; }
.intro .skip { position: absolute; z-index: 3; top: calc(18px + env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); font: 500 .72rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid rgba(174,182,204,.22); border-radius: 999px; padding: .9em 1.2em; cursor: pointer; }
.intro .skip:hover { color: #fff; border-color: var(--muted); }
/* salida suave: el fondo del intro se desvanece mientras la palabra viaja al logo */
.intro.out { animation: introOut 1.1s cubic-bezier(.4,0,.2,1) forwards; pointer-events: none; }
@keyframes introOut { to { opacity: 0; } }
.fly-word { position: fixed; z-index: 120; margin: 0; font-family: var(--f-display-144); font-weight: 400; line-height: 1; color: #fff; white-space: nowrap; transform-origin: 0 0; pointer-events: none; }
.logo { transition: opacity .3s ease; }
.logo.hidden { opacity: 0; transition: none; }


/* ---------- Hero: campo de figuras 3D + titular gigante, que al bajar se contrae en un portal ---------- */
.pin { position: relative; height: 420vh; background: var(--cool); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.portal { position: absolute; inset: 0; background: radial-gradient(70% 80% at 50% 45%, #13205a 0%, #0B1020 75%); clip-path: circle(150% at 50% 50%); will-change: clip-path; }
.field { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.shape { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); will-change: transform; transform: scale(0); }
.shape .float { width: 100%; height: 100%; animation: bob var(--dur, 6s) ease-in-out var(--del, 0s) infinite alternate; }
.shape svg { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 18px 24px rgba(3,6,20,.45)); }
.shape.far svg { filter: blur(2.5px) drop-shadow(0 10px 14px rgba(3,6,20,.4)); opacity: .75; }
@keyframes bob { from { transform: translateY(-7px) rotate(calc(var(--r, 0deg) - 5deg)); } to { transform: translateY(8px) rotate(calc(var(--r, 0deg) + 5deg)); } }
.core { position: absolute; left: 50%; top: 46%; width: clamp(120px, 15vmin, 200px); height: clamp(120px, 15vmin, 200px); margin: calc(clamp(120px, 15vmin, 200px) / -2) 0 0 calc(clamp(120px, 15vmin, 200px) / -2); border-radius: 50%; background: radial-gradient(circle at 38% 34%, #ffffff 0%, #cfdcff 18%, #6f92ff 46%, #3D6BFF 64%, #1d36a8 100%); box-shadow: 0 0 60px 18px rgba(61,107,255,.55), 0 0 160px 60px rgba(61,107,255,.25); transform: scale(0); animation: corePulse 3.2s ease-in-out infinite; }
@keyframes corePulse { 50% { box-shadow: 0 0 80px 26px rgba(61,107,255,.7), 0 0 200px 80px rgba(61,107,255,.3); } }
.heroText { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; padding-left: max(16px, 4vw, env(safe-area-inset-left, 0px)); padding-right: max(16px, 4vw, env(safe-area-inset-right, 0px)); }
.mega { margin: 0; font-family: var(--f-display-grande); font-weight: 400; color: #fff; font-size: clamp(54px, 11.5vw, 200px); line-height: .95; letter-spacing: -.02em; text-align: center; text-shadow: 0 6px 40px rgba(3,6,20,.55); }
.heroFoot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding: 0 max(16px, 4vw) clamp(28px, 5vh, 56px); pointer-events: auto; }
.heroFoot p { margin: 0; color: #fff; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; max-width: 34ch; text-shadow: 0 2px 18px rgba(3,6,20,.6); }
.heroFoot .ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* el agujero azul donde salta el avatar */
.sprite { height: 100%; aspect-ratio: 189 / 320; background: 0 0 / 1200% 100% no-repeat; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }

/* anillos del portal y textos que aparecen alrededor */
.rings { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.rings span { position: absolute; border-radius: 50%; border: 1px solid rgba(61,107,255,.35); transform: translate(-50%, -50%); }


/* ---------- Debajo del portal: el titular de los 3 pilares (el círculo termina siendo su punto final) ---------- */
.under { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--cool); color: var(--ink); }
.giant { margin: 0; font-family: var(--f-display-grande); font-weight: 400; font-size: clamp(52px, 10.5vw, 176px); line-height: .96; letter-spacing: -.025em; max-width: 13ch; will-change: transform; }
.gdot { display: inline-block; width: .2em; height: .2em; margin-left: .05em; border-radius: 50%; vertical-align: baseline; }
.tint { position: absolute; inset: 0; background: var(--electric); opacity: 0; pointer-events: none; }
.rings { z-index: 2; }

/* ---------- Los 3 pilares ---------- */
.pills { padding-top: clamp(24px, 4vw, 56px); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 48px 40px; }
.pgrid article { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 28px; }
.pgrid article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--electric); transform: scaleX(0); transform-origin: left; }
.pgrid.in article::before { animation: grow 1s var(--out) forwards; animation-delay: calc(var(--d) * 1s); }
.pgrid h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.pgrid p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.pgrid ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pgrid li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.pgrid li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); flex: none; }
.pgrid article > * { opacity: 0; transform: translateY(18px); }
.pgrid.in article > * { animation: fadeUp .8s var(--out) forwards; animation-delay: calc(var(--d) * 1s + .15s); }

/* ---------- Titular gigante que corre con el scroll, con el avatar corriendo encima ---------- */
.runband { position: relative; height: 640vh; background: var(--cool); }
.rbSticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rbTrack { position: absolute; left: 0; top: 50%; display: flex; align-items: baseline; gap: .28em; white-space: nowrap; font-family: var(--f-display-144); font-weight: 400; font-size: clamp(130px, 21vw, 340px); line-height: 1; letter-spacing: -.03em; color: var(--ink); will-change: transform; }
.rbTrack { width: max-content; }
.rbTrack > * { flex: none; }
.rbTrack .bl { width: 0; height: 0; }
.rbTrack .o { color: var(--electric); }
/* la "ola": arranca todo azul con letras en contorno; un frente blanco de borde curvo avanza detrás del avatar
   y las letras que alcanza pasan a color lleno. Las letras ondulan siguiendo la ola. */
.rbSticky { background: var(--cool); }
.rbLayer { position: absolute; inset: 0; }
.rbFront { background: var(--cool); z-index: 0; }
/* la ola: entra cubriendo toda la franja en el azul noche de Productos; se retira con un borde curvo que respira y al
   final se encoge en la plataforma flotante, pasando al azul de la plataforma (#2A4FE0). El recorte y el color los pone demos.ts */
.rbBack { background: var(--night); z-index: 1; will-change: clip-path; }
.rbPlatShadow { position: absolute; z-index: 1; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; opacity: 0; pointer-events: none; box-shadow: 0 26px 40px -6px rgba(11,16,32,.35), 0 0 60px 6px rgba(61,107,255,.35); }
.rbBack .rbTrack, .rbBack .rbTrack .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); }
.rbBack .rbTrack .dt { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.rbTrack .ch { display: inline-block; will-change: transform; }
.rbTrack .dt { width: .16em; height: .16em; border-radius: 50%; background: var(--electric); align-self: center; flex: none; }
.rbRunner { position: absolute; z-index: 2; left: 24vw; top: 0; height: clamp(120px, 19vh, 200px); aspect-ratio: 189 / 320; transform-origin: 50% 100%; }
.rbRunner .sprite { filter: drop-shadow(0 12px 16px rgba(11,16,32,.3)); }
/* salto: 36 cuadros (6×6) del video, con los pies anclados abajo y el cuerpo centrado; el arco lo hace el código */
/* pose final: se da vuelta y cruza los brazos (31 cuadros, misma escala y anclaje que el salto) */
.rbPose { position: absolute; z-index: 2; left: 0; top: 0; height: calc(clamp(120px, 19vh, 200px) * 344 / 320); aspect-ratio: 260 / 344; visibility: hidden; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(11,16,32,.3));
  background: 0 0 / 600% 600% no-repeat; }
.rbPose.on { visibility: visible; }
/* chasquido + surf: 45 cuadros (29 chasquido, 16 sobre la tabla), cuadro 340×372 con la misma escala que el salto */
.rbSS { position: absolute; z-index: 3; left: 0; top: 0; height: calc(clamp(120px, 19vh, 200px) * 372 / 320); aspect-ratio: 340 / 372; visibility: hidden; pointer-events: none; transform-origin: 50% 91%; filter: drop-shadow(0 12px 16px rgba(11,16,32,.3));
  background: 0 0 / 700% 700% no-repeat; }
.rbSS.on { visibility: visible; }
.rbSpark { position: absolute; z-index: 4; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; opacity: 0; }
.rbSpark i { position: absolute; left: 50%; top: 50%; width: 3px; height: 16px; margin: -26px 0 0 -1.5px; border-radius: 2px; background: var(--electric); transform-origin: 50% 26px; }
.rbSpark::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(61,107,255,.75); }
.rbJumper.off { visibility: hidden; }
.rbJumper { position: absolute; z-index: 2; left: 0; top: 0; height: calc(clamp(120px, 19vh, 200px) * 344 / 320); aspect-ratio: 260 / 344; display: none; filter: drop-shadow(0 12px 16px rgba(11,16,32,.3));
  background: 0 0 / 600% 600% no-repeat; }
/* Las hojas de cuadros del avatar (~1,5 MB) se piden recién cuando hacen falta: demos.ts pone .rb-img en #runband cuando el
   hero ya terminó de entrar o cuando la franja se acerca. Así no compiten con las fuentes ni con el intro en la primera visita. */
.rb-img .sprite { background-image: url("/assets/avatar/correr-12x189x320.webp"); }
.rb-img .rbPose { background-image: url("/assets/avatar/pose-orgulloso-31x260x344.webp"); }
.rb-img .rbSS { background-image: url("/assets/avatar/chasquido-surf-45x340x372.webp"); }
.rb-img .rbJumper { background-image: url("/assets/avatar/salto-36x260x344.webp"); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Contacto: "Hablemos" gigante con círculos (como el Get in touch de Goodpatch) ---------- */
.touch { position: relative; overflow: hidden; overflow: clip; background: #2A4FE0; color: #fff; padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.touch .tGiant { position: relative; z-index: 1; margin: 0; text-align: center; font-family: var(--f-display-grande); font-weight: 400; font-size: clamp(84px, 19vw, 330px); line-height: .9; letter-spacing: -.035em; }
/* el apretón queda fijo en el centro de la pantalla mientras se completa (la altura del tramo la pone el JS) */
.hsPin { position: relative; z-index: 2; margin-top: clamp(8px, 2vw, 24px); }
.tHands { position: sticky; top: 0; z-index: 2; width: min(100%, 1440px); margin: 0 auto; }
/* 75 cuadros (todos los del video) en 3 hojas de 25: una sola hoja gigante el navegador tardaba en cargarla y no aparecía.
   La sombra va en una capa fija aparte: una sombra por cuadro hacía que se trabara */
.tHands .hs canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tShadow { position: absolute; left: 50%; top: 66%; width: 62%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(11,16,32,.32), rgba(11,16,32,0)); filter: blur(6px); pointer-events: none; opacity: 0; }
.tHands .hs { position: relative; width: 100%; aspect-ratio: 2 / 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  will-change: background-position; }
.tGlow { position: absolute; left: 50%; top: 62%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(207,220,255,.55), rgba(111,146,255,.25) 55%, rgba(61,107,255,0)); opacity: 0; transition: opacity .6s; }
.tHands.met .tGlow { opacity: 1; }
/* nada se pisa: las manos tienen su propio espacio y los círculos van en fila debajo, separados */
.tStage { position: relative; z-index: 3; max-width: 1280px; margin: clamp(16px, 3vw, 40px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.tcw { position: relative; z-index: 2; aspect-ratio: 1; opacity: 0; transform: scale(.4); }
.touch.in .tcw { animation: tcIn .9s var(--spring) forwards; animation-delay: var(--d); }
@keyframes tcIn { to { opacity: 1; transform: scale(1); } }
.tc { width: 100%; height: 100%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 13%; text-decoration: none; color: #fff; transition: transform .5s var(--spring); }
.tc:hover { transform: scale(1.04); }
.tc small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.tc b { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.08; }
.tc span { font-size: 15px; line-height: 1.5; max-width: 24ch; }
.tc i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--electric); color: #fff; font-size: 18px; transition: transform .4s var(--spring); }
.tc:hover i { transform: translateX(6px); }
.c1 { width: min(30vw, 380px); } .c1 .tc { background: var(--night); }
.c2 { width: min(28vw, 350px); } .c2 .tc { background: rgba(20,34,92,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); } .c2 .tc i { background: #fff; color: var(--ink); }
.c3 { width: min(26vw, 320px); } .c3 .tc { background: #fff; color: var(--ink); } .c3 .tc span { color: var(--ink-2); }
.tNote { position: relative; z-index: 2; margin: 28px 0 0 auto; max-width: 34ch; font-size: 18px; line-height: 1.6; }
.tNote a { color: #fff; }
@media (max-width: 760px) {
  .runband { height: 330vh; }
  .rbRunner { left: 10vw; }
  .tHands { width: 175%; margin-left: -37.5%; }
  .tStage { flex-direction: column; margin-top: 16px; gap: 18px; }
  .c1 { width: 300px; } .c2 { width: 280px; } .c3 { width: 260px; }
  .tNote { margin: 28px 0 0; }
}

/* ---------- Chat: el avatar parado junto a su tarjeta (como el de Goodpatch) ---------- */
.launcher { position: fixed; z-index: 50; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-end; gap: 0; pointer-events: none; transition: opacity .4s; }
/* mientras "Demos seleccionadas" está fijada, el compañero se va (el avatar de la escena es el protagonista). Va con
   !important porque Contacto le escribe la opacidad en línea; visibility hace que tampoco se pueda tocar */
.launcher.enfranja { opacity: 0 !important; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lcard { pointer-events: auto; position: relative; margin: 0 10px 34px 0; background: #fff; color: var(--ink); border-radius: 16px 16px 4px 16px; box-shadow: 0 16px 40px rgba(11,16,32,.22); padding: 14px 38px 14px 18px; width: 250px; transform-origin: 100% 100%; transform: translateX(30px) scale(.6); opacity: 0; transition: transform .55s var(--spring), opacity .3s; cursor: pointer; }
.lcard.on { transform: none; opacity: 1; }
.lcard p { margin: 0; font-size: 14px; line-height: 1.45; }
.lcard small { display: block; margin-top: 6px; font-size: 12px; color: var(--electric-ink); font-weight: 500; }
.lcard .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 50%; }
.lcard .x:hover { background: var(--cool); }
.lcard .txt { display: block; transition: opacity .2s, transform .3s var(--out); }
.lcard .txt.swap { opacity: 0; transform: translateY(6px); }
.lav { pointer-events: auto; position: relative; width: 74px; height: 150px; border: 0; padding: 0; background: none; cursor: pointer; transform: translateY(160%); transition: transform .7s var(--spring); }
.launcher.on .lav { transform: none; }
.lav .inner { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; animation: lavFloat 4.9s ease-in-out infinite; }
@keyframes lavFloat { 50% { transform: translateY(-6px); } }
/* al pasar el mouse (o con foco de teclado) cruza a la pose del saludo, como el compañero de Goodpatch */
.lav .inner img { transition: opacity .3s cubic-bezier(.33,1,.68,1); }
.lav .inner img.wave { position: absolute; left: 52%; bottom: 0; height: 108%; transform: translateX(-50%); opacity: 0; }
.lav:hover .inner img:not(.wave), .lav:focus-visible .inner img:not(.wave), .lav[aria-expanded="true"] .inner img:not(.wave) { opacity: 0; }
.lav:hover .inner img.wave, .lav:focus-visible .inner img.wave, .lav[aria-expanded="true"] .inner img.wave { opacity: 1; }
.lav img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 10px 14px rgba(11,16,32,.35)); }
.lav .badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; border-radius: 999px; background: var(--electric); color: #fff; font: 600 12px/20px var(--f-text); text-align: center; box-shadow: 0 0 0 3px #fff; transform: scale(0); transition: transform .4s var(--spring); }
.lav .badge.on { transform: scale(1); }
.panel { position: fixed; z-index: 51; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(176px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 28px)); background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(11,16,32,.3); overflow: hidden; transform-origin: 90% 100%; transform: scale(.4) translateY(40px); opacity: 0; pointer-events: none; transition: transform .5s var(--spring), opacity .25s; }
.panel.on { transform: none; opacity: 1; pointer-events: auto; }
.panel header { background: var(--night); color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.panel header .ph { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; position: relative; background: radial-gradient(60% 70% at 50% 40%, #1c2850, #0B1020); }
.panel header .ph img { width: 100%; height: 100%; object-fit: cover; }
.panel header b { font-weight: 500; font-size: 15px; display: block; }
.panel header span { font-size: 12px; color: var(--muted); }
.panel header button { margin-left: auto; width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; border-radius: 50%; }
.panel .msgs { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cool); }
.panel .bot { align-self: flex-start; background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.45; max-width: 88%; box-shadow: 0 2px 6px rgba(11,16,32,.06); }
.panel .quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; }
.panel .quick a { font-size: 14px; color: var(--ink); text-decoration: none; border: 1px solid #C9CFDC; padding: 9px 14px; border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.panel .quick a:hover { background: var(--night); color: #fff; border-color: var(--night); }
.panel .note { margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--ink-2); }

header.nav { margin-bottom: calc(-77px - env(safe-area-inset-top, 0px)); }
.launcher.inhero .lcard { opacity: 0; pointer-events: none; transform: translateX(30px) scale(.6); }
@media (max-width: 760px) {
  .shape.desk { display: none; }
  .lav { width: 58px; height: 118px; }
  .heroFoot { justify-content: flex-start; }
  .lcard { width: 200px; }
}

@media (max-width: 700px) {
  .intro .wm { font-size: clamp(3.2rem, 19vw, 6rem); }
  .intro .tg { letter-spacing: .22em; max-width: 30ch; }
  header.nav .bar { height: 64px; }
}
@media (max-width: 980px) { .nav-links, header.nav .sep { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .marquee .track { animation: none; }
}
