/* FinsAI. Tema oscuro fijo (la marca vive en el fondo oscuro del fondo de pantalla).
   Radios: tarjetas 24px, campos 14px, botones y chips en pastilla. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #040907;
  --bg2: #06100c;
  --card: #0a1712;
  --card2: #0e1f18;
  --line: rgba(52, 227, 160, .14);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #eaf4ef;
  --muted: #93a89e;
  --dim: #64786e;
  --g: #34e3a0;
  --g2: #1fc387;
  --g3: #069f66;
  --on-g: #03140c;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 24px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 "Geist", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
/* grano fijo encima de todo (no repinta al hacer scroll) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--g); color: var(--on-g); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { text-wrap: pretty; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sub { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34em; }
.kicker { font: 500 .8rem/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--g); color: var(--on-g); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: transform .2s var(--ease-out); }
.skip:focus { transform: translateY(76px); }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 8px; }
.link { color: var(--g); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 100% 1px; } }

/* ---------- Marca ---------- */
.lockup { display: inline-flex; align-items: center; gap: .55em; }
.app-icon { width: 1.9em; height: 1.9em; flex: none; filter: drop-shadow(0 6px 18px rgba(31, 195, 135, .25)); }
.wordmark { height: 1.15em; width: auto; color: var(--text); }
.wm-ai { fill: var(--g); }

/* ---------- Botones ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: var(--h); padding: 0 1.4em;
  border-radius: 999px; font-weight: 550; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; position: relative; isolation: isolate;
  transition: transform .16s var(--ease-out), background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .3s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 1.1em; font-size: .95rem; }
.btn-lg { --h: 56px; padding: 0 1.7em; font-size: 1.05rem; }
.btn-primary { background: var(--g); color: var(--on-g); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -10px rgba(52, 227, 160, .55); overflow: hidden; }
.btn-primary::before { /* brillo que cruza el boton al pasar el raton */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary .ic { transition: transform .3s var(--ease-out); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #4bebb0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 40px -10px rgba(52, 227, 160, .7); }
  .btn-primary:hover::before { transform: translateX(120%); }
  .btn-primary:hover .ic:last-child { transform: translateX(3px); }
  .btn-ghost:hover { border-color: rgba(52, 227, 160, .5); background: rgba(52, 227, 160, .06); }
}

/* ---------- Navegacion ---------- */
.nav { position: fixed; z-index: 50; top: 12px; left: 0; right: 0; padding: 0 var(--gut); pointer-events: none; }
.nav-inner {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 12px 0 20px;
  border-radius: 999px; border: 1px solid transparent; transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav.scrolled .nav-inner, .nav.open .nav-inner {
  background: rgba(6, 15, 11, .62); border-color: var(--line-soft); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.brand { font-size: 17px; display: flex; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); } }
.nav-links .menu-cta { display: none; }
.nav-end { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.nav.open .burger span:first-child { transform: rotate(45deg); }
.nav.open .burger span:last-child { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-inner { padding: 0 6px 0 16px; height: 58px; }
  .nav-end { margin-left: auto; }
  .nav-links {
    position: fixed; left: var(--gut); right: var(--gut); top: 78px; flex-direction: column; gap: 2px; padding: 10px; margin: 0;
    background: rgba(7, 16, 12, .94); border: 1px solid var(--line-soft); border-radius: var(--r);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; visibility: hidden;
    transition: opacity .22s ease, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; transition: opacity .22s ease, transform .3s var(--ease-out); }
  .nav-links a { font-size: 1.25rem; padding: 14px 16px; color: var(--text); border-radius: 16px; }
  .nav-links .menu-cta { display: flex; align-items: center; justify-content: space-between; background: var(--g); color: var(--on-g); font-weight: 600; margin-top: 6px; }
}

/* ---------- Agua (lineas dibujadas en canvas, reaccionan al cursor y al dedo) ---------- */
.water { position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.wcv { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
@keyframes drift { to { transform: translateX(-50%); } }
.paused .mq-track, .paused .dust i { animation-play-state: paused; }

/* ---------- Hero ---------- */
.hero { --wl: 72%; position: relative; min-height: max(100dvh, 680px); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 60%, #0b2a1d 0%, #06140e 38%, var(--bg) 70%); }
.hero-water { top: var(--wl); bottom: 0; background: linear-gradient(180deg, rgba(14, 52, 37, .9), rgba(8, 28, 20, .95) 40%, var(--bg)); border-top: 1px solid rgba(70, 230, 165, .55); z-index: 1; }
.hero-water::before { /* brillo de la superficie */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(180deg, rgba(52, 227, 160, .12), transparent);
}
.hero-copy { position: relative; z-index: 3; min-height: calc(max(100dvh, 680px) * .72); display: flex; flex-direction: column; justify-content: center; padding-top: 88px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 4.35rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; max-width: 12.5em; }
.hero h1 .line { display: block; }
.line-accent { color: var(--g); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
.hero-lead { color: #b5c7be; font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 30em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-top: 34px; }

.scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scene-halo { position: absolute; left: 72%; top: var(--wl); width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 190, 130, .22), rgba(20, 110, 75, .08) 55%, transparent); }
.scene-par { position: absolute; left: 62%; bottom: calc(100% - var(--wl)); width: clamp(250px, 26vw, 450px); aspect-ratio: 610 / 520; }
.fin-clip { position: absolute; inset: -40% -10% 0; overflow: hidden; }
.fin-clip .fin { position: absolute; left: 9.09%; top: 33.3%; width: 83.33%; transform: translateY(4%); filter: drop-shadow(0 0 40px rgba(52, 227, 160, .25)); }
.fin-reflect { position: absolute; left: 0; right: 0; top: 100%; height: 120%; overflow: hidden; opacity: .3; filter: blur(7px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.fin-reflect .fin { width: 100%; transform: scaleY(-1) translateY(4%); }
.wake { position: absolute; right: 78%; bottom: -8px; width: 70%; height: auto; overflow: visible; }
.wake path { fill: none; stroke: #46e8a9; stroke-width: 1; stroke-linecap: round; opacity: .5; stroke-dasharray: 260; }
.spark-glow { position: absolute; left: 86%; top: 16%; width: 105%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 255, 215, .5), rgba(52, 227, 160, .2) 35%, rgba(20, 120, 80, .06) 65%, transparent); }
.spark { position: absolute; left: 86%; top: 16%; width: 40%; transform: translate(-50%, -50%); fill: #fff; overflow: visible; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .9)) drop-shadow(0 0 30px rgba(120, 255, 200, .7)); }

/* Entrada del hero: la aleta emerge, despues se enciende el destello */
.motion .fin-clip .fin { animation: finRise 1.8s var(--ease-soft) .15s both, finBob 5.5s ease-in-out 1.95s infinite alternate; }
.motion .fin-reflect { animation: fadeIn 1.6s ease .7s both; }
.motion .wake path { animation: wake 2.2s var(--ease-out) 1s both; }
.motion .wake path:nth-child(2) { animation-delay: 1.15s; }
.motion .wake path:nth-child(3) { animation-delay: 1.3s; }
.motion .spark { animation: sparkIn 1.1s var(--ease-out) 1.05s both, twinkle 5s ease-in-out 2.2s infinite; }
.motion .spark-glow { animation: glowIn 1.6s var(--ease-out) 1.05s both, breathe 5s ease-in-out 2.2s infinite; }
.motion .hero-water { animation: fadeIn 1s ease both; }
.motion .w > span { animation: wordUp 1s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 55ms); }
.motion .hero-lead { animation: rise .9s var(--ease-out) .9s both; }
.motion .hero-actions { animation: rise .9s var(--ease-out) 1.02s both; }
.motion .nav-inner { animation: fadeIn .8s ease .2s both; }
@keyframes finRise { from { transform: translateY(105%); } to { transform: translateY(4%); } }
@keyframes finBob { from { transform: translateY(4%); } to { transform: translateY(7%) rotate(-1deg); } }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes wake { from { stroke-dashoffset: 260; opacity: 0; } to { stroke-dashoffset: 0; } }
@keyframes sparkIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-60deg); } to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); } }
@keyframes twinkle { 50% { transform: translate(-50%, -50%) scale(.9) rotate(8deg); } }
@keyframes glowIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } to { opacity: 1; } }
@keyframes breathe { 50% { opacity: .7; transform: translate(-50%, -50%) scale(.94); } }

@media (max-width: 760px) {
  .hero { --wl: 80%; min-height: max(100svh, 660px); }
  .hero-copy { min-height: 0; justify-content: flex-start; padding-top: 112px; }
  .hero h1 { font-size: clamp(2.1rem, 9.6vw, 3.2rem); }
  .scene-par { left: auto; right: 8vw; width: 38vw; }
  .scene-halo { left: 70%; width: 130vw; height: 130vw; }
  .hero-lead { max-width: 24em; }
  .hero-actions { margin-top: 26px; gap: 8px; }
  .hero-actions .btn { --h: 52px; padding: 0 1.15em; font-size: 1rem; }
  .hero-lead { margin-top: 16px; }
}
@media (max-width: 760px) and (max-height: 760px) { .scene-par { width: 34vw; } }

/* ---------- Superficie / profundidad ---------- */
.depth { position: relative; height: 330vh; background: var(--bg); }
.depth-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.depth-world { position: relative; height: 200%; will-change: transform; }
.depth-sky { height: 50%; display: flex; align-items: center; position: relative;
  background: radial-gradient(70% 60% at 75% 100%, rgba(31, 195, 135, .1), transparent 70%); }
.depth-top, .depth-bottom { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.depth-copy h2 { margin-bottom: 18px; }
.depth-line { position: absolute; left: 0; right: 0; top: 50%; height: 0; z-index: 2; }
.depth-line .water { top: -40px; height: 80px; }
.depth-line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(70, 230, 165, .7) 20%, rgba(70, 230, 165, .7) 80%, transparent); box-shadow: 0 0 24px rgba(52, 227, 160, .5); }
.depth-sea { height: 50%; position: relative; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, #0a2a1d 0%, #06180f 45%, #030c08 100%); }
.depth-sea::before { /* rayos de luz bajo el agua */
  content: ""; position: absolute; inset: 0 -20% 0; opacity: .5;
  background: repeating-linear-gradient(100deg, transparent 0 80px, rgba(80, 240, 180, .05) 80px 140px, transparent 140px 230px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.motion .depth-sea::before { animation: sway 14s ease-in-out infinite alternate; }
@keyframes sway { to { transform: translateX(6%) skewX(-4deg); } }
.sea-body { position: absolute; left: 50%; top: -2%; width: min(80vw, 900px); transform: translateX(-10%); opacity: .12; filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 80%); mask-image: linear-gradient(180deg, #000 10%, transparent 80%); }
.sea-body svg { transform: scaleY(-1); fill: var(--g2); }
.bubbles i { position: absolute; left: var(--x); bottom: -20px; width: var(--z); height: var(--z); border-radius: 50%; border: 1px solid rgba(120, 255, 200, .35); opacity: 0; }
.motion .bubbles i { animation: bubble var(--t) linear var(--d) infinite; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translate(14px, -70vh); } }
.depth-bottom { position: relative; z-index: 1; }

.tasks-wrap { position: relative; display: grid; }
.tasks-wrap > .tasks { grid-area: 1 / 1; }
.tasks[hidden] { display: grid; visibility: hidden; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tasks-rail { position: absolute; left: 25px; top: 28px; bottom: 28px; width: 1px; background: rgba(255, 255, 255, .08); }
.tasks-fill { position: absolute; inset: 0; background: var(--g); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px var(--g); }
.task { position: relative; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 8px 14px 8px 0; }
.task b { display: block; font-weight: 550; letter-spacing: -0.01em; transition: color .4s ease; color: var(--dim); }
.task div span { color: var(--dim); font-size: .92rem; transition: color .4s ease; }
.task-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: #0b1a14; border: 1px solid var(--line-soft); color: var(--dim);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .5s ease, transform .5s var(--ease-out); position: relative; z-index: 1; }
.task-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--g); color: var(--on-g); opacity: 0; transform: scale(.6);
  transition: opacity .3s ease, transform .5s var(--ease-out); }
.task.on b { color: var(--text); }
.task.on div span { color: var(--muted); }
.task.on .task-ic { background: rgba(52, 227, 160, .14); border-color: rgba(52, 227, 160, .5); color: var(--g); box-shadow: 0 0 30px -6px rgba(52, 227, 160, .6); }
.task.on .task-ok { opacity: 1; transform: none; }

/* Sin JS o con movimiento reducido: todo apilado y visible */
html:not(.motion) .depth, html:not(.js) .depth { height: auto; }
html:not(.motion) .depth-stage { position: relative; height: auto; }
html:not(.motion) .depth-world { height: auto; }
html:not(.motion) .depth-sky, html:not(.motion) .depth-sea { height: auto; padding: 120px 0; }
html:not(.motion) .depth-line { position: relative; top: 0; }
html:not(.motion) .task b { color: var(--text); }
html:not(.motion) .task-ok { opacity: 1; transform: none; }
html:not(.motion) .tasks-fill { transform: none; }

@media (max-width: 860px) {
  .depth-top, .depth-bottom { grid-template-columns: 1fr; gap: 26px; }
  .depth-copy h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 10px; }
  .task { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 2px 0; }
  .task-ic { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; }
  .tasks { gap: 8px; }
  .tasks-rail { left: 21px; }
  .task div span { font-size: .85rem; line-height: 1.35; display: block; }
}
@media (max-width: 860px) and (max-height: 720px) { .task div span { display: none; } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 168px) 0; }
.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { margin-bottom: 16px; }

/* ---------- Que hacemos (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell { position: relative; overflow: hidden; border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); min-height: 400px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line-soft); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); isolation: isolate; }
.cell-copy { position: relative; z-index: 2; max-width: 30em; }
.cell-copy p { color: var(--muted); margin-top: 8px; }
.cell-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px; background: rgba(52, 227, 160, .1); color: var(--g); font-size: 20px; border: 1px solid rgba(52, 227, 160, .2); }
.cell-gestion { grid-column: span 7; }
.cell-webs { grid-column: span 5; }
.cell-ia { grid-column: span 5; }
.cell-sectors { grid-column: span 7; justify-content: space-between; min-height: 300px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(31, 195, 135, .28), transparent 60%), linear-gradient(160deg, #0f2a1f, #08150f); }
.cell-sectors h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; max-width: 12em; }

/* Kanban vivo */
.kanban { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kcol { background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 16px; padding: 10px; min-height: 196px; }
.kcol-h { display: flex; align-items: center; gap: 7px; font: 500 .74rem/1 "Geist Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 4px 12px; }
.kcol-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.kcol[data-col="1"] .kcol-h i { background: var(--g); box-shadow: 0 0 0 4px rgba(52, 227, 160, .15); }
.kcol[data-col="2"] .kcol-h i { background: var(--g3); }
.kcol-h b { margin-left: auto; font-weight: 500; color: var(--dim); }
.kcol-list { display: grid; gap: 8px; }
.kcard { position: relative; background: #112219; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 12px; font-size: .84rem; line-height: 1.3; color: #cfe0d7;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kcard i { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1.5px solid var(--dim); transition: background-color .3s ease, border-color .3s ease; }
.kcol[data-col="1"] .kcard i { border-color: var(--g); border-top-color: transparent; }
.motion .kcol[data-col="1"] .kcard i { animation: spin 1s linear infinite; }
.kcol[data-col="2"] .kcard i { background: var(--g); border-color: var(--g); }
.kcol[data-col="2"] .kcard span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(147, 168, 158, .5); }
@keyframes spin { to { transform: rotate(1turn); } }

/* Webs: rejilla iluminada por el cursor y letras de peso variable */
.spot-grid { position: absolute; inset: 0; z-index: 0; opacity: .9;
  background-image: linear-gradient(rgba(52, 227, 160, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 227, 160, .22) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(180px circle at var(--x, 70%) var(--y, 30%), #000, transparent 75%); mask-image: radial-gradient(180px circle at var(--x, 70%) var(--y, 30%), #000, transparent 75%); }
.cell-webs::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(260px circle at var(--x, 70%) var(--y, 30%), rgba(52, 227, 160, .14), transparent 70%); }
.vary { position: relative; z-index: 1; margin: auto 0 0; padding-top: 40px; font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: .9; letter-spacing: -0.05em; white-space: nowrap; color: var(--text); contain: layout; }
.vary span { display: inline-block; font-weight: var(--w, 300); font-variation-settings: "wght" var(--w, 300); }
.vary span:nth-child(n+3) { color: var(--g); }
.spot-hint { position: absolute; right: 22px; top: 24px; z-index: 2; font: 500 .72rem/1 "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
@media (hover: none) { .spot-hint { display: none; } }

/* IA: el email entra, la IA lo entiende, se crea la tarea */
.flow { margin-top: auto; padding-top: 32px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; row-gap: 22px; }
.fstep { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: .8rem; color: var(--muted); width: 82px; }
.fdot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #0d1d16; border: 1px solid var(--line-soft); color: var(--dim); }
.fline { height: 1px; margin-top: 26px; background: rgba(255, 255, 255, .1); position: relative; overflow: visible; }
.fline i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 12px var(--g); opacity: 0; }
.fresult { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(52, 227, 160, .07); border: 1px solid rgba(52, 227, 160, .22);
  font-size: .92rem; color: var(--text); }
.fresult .ic { color: var(--g); }
.motion .play .fdot { animation: fstep 6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1.4s); }
.motion .play .fline i { animation: fpulse 6s var(--ease-in-out) infinite; }
.motion .play .fline:nth-of-type(4) i { animation-delay: 1.4s; }
.motion .play .fresult { animation: fres 6s var(--ease-out) infinite; }
.motion .fline:nth-of-type(2) i { animation-delay: 0s; }
@keyframes fstep { 0%, 4% { background: #0d1d16; color: var(--dim); border-color: var(--line-soft); transform: scale(1); }
  10% { transform: scale(1.08); } 16%, 78% { background: rgba(52, 227, 160, .14); color: var(--g); border-color: rgba(52, 227, 160, .5); transform: scale(1); }
  92%, 100% { background: #0d1d16; color: var(--dim); border-color: var(--line-soft); } }
@keyframes fpulse { 0%, 6% { left: 0; opacity: 0; } 9% { opacity: 1; } 26% { left: calc(100% - 7px); opacity: 1; } 30%, 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes fres { 0%, 46% { opacity: 0; transform: translateY(8px); filter: blur(4px); } 54%, 82% { opacity: 1; transform: none; filter: none; } 92%, 100% { opacity: 0; } }
html:not(.motion) .fdot { background: rgba(52, 227, 160, .14); color: var(--g); }

/* Sectores: la unica marquesina de la pagina */
.marquee { margin: 28px calc(clamp(22px, 2.6vw, 34px) * -1) 0; display: grid; gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; width: max-content; }
.mq-track p { display: flex; gap: 10px; padding-right: 10px; }
.mq-track span { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(4, 14, 10, .35); font-size: .98rem; color: #cfe0d7; white-space: nowrap; }
.motion .mq-track { animation: drift 38s linear infinite; }
.motion .mq-rev .mq-track { animation-direction: reverse; animation-duration: 44s; }

@media (max-width: 960px) {
  .cell-gestion, .cell-webs, .cell-ia, .cell-sectors { grid-column: 1 / -1; }
  .cell { min-height: 0; }
  .vary { margin-top: 48px; }
}
@media (max-width: 560px) {
  .kanban { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kcol { padding: 6px; min-height: 170px; }
  .kcol-h { font-size: .62rem; letter-spacing: .02em; }
  .kcol-h b { display: none; }
  .kcard { font-size: .72rem; padding: 8px; }
  .kcard i { display: none; }
  .fstep { width: 70px; font-size: .74rem; }
  .fdot { width: 46px; height: 46px; }
  .fline { margin-top: 23px; }
}

/* ---------- Como trabajamos: la ruta se ilumina al bajar ---------- */
.route { position: relative; }
.route-rail { position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 27px; height: 1px; background: rgba(255, 255, 255, .1); }
.route-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--g3), var(--g)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 14px rgba(52, 227, 160, .6); }
.route-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 20px; }
.rstep { text-align: center; display: grid; justify-items: center; padding: 0 6px; }
.rstep-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; position: relative; z-index: 1; margin-bottom: 26px;
  background: var(--bg); border: 1px solid var(--line-soft); color: var(--dim); transition: color .4s ease, border-color .4s ease, box-shadow .5s ease, background-color .4s ease; }
.rstep h3 { font-size: 1.5rem; margin-bottom: 10px; transition: color .4s ease; color: var(--dim); }
.rstep p { color: var(--dim); max-width: 17em; transition: color .4s ease; }
.rstep.on .rstep-ic { color: var(--g); border-color: rgba(52, 227, 160, .55); background: #0b1d15; box-shadow: 0 0 0 6px rgba(52, 227, 160, .07), 0 0 30px -4px rgba(52, 227, 160, .5); }
.rstep.on h3 { color: var(--text); }
.rstep.on p { color: var(--muted); }
html:not(.motion) .rstep .rstep-ic { color: var(--g); }
html:not(.motion) .rstep h3 { color: var(--text); }
html:not(.motion) .rstep p { color: var(--muted); }
html:not(.motion) .route-fill { transform: none; }

@media (max-width: 860px) {
  .route-rail { left: 27px; right: auto; top: 27px; bottom: 60px; width: 1px; height: auto; }
  .route-fill { transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--g3), var(--g)); }
  .route-steps { grid-template-columns: 1fr; gap: 34px; }
  .rstep { text-align: left; grid-template-columns: 54px 1fr; column-gap: 20px; justify-items: start; padding: 0; }
  .rstep-ic { grid-row: span 2; margin: 0; }
  .rstep h3 { margin: 12px 0 6px; }
}

/* ---------- Orvia: borde de luz que gira ---------- */
.orvia { padding-top: 0; }
.orvia-card { position: relative; border-radius: calc(var(--r) + 8px); padding: 1px; overflow: hidden; isolation: isolate; background: rgba(255, 255, 255, .07); }
.orvia-ring { position: absolute; left: 50%; top: 50%; width: 150vmax; aspect-ratio: 1; z-index: -1; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(52, 227, 160, .9) 78%, transparent 92%); }
.motion .orvia-ring { animation: ring 9s linear infinite; }
.paused .orvia-ring { animation-play-state: paused; }
@keyframes ring { to { transform: translate(-50%, -50%) rotate(1turn); } }
.orvia-in { position: relative; border-radius: calc(var(--r) + 7px); padding: clamp(32px, 6vw, 80px); overflow: hidden;
  background: radial-gradient(70% 90% at 100% 100%, rgba(31, 195, 135, .16), transparent 60%), linear-gradient(180deg, #0b1913, #060f0b);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 80px); align-items: end; }
.orvia-in .kicker { grid-column: 1 / -1; margin-bottom: 18px; }
.orvia-name { font-size: clamp(4.4rem, 13vw, 11rem); font-weight: 700; letter-spacing: -0.065em; line-height: .86; grid-row: 2 / span 4; }
.orvia-by { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; grid-column: 2; align-self: start; margin-bottom: 16px; }
.by-ic { width: 26px; height: 26px; }
.orvia-d { grid-column: 2; color: #b5c7be; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 20px; }
.orvia-in .btn { grid-column: 2; justify-self: start; }
.orvia-feats { grid-column: 2; list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.orvia-feats li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); font-size: .92rem; color: #cfe0d7; }
.orvia-feats .ic { color: var(--g); }
@media (max-width: 760px) {
  .orvia-in { grid-template-columns: 1fr; }
  .orvia-name, .orvia-by, .orvia-d, .orvia-feats, .orvia-in .btn { grid-column: 1; grid-row: auto; }
  .orvia-name { margin-bottom: 22px; }
}

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(60% 50% at 20% 100%, rgba(31, 195, 135, .1), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 20px; }
.contact-alt { color: var(--muted); margin-top: 32px; display: grid; gap: 10px; justify-items: start; }
.contact-alt p { margin-bottom: 4px; }
.contact-line { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; color: var(--text); transition: color .2s ease; }
.contact-line .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(52, 227, 160, .1); border: 1px solid rgba(52, 227, 160, .2); color: var(--g); }
@media (hover: hover) and (pointer: fine) { .contact-line:hover { color: var(--g); } }
.brief { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line-soft); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend, .field label { font-weight: 550; font-size: .98rem; padding: 0; margin-bottom: 2px; }
.field legend { margin-bottom: 10px; }
.help { color: var(--muted); font-size: .88rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #07120d; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 4px rgba(52, 227, 160, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 0; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #cfe0d7; cursor: pointer; font-size: .95rem;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, gap .25s var(--ease-out), transform .16s var(--ease-out); user-select: none; }
.chip span .ic { width: 0; opacity: 0; transition: width .25s var(--ease-out), opacity .2s ease; }
.chip span:active { transform: scale(.97); }
.chip input:checked + span { border-color: var(--g); background: rgba(52, 227, 160, .12); color: var(--text); gap: 6px; }
.chip input:checked + span .ic { width: 1.05em; opacity: 1; color: var(--g); }
.chip input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chip span:hover { border-color: rgba(52, 227, 160, .45); } }
.err { color: #ffb4a8; font-size: .92rem; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .brief-actions .btn { flex: 1 1 auto; } }

/* ---------- Pie: el logotipo medio sumergido ---------- */
.footer { position: relative; padding-top: 72px; border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand .lockup { font-size: 20px; }
.footer-brand p { color: var(--muted); margin-top: 14px; font-size: .95rem; }
.footer-links, .footer-social { display: grid; gap: 10px; justify-items: start; }
.footer-links a, .footer-social a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-social a:hover { color: var(--g); } }
.footer-sea { position: relative; margin-top: 64px; padding: 0 var(--gut); }
.footer-word { width: 100%; height: auto; color: #dff0e7; opacity: .95; }
.footer-sea .water { top: 58%; bottom: 0; background: linear-gradient(180deg, rgba(10, 40, 28, .78), rgba(4, 9, 7, .97) 75%); border-top: 1px solid rgba(70, 230, 165, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.copy { color: var(--dim); font-size: .85rem; padding-top: 18px; padding-bottom: 28px; position: relative; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 12px; border-radius: 999px; background: rgba(12, 30, 22, .92); border: 1px solid rgba(52, 227, 160, .3); color: var(--text); font-size: .95rem;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s ease; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: var(--on-g); flex: none; }

/* ---------- Apariciones al hacer scroll ---------- */
.motion .rv { opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.motion .rv.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before { display: none; }
}
@media (max-width: 380px) { .hero-actions .btn { padding: 0 .95em; font-size: .95rem; } }
html:not(.motion) .spot-hint { display: none; }

/* ---------- Polvo de luz alrededor del destello ---------- */
.dust { position: absolute; left: 86%; top: 16%; width: 0; height: 0; }
.dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #c8ffe6; box-shadow: 0 0 6px #7dffc6; opacity: 0;
  transform: rotate(var(--a)) translateX(calc(var(--r) * 2.2)) ; }
.motion .dust i { animation: mote var(--t) ease-in-out var(--d) infinite; }
@keyframes mote { 0% { opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--r) * 1.2)) scale(.6); }
  30% { opacity: .9; } 100% { opacity: 0; transform: rotate(calc(var(--a) + 40deg)) translateX(calc(var(--r) * 3)) scale(1); } }

/* ---------- Titulares que se revelan palabra a palabra ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.sw > span { display: inline-block; }
.motion .rv.split { opacity: 1; filter: none; transform: none; }
.motion .rv.split .sw > span { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.motion .rv.split.in .sw > span { transform: none; }

/* ---------- Franja gigante ligada al scroll ---------- */
.strip { position: relative; padding: clamp(28px, 5vw, 64px) 0; overflow: hidden; border-block: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg), #061410 50%, var(--bg)); }
.strip-row { white-space: nowrap; will-change: transform; }
.strip-row p { display: flex; width: max-content; margin: 0; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: clamp(2.6rem, 7.5vw, 6.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; }
.strip-row span { color: var(--text); white-space: nowrap; flex: none; }
.strip-out span { color: transparent; -webkit-text-stroke: 1.2px rgba(52, 227, 160, .55); }
.strip-out { margin-top: 4px; }
.smark { width: .42em; height: .42em; fill: var(--g); flex: none; filter: drop-shadow(0 0 14px rgba(52, 227, 160, .7)); }
.strip-out .smark { fill: none; stroke: rgba(52, 227, 160, .6); stroke-width: 8; filter: none; }
.motion .strip .smark { animation: spin 9s linear infinite; }
.paused .smark { animation-play-state: paused; }

/* ---------- Frase que se enciende al hacer scroll ---------- */
.statement { padding: clamp(110px, 16vw, 200px) 0 clamp(60px, 8vw, 100px); }
.stmt { font-size: clamp(1.9rem, 4.4vw, 3.9rem); font-weight: 550; letter-spacing: -0.04em; line-height: 1.12; max-width: 19em; }
.stmt span { color: rgba(234, 244, 239, .14); transition: color .35s ease, text-shadow .5s ease; }
.stmt span.on { color: var(--text); }
.stmt span.on:nth-child(n+1):nth-child(-n+3) { color: var(--g); }
html:not(.motion) .stmt span { color: var(--text); }

/* ---------- Superficie: tarjeta que ve el cliente, segun el negocio ---------- */
.surface { display: grid; }
.scard { grid-area: 1 / 1; background: linear-gradient(180deg, #102219, #0a1712); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), filter .45s var(--ease-out); }
.scard[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(14px) scale(.97); filter: blur(6px); }
.scard-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.scard-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; flex: none; color: var(--on-g);
  background: linear-gradient(160deg, #3fe8a8, #0aa86a); box-shadow: 0 10px 24px -10px rgba(52, 227, 160, .7); color: #fff; }
.scard-top b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.scard-top div span { color: var(--muted); font-size: .95rem; }
.scard-btn { width: 100%; }
.motion .scard:not([hidden]) .scard-ic { animation: pop .6s var(--ease-out); }
@keyframes pop { from { transform: scale(.7) rotate(-12deg); } }

.depth-tabs { position: absolute; z-index: 5; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(6, 16, 12, .72); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); max-width: calc(100vw - 24px); }
.tabs-label { font: 500 .72rem/1 "Geist Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tabs-row { position: relative; display: flex; gap: 2px; }
.tabs-ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: var(--g); transition: transform .45s var(--ease-out), width .45s var(--ease-out); box-shadow: 0 8px 22px -8px rgba(52, 227, 160, .8); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: .93rem; font-weight: 550; color: var(--muted);
  transition: color .3s ease, transform .16s var(--ease-out); }
.tab:active { transform: scale(.96); }
.tab[aria-selected="true"] { color: var(--on-g); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { color: var(--text); } }
html:not(.motion) .depth-tabs { position: sticky; bottom: 16px; margin: 0 auto 24px; width: max-content; transform: none; left: auto; }
@media (max-width: 640px) {
  .depth-tabs { padding: 5px; gap: 0; }
  .tabs-label { display: none; }
  .tab { padding: 0 11px; font-size: .86rem; gap: 6px; height: 38px; }
  .tab .ic { display: none; }
  .scard { padding: 18px; }
}

/* ---------- Tarjetas del bento: inclinacion suave y borde que se ilumina bajo el cursor ---------- */
.cell, .orvia-card { transform-style: preserve-3d; will-change: transform; }
.cell::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 227, 160, .85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) and (pointer: fine) { .cell:hover::after { opacity: 1; } }

/* ---------- Ruta: cada paso se enciende con un pulso ---------- */
.rstep-ic::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--g); opacity: 0; }
.motion .rstep.on .rstep-ic::after { animation: ripple 1.2s var(--ease-out); }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.motion .rstep.on .rstep-ic { animation: pop .6s var(--ease-out); }

/* ---------- Orvia: las letras entran una a una ---------- */
.orvia-name span { display: inline-block; }
.motion .orvia-card .orvia-name span { opacity: 0; transform: translateY(40%) rotate(6deg); filter: blur(8px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(.25s + var(--i) * 70ms); }
.motion .orvia-card.in .orvia-name span { opacity: 1; transform: none; filter: none; }
.motion .orvia-feats li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s var(--ease-out); transition-delay: calc(.7s + var(--i) * 90ms); }
.motion .orvia-card.in .orvia-feats li { opacity: 1; transform: none; }
[data-tilt].tilting { transition: none !important; }
