/* CRIBE OS — landing (v2, oct 2026): oscura, editorial, cinematográfica. */
:root {
  --bg: #060606;
  --panel: #111110;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #F3F1EC;
  --ink-mid: #A9A6A0;
  --ink-muted: #75726D;
  --accent: #FF7415;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Grano de película fijo (no interactivo) */
body::before { content: ''; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.accent { color: var(--accent); }

/* ---------- Barra ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 300ms, border-color 300ms; border-bottom: 1px solid transparent; }
.top.is-scrolled { background: rgba(6, 6, 6, .72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--ink-mid); }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 99px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; transition: transform 200ms var(--ease), background 200ms, box-shadow 200ms; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--ink); color: #0A0A0A; }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06); }
.btn--glow { background: var(--accent); color: #0B0602; box-shadow: 0 0 40px rgba(255, 116, 21, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--glow:hover { box-shadow: 0 0 60px rgba(255, 116, 21, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.btn--line:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arr { transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; overflow: hidden; text-align: center; isolation: isolate; }
.hero::before { content: ''; position: absolute; left: 50%; top: 66%; width: 1200px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 116, 21, .30), rgba(255, 116, 21, .07) 45%, transparent 72%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 260px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 3; }
.hero .mono { display: inline-flex; gap: 12px; align-items: center; }
.hero .mono i { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1 { margin-top: 26px; font-size: clamp(58px, 11vw, 168px); line-height: .86; letter-spacing: -0.065em; font-weight: 700; }
h1 .serif { font-size: 1.04em; letter-spacing: -0.03em; padding-right: .04em; }
.lead { margin: 28px auto 0; max-width: 600px; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-mid); line-height: 1.5; }
.cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; }

.stage { position: relative; height: clamp(470px, 56vw, 730px); margin-top: 70px; }
.stage__in { position: absolute; inset: 0; will-change: transform; }
.stage .iphone { position: absolute; top: 0; left: 50%; }
.stage .iphone--center { --w: clamp(230px, 27vw, 340px); transform: translateX(-50%); z-index: 2; }
.stage .iphone--left { --w: clamp(190px, 22vw, 280px); transform: translateX(-138%) translateY(12%) rotate(-7deg); z-index: 1; filter: brightness(.78); }
.stage .iphone--right { --w: clamp(190px, 22vw, 280px); transform: translateX(38%) translateY(12%) rotate(7deg); z-index: 1; filter: brightness(.9); }
@media (max-width: 700px) { .stage .iphone--left { transform: translateX(-104%) translateY(16%) rotate(-7deg); } .stage .iphone--right { transform: translateX(4%) translateY(16%) rotate(7deg); } }

/* ---------- iPhone (proporciones de iPhone 15 Pro: 393×852 pt) ---------- */
.iphone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 70.6 / 146.6; border-radius: calc(var(--w) * .165); padding: calc(var(--w) * .039); background: linear-gradient(145deg, #5A5A5D 0%, #232325 18%, #38383B 50%, #1A1A1C 80%, #4A4A4D 100%); box-shadow: inset 0 0 0 calc(var(--w) * .004) rgba(255, 255, 255, .18), 0 60px 120px -20px rgba(0, 0, 0, .95), 0 40px 80px -40px rgba(255, 116, 21, .22); }
.iphone::before { content: ''; position: absolute; inset: calc(var(--w) * .008); border-radius: calc(var(--w) * .157); background: #050505; }
.iphone__screen { position: relative; border-radius: calc(var(--w) * .127); aspect-ratio: 393 / 852; height: auto; overflow: hidden; background: #FAF9F6; z-index: 1; }
.iphone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone__island { position: absolute; z-index: 3; top: calc(var(--w) * .066); left: 50%; transform: translateX(-50%); width: calc(var(--w) * .31); height: calc(var(--w) * .09); border-radius: 99px; background: #000; }
.iphone__status { position: absolute; z-index: 2; left: calc(var(--w) * .039); right: calc(var(--w) * .039); top: calc(var(--w) * .039); height: calc(var(--w) * .148); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .085) 0 calc(var(--w) * .11); font: 600 calc(var(--w) * .043)/1 -apple-system, 'SF Pro Text', var(--sans); color: #111; letter-spacing: -0.01em; }
.iphone__status .ic { display: flex; gap: calc(var(--w) * .014); align-items: center; }
.iphone__status svg { height: calc(var(--w) * .031); width: auto; fill: currentColor; }
.iphone--dark .iphone__status { color: #F2F2F2; }
.iphone--dark .iphone__screen { background: #0D0D0C; }
.iphone__side { position: absolute; z-index: 0; width: calc(var(--w) * .012); border-radius: 3px; background: linear-gradient(90deg, #1F1F21, #4C4C4F); }
.iphone__side--a { left: calc(var(--w) * -.008); top: 20%; height: 6%; }
.iphone__side--b { left: calc(var(--w) * -.008); top: 28.5%; height: 10%; }
.iphone__side--c { right: calc(var(--w) * -.008); top: 26%; height: 14%; }

/* ---------- MacBook ---------- */
.mac { position: relative; width: 100%; }
.mac__lid { position: relative; aspect-ratio: 1440 / 935; padding: 1.5% 1.5% 2.8%; border-radius: 2.4% / 3.6%; background: linear-gradient(180deg, #121214, #08080A); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 0 0 1px rgba(0, 0, 0, .8), 0 90px 140px -50px rgba(0, 0, 0, .95); }
.mac__lid::after { content: ''; position: absolute; top: 1.5%; left: 50%; transform: translateX(-50%); width: 12%; height: 2.6%; border-radius: 0 0 9px 9px; background: #08080A; }
.mac__screen { width: 100%; height: 100%; border-radius: .5%; overflow: hidden; background: #000; }
.mac__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mac__base { position: relative; width: 114%; left: -7%; height: clamp(10px, 1.5vw, 19px); margin-top: -1px; border-radius: 0 0 26px 26px / 0 0 100% 100%; background: linear-gradient(180deg, #E2E2E6 0%, #A6A6AB 40%, #5E5E63 100%); box-shadow: 0 40px 60px -24px rgba(0, 0, 0, .9); }
.mac__base::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14%; height: 40%; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #86868B, #B6B6BB); }

/* ---------- Franja ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee__in { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mid); display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee span::after { content: '✦'; color: var(--accent); letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Declaración ---------- */
.statement { padding: clamp(90px, 12vw, 170px) 0 clamp(30px, 5vw, 60px); }
.statement p { font-size: clamp(34px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.05em; font-weight: 600; max-width: 1100px; }
.statement .w { opacity: .14; transition: opacity 500ms var(--ease); }
.statement .w.on { opacity: 1; }
.statement .serif { color: var(--accent); }

/* ---------- Capítulos ---------- */
.chapter { padding: clamp(70px, 10vw, 140px) 0; position: relative; }
.chapter__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.chapter--flip .chapter__media { order: -1; }
@media (max-width: 900px) { .chapter__grid { grid-template-columns: 1fr; } .chapter--flip .chapter__media { order: 0; } }
.chapter__num { display: flex; align-items: center; gap: 14px; }
.chapter__num b { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 500; letter-spacing: .14em; }
.chapter__num::after { content: ''; flex: 1; max-width: 120px; height: 1px; background: var(--line-2); }
h2 { margin-top: 20px; font-size: clamp(40px, 5.6vw, 84px); line-height: .94; letter-spacing: -0.055em; font-weight: 650; }
h2 .serif { font-size: 1.06em; }
.chapter p.body { margin-top: 22px; color: var(--ink-mid); font-size: 18px; max-width: 470px; }
.specs { margin-top: 30px; border-top: 1px solid var(--line); max-width: 470px; }
.specs li { list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs li span:first-child { color: var(--ink-mid); }
.specs li span:last-child { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ink); text-transform: uppercase; text-align: right; }
.chapter__media { position: relative; display: flex; justify-content: center; }
.chapter__media::before { content: ''; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(255, 116, 21, .2), transparent 70%); filter: blur(30px); z-index: 0; }
.chapter__media > * { position: relative; z-index: 1; }
.chapter__media .iphone { --w: clamp(240px, 26vw, 330px); }

/* Focus: capítulo a pantalla completa */
.cinema { padding: clamp(90px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); text-align: center; position: relative; overflow: hidden; }
.cinema::before { content: ''; position: absolute; left: 50%; top: 62%; width: 1400px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 116, 21, .2), transparent 70%); pointer-events: none; }
.cinema h2 { margin-inline: auto; max-width: 980px; }
.cinema p.body { margin: 22px auto 0; color: var(--ink-mid); font-size: 18px; max-width: 560px; }
.cinema .mac { margin: clamp(50px, 7vw, 90px) auto 0; max-width: 1040px; }
.cinema .chips { margin-top: 44px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-mid); }


/* Ficha técnica */
.sheet { padding: clamp(70px, 10vw, 140px) 0; }
.sheet__grid { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .sheet__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sheet__grid { grid-template-columns: 1fr; } }
.cell { padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 210px; display: flex; flex-direction: column; transition: background 300ms; }
.cell:hover { background: rgba(255, 255, 255, .02); }
.cell .mono { color: var(--accent); }
.cell h3 { margin-top: auto; padding-top: 34px; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.cell p { margin-top: 8px; color: var(--ink-mid); font-size: 15px; }

/* Instalar */
.install { padding: 0 0 clamp(70px, 10vw, 140px); }
.install__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .install__grid { grid-template-columns: 1fr; } }
.icard { border-radius: 24px; padding: 26px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.icard h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.icard ol { margin-top: 14px; padding-left: 18px; color: var(--ink-mid); font-size: 15px; display: grid; gap: 7px; }
.icard b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { padding: 0 0 clamp(70px, 10vw, 140px); }
.faq__list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.025em; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--accent); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-mid); max-width: 760px; font-size: 16.5px; }

/* Cierre */
.final { position: relative; padding: clamp(110px, 16vw, 220px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.final::before { content: ''; position: absolute; left: 50%; bottom: -40%; width: 1500px; height: 1000px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 116, 21, .35), transparent 70%); pointer-events: none; }
.final h2 { font-size: clamp(60px, 11vw, 170px); line-height: .86; letter-spacing: -0.065em; position: relative; }
.final p { position: relative; margin-top: 24px; color: var(--ink-mid); font-size: 18px; }
.final .cta { position: relative; }

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--ink-muted); font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot img { height: 24px; width: auto; filter: invert(1); opacity: .8; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }

/* Aparición */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { opacity: 1; }
  body::before, .marquee__in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ================= Reloj de gravedad en vivo (MacBook de Focus) ================= */
.lc-host { position: relative; container-type: inline-size; }
.lc-host.is-live .lc-fallback { visibility: hidden; }
.lc { --p: 2.65cqw; position: absolute; inset: 0; background: #0C0C0B; color: #F2F0EB; font-family: -apple-system, 'SF Pro Display', 'Inter Tight', var(--sans); text-align: center; overflow: hidden; }
.lc[hidden] { display: none; }
.lc > * { position: absolute; left: 0; right: 0; margin: 0; }
.lc-bar { top: 1.3cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 24.2cqw; }
.lc-bar span { font-size: .82cqw; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8C8984; }
.lc-bar svg { width: 1.3cqw; height: 1.3cqw; fill: none; stroke: #D9D6D0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-date { top: 6.45cqw; font-size: .86cqw; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: #8C8984; }
.lc-time { top: 8.4cqw; font-size: 9.6cqw; line-height: 1.12; font-weight: 500; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.lc-ampm { display: inline-block; vertical-align: top; margin: 1.75em 0 0 .45em; font-size: .15em; line-height: 1; font-weight: 650; letter-spacing: .02em; color: #8C8984; }
.lc-cols, .lc-field { display: grid; grid-template-columns: repeat(12, var(--p)); justify-content: center; }
.lc-cols { top: 20.55cqw; }
.lc-cols span { font-size: .62cqw; font-weight: 600; color: #6E6B66; font-variant-numeric: tabular-nums; transition: color 400ms; }
.lc-cols span.now { color: var(--accent); }
.lc-field { top: 21.83cqw; grid-template-rows: var(--p) calc(var(--p) * .55) repeat(5, var(--p)) calc(var(--p) * .55) repeat(5, var(--p)); overflow: hidden; padding-bottom: 2px; }
.lc-slot { position: relative; display: flex; align-items: center; justify-content: center; }
.lc-slot::before { content: ''; width: 20%; aspect-ratio: 1; border-radius: 99px; background: #3A3936; }
.lc-ball { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 99px; --dur: calc(420ms + var(--fall, 3) * 40ms); animation: lcFall var(--dur) linear backwards; will-change: transform; }
.lc-ball.h { background: #F0EEE9; }
.lc-ball.m { background: var(--accent); box-shadow: 0 0 1.2cqw rgba(255, 116, 21, .25); }
.lc-ball.s { background: #7A3A13; }
.lc-ball.out { animation: lcDrain 620ms linear forwards; }
@keyframes lcFall {
  0% { opacity: 0; transform: translateY(calc(var(--fall) * var(--p) * -1)); animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  14% { opacity: 1; }
  72% { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
  82% { transform: translateY(calc(var(--p) * -.14)); animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  91% { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .46, .45, .94); }
  95.5% { transform: translateY(calc(var(--p) * -.025)); animation-timing-function: cubic-bezier(.55, .085, .68, .53); }
  100% { transform: translateY(0); }
}
@keyframes lcDrain { 0% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.55, .085, .68, .53); } 100% { transform: translateY(calc(var(--p) * 6)); opacity: 0; } }
.lc-phrase { top: 55.55cqw; font-size: 1.1cqw; font-weight: 550; letter-spacing: -0.01em; }
.lc-phrase b { font-weight: 550; color: var(--accent); }
.lc-legend { top: 57.75cqw; display: flex; justify-content: center; gap: 1.6cqw; list-style: none; font-size: .7cqw; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6E6B66; }
.lc-legend li { display: inline-flex; align-items: center; gap: .45cqw; }
.lc-legend i { width: .55cqw; height: .55cqw; border-radius: 99px; }
.lc-legend .h { background: #F0EEE9; } .lc-legend .m { background: var(--accent); } .lc-legend .s { background: #7A3A13; }

/* La MacBook de Focus se "abre" al llegar */
.cinema .mac { --open: 1; perspective: 2400px; }
.cinema .mac__lid { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--open)) * -24deg)); will-change: transform; }
.cinema .mac__screen { filter: brightness(calc(.35 + var(--open) * .65)); }

/* ================= Texto al hacer scroll ================= */
.split.reveal { opacity: 1; transform: none; }
.wr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wr > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; opacity: 0; transition: transform 1000ms cubic-bezier(.16, 1, .3, 1), opacity 700ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.split.is-in .wr > span { transform: none; opacity: 1; }
h1 .serif .wr, h2 .serif .wr { padding-right: .06em; }
.ws { opacity: .16; transition: opacity 450ms var(--ease), filter 450ms var(--ease); filter: blur(1.5px); }
.ws.on { opacity: 1; filter: none; }

/* ================= Microanimaciones ================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, rgba(255, 116, 21, .2), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.hero .mono i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 12px var(--accent); transform: scale(1); } 50% { box-shadow: 0 0 22px 2px var(--accent); transform: scale(1.35); } }
.btn--glow { position: relative; overflow: hidden; transition: transform 380ms cubic-bezier(.2, 1.4, .4, 1), box-shadow 200ms; }
.btn--glow::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn--glow:hover::after { transform: translateX(120%); transition: transform 800ms var(--ease); }
.chapter__num::after { transform-origin: 0 50%; transform: scaleX(0); transition: transform 1100ms var(--ease) 250ms; }
.chapter__num.is-in::after { transform: scaleX(1); }
.specs li { opacity: 0; transform: translateX(-14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.specs.is-in li { opacity: 1; transform: none; }
.specs.is-in li:nth-child(2) { transition-delay: 110ms; } .specs.is-in li:nth-child(3) { transition-delay: 220ms; }
.specs li span:last-child { transition: color 200ms, letter-spacing 300ms var(--ease); }
.specs li:hover span:last-child { color: var(--accent); letter-spacing: .12em; }
.chips .chip { opacity: 0; transform: translateY(10px) scale(.92); transition: opacity 500ms var(--ease), transform 600ms cubic-bezier(.2, 1.5, .4, 1), color 200ms, box-shadow 200ms; }
.chips.is-in .chip { opacity: 1; transform: none; }
.chips.is-in .chip:nth-child(2) { transition-delay: 80ms; } .chips.is-in .chip:nth-child(3) { transition-delay: 160ms; } .chips.is-in .chip:nth-child(4) { transition-delay: 240ms; }
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 116, 21, .6); }
.chapter__media > * { transition: transform 120ms linear; will-change: transform; }
.cell, .icard { position: relative; overflow: hidden; }
.cell::before, .icard::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 116, 21, .12), transparent 70%); }
.cell:hover::before, .icard:hover::before { opacity: 1; }
.cell h3 { transition: transform 400ms var(--ease); }
.cell:hover h3 { transform: translateY(-4px); }
.icard { transition: transform 400ms var(--ease), box-shadow 300ms; }
.icard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -30px rgba(255, 116, 21, .35); }
.marquee:hover .marquee__in { animation-play-state: paused; }
.top nav a:not(.btn) { position: relative; transition: color 200ms; }
.top nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 350ms var(--ease); }
.top nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.faq details[open] p { animation: faqIn 500ms var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq summary { transition: color 200ms, padding-left 300ms var(--ease); }
.faq summary:hover { color: #fff; padding-left: 6px; }
.brand img { transition: transform 500ms cubic-bezier(.2, 1.5, .4, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .specs li, .chips .chip, .wr > span { opacity: 1; transform: none; transition: none; }
  .chapter__num::after { transform: none; }
  .ws { opacity: 1; filter: none; }
  .cinema .mac__lid { transform: none; } .cinema .mac__screen { filter: none; }
  .hero .mono i { animation: none; }
}

/* ================= Header cinematográfico ================= */
.hero__film { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 clamp(70px, 10vh, 120px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; transform-origin: 58% 70%; animation: filmPush 2.8s cubic-bezier(.16, 1, .3, 1) both, filmFade 1.4s ease-out both; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(6, 6, 6, .72), rgba(6, 6, 6, .4) 30%, rgba(6, 6, 6, .45) 60%, var(--bg)), radial-gradient(70% 55% at 50% 42%, rgba(0, 0, 0, .35), transparent 70%), radial-gradient(90% 70% at 50% 45%, transparent 30%, rgba(0, 0, 0, .6)); }
@keyframes filmPush { from { transform: scale(1.22); } to { transform: scale(var(--hz, 1.06)) translateY(var(--hy, 0px)); } }
@keyframes filmFade { from { opacity: 0; filter: brightness(.3) blur(6px); } to { opacity: 1; filter: none; } }
/* Barras de cine: cierran la pantalla y se abren al cargar; al bajar se retiran. */
.hero__bar { position: absolute; left: 0; right: 0; z-index: 2; height: 50%; background: #000; pointer-events: none; animation: barOpen 1.5s cubic-bezier(.7, 0, .2, 1) .05s forwards; transition: transform 260ms ease-out, opacity 260ms; }
/* Si bajas antes de que termine, se retiran al instante. */
.hero.is-moving .hero__bar { animation: none; transform: scaleY(0); opacity: 0; }
.hero__bar--t { top: 0; transform-origin: top; } .hero__bar--b { bottom: 0; transform-origin: bottom; }
/* Se abren como telón, quedan un instante en formato cine y luego se retiran del todo (sin franja negra al bajar). */
@keyframes barOpen { 0% { transform: scaleY(1); } 55% { transform: scaleY(.12); } 70% { transform: scaleY(.12); } 100% { transform: scaleY(0); visibility: hidden; } }
.hero__film .wrap { position: relative; z-index: 1; }
.hero__film .lead { color: #C9C5BE; }
.hero .stage { margin-top: clamp(-120px, -8vw, -40px); }
@media (max-width: 700px) { .hero__bar { animation-name: barOpenM; } @keyframes barOpenM { 0% { transform: scaleY(1); } 55% { transform: scaleY(.07); } 70% { transform: scaleY(.07); } 100% { transform: scaleY(0); visibility: hidden; } } .hero__bg img { object-position: 62% 60%; } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; transform: none; } .hero__bar { display: none; } }

/* ================= Escenas cinematográficas (fotos reales) ================= */
.scene { position: relative; height: clamp(620px, 100svh, 980px); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.scene__media { position: absolute; inset: 0; z-index: -2; }
.scene__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.14)) translateY(var(--drift, 0px)); transform-origin: 50% 50%; will-change: transform; }
.scene::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg), transparent 22%, transparent 45%, rgba(6, 6, 6, .8) 78%, var(--bg)), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.scene__in { position: relative; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); display: grid; gap: 22px; }
.scene--right .scene__in { justify-items: end; text-align: right; }
.scene--left .scene__in { justify-items: start; text-align: left; }
.scene__time { color: rgba(243, 241, 236, .82); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.scene__cap { font-size: clamp(34px, 5vw, 72px); line-height: .98; letter-spacing: -0.05em; font-weight: 650; max-width: 900px; }
.scene__cap .serif { font-size: 1.06em; }

/* Tarjeta de vidrio (estilo "prompt") */
.glass { --g: rgba(255, 255, 255, .13); display: flex; align-items: center; gap: 16px; width: min(560px, 100%); padding: 20px 24px; border-radius: 28px; text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .35), 0 30px 80px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(24px) scale(.97); filter: blur(8px); transition: opacity 900ms var(--ease), transform 1100ms cubic-bezier(.16, 1, .3, 1), filter 900ms var(--ease); }
.glass.is-in { opacity: 1; transform: none; filter: none; }
.glass > div { flex: 1; min-width: 0; }
.glass__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.glass__text { margin-top: 6px; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; color: #fff; min-height: 1.25em; }
.glass--type .glass__text.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--accent); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.glass__ring { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 99px; box-shadow: inset 0 0 0 2px rgba(255, 116, 21, .9); position: relative; transition: background 400ms, box-shadow 400ms; }
.glass__ring.done { background: var(--accent); box-shadow: 0 0 24px rgba(255, 116, 21, .6); }
.glass__ring.done::after, .glass__box.done::after { content: ''; position: absolute; left: 50%; top: 46%; width: 30%; height: 54%; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); animation: tick 380ms cubic-bezier(.2, 1.5, .4, 1); }
@keyframes tick { from { transform: translate(-50%, -50%) rotate(45deg) scale(0); } }
/* Tarea desde una nota */
.glass__box { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; position: relative; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); transition: background 300ms, box-shadow 300ms; }
.glass__chip { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 99px; background: var(--accent); color: #0B0602; font-weight: 600;
  opacity: 0; transform: translateX(-16px) scale(.8); transition: opacity 500ms var(--ease), transform 700ms cubic-bezier(.2, 1.5, .4, 1); }
.glass--task.step2 .glass__chip { opacity: 1; transform: none; }
.glass--task .glass__text { transition: color 400ms; }
.glass--task.step1 .glass__box { box-shadow: inset 0 0 0 2px var(--accent); }
/* Focus en vivo */
.glass--focus { flex-direction: column; align-items: stretch; gap: 14px; }
.glass__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.glass__timer { font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff; }
.glass__dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 6px; }
.glass__dots i { aspect-ratio: 1; border-radius: 99px; background: rgba(255, 255, 255, .2); transition: background 400ms, transform 500ms cubic-bezier(.2, 1.6, .4, 1), box-shadow 400ms; }
.glass__dots i.on { background: var(--accent); transform: scale(1.15); box-shadow: 0 0 10px rgba(255, 116, 21, .55); }
/* Cierre del día */
.glass--close { flex-direction: column; align-items: stretch; gap: 10px; width: min(400px, 100%); }
.glass__checks { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.glass__checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; color: rgba(255, 255, 255, .92); letter-spacing: -0.01em; transition: color 400ms; }
.glass__checks li::before { content: ''; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); transition: background 300ms, box-shadow 300ms, transform 500ms cubic-bezier(.2, 1.6, .4, 1); background-repeat: no-repeat; background-position: center; background-size: 12px; }
.glass__checks li.done { color: rgba(255, 255, 255, .55); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.glass__checks li.done::before { background-color: var(--accent); box-shadow: none; transform: scale(1.08); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.glass__streak { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 15px; color: rgba(255, 255, 255, .75); opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.glass__streak b { color: #fff; font-weight: 600; }
.glass--close.step2 .glass__streak { opacity: 1; transform: none; }
/* Sincronización */
.glass__pulse { flex: 0 0 auto; position: relative; width: 14px; height: 14px; margin: 0 6px; border-radius: 99px; background: #3BD16F; box-shadow: 0 0 14px rgba(59, 209, 111, .7); }
.glass__pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 99px; box-shadow: 0 0 0 2px rgba(59, 209, 111, .6); animation: syncPing 2s ease-out infinite; }
@keyframes syncPing { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@media (max-width: 700px) {
  .scene { height: clamp(560px, 92svh, 820px); }
  .scene--right .scene__in, .scene--left .scene__in { justify-items: start; text-align: left; }
  .glass { padding: 16px 18px; border-radius: 22px; }
  .glass__dots { gap: 4px; }
  .scene img[src*="life-orange"] { object-position: 36% 50% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .glass { opacity: 1; transform: none; filter: none; transition: none; }
  .scene__media img { transform: none; }
}

/* ---------- Acceso con correo ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gate { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.gate[hidden] { display: none; }
.gate__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: gIn 260ms var(--ease); }
.gate__card { position: relative; width: min(460px, 100%); border-radius: 28px; padding: 34px 30px 26px; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 116, 21, .16), transparent 60%), #0F0F0E; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px rgba(0, 0, 0, .7); animation: gUp 420ms var(--ease); }
@keyframes gIn { from { opacity: 0; } }
@keyframes gUp { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.gate__x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 99px; border: 0; background: transparent; color: var(--ink-mid); font-size: 24px; line-height: 1; cursor: pointer; }
.gate__x:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.gate .mono { display: inline-flex; gap: 10px; align-items: center; }
.gate .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.gate h3 { margin-top: 14px; font-size: 44px; line-height: .95; letter-spacing: -0.05em; font-weight: 650; }
.gate__sub { margin-top: 12px; color: var(--ink-mid); font-size: 16px; }
.gate__field input { margin-top: 22px; width: 100%; height: 54px; border-radius: 16px; border: 0; padding: 0 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 500 16.5px var(--sans); outline: none; transition: box-shadow 200ms; }
.gate__field input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(255, 116, 21, .15); }
.gate__field input::placeholder { color: var(--ink-muted); }
.gate__check { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-mid); cursor: pointer; }
.gate__check input { width: 18px; height: 18px; accent-color: var(--accent); }
.gate__btn { width: 100%; margin-top: 18px; height: 54px; }
.gate__btn[disabled] { opacity: .6; pointer-events: none; }
.gate__err { margin-top: 12px; color: #FF8A7A; font-size: 14px; }
.gate__legal { margin-top: 14px; color: var(--ink-muted); font-size: 12.5px; line-height: 1.5; }
.gate__legal a { text-decoration: underline; text-underline-offset: 2px; }
