/* AMBAR Studio site. Plain CSS; tokens from AMBAR's own palette. */
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-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: 'Inter Tight'; src: url('../fonts/inter-tight-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+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --bg: #0b0603; --s1: #140b05; --s2: #1c1008;
  --line: rgba(255, 210, 122, 0.12); --line2: rgba(255, 210, 122, 0.22);
  --ink: #fff4e0; --muted: #c9b8a0; --dim: #8d7a64;
  --amber: #f2a324; --honey: #ffd27a; --resin: #8a4a0c; --ok: #7fe0a8;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --w: min(1200px, 100% - 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--honey); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 500 0.88em var(--mono); color: var(--honey); background: rgba(242, 163, 36, 0.1); padding: 1px 6px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { width: var(--w); margin: 0 auto; }
.narrow { max-width: 860px; }
.muted { color: var(--dim); }

#fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* soft glows drawn as radial gradients: same look as a 110px blur, without
   repainting a blur filter on every scroll frame */
#fondo i { position: absolute; border-radius: 50%; will-change: transform; }
#fondo i::before { content: ''; position: absolute; inset: -40%; border-radius: 50%; animation: breathe 18s var(--ease) infinite alternate; }
#fondo .b1 { width: 60vw; height: 60vw; left: -10vw; top: -20vw; }
#fondo .b1::before { background: radial-gradient(closest-side, rgba(242, 163, 36, 0.13), rgba(242, 163, 36, 0.07) 55%, transparent); }
#fondo .b2 { width: 50vw; height: 50vw; right: -15vw; top: 30vh; }
#fondo .b2::before { background: radial-gradient(closest-side, rgba(138, 74, 12, 0.28), rgba(138, 74, 12, 0.14) 55%, transparent); animation-delay: -6s; }
#fondo .b3 { width: 40vw; height: 40vw; left: 20vw; bottom: -20vw; }
#fondo .b3::before { background: radial-gradient(closest-side, rgba(255, 210, 122, 0.07), rgba(255, 210, 122, 0.035) 55%, transparent); animation-delay: -12s; }
@keyframes breathe { to { transform: translate(4vw, 3vh) scale(1.08); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 6, 3, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; letter-spacing: 0.04em; }
.logo:hover { text-decoration: none; }
.logo em { font-style: normal; font-weight: 500; color: var(--amber); }
.logo-m { width: 34px; height: 34px; overflow: visible; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); font-size: 15px; }
.links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--amber); color: #2b1503; font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px -10px rgba(242, 163, 36, 0.6); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(242, 163, 36, 0.75); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: rgba(255, 244, 224, 0.06); color: var(--ink); border: 1px solid var(--line2); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: rgba(255, 244, 224, 0.1); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ctas.center { justify-content: center; }

/* Type */
h1 { font-size: clamp(42px, 6vw, 82px); line-height: 1; letter-spacing: -0.045em; font-weight: 760; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 720; }
h3 { font-size: 21px; letter-spacing: -0.015em; font-weight: 680; }
.g { background: linear-gradient(100deg, #ffd27a, #f2a324 55%, #e07a12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 600px; margin-top: 20px; }
.eyebrow { display: inline-block; font: 600 12.5px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); background: rgba(255, 244, 224, 0.05); border: 1px solid var(--line2); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.vidrio { background: linear-gradient(160deg, rgba(255, 210, 122, 0.07), rgba(138, 74, 12, 0.05)); border: 1px solid var(--line); border-radius: 22px; }

/* Hero */

.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; list-style: none; color: var(--muted); font-size: 15px; }
.checks li::before { content: '✓'; color: var(--amber); margin-right: 8px; font-weight: 700; }
.kpi { position: absolute; padding: 14px 18px; min-width: 190px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: float 7s ease-in-out infinite alternate; }
.kpi small { display: block; font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.kpi b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -0.02em; }
.kpi b.ok { color: var(--ok); }
.kpi span { font-size: 13px; color: var(--dim); }

@keyframes float { to { transform: translateY(-12px); } }

/* Sections */
.sec { padding: clamp(80px, 10vw, 130px) 0 0; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--line2); background: #0b0603; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(242, 163, 36, 0.06); }
.player.vertical { aspect-ratio: 4 / 5; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { margin-top: 16px; color: var(--dim); font-size: 15px; text-align: center; }

.piezas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pieza { overflow: hidden; display: flex; flex-direction: column; }
.pieza img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.pieza > div { padding: 22px 24px 26px; }
.pieza p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.tag { display: inline-block; margin-bottom: 10px; font: 600 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }

.flujo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; counter-reset: none; }
.flujo li { padding: 22px 20px; }
.flujo b { font: 700 13px var(--mono); color: var(--amber); }
.flujo h3 { margin: 10px 0 6px; }
.flujo p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-rev > :first-child { order: 0; }
.bul { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.bul li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--line2); }
.bul b { font-weight: 650; }
.bul span { color: var(--muted); font-size: 15.5px; }

.term { border-radius: 20px; overflow: hidden; background: #120a05; border: 1px solid var(--line2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); font: 500 14.5px/1.7 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #28c941; }
.term-bar span { margin-left: 10px; color: var(--dim); font-size: 12.5px; }
.term-body { padding: 22px 24px 26px; min-height: 330px; }
.term .c { color: var(--amber); }
.term .ask span[data-type]::after { content: ''; display: inline-block; width: 8px; height: 16px; margin-left: 3px; vertical-align: -2px; background: var(--amber); animation: blink 1s steps(1) infinite; }
.term.typed .ask span[data-type]::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.term .skill { margin-top: 14px; color: var(--dim); opacity: 0; transition: opacity 0.4s; }
.term .tag { margin: 0 8px 0 0; padding: 2px 8px; border-radius: 6px; background: rgba(242, 163, 36, 0.16); color: var(--amber); font-size: 12px; letter-spacing: 0; text-transform: none; }
.term .task { opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.term .task small { color: var(--dim); margin-left: 6px; }
.term .st { display: inline-block; width: 22px; color: var(--amber); }
.term .task.done .st { color: var(--ok); }
.term .on { opacity: 1; transform: none; }

.sheet { border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.ticks li::before { content: '✓'; color: var(--ok); margin-right: 10px; font-weight: 700; }

.reglas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.regla { padding: 26px 24px; }
.regla h3 { color: var(--honey); }
.regla p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.ways { display: grid; gap: 12px; margin-top: 26px; }
.way { padding: 18px 22px; }
.way p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.code-card { position: relative; border-radius: 20px; background: #120a05; border: 1px solid var(--line2); }
.code-card pre { padding: 28px 28px; font: 500 14.5px/1.75 var(--mono); color: var(--ink); overflow-x: auto; }
.code-card .c { color: var(--dim); }
.copy { position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 244, 224, 0.06); color: var(--muted); font: 600 12px var(--mono); cursor: pointer; }
.copy:hover { color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-size: 26px; color: var(--amber); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 720px; }

.cierre { padding-bottom: 100px; }
.cierre-card { text-align: center; padding: 56px 28px 60px; display: flex; flex-direction: column; align-items: center; }
.cierre-m { width: 220px; height: 220px; overflow: visible; margin-bottom: 8px; }
.cierre-card .lead { margin: 16px auto 0; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; }

/* Reveal */
.rev { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rev.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .links { display: none; }
  .nav-in .btn-sm { margin-left: auto; }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .reglas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .piezas, .reglas { grid-template-columns: 1fr; }
  .kpi { min-width: 0; padding: 10px 12px; }
  .kpi b { font-size: 16px; }
  .kpi span { display: none; }
  .player { border-radius: 16px; }
  .code-card pre { font-size: 12.5px; padding: 22px 18px; }
  .term { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #fondo i::before, .kpi { animation: none; }
  .rev { opacity: 1; transform: none; transition: none; }
}


/* ── Cursor light, scroll progress ─────────────────────────────────────── */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 20; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--resin), var(--amber), var(--honey)); }
#luz { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(242, 163, 36, 0.13), rgba(242, 163, 36, 0.04) 40%, transparent 70%); transform: translate3d(-1000px, -1000px, 0); }
@media (hover: none) { #luz { display: none; } }

/* ── Hero (SaaS) ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 9vh, 110px) 0 40px; text-align: center; }
.hero-top { display: flex; flex-direction: column; align-items: center; }
.hero .badge { color: var(--muted); }
.hero .badge:hover { text-decoration: none; border-color: rgba(242, 163, 36, 0.5); color: var(--ink); }
.hero .badge span { color: var(--amber); }
.hero-h { margin-top: 26px; font-size: clamp(46px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.05em; }
.hero-h .line { display: inline-block; }
.hero-h .line.g { padding-bottom: 0.06em; }
.lead.center { margin-left: auto; margin-right: auto; max-width: 680px; }
.checks.center { justify-content: center; }
.btn .play { font-size: 12px; }

.studio-wrap { position: relative; margin-top: 64px; perspective: 1600px; }
.studio { position: relative; border-radius: 22px; background: linear-gradient(180deg, rgba(28, 16, 8, 0.92), rgba(14, 8, 4, 0.96)); border: 1px solid var(--line2);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(242, 163, 36, 0.05), 0 0 120px -40px rgba(242, 163, 36, 0.35);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform 0.25s var(--ease); text-align: left; overflow: hidden; }
.studio::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 210, 122, 0.10), transparent 45%); }
.st-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--mono); color: var(--dim); }
.st-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.st-bar > i:nth-child(2) { background: #ffbd2e; } .st-bar > i:nth-child(3) { background: #28c941; }
.st-bar span { margin-left: 10px; }
.st-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--honey); }
.st-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5b4a; box-shadow: 0 0 10px #ff5b4a; animation: blink 1.4s steps(1) infinite; }
.st-grid { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; }
.st-chat { padding: 22px 20px; border-right: 1px solid var(--line); }
.st-chat small, .st-row span { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.st-ask { margin-top: 10px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: rgba(255, 244, 224, 0.06); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; min-height: 64px; }
.st-steps { list-style: none; margin-top: 18px; display: grid; gap: 9px; font-size: 14px; }
.st-steps li { display: flex; align-items: center; gap: 10px; color: var(--dim); transition: color 0.3s; }
.st-steps li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 210, 122, 0.3); }
.st-steps li em { margin-left: auto; font: 500 11.5px var(--mono); font-style: normal; color: var(--dim); }
.st-steps li.on { color: var(--ink); }
.st-steps li.on::before { border-color: var(--amber); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.st-steps li.done { color: var(--muted); }
.st-steps li.done::before { content: '✓'; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #2b1503; background: var(--ok); border-color: var(--ok); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-main { display: flex; flex-direction: column; }
.st-preview { position: relative; flex: 1; min-height: 280px; margin: 18px 18px 0; border-radius: 14px; overflow: hidden;
  background: radial-gradient(80% 100% at 70% 30%, #3a1c06, #170b03 65%, #0c0603); border: 1px solid var(--line); }
.st-preview svg { position: absolute; right: 4%; top: 6%; width: 46%; height: 88%; overflow: visible; }
.st-title { position: absolute; left: 6%; top: 24%; width: 52%; font-size: clamp(22px, 2.6vw, 38px); font-weight: 760; letter-spacing: -0.04em; line-height: 1.02; }
.st-title b { color: var(--amber); }
.st-sub { position: absolute; left: 6%; top: 58%; font: 500 13px var(--mono); color: var(--muted); }
.st-cap { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(18, 10, 3, 0.75); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.st-cap i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, #f2a324 60%, #8a4a0c); }
.st-tl { position: relative; padding: 14px 18px 18px; display: grid; gap: 8px; }
.st-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
.st-lane { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 244, 224, 0.04); }
.st-lane i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
#laneV i { background: linear-gradient(90deg, #f2a324, #e08a14); }
#laneE i { background: rgba(255, 244, 224, 0.12); border: 1px solid rgba(255, 210, 122, 0.3); }
.st-wave { background: repeating-linear-gradient(90deg, rgba(255, 210, 122, 0.35) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(90deg, #000, #000); }
.st-head { position: absolute; top: 10px; bottom: 14px; left: 100px; width: 2px; background: var(--cream); box-shadow: 0 0 10px var(--amber); }
.studio-wrap .kpi { position: absolute; z-index: 2; }
.studio-wrap .k1 { right: 20%; top: -40px; } .studio-wrap .k2 { right: -34px; top: 52%; animation-delay: -2s; } .studio-wrap .k3 { left: -34px; bottom: -34px; animation-delay: -4s; }

/* ── Spotlight on cards and magnetic buttons ──────────────────────────── */
.vidrio { position: relative; }
.vidrio::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 210, 122, 0.12), transparent 50%); }
.vidrio:hover::before { opacity: 1; }
.vidrio::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 163, 36, 0.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.vidrio:hover::after { opacity: 1; }
.magnet { transition: transform 0.25s var(--ease), box-shadow 0.2s, background 0.2s; }
.pieza img { transition: transform 0.6s var(--ease); }
.pieza:hover img { transform: scale(1.03); }

/* ── Scroll story: steps on the left, the stage follows ───────────────── */
.story-track { position: relative; height: 380vh; }
.story-sticky { position: sticky; top: 90px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; height: calc(100vh - 120px); }
.story-steps { list-style: none; display: grid; gap: 6px; }
.story-steps li { display: flex; gap: 18px; padding: 16px 18px; border-radius: 16px; opacity: 0.38; transition: opacity 0.35s, background 0.35s; cursor: pointer; }
.story-steps li b { font: 700 13px var(--mono); color: var(--amber); padding-top: 5px; }
.story-steps li p { color: var(--muted); font-size: 15px; margin-top: 4px; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.story-steps li.on { opacity: 1; background: rgba(255, 210, 122, 0.06); }
.story-steps li.on p { max-height: 80px; }
.story-stage { position: relative; height: min(520px, 70vh); overflow: hidden; }
.ss { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.ss.on { opacity: 1; transform: none; }
.ss pre { font: 500 15px/1.75 var(--mono); color: var(--ink); white-space: pre; }
.ss-file { width: 100%; max-width: 480px; padding: 22px 24px; border-radius: 16px; background: #120a05; border: 1px solid var(--line2); }
.ss-file small { font: 600 11px var(--mono); color: var(--dim); }
.ss-file pre { margin-top: 12px; } .ss-file b { color: var(--amber); } .ss-file em { font-style: normal; color: var(--honey); }
.ss-lines { width: 100%; max-width: 520px; display: grid; gap: 12px; }
.ss-lines p { padding: 14px 18px; border-radius: 14px; background: rgba(255, 244, 224, 0.05); border: 1px solid var(--line); font-size: 18px; }
.ss-lines small { font: 700 12px var(--mono); color: var(--amber); margin-right: 12px; }
.ss-code { padding: 24px 26px; border-radius: 16px; background: #120a05; border: 1px solid var(--line2); }
.ss-code .k { color: var(--amber); } .ss-code .s { color: var(--honey); } .ss-code .c { color: var(--dim); }
.ss-audio { width: 100%; max-width: 540px; display: grid; gap: 14px; }
.ss-audio div { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 12px; }
.ss-audio span { font: 600 12px var(--mono); color: var(--muted); }
.ss-audio i { height: 54px; border-radius: 10px; -webkit-mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); mask: repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 6px); }
.ss-audio .w1 { background: linear-gradient(90deg, transparent 4%, #f2a324 4% 30%, transparent 30% 36%, #f2a324 36% 62%, transparent 62% 68%, #f2a324 68% 94%, transparent 94%); }
.ss-audio .w2 { background: linear-gradient(90deg, rgba(255,210,122,.6) 0 4%, rgba(255,210,122,.25) 4% 30%, rgba(255,210,122,.6) 30% 36%, rgba(255,210,122,.25) 36% 62%, rgba(255,210,122,.6) 62% 68%, rgba(255,210,122,.25) 68% 94%, rgba(255,210,122,.6) 94%); }
.ss-audio .w3 { background: radial-gradient(circle at 20% 50%, #fff4e0 0 6px, transparent 7px), radial-gradient(circle at 52% 50%, #fff4e0 0 6px, transparent 7px), radial-gradient(circle at 84% 50%, #fff4e0 0 6px, transparent 7px); }
.ss-audio p { margin-top: 6px; font: 600 13px var(--mono); color: var(--ok); }
.ss-check { width: 100%; }
.ss-check .cmd { font: 500 14px var(--mono); color: var(--ink); }
.ss-check .ok { font: 600 14px var(--mono); color: var(--ok); margin: 6px 0 14px; }
.ss-check img { border-radius: 12px; border: 1px solid var(--line); }
.ss-out { display: grid; gap: 14px; width: 100%; max-width: 440px; }
.ss-out .file { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 244, 224, 0.05); border: 1px solid var(--line2); }
.ss-out .file b { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(242, 163, 36, 0.16); color: var(--amber); }
.ss-out strong { display: block; font: 600 15px var(--mono); }
.ss-out span { font-size: 13px; color: var(--dim); }

@media (max-width: 1000px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-wrap .kpi { display: none; }
  .story-track { height: auto; }
  .story-sticky { position: static; height: auto; grid-template-columns: 1fr; }
  .story-steps li { opacity: 1; }
  .story-steps li p { max-height: none; }
  .story-stage { display: none; }
}
@media (max-width: 640px) {
  .st-preview { min-height: 200px; }
  .st-title { font-size: 22px; width: 58%; }
  .st-cap { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio { transform: none; transition: none; }
  .ss { transition: none; }
}
@media (max-width: 640px) { .st-bar span { display: none; } }


/* ── Full-screen explainer (like LUKA and FIDELYA) ─────────────────────── */
.cine { position: relative; height: calc(100svh - 68px); min-height: 420px; margin-top: clamp(60px, 8vw, 110px); background: #0b0603; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 68px; }
.cine iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cine-note { margin-top: 14px; text-align: center; color: var(--dim); font-size: 14.5px; }

.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; max-width: 620px; }

/* ── Bento ─────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 250px; gap: 16px; }
.tile { overflow: hidden; display: flex; flex-direction: column; }
.tile-media { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-text { padding: 18px 22px 20px; position: relative; z-index: 1; }
.tile-text h3 { font-size: 22px; line-height: 1.2; }
.tile-text p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tile .tag { margin-bottom: 6px; }
.t-video { grid-column: span 4; grid-row: span 2; }
.t-tuto { grid-column: span 2; grid-row: span 2; }
.t-tuto video { object-position: 62% 50%; }
.t-deck { grid-column: span 3; grid-row: span 2; }
.t-docs { grid-column: span 2; grid-row: span 2; }
.t-web { grid-column: span 1; grid-row: span 2; justify-content: flex-end;
  background: radial-gradient(120% 70% at 50% 10%, rgba(242, 163, 36, 0.28), transparent 60%), linear-gradient(160deg, rgba(255, 210, 122, 0.07), rgba(138, 74, 12, 0.05)); }
.t-web .tile-text { padding-bottom: 24px; }
.fan img { position: absolute; width: 62%; left: 19%; top: 14%; border-radius: 10px; border: 1px solid var(--line2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s var(--ease); transform-origin: 50% 120%; }
.fan img:nth-child(1) { transform: rotate(-9deg) translateX(-14%); }
.fan img:nth-child(2) { transform: rotate(-3deg) translateX(-5%); }
.fan img:nth-child(3) { transform: rotate(3deg) translateX(5%); }
.fan img:nth-child(4) { transform: rotate(9deg) translateX(14%); }
.t-deck:hover .fan img:nth-child(1) { transform: rotate(-16deg) translateX(-34%) translateY(-4%); }
.t-deck:hover .fan img:nth-child(2) { transform: rotate(-6deg) translateX(-12%) translateY(-8%); }
.t-deck:hover .fan img:nth-child(3) { transform: rotate(6deg) translateX(12%) translateY(-8%); }
.t-deck:hover .fan img:nth-child(4) { transform: rotate(16deg) translateX(34%) translateY(-4%); }
.stack img { position: absolute; width: 46%; top: 10%; border-radius: 6px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); transition: transform 0.6s var(--ease); }
.stack img:nth-child(1) { left: 34%; transform: rotate(6deg); }
.stack img:nth-child(2) { left: 18%; transform: rotate(-4deg); }
.t-docs:hover .stack img:nth-child(1) { transform: rotate(9deg) translate(16%, -4%); }
.t-docs:hover .stack img:nth-child(2) { transform: rotate(-7deg) translate(-16%, -2%); }
.tile:hover .tile-media video { transform: scale(1.03); }
.tile-media video { transition: transform 0.8s var(--ease); }

/* ── Con Claude ────────────────────────────────────────────────────────── */
.claude-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
.claude-grid .term { display: flex; flex-direction: column; }
.claude-grid .term-body { flex: 1; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.cc .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(242, 163, 36, 0.14); color: var(--amber); font-size: 18px; margin-bottom: 14px; }
.cc h3 { font-size: 19px; }
.cc p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.aside-note { margin-top: 18px; text-align: center; color: var(--dim); font-size: 14.5px; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .t-video { grid-column: span 2; grid-row: span 2; }
  .t-tuto, .t-deck, .t-docs { grid-column: span 1; grid-row: span 2; }
  .t-web { grid-column: span 1; grid-row: span 1; }
  .claude-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cine { height: calc(100svh - 68px); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .t-video, .t-tuto, .t-deck, .t-docs { grid-column: span 1; grid-row: span 2; }
  .t-web { grid-column: span 1; grid-row: span 1; }
  .cc-grid { grid-template-columns: 1fr; }
}

.mp { display: flex; flex-direction: column; align-items: center; padding: 16px 14px 0; gap: 10px; }
.mp-bar { display: flex; gap: 3px; width: 100%; }
.mp-bar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 244, 224, 0.2); }
.mp-bar i.on { background: var(--amber); } .mp-bar i.half { background: linear-gradient(90deg, var(--amber) 50%, rgba(255,244,224,.2) 50%); }
.mp-btns { display: flex; gap: 5px; align-self: flex-end; }
.mp-btns b { padding: 3px 8px; border-radius: 999px; background: var(--amber); color: #2b1503; font-size: 10px; }
.mp-btns span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); font-size: 8px; color: var(--muted); }
.mp svg { width: 70%; flex: 1; min-height: 0; overflow: visible; }
.mp-cap { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(18, 10, 3, 0.75); border: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
.mp-cap i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, #f2a324 60%, #8a4a0c); }


/* ── Mobile ────────────────────────────────────────────────────────────── */
/* grid children shrink below their content, so long code never widens the page */
.split > *, .claude-grid > *, .hero-top > * { min-width: 0; }
html, body { overflow-x: clip; }
.show-sm { display: none; }
.menu-btn, .menu, .hero-m { display: none; }
.cierre-b { display: block; margin: 0 auto 8px; padding: 0; border: 0; background: none; cursor: pointer; }
.cierre-b .cierre-m { margin: 0; }
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }

/* touch screens: no hover states, they stick after a tap or a scroll */
@media (hover: none) {
  a:hover { text-decoration: none; }
  .btn:hover { transform: none; box-shadow: 0 10px 30px -10px rgba(242, 163, 36, 0.6); }
  .btn-ghost:hover { box-shadow: none; background: rgba(255, 244, 224, 0.06); }
  .vidrio::before, .vidrio::after, .studio::after { display: none; }
  .tile:hover .tile-media video, .pieza:hover img { transform: none; }
  .t-deck:hover .fan img:nth-child(1) { transform: rotate(-9deg) translateX(-14%); }
  .t-deck:hover .fan img:nth-child(2) { transform: rotate(-3deg) translateX(-5%); }
  .t-deck:hover .fan img:nth-child(3) { transform: rotate(3deg) translateX(5%); }
  .t-deck:hover .fan img:nth-child(4) { transform: rotate(9deg) translateX(14%); }
  .t-docs:hover .stack img:nth-child(1) { transform: rotate(6deg); }
  .t-docs:hover .stack img:nth-child(2) { transform: rotate(-4deg); }
  .hero .badge:hover { border-color: var(--line2); color: var(--muted); }
  .links a:hover, .copy:hover { color: inherit; }
}

@media (max-width: 1000px) {
  /* menu: a button in the bar opens a sheet with the sections */
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: 4px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 244, 224, 0.05); cursor: pointer; }
  .menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
  .nav.open .menu-btn i:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .menu-btn i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu { display: grid; position: absolute; left: 0; right: 0; top: 100%; height: calc(100svh - 100%); align-content: start; padding: 8px 20px 24px; background: var(--bg); border-top: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav.open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
  .nav.open .menu { opacity: 1; transform: none; pointer-events: auto; }
  .menu a:not(.btn) { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
  .menu a:not(.btn) span { color: var(--amber); }
  .menu a:hover { text-decoration: none; }
  .menu .btn { justify-content: center; margin-top: 18px; height: 54px; }
}

@media (max-width: 640px) {
  :root { --w: calc(100% - 40px); }
  body { font-size: 16px; }
  .nav-in { height: 64px; gap: 10px; }
  .nav-in .btn-sm { display: none; }
  .menu-btn { margin-left: auto; }
  .logo-m { width: 30px; height: 30px; }

  /* type: a little more air in the big tight headlines */
  h2 { font-size: clamp(30px, 8.6vw, 38px); letter-spacing: -0.035em; line-height: 1.08; }
  .eyebrow { font-size: 12.5px; letter-spacing: 0.16em; margin-bottom: 12px; }
  .tag { font-size: 12.5px; }
  .sec { padding-top: 88px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 17px; }
  .lead { font-size: 17px; }

  /* hero */
  .show-sm { display: inline; } .hide-sm { display: none; }
  .hero { padding-top: 28px; }
  .hero .badge { font-size: 13.5px; padding: 8px 14px; }
  .hero-h { margin-top: 22px; font-size: clamp(44px, 13.4vw, 58px); letter-spacing: -0.042em; line-height: 1; }
  .hero-h .line { display: block; }
  .hero .lead.center { margin-top: 18px; font-size: 17px; line-height: 1.55; }
  .hero .ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; margin-top: 26px; }
  .hero .ctas .btn { justify-content: center; height: 54px; font-size: 17px; }
  .checks { gap: 8px; margin-top: 22px; font-size: 14px; }
  .checks li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 244, 224, 0.04); }
  .checks li::before { margin-right: 6px; }

  /* the studio window: preview first, a compact pedido, readable labels */
  .studio-wrap { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; perspective: none; }
  .studio { grid-column: 1 / -1; transform: none; border-radius: 18px; }
  .studio-wrap .kpi { display: block; position: static; animation: none; min-width: 0; padding: 10px 8px; text-align: center; border-radius: 14px; }
  .studio-wrap .kpi small { font-size: 11px; letter-spacing: 0.06em; }
  .studio-wrap .kpi b { font-size: 14.5px; margin-top: 2px; white-space: nowrap; }
  .st-bar { height: 38px; }
  .st-live { font-size: 12.5px; }
  .st-grid { display: flex; flex-direction: column-reverse; min-height: 0; }
  .st-chat { border-bottom: 0; border-top: 1px solid var(--line); padding: 16px; }
  .st-chat small, .st-row span { font-size: 12px; letter-spacing: 0.1em; }
  .st-ask { font-size: 14.5px; min-height: 0; }
  .st-steps { grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; font-size: 13.5px; }
  .st-steps li em { display: none; }
  .st-preview { margin: 12px 12px 0; min-height: 210px; }
  .st-title { font-size: 25px; width: 56%; top: 20%; }
  .st-sub { top: 56%; font-size: 12.5px; width: 52%; }
  .st-cap { font-size: 12.5px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
  .st-tl { padding: 12px 12px 14px; gap: 6px; }
  .st-row { grid-template-columns: 62px 1fr; gap: 8px; }
  .st-lane { height: 18px; }
  .st-head { left: 82px; }

  /* the explainer gets the whole screen; the note becomes a clear action */
  html { scroll-padding-top: 64px; }
  .cine { margin-top: 56px; height: 100vh; height: 100svh; scroll-margin-top: -64px; border: 0; }
  .nav { transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
  body.en-cine .nav:not(.open) { transform: translateY(-100%); }
  .cine-note { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14.5px; }
  .cine-note a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 244, 224, 0.05); font-weight: 600; }

  /* carousels: swipe sideways, the next card peeks in */
  .snap { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; margin: 0 -20px; padding: 4px 20px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { flex: 0 0 84%; scroll-snap-align: start; }
  .snap .rev { opacity: 1; transform: none; }
  .tile-text { padding: 18px 20px 22px; }
  .tile-text p { font-size: 15.5px; }
  .t-web .mp { padding-top: 22px; }
  .mp-btns b { font-size: 12px; padding: 4px 10px; }
  .mp-btns span { width: 26px; height: 26px; font-size: 10px; }
  .mp-cap { font-size: 13px; }
  .reglas > .regla { padding: 24px 22px 26px; }
  .reglas .regla p { font-size: 16px; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 244, 224, 0.22); transition: width 0.3s var(--ease), background 0.3s; }
  .dots i.on { width: 22px; background: var(--amber); }

  /* con Claude */
  .term { font-size: 13px; border-radius: 18px; }
  .term-bar span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .term-body { padding: 18px 16px 20px; min-height: 0; }
  .term .task small { display: block; margin: 0 0 6px 22px; font-size: 12.5px; }
  .cc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cc { padding: 18px 16px; }
  .cc .ic { width: 36px; height: 36px; margin-bottom: 12px; }
  .cc h3 { font-size: 17px; }
  .cc p { font-size: 14.5px; }

  /* revisión */
  .split-rev .sheet { order: 2; }
  .ticks li { font-size: 16px; }

  /* empezar */
  .way { padding: 18px 20px; }
  .code-card { overflow: hidden; }
  .code-card pre { font-size: 12.5px; line-height: 1.75; padding: 64px 20px 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .code-card pre::-webkit-scrollbar { display: none; }
  .code-card::after { content: ''; position: absolute; top: 56px; right: 0; bottom: 0; width: 36px; pointer-events: none; border-radius: 0 20px 20px 0; background: linear-gradient(90deg, transparent, #120a05); }
  .copy { height: 40px; padding: 0 16px; font-size: 13px; top: 12px; right: 12px; }

  /* preguntas */
  .faq summary { font-size: 17.5px; padding: 20px 40px 20px 0; line-height: 1.35; }
  .faq summary::after { top: 16px; }

  /* cierre and footer */
  .cierre { padding-bottom: 60px; }
  .cierre-card { padding: 40px 20px 44px; }
  .cierre-m { width: 170px; height: 170px; }
  .cierre-card .ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .cierre-card .ctas .btn { justify-content: center; height: 54px; }
  .foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .foot-in { flex-direction: column; text-align: center; gap: 12px; }
  .foot-in a { display: inline-block; padding: 10px 4px; }
  .foot-in .muted a { padding: 4px 2px; }

  /* touch feedback in place of hover */
  .btn:active, .menu-btn:active, .copy:active, .cine-note a:active { transform: scale(0.97); }
}
@media (max-width: 360px) {
  .cc-grid { grid-template-columns: 1fr; }
  .studio-wrap .kpi b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu-btn i, .dots i, .hoja, .hoja-velo { transition: none; }
  .hm-op, .hb { animation: none; }
}


/* ── Phones, round two: ÁMBAR leads, floats and answers ─────────────────── */
/* ÁMBAR floats on every screen; it teleports into its big self at the closing card */
@media all {
  .ambar-fab { display: block; position: fixed; z-index: 30; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 84px; height: 84px; padding: 0; border: 0; background: none; opacity: 0; cursor: pointer; transform-origin: 50% 60%; will-change: transform; }
  .ambar-fab svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(242, 163, 36, 0.35)); }
  .fab-globo { position: absolute; right: calc(100% + 4px); top: 50%; padding: 10px 15px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #2b1503; font: 700 15px var(--font); white-space: nowrap; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.7);
    opacity: 0; transform: translateY(-50%) translateX(8px) scale(0.9); transform-origin: right center; pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease); }
  .fab-globo.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }

  /* the help sheet */
  .hoja-velo { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(5, 3, 1, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .hoja-velo.on { opacity: 1; pointer-events: auto; }
  .hoja { display: flex; flex-direction: column; position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; height: min(80svh, 680px); padding-bottom: env(safe-area-inset-bottom); border-radius: 26px 26px 0 0;
    background: #140b05; border-top: 1px solid var(--line2); box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.9); transform: translateY(105%); transition: transform 0.45s var(--ease); }
  .hoja.on { transform: none; }
  html.hoja-abierta, html.hoja-abierta body { overflow: hidden; }
  .hoja-asa { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: rgba(255, 244, 224, 0.2); }
  .hoja-cab { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px; border-bottom: 1px solid var(--line); }
  .hoja-av { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(242, 163, 36, 0.3), rgba(242, 163, 36, 0.08)); }
  .hoja-av svg { width: 46px; height: 46px; overflow: visible; }
  .hoja-cab b { display: block; font-size: 18px; letter-spacing: -0.01em; }
  .hoja-cab small { display: block; font-size: 14px; color: var(--ok); }
  .hoja-x { margin-left: auto; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 244, 224, 0.07); color: var(--ink); cursor: pointer; }
  .hoja-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .hoja-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 24px; display: flex; flex-direction: column; gap: 10px; }
  .hb { max-width: 88%; padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; animation: hbIn 0.35s var(--ease) both; }
  .hb.ambar { align-self: flex-start; background: rgba(255, 244, 224, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
  .hb.yo { align-self: flex-end; background: var(--amber); color: #2b1503; font-weight: 600; border-bottom-right-radius: 6px; }
  .hb.typing { display: flex; gap: 5px; padding: 15px 16px; }
  .hb.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--honey); opacity: 0.4; animation: typing 1s infinite; }
  .hb.typing i:nth-child(2) { animation-delay: 0.15s; } .hb.typing i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes typing { 50% { opacity: 1; transform: translateY(-2px); } }
  @keyframes hbIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
  .hm { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .hm-t { margin: 10px 2px 0; font: 600 12.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
  .hm-op { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 244, 224, 0.04); color: var(--ink); font: 600 15.5px/1.3 var(--font); text-align: left; cursor: pointer; animation: hbIn 0.35s var(--ease) both; }
  .hm-op:hover { text-decoration: none; }
  .hm-op .e { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(242, 163, 36, 0.14); color: var(--amber); }
  .hm-op .e svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .hm-op .tx { flex: 1; }
  .hm-op .tx small { display: block; margin-top: 2px; font-weight: 500; font-size: 13.5px; opacity: 0.8; }
  .hm-op .fl { font-size: 22px; color: var(--dim); }
  .hm-op.main { background: var(--amber); border-color: transparent; color: #2b1503; min-height: 64px; box-shadow: 0 14px 30px -14px rgba(242, 163, 36, 0.8); }
  .hm-op.main .e { background: rgba(43, 21, 3, 0.12); color: #2b1503; }
  .hm-op.main .fl { color: #2b1503; }
  .hm-op:active, .ambar-fab:active { transform: scale(0.97); }
}

@media (max-width: 640px) {
  /* hero: ÁMBAR is the lead, the studio window stays for big screens */
  .hero { padding-top: 6px; }
  .hero-m { display: block; width: min(300px, 82vw); aspect-ratio: 320 / 280; margin: 0 auto -6px; padding: 0; border: 0; background: none; cursor: pointer; }
  .hero-m svg { width: 100%; height: 100%; overflow: visible; }
  .hero-top::before { content: ''; position: absolute; left: 50%; top: 20px; width: 340px; height: 340px; margin-left: -170px; border-radius: 50%; pointer-events: none; z-index: -1;
    background: radial-gradient(circle, rgba(242, 163, 36, 0.28), rgba(242, 163, 36, 0.06) 45%, transparent 70%); }
  .hero-top { position: relative; }
  .hero .badge { margin-top: 0; }
  .studio-wrap { display: none; }

  /* Qué hace: cards that stack as you scroll (like the B&N projects); each
     one opens up as it rises: the deck fans out, the documents separate */
  .bento { display: block; padding-bottom: 8px; }
  .bento .rev { opacity: 1; transform: none; }
  .tile { position: sticky; top: calc(78px + var(--i, 0) * 10px); height: 440px; margin-bottom: 22px; background: #150c05; border-color: var(--line2);
    transform-origin: 50% 0; transform: scale(var(--s, 1)); box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.9); }
  .tile:last-child { margin-bottom: 0; }
  .tile::before { display: block !important; opacity: calc(var(--c, 0) * 0.55) !important; background: #000 !important; z-index: 3; transition: none !important; }
  .tile-media { flex: 1; min-height: 0; }
  .tile-text { flex: none; padding: 18px 20px 22px; transform: translateY(calc((1 - var(--p, 1)) * 18px)); opacity: calc(0.35 + var(--p, 1) * 0.65); }
  .tile-text h3 { font-size: 22px; line-height: 1.2; }
  .tile-text p { line-height: 1.45; }
  /* the clips sit in the card like a screen: inset, rounded, with a frame */
  .t-video .tile-media, .t-tuto .tile-media { margin: 14px 14px 0; border-radius: 14px; border: 1px solid var(--line2); background: #0b0603; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9); }
  .tile-media video { object-position: 50% 0; transform: scale(calc(1.1 - var(--p, 1) * 0.1)); transform-origin: 50% 0; transition: transform 0.45s var(--ease); will-change: transform; }
  .t-tuto video { object-position: 50% 40%; }
  /* three slides, larger, instead of four small ones */
  .fan img { width: 64%; left: 18%; top: 24%; border-radius: 8px; transition: transform 0.6s var(--ease); will-change: transform; }
  .fan img:nth-child(1) { display: none; }
  .fan img:nth-child(1) { transform: rotate(calc(-3deg - var(--p, 1) * 13deg)) translateX(calc(-4% - var(--p, 1) * 30%)) translateY(calc(var(--p, 1) * -4%)); }
  .fan img:nth-child(2) { transform: rotate(calc(-2deg - var(--p, 1) * 9deg)) translateX(calc(-3% - var(--p, 1) * 17%)) translateY(calc(var(--p, 1) * -2%)); }
  .fan img:nth-child(3) { transform: rotate(calc(var(--p, 1) * 0deg)) translateY(calc(var(--p, 1) * -10%)); }
  .fan img:nth-child(4) { transform: rotate(calc(2deg + var(--p, 1) * 9deg)) translateX(calc(3% + var(--p, 1) * 17%)) translateY(calc(var(--p, 1) * -2%)); }
  /* the pages follow the scroll through a short transition, so they glide
     instead of stepping frame by frame */
  .stack img { width: 42%; top: 10%; transition: transform 0.6s var(--ease); will-change: transform; }
  .stack img:nth-child(1) { left: 29%; transform: translate3d(calc(var(--p, 1) * 38%), calc(var(--p, 1) * 5%), 0) rotate(calc(1deg + var(--p, 1) * 9deg)); }
  .stack img:nth-child(2) { left: 29%; transform: translate3d(calc(var(--p, 1) * -38%), calc(var(--p, 1) * -2%), 0) rotate(calc(-1deg - var(--p, 1) * 8deg)); }
  .t-web .mp { padding-top: 22px; }
  .t-web .mp svg { transform: scale(calc(0.6 + var(--p, 1) * 0.4)); }
  .mp-btns b { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
  .mp-btns span { width: 26px; height: 26px; font-size: 10px; }
  .mp-cap { font-size: 13px; }

  /* the contact sheet reads at desktop size only */
  #revision .sheet { display: none; }
}

/* desktop: a bigger ÁMBAR, and the sheet becomes a panel in the corner */
@media (min-width: 1001px) {
  .ambar-fab { width: 120px; height: 120px; right: 34px; bottom: 30px; }
  .fab-globo { font-size: 15.5px; }
  .hoja-velo { background: rgba(5, 3, 1, 0.35); }
  .hoja { left: auto; right: 28px; bottom: 28px; width: 410px; height: min(640px, calc(100vh - 120px)); border-radius: 26px; border: 1px solid var(--line2); transform: translateY(24px) scale(0.98); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.25s; }
  .hoja.on { transform: none; opacity: 1; pointer-events: auto; }
  .hoja-asa { display: none; }
  .hm-op:hover { border-color: var(--line2); background: rgba(255, 244, 224, 0.07); }
  .hm-op.main:hover { background: #f5ad3a; }
  html.hoja-abierta, html.hoja-abierta body { overflow: auto; }
}
