:root {
  --bg: #05040a;
  --ink: #f2f0ff;
  --muted: #8f8aa8;
  --line: rgba(242, 240, 255, 0.1);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --gold: #ffcf6b;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: max(clamp(16px, 5vw, 72px), calc((100vw - 1680px) / 2)); /* en ultra panorámica el contenido queda centrado */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; overflow-anchor: none; }
body { background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--violet); color: #fff; }

/* Lienzo 3D fijo detrás de todo */
#cuna { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.grain { position: fixed; inset: -8%; /* más grande que la pantalla: al moverse no deja franjas en los bordes */ z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

.cursor { position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 65%); transition: opacity 0.4s; mix-blend-mode: screen; }
@media (hover: none) { .cursor { display: none; } }

main, .nav, .foot { position: relative; z-index: 2; }

/* Navegación */
.nav { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); z-index: 10;
  backdrop-filter: blur(10px); background: linear-gradient(var(--bg), transparent); }
.logo { font: 800 15px/1 var(--display); letter-spacing: 0.12em; display: flex; align-items: center; gap: 10px; }
.logo b { color: var(--violet); font-weight: 800; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(0.6); opacity: 0.6; } }
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 32px); align-items: center; font-size: 14px; }
.nav nav a { color: var(--muted); transition: color 0.2s; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--ink); }
.nav-cta { color: var(--ink) !important; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

section { padding: 0 var(--gutter); }
.tag { color: var(--cyan); font-size: 13px; margin-bottom: 24px; }
.big { font: 500 clamp(32px, 5.4vw, 76px)/1.08 var(--display); letter-spacing: -0.02em; max-width: 18ch; }
.big i, .hero-line em { font-style: normal; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.huge { font: 800 clamp(44px, 10vw, 150px)/0.95 var(--display); letter-spacing: -0.04em; }

/* 1. Portada: el texto queda abajo y deja ver la cuna */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 9vh, 110px); }
.eyebrow { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.hero-line { font: 300 clamp(26px, 4.2vw, 60px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 20ch; }
.hero-line span { display: inline-block; opacity: 0; transform: translateY(30px); animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-line span:nth-child(2) { animation-delay: 0.15s; }
.hero-line em { display: inline-block; font-weight: 500; opacity: 0; transform: translateY(30px); animation: rise 1s 0.3s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-hint { margin-top: 36px; font-size: 13px; color: var(--muted); width: fit-content; }
.scroll-hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* HUD de la portada */
.hero { position: relative; }
.hud { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } /* el anillo es más ancho que el móvil: que no ensanche la página */
.grid-lines { position: absolute; inset: 72px var(--gutter) 70px; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
  mask-image: radial-gradient(ellipse at 50% 42%, transparent 18%, #000 45%, transparent 85%); }
.corner { position: absolute; width: 18px; height: 18px; border-color: rgba(242, 240, 255, 0.45); border-style: solid; border-width: 0; }
.corner.tl { top: 72px; left: var(--gutter); border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 72px; right: var(--gutter); border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 70px; left: var(--gutter); border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 70px; right: var(--gutter); border-bottom-width: 1px; border-right-width: 1px; }
.ring { position: absolute; left: 50%; top: 42%; width: min(78vw, 72vh, 640px); transform: translate(-50%, -50%); animation: spin 60s linear infinite; opacity: 0.8; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ring-line { fill: none; stroke: rgba(242, 240, 255, 0.1); stroke-width: 1; }
.ring-line.dashed { stroke-dasharray: 2 10; stroke: rgba(139, 92, 246, 0.45); }
.ring-text { font: 500 13px var(--mono); letter-spacing: 6px; fill: rgba(242, 240, 255, 0.45); }
.meta { position: absolute; top: 96px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.meta-tl { left: calc(var(--gutter) + 28px); }
.meta-tr { right: calc(var(--gutter) + 28px); text-align: right; align-items: flex-end; }
#clock { color: var(--ink); font-size: 13px; }
.ok-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; vertical-align: 1px; box-shadow: 0 0 8px #3ddc97; }

.live-card { position: absolute; right: var(--gutter); bottom: clamp(110px, 16vh, 170px); z-index: 3; width: 290px; padding: 18px 20px; border-radius: 20px;
  border: 1px solid var(--line); background: rgba(12, 10, 24, 0.6); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.3s, transform 0.3s; opacity: 0; animation: rise 1s 1.4s cubic-bezier(.2, .7, .2, 1) forwards; transform: translateY(30px); }
.live-card:hover { border-color: rgba(34, 211, 238, 0.5); transform: translateY(-3px); }
.live-tag { font-size: 11px; color: #3ddc97; display: flex; align-items: center; gap: 8px; }
.live-card b { font: 800 28px/1.1 var(--display); margin-top: 6px; }
.live-card span:not(.mono) { color: var(--muted); font-size: 14px; }
.live-arrow { font-size: 12px; color: var(--cyan); margin-top: 8px; }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.18em; background: rgba(5, 4, 10, 0.5); backdrop-filter: blur(6px); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span::before { content: "✦"; color: var(--violet); margin-right: 48px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.hero > .eyebrow, .hero > .hero-line, .hero > .scroll-hint { position: relative; z-index: 3; }
.hero { padding-bottom: calc(clamp(40px, 9vh, 110px) + 46px); }

@media (max-width: 900px) {
  .live-card { display: none; }
  .meta { top: 84px; font-size: 10px; }
  .meta-tl span:last-child, .meta-tr span:last-child { display: none; }
  .ring { width: min(110vw, 560px); top: 40%; }
}

/* 2. Manifiesto: escena fija que avanza con el scroll.
   main.js pone en .mf-stage --d (diseño), --c (código), --l (lanzamiento) y --x (sin intermediarios), de 0 a 1. */
.mf-track { height: 420vh; position: relative; }
.mf-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 90px); padding-top: 64px;
  --d: 0; --c: 0; --l: 0; --x: 0; --mx: 0; --my: 0; }
.mf-copy { position: relative; z-index: 2; }

.mf-verbs { list-style: none; display: flex; flex-direction: column; gap: 0.1em; }
.mf-verbs li { display: grid; grid-template-columns: 3.4em 1fr; align-items: baseline; --t: 0; }
.mf-verbs span { font-size: 13px; color: var(--violet); opacity: calc(0.35 + var(--t) * 0.65); }
.mf-verbs b { font: 800 clamp(40px, 6.2vw, 100px)/1.02 var(--display); letter-spacing: -0.045em; color: transparent; width: fit-content;
  background: linear-gradient(90deg, var(--ink), var(--ink)) 0 0 / calc(var(--t) * 100%) 100% no-repeat, rgba(242, 240, 255, 0.12);
  -webkit-background-clip: text; background-clip: text; }
.mf-verbs li:nth-child(3) b { background-image: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold)); }
.mf-verbs em { grid-column: 2; font-style: normal; color: var(--muted); font-size: clamp(14px, 1.15vw, 17px); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s, opacity 0.5s, margin 0.5s; }
.mf-verbs li.on em { max-height: 3em; opacity: 1; margin: 2px 0 12px; }

.mf-direct { display: flex; align-items: center; gap: 10px; margin-top: 5vh; opacity: clamp(0, calc(var(--x) * 5), 1); --xf: clamp(0, calc((var(--x) - 0.25) * 1.7), 1); }
.mf-node { flex: none; font-size: 12px; padding: 8px 14px; border: 1px solid rgba(242, 240, 255, 0.25); border-radius: 999px; }
.mf-node.end { border-color: var(--violet); box-shadow: 0 0 calc(var(--xf) * 30px) rgba(139, 92, 246, calc(var(--xf) * 0.9)); background: rgba(139, 92, 246, calc(var(--xf) * 0.25)); }
.mf-line { position: relative; flex: 1; display: flex; justify-content: space-around; gap: 6px; padding: 8px 0; min-width: 0; }
.mf-line::before, .mf-line::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(242, 240, 255, 0.2); }
.mf-line::after { height: 2px; margin-top: -0.5px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform: scaleX(var(--xf)); transform-origin: left; box-shadow: 0 0 12px var(--violet); }
.mf-line i { position: relative; z-index: 1; font-style: normal; font-size: 11px; color: var(--muted); padding: 5px 10px; border: 1px dashed rgba(242, 240, 255, 0.25); border-radius: 999px; background: var(--bg);
  text-decoration: line-through rgba(255, 90, 120, calc(var(--xf) * 3)); white-space: nowrap;
  transform: translateY(calc(var(--xf) * var(--fall, 60px))) rotate(calc(var(--xf) * var(--rot, 12deg))); opacity: calc(1 - var(--xf) * 1.4); }
.mf-line i:nth-child(2) { --fall: 84px; --rot: -18deg; }
.mf-line i:nth-child(3) { --fall: 52px; --rot: 22deg; }
.mf-claim { margin-top: 3.5vh; font: 500 clamp(20px, 2vw, 30px)/1.2 var(--display); letter-spacing: -0.02em;
  opacity: clamp(0, calc((var(--x) - 0.55) * 3), 1); transform: translateY(calc((1 - clamp(0, calc((var(--x) - 0.55) * 3), 1)) * 20px)); }
.mf-claim i { font-style: normal; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* El producto que se construye */
.mf-device { position: relative; perspective: 1600px; display: grid; place-items: center; }
.dv-win { position: relative; z-index: 2; width: min(640px, 100%); border-radius: 14px; overflow: hidden; background: #0b0a17; border: 1px solid rgba(242, 240, 255, 0.14);
  transform: translateY(calc(var(--l) * var(--lift, -34px))) rotateX(calc((1 - var(--l)) * 9deg - var(--my) * 8deg)) rotateY(calc((1 - var(--l)) * -12deg + var(--mx) * 10deg)) scale(calc(1 + var(--l) * 0.03));
  box-shadow: 0 40px 120px -30px rgba(139, 92, 246, calc(0.25 + var(--l) * 0.6)), 0 0 calc(var(--l) * 80px) rgba(34, 211, 238, calc(var(--l) * 0.25)); }
.dv-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.dv-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2c2840; }
.dv-bar span:first-child { background: #ff5f57; } .dv-bar span:nth-child(2) { background: #febc2e; } .dv-bar span:nth-child(3) { background: #28c840; }
.dv-bar p { margin-left: 10px; font-size: 11px; color: var(--muted); }
.dv-bar b { margin-left: auto; font-size: 11px; font-weight: 600; color: #3ddc97; opacity: clamp(0, calc(var(--l) * 3 - 1.4), 1); }
.dv-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background-image: linear-gradient(rgba(242, 240, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 240, 255, 0.04) 1px, transparent 1px); background-size: 24px 24px; }

/* Diseño: cada bloque se traza en línea discontinua y luego toma color */
.ui { position: absolute; border-radius: 8px; --a: clamp(0, calc(var(--d) * 11 - var(--i)), 1); --f: clamp(0, calc((var(--d) - 0.55) * 3), 1);
  border: 1.5px dashed rgba(242, 240, 255, calc(0.45 * (1 - var(--f)))); opacity: var(--a); transform: scale(calc(0.86 + var(--a) * 0.14)); transform-origin: left top; }
.ui::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; opacity: var(--f); background: var(--fill, rgba(242, 240, 255, 0.08)); }
.ui.u-bar { left: 5%; top: 6%; width: 90%; height: 6%; --fill: rgba(242, 240, 255, 0.06); }
.ui.u-h1 { left: 5%; top: 19%; width: 50%; height: 9%; --fill: linear-gradient(90deg, #f2f0ff, #cfc7ff); }
.ui.u-h1.u-b { top: 30%; width: 36%; --fill: linear-gradient(90deg, var(--violet), var(--cyan)); }
.ui.u-p { left: 5%; top: 43%; width: 46%; height: 5%; --fill: rgba(242, 240, 255, 0.22); }
.ui.u-btn { left: 5%; top: 53%; width: 18%; height: 8%; border-radius: 999px; --fill: var(--violet); }
.ui.u-img { left: 60%; top: 19%; width: 35%; height: 42%; --fill: radial-gradient(circle at 30% 30%, var(--gold), transparent 45%), linear-gradient(135deg, var(--violet), var(--cyan)); }
.ui.u-card { left: 5%; top: 69%; width: 27.5%; height: 24%; --fill: linear-gradient(160deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.08)); }
.ui.u-card.u-c2 { left: 36.25%; } .ui.u-card.u-c3 { left: 67.5%; }
.dv-pen { position: absolute; z-index: 3; left: var(--penx, 50%); top: var(--peny, 50%); width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.2), 0 0 24px var(--cyan); transition: left 0.35s, top 0.35s; opacity: calc(clamp(0, var(--d) * 20, 1) - clamp(0, (var(--d) - 0.85) * 8, 1)); }
.dv-swatches { position: absolute; z-index: 3; right: 2%; top: -4%; display: flex; gap: 6px; --s: clamp(0, calc((var(--d) - 0.45) * 5), 1); opacity: calc(var(--s) - var(--c) * 4); }
.dv-swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #0b0a17; transform: scale(var(--s)); }
.dv-swatches i:nth-child(1) { background: var(--violet); } .dv-swatches i:nth-child(2) { background: var(--cyan); }
.dv-swatches i:nth-child(3) { background: var(--gold); } .dv-swatches i:nth-child(4) { background: var(--ink); }

/* Desarrollo: el código entra, se escribe solo y se va al compilar */
.dv-code { position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: 56%; padding: 6% 5%; display: flex; flex-direction: column; gap: 0.55em;
  font-size: clamp(9px, 0.82vw, 13px); line-height: 1.4; color: #cfcae6; background: rgba(8, 7, 16, 0.96); border-left: 1px solid rgba(139, 92, 246, 0.4);
  transform: translateX(calc((1 - clamp(0, calc(var(--c) * 6), 1) + clamp(0, calc((var(--c) - 0.86) * 8), 1)) * 110%)); }
.dv-code p { white-space: nowrap; --k: clamp(0, calc(var(--c) * 9 - var(--j) - 0.6), 1); clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0); }
.dv-code s { text-decoration: none; color: var(--violet); } .dv-code u { text-decoration: none; color: var(--cyan); }
.dv-code q { quotes: none; color: var(--gold); } .dv-code .dim { color: var(--muted); } .dv-code .ok { color: #3ddc97; }
.dv-build { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(242, 240, 255, 0.06); opacity: calc(1 - var(--l) * 3); }
.dv-build i { display: block; height: 100%; width: calc(var(--c) * 100%); background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }

/* Lanzamiento: la ventana despega, deja estela y emite ondas */
.dv-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.dv-rings i { grid-area: 1 / 1; width: 95%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(139, 92, 246, 0.7); box-shadow: 0 0 30px rgba(139, 92, 246, 0.35), inset 0 0 30px rgba(34, 211, 238, 0.15); opacity: 0; }
.mf-stage.live .dv-rings i { animation: ripple 3.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.mf-stage.live .dv-rings i:nth-child(2) { animation-delay: 1.07s; } .mf-stage.live .dv-rings i:nth-child(3) { animation-delay: 2.14s; }
@keyframes ripple { from { transform: scale(0.5); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.dv-trail { position: absolute; z-index: 1; left: 12%; right: 12%; top: calc(100% - 10px); display: flex; justify-content: space-around; pointer-events: none; }
.dv-trail i { width: 2px; height: calc(var(--l) * 150px * var(--h, 1)); border-radius: 2px; opacity: calc(1 - var(--x) * 1.5);
  background: linear-gradient(var(--cyan), rgba(139, 92, 246, 0.4), transparent); filter: drop-shadow(0 0 6px var(--cyan)); }
.dv-trail i:nth-child(2) { --h: 0.6; } .dv-trail i:nth-child(3) { --h: 1.3; } .dv-trail i:nth-child(4) { --h: 0.75; } .dv-trail i:nth-child(5) { --h: 1.05; }

@media (max-width: 900px) {
  .mf-track { height: 380vh; }
  .mf-stage { grid-template-columns: 1fr; align-content: center; gap: 26px; padding-top: 70px; }
  .mf-verbs b { font-size: clamp(30px, 9.5vw, 46px); }
  .mf-verbs li { grid-template-columns: 2.6em 1fr; }
  .mf-direct { margin-top: 18px; gap: 6px; }
  .mf-node { padding: 6px 10px; font-size: 11px; }
  .mf-line i { padding: 4px 6px; font-size: 10px; }
  .mf-claim { margin-top: 14px; }
  .mf-device { --lift: -6px; }
}

/* 3. Proyectos */
.made { padding-top: 14vh; padding-bottom: 10vh; }
.made .big { margin-bottom: 7vh; }
.project { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(160deg, rgba(22, 16, 46, 0.85), rgba(8, 7, 18, 0.85)); backdrop-filter: blur(14px);
  transform-style: preserve-3d; transition: transform 0.25s ease-out, border-color 0.3s; will-change: transform; }
.project:hover { border-color: rgba(139, 92, 246, 0.5); }
.project-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: var(--gx, 50%); top: var(--gy, 0%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 60%); pointer-events: none; transition: opacity 0.3s; }
.project-kind { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.project-name { font: 800 clamp(48px, 9vw, 128px)/0.95 var(--display); letter-spacing: -0.04em; margin: 10px 0 18px;
  background: linear-gradient(100deg, #fff 30%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project-lede { color: #cfcae6; font-size: clamp(17px, 1.6vw, 21px); max-width: 52ch; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 40px 0 28px; }
.stats li { border-top: 1px solid var(--line); padding-top: 14px; }
.stats b { display: block; font: 800 clamp(34px, 4vw, 52px)/1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 32px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: #cfcae6; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  background: var(--ink); color: var(--bg); transition: transform 0.2s, box-shadow 0.3s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 40px -8px var(--violet); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
a.project { display: block; color: inherit; }
.project-link { display: inline-block; margin-top: 22px; font-size: 12px; color: var(--cyan); }
.project.small .project-name { font-size: clamp(30px, 3.6vw, 48px); }

/* 4. Contacto: pedido paso a paso, como páginas de un libro */
.contact { min-height: 100svh; padding-top: 16vh; padding-bottom: 12vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.contact-lede { color: #cfcae6; max-width: 36ch; margin-top: 26px; font-size: clamp(16px, 1.4vw, 19px); }
.wa-direct { display: inline-block; margin-top: 22px; font-size: 13px; color: var(--cyan); }
.wa-direct:hover, .wa-direct:focus-visible { text-decoration: underline; }
.book { perspective: 2400px; max-width: 620px; width: 100%; justify-self: end; }
.pages { display: grid; position: relative; }
/* cantos de las páginas de debajo, para que parezca un libro */
.pages::before, .pages::after { content: ""; position: absolute; inset: 6px -6px -6px 6px; border: 1px solid var(--line); border-radius: 6px 22px 22px 6px; background: #0a0916; z-index: 0; }
.pages::after { inset: 12px -12px -12px 12px; opacity: 0.6; z-index: -1; }
.page { grid-area: 1 / 1; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; min-height: 460px; padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line); border-radius: 6px 22px 22px 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 7%), radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%), #0e0c1c;
  transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform 0.95s cubic-bezier(0.6, 0.04, 0.3, 1), filter 0.95s, visibility 0s; }
.page.turned { transform: rotateY(-178deg); filter: brightness(0.5); visibility: hidden; pointer-events: none;
  transition: transform 0.95s cubic-bezier(0.6, 0.04, 0.3, 1), filter 0.95s, visibility 0s 0.95s; }
.page-num { font-size: 12px; color: var(--violet); letter-spacing: 0.14em; text-transform: uppercase; }
.page-title { font: 500 clamp(24px, 2.4vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 11px 18px; border: 1px solid rgba(242, 240, 255, 0.18); border-radius: 999px; cursor: pointer; color: #cfcae6; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.opt span:hover { border-color: var(--violet); }
.opt input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field-label { font-size: 12px; color: var(--muted); }
.field input, .field textarea { font: 500 17px/1.5 var(--body); color: var(--ink); background: rgba(5, 4, 10, 0.6); border: 1px solid rgba(242, 240, 255, 0.16); border-radius: 14px; padding: 13px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.page-err { min-height: 1.4em; font-size: 14px; color: #ff8a9a; }
.page-err.ok { color: #3ddc97; }
.page-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 10px 0; }
.back:hover, .back:focus-visible { color: var(--ink); }
.book .btn { border: 0; cursor: pointer; font: 700 16px var(--body); }
.book-progress { display: flex; gap: 6px; margin-top: 26px; }
.book-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background 0.4s; }
.book-progress i.on { background: linear-gradient(90deg, var(--violet), var(--cyan)); }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; align-items: start; }
  .book { justify-self: stretch; max-width: none; }
  .page { min-height: 430px; }
}
@media (prefers-reduced-motion: reduce) { .page, .page.turned { transition: none; } }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter) 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* Aparición al entrar en pantalla */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.reveal.on { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-line span, .hero-line em { opacity: 1; transform: none; }
  .mf-track { height: auto; }
  .mf-stage { position: relative; height: auto; padding: 14vh 0; }
  .mf-verbs em { max-height: 3em; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ===== 3. Escaparate: un proyecto por pantalla, avanza con el scroll ===== */
.showcase { padding: 14vh 0 0; --accent: #8b5cf6; }
.sc-head { padding: 0 var(--gutter); margin-bottom: 4vh; }
.sc-track { position: relative; height: calc(var(--n) * 115svh); }
.sc-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sc-bg { position: absolute; inset: 0; pointer-events: none; transition: background 0.8s;
  background: radial-gradient(ellipse 60% 55% at 68% 52%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.sc-slides { position: absolute; inset: 0; perspective: 1800px; }
.sc-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(300px, 0.85fr) 1.6fr; align-items: center; gap: 2vw;
  padding: 80px var(--gutter) 60px calc(var(--gutter) + 70px); pointer-events: none; }
.sc-slide.on { pointer-events: auto; }

/* Texto */
.sc-info { will-change: transform, opacity; container-type: inline-size; min-width: 0; }
.sc-index { font-size: 13px; color: var(--muted); }
.sc-index b { color: var(--accent); font-size: 22px; transition: color 0.6s; }
.sc-kind { margin-top: 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); transition: color 0.6s; }
.sc-name { font: 800 min(12.4cqi, 104px)/0.92 var(--display); text-wrap: balance; letter-spacing: -0.045em; margin: 14px 0 22px;
  background: linear-gradient(100deg, #fff 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-lede { color: #d4cfe9; font-size: clamp(16px, 1.25vw, 19px); max-width: 40ch; }
.sc-meta { margin: 22px 0 30px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.sc-cta { background: var(--accent); color: #05040a; transition: transform 0.2s, box-shadow 0.3s, background 0.6s; }
.sc-cta:hover, .sc-cta:focus-visible { box-shadow: 0 14px 50px -10px var(--accent); }

/* Escena 3D */
.sc-visual { position: relative; height: min(74svh, 700px); transform-style: preserve-3d; will-change: transform; }
.sc-halo { position: absolute; left: 10%; right: 0; top: 10%; bottom: 0; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); opacity: 0.55; transform: translateZ(-200px); }
.browser { position: absolute; left: 0; top: 4%; width: 92%; aspect-ratio: 16 / 10.4; border-radius: 14px; overflow: hidden;
  background: #0b0a14; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 80px -20px var(--accent);
  transform: rotateY(-16deg) rotateX(7deg) rotateZ(1deg); transform-origin: 30% 50%; }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #14121f; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2e2a40; }
.browser-bar span:first-child { background: #ff5f57; } .browser-bar span:nth-child(2) { background: #febc2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar p { margin: 0 auto; transform: translateX(-24px); font-size: 11px; color: #a9a4c4; background: #0b0a14; padding: 5px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.06); }
.browser-bar p i { font-style: normal; margin-right: 6px; filter: grayscale(1); }
.browser-view, .phone-view { position: absolute; inset: 36px 0 0 0; overflow: hidden; }
.shot { display: block; width: 100%; height: auto; will-change: transform; }
.browser-view::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04)); }
.phone { position: absolute; right: 2%; bottom: 4%; width: 23%; aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 9px; background: #0d0c16;
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 50px 90px -20px rgba(0, 0, 0, 0.95), 0 0 60px -14px var(--accent), inset 0 0 0 2px #1c1a29;
  transform: translateZ(140px) rotateY(-10deg) rotateX(4deg); }
.phone-view { inset: 9px; border-radius: 26px; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 99px; background: #05040a; z-index: 2; }
.sc-floor { position: absolute; left: 6%; right: 4%; bottom: -6%; height: 18%; border-radius: 50%; filter: blur(28px);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); transform: rotateX(80deg) translateZ(-80px); }

/* Raíl y progreso */
.sc-rail { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.sc-dot { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; font: inherit; text-align: left; }
.sc-dot span { font-size: 11px; width: 22px; }
.sc-dot em { font-style: normal; font-size: 12px; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; white-space: nowrap; }
.sc-dot::before { content: ""; order: -1; width: 3px; height: 22px; border-radius: 3px; background: rgba(242, 240, 255, 0.18); transition: height 0.3s, background 0.3s; }
.sc-dot.on { color: var(--ink); }
.sc-dot.on::before { height: 44px; background: var(--accent); }
.sc-dot:hover em, .sc-dot:focus-visible em { opacity: 1; transform: none; }
.sc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(242, 240, 255, 0.06); z-index: 5; }
.sc-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--accent)); }

/* Móvil y tabletas: sin escena fija; cada proyecto en su bloque con su navegador */
@media (max-width: 900px) {
  .sc-track { height: auto; }
  .sc-stage { position: static; height: auto; overflow: visible; }
  .sc-rail, .sc-progress { display: none; }
  .sc-slides { position: static; perspective: none; }
  .sc-slide { position: relative; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 28px; padding: 7vh var(--gutter); pointer-events: auto; }
  .sc-info { width: 100%; }
  .browser-bar p { font-size: 10px; padding: 4px 10px; transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
  .sc-visual { width: 100%; height: auto; aspect-ratio: 16 / 12; }
  .sc-name { font-size: min(13cqi, 72px); }
  .browser { transform: rotateY(-8deg) rotateX(5deg); width: 86%; }
  .phone { width: 30%; transform: translateZ(60px); }
  .sc-slide .shot { animation: tour 18s ease-in-out infinite alternate; }
}
@keyframes tour { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 40vw)); } }
@media (prefers-reduced-motion: reduce) { .sc-slide .shot { animation: none !important; } }

/* Escaparate · capa extra: número gigante, luz que sigue al ratón, etiquetas flotantes y web en vivo */
.sc-num { position: absolute; right: calc(var(--gutter) - 2vw); top: 50%; transform: translateY(-52%); z-index: 0; pointer-events: none;
  font: 800 clamp(200px, 34vw, 560px)/0.8 var(--display); letter-spacing: -0.06em; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 30%, transparent); opacity: 0.55; }
.sc-info, .sc-visual { position: relative; z-index: 1; }
.sc-spot { position: absolute; width: 900px; height: 900px; margin: -450px 0 0 -450px; left: var(--sx, 70%); top: var(--sy, 50%); pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); mix-blend-mode: screen; }
.sc-chips { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.sc-chip { position: absolute; font-size: 12px; letter-spacing: 0.08em; padding: 9px 14px; border-radius: 999px; white-space: nowrap; color: #fff;
  background: rgba(12, 10, 24, 0.72); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.8), 0 0 24px -8px var(--accent); animation: chipfloat 6s ease-in-out infinite; }
.sc-chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px var(--accent); }
.sc-chip.c0 { left: -4%; top: 14%; transform: translateZ(220px); }
.sc-chip.c1 { left: 52%; top: -2%; transform: translateZ(180px); animation-delay: -2s; }
.sc-chip.c2 { left: 6%; bottom: 8%; transform: translateZ(260px); animation-delay: -4s; }
@keyframes chipfloat { 50% { translate: 0 -12px; } }
.browser-view iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--fs, 0.5));
  opacity: 0; transition: opacity 0.8s; pointer-events: none; background: #05040a; }
.browser-view iframe.ready { opacity: 1; }
.live-badge { position: absolute; right: 14px; font-size: 10px; font-weight: 600; color: #3ddc97; letter-spacing: 0.08em; }
@media (max-width: 900px) { .sc-num, .sc-spot, .sc-chips, .live-badge { display: none; } }
