/* =============================================================
   Lope · asistente de Autominds
   Estética de marca: negro, rojo carmesí y blanco.
   1. Tokens
   ============================================================= */
:root {
  color-scheme: dark;
  --bg: #05070a;
  --bg-2: #0b0e13;
  --ink: #f5f6f8;
  --ink-soft: #b4bac3;
  --ink-mute: #767d89;
  --accent: #ee2647;        /* rojo de marca */
  --accent-deep: #a90c2b;
  --accent-text: #ff5470;   /* rojo algo más claro, para texto pequeño sobre negro */
  --card: #10141a;
  --glass-solid: rgba(16, 20, 26, 0.94);
  --glass: rgba(15, 19, 25, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.09);
  --field: rgba(255, 255, 255, 0.05);
  --ok: #3ddc97;
  --err: #ff7a8c;

  --display: "Outfit", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: 20px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-lg: 0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --glow: 0 0 0 1px rgba(238, 38, 71, 0.55), 0 0 44px -6px rgba(238, 38, 71, 0.55);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; line-height: 1.05; letter-spacing: -0.03em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: #fff; color: #05070a; border-radius: 10px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

/* Cristal oscuro: primero fondo sólido, luego translúcido si el navegador lo soporta */
.glass {
  background: var(--glass-solid);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
  }
}

/* Fondo: resplandores rojos sobre negro + una cuadrícula muy tenue, como en el tráiler */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent);
}
.mesh span { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.mesh span:nth-child(1) { width: 56vmax; height: 56vmax; left: -22vmax; top: -24vmax; background: #a90c2b; opacity: .5; animation: drift-a 34s ease-in-out infinite; }
.mesh span:nth-child(2) { width: 46vmax; height: 46vmax; right: -20vmax; top: 22vmax; background: #6d0719; opacity: .55; animation: drift-b 40s ease-in-out infinite; }
.mesh span:nth-child(3) { width: 42vmax; height: 42vmax; left: 24vmax; bottom: -30vmax; background: #ee2647; opacity: .2; animation: drift-c 46s ease-in-out infinite; }
@keyframes drift-a { 50% { transform: translate(8vmax, 6vmax) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate(-7vmax, 9vmax) scale(.92); } }
@keyframes drift-c { 50% { transform: translate(6vmax, -8vmax) scale(1.15); } }

/* =============================================================
   4. Typography
   ============================================================= */
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; }
/* La palabra destacada va en rojo, igual que «Conoce a Lope.» */
h1 em, h2 em { font-style: normal; color: var(--accent); }
.kicker, .eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text);
}
.kicker::before { content: "// "; opacity: .6; }
.section-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }
.fine { font-size: .82rem; color: var(--ink-mute); margin-top: 1.25rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 34px -12px rgba(238, 38, 71, .75); }
.btn-primary:hover { transform: translateY(-2px); background: #ff3355; box-shadow: 0 20px 44px -12px rgba(238, 38, 71, .9); }
.btn-glass { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--ink); }
.btn-glass:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.btn-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--accent); }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; }

/* Nav flotante */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding-inline: 12px; }
.nav-inner {
  max-width: 1180px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .6rem .55rem 1rem; border-radius: 999px; transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled .nav-inner { box-shadow: var(--shadow-lg); }
.nav-links { display: none; position: relative; gap: 1.75rem; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a { padding: .5rem 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-underline {
  position: absolute; bottom: 2px; left: 0; height: 2px; width: 0; border-radius: 2px;
  background: var(--accent); opacity: 0;
  transition: transform .4s var(--ease-out), width .4s var(--ease-out), opacity .25s;
}

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1rem; }

/* Hero */
.hero { padding-top: clamp(7.5rem, 13vw, 10rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-stack { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.hero-copy { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-edge); font-size: .68rem; color: var(--ink-soft); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(238,38,71,.22), 0 0 14px rgba(238,38,71,.9); }
.hero-title { font-size: clamp(2.9rem, 9.5vw, 5.8rem); line-height: .98; max-width: 14ch; font-weight: 600; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-note { font-size: .88rem; color: var(--ink-mute); }

/* Entrada del hero (solo CSS, no depende de JS) */
.hero-copy > *, .stage { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.stage { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Escenario del vídeo protagonista */
.stage { position: relative; width: 100%; max-width: 1040px; margin-inline: auto; scroll-margin-top: 110px; }
.stage::before {
  content: ""; position: absolute; inset: 8% 2% -8% 2%; z-index: -1; border-radius: 60px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(238,38,71,.6), rgba(169,12,43,.25) 60%, transparent); filter: blur(70px);
}
.stage-frame { padding: .6rem; border-radius: 28px; box-shadow: var(--shadow-lg); }
.stage-bar { display: flex; align-items: center; gap: .75rem; padding: .4rem .5rem .9rem; }
.stage-bar strong { display: block; font-family: var(--mono); font-weight: 500; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.3; }
.stage-dots { margin-left: auto; display: inline-flex; gap: 6px; padding-right: .4rem; }
.stage-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.stage-dots i:first-child { background: var(--accent); }
.stage-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #05070a; isolation: isolate; box-shadow: var(--glow); }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #05070a; }
/* Botón grande de reproducir sobre la portada (lo añade el JS; sin JS quedan los controles normales) */
.stage-cover {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%;
  background: rgba(5,7,10,.72);
  transition: opacity .5s var(--ease-out), visibility .5s;
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .stage-cover { background: rgba(5,7,10,.38); -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); }
}
.stage-cover.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.stage-play {
  position: relative; width: clamp(76px, 13vw, 132px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 0 70px -6px rgba(238,38,71,.9); transition: transform .4s var(--ease-bounce), background .25s;
}
.stage-cover:hover .stage-play { transform: scale(1.08); background: #ff3355; }
.stage-play svg { display: block; width: 38%; height: 38%; fill: #fff; }
.stage-play::before, .stage-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(238,38,71,.7); animation: ring 3s ease-out infinite; }
.stage-play::after { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.stage-chip {
  display: none; position: absolute; z-index: 3; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 999px; white-space: nowrap;
  font-size: .84rem; font-weight: 500; color: var(--ink); background: rgba(13,17,22,.92); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}
.stage-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(238,38,71,.9); }
.stage-chip-a { left: -56px; top: 26%; }
.stage-chip-b { right: -60px; top: 46%; animation-delay: -2s; }
.stage-chip-c { left: -34px; bottom: 12%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Ventana de conversación de ejemplo */
.what-top { display: grid; gap: 2.5rem; align-items: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.demo { position: relative; width: 100%; max-width: 470px; justify-self: center; }
.demo::before {
  content: ""; position: absolute; inset: 12% -4% -8% 6%; z-index: -1; border-radius: 40px;
  background: rgba(238,38,71,.4); filter: blur(60px);
}
.app { border-radius: 28px; padding: 1rem; box-shadow: var(--shadow-lg); animation: bob 7s ease-in-out infinite; }
.app-bar { display: flex; align-items: center; gap: .75rem; padding: .35rem .35rem .9rem; border-bottom: 1px solid var(--line); }
.app-bar strong { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.1; }
.app-avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 600; color: #fff; background: linear-gradient(135deg, #ff3355, var(--accent-deep)); box-shadow: 0 0 22px -4px rgba(238,38,71,.8);
}
.app-status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.app-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.app-tag { margin-left: auto; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); text-align: right; line-height: 1.4; max-width: 14ch; }

.chat { display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem .35rem; min-height: 292px; }
.bubble { max-width: 88%; padding: .8rem 1rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.bubble-user { align-self: flex-end; background: linear-gradient(180deg, #e01f41, #b90f30); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 10px 30px -10px rgba(238,38,71,.7); }
.bubble-lope { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-done { display: flex; flex-wrap: wrap; gap: .4rem; }
.chat-done li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 500; color: var(--ok); background: rgba(61,220,151,.09); border: 1px solid rgba(61,220,151,.2);
}
.chat-done li::before { content: "✓"; }
.chat .is-in { animation: pop .5s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: .95rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: .3rem; background: rgba(255,255,255,.05); border-radius: 999px; }
.app-tabs button { padding: .55rem .2rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); transition: background .25s, color .25s, box-shadow .25s; }
.app-tabs button:hover { color: var(--ink); }
.app-tabs button.is-active { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px rgba(238,38,71,.8); }

/* Qué hace */
.features { display: grid; gap: 1rem; }
.feature { padding: 1.6rem; display: grid; gap: .8rem; align-content: start; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(238,38,71,.55); box-shadow: var(--shadow-lg), 0 0 40px -14px rgba(238,38,71,.7); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(238,38,71,.12); border: 1px solid rgba(238,38,71,.3); }
.feature-icon svg { width: 23px; height: 23px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-soft); font-size: .98rem; }
.feature .feature-say { margin-top: .3rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; color: var(--ink); }

/* Un día con Lope */
.day { display: grid; gap: 1rem; }
.day-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--card); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); isolation: isolate; }
.day-card img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; filter: saturate(.75) brightness(.8) contrast(1.05); }
.day-card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,7,10,.05) 30%, rgba(5,7,10,.75)), linear-gradient(120deg, rgba(169,12,43,.22), transparent 55%); }
.day-note { position: absolute; z-index: 1; left: .8rem; right: .8rem; bottom: .8rem; padding: 1rem 1.1rem; border-radius: 16px; display: grid; gap: .25rem; background: rgba(10,13,18,.9); }
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .day-note { background: rgba(10,13,18,.62); }
}
.day-note strong { font-family: var(--display); font-size: 1.08rem; line-height: 1.2; }
.day-note span:last-child { font-size: .92rem; color: var(--ink-soft); }
.day-time { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; color: var(--accent-text); }

/* Cómo empezar */
.steps { display: grid; gap: 1rem; }
.step { padding: 1.6rem; display: grid; gap: .6rem; align-content: start; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .4rem;
  font-family: var(--mono); font-weight: 500; font-size: 1rem; color: #fff; background: var(--accent); box-shadow: 0 0 26px -6px rgba(238,38,71,.9);
}
.step p { color: var(--ink-soft); }
.step-num-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Preguntas */
.faq { display: grid; gap: .75rem; }
.faq-item { border-radius: 18px; padding: 0 1.3rem; transition: border-color .3s; }
.faq-item[open] { border-color: rgba(238,38,71,.4); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-family: var(--display); font-weight: 500; font-size: 1.1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); font-family: var(--sans); font-weight: 400; font-size: 1.2rem; transition: transform .35s var(--ease-out), background .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item p { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 62ch; }
.faq-item a, .check a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Contacto */
.cta-grid { display: grid; gap: 2.5rem; align-items: start; }
.cta-copy { display: grid; gap: 1.1rem; }
.cta-points { display: grid; gap: .6rem; margin-top: .4rem; color: var(--ink-soft); }
.cta-points li { display: flex; gap: .65rem; align-items: flex-start; }
.cta-points li::before { content: "✓"; flex: none; width: 22px; height: 22px; margin-top: .12rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--accent); }

.form { padding: 1.5rem; border-radius: 26px; box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(238,38,71,.6); }
.form-body { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label, .hp label { font-size: .88rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.12);
  background: var(--field); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select option { background: #10141a; color: var(--ink); }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #5f6672; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(238,38,71,.2); }
.field.is-invalid input { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255,122,140,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--accent); }
.check.is-invalid span { color: var(--err); }
.form-error { padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(238,38,71,.1); border: 1px solid rgba(238,38,71,.3); color: var(--err); font-size: .92rem; }
.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.form.is-sending .btn-spinner { display: block; }
.form.is-sending button[type="submit"] { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-ok { display: grid; justify-items: center; text-align: center; gap: .9rem; padding: 2.5rem 1rem; }
.form-ok[hidden], .form-error[hidden] { display: none; }
.form-ok svg { width: 76px; height: 76px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-ok circle { stroke-dasharray: 176; stroke-dashoffset: 176; animation: draw .7s var(--ease-out) forwards; }
.form-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-ok h3 { font-size: 1.5rem; }
.form-ok p { color: var(--ink-soft); max-width: 40ch; }

/* Footer */
.footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); background: rgba(5,7,10,.6); }
.footer-inner { display: grid; gap: 1.75rem; }
.footer-inner p { color: var(--ink-soft); margin-top: .5rem; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent-text); }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-mute); }

/* Páginas de texto (privacidad, créditos) */
.page { padding-top: 8rem; padding-bottom: 5rem; }
.page-card { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.1rem; }
.page-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-card h2 { font-size: 1.3rem; margin-top: .8rem; }
.page-card p, .page-card li { color: var(--ink-soft); }
.page-card strong { color: var(--ink); }
.page-card a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.page-card ul { display: grid; gap: .8rem; }
.page-card li { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.pending { padding: .1rem .45rem; border-radius: 6px; background: rgba(238,38,71,.16); color: #ff9aa9; font-weight: 500; }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), border-color .3s, box-shadow .45s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .features .reveal:nth-child(2), .js .steps .reveal:nth-child(2), .js .day .reveal:nth-child(2) { transition-delay: .08s; }
.js .features .reveal:nth-child(3), .js .steps .reveal:nth-child(3), .js .day .reveal:nth-child(3) { transition-delay: .16s; }
.js .features .reveal:nth-child(4), .js .day .reveal:nth-child(4) { transition-delay: .24s; }
.js .features .reveal:nth-child(5) { transition-delay: .08s; }
.js .features .reveal:nth-child(6) { transition-delay: .16s; }
.js .reveal.is-done { transition-delay: 0s; }
.js .feature.is-done:hover { transform: translateY(-6px); }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 539px) {
  .nav .btn-sm { padding: .65rem .9rem; font-size: .85rem; }
  .hero-actions .btn { width: 100%; }
  .stage-frame { padding: .4rem; border-radius: 20px; }
  .stage-screen { border-radius: 14px; }
  .stage-bar { padding: .3rem .4rem .6rem; }
}
@media (min-width: 540px) {
  :root { --gutter: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .form-body { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .form { padding: 2rem; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .day { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; }
  .day-a { grid-column: span 5; grid-row: span 2; }
  .day-b, .day-c { grid-column: span 7; }
  .day-d { grid-column: 1 / -1; grid-row: span 1; min-height: 0; }
  .day-card { min-height: 0; }
  .day-note { left: 1rem; right: auto; bottom: 1rem; max-width: min(380px, calc(100% - 2rem)); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .what-top { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .what-top .section-head { margin-bottom: 0; }
  .demo { justify-self: end; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .cta-copy { position: sticky; top: 120px; }
}
@media (min-width: 1280px) {
  .stage-chip { display: inline-flex; }
  .day { grid-auto-rows: 330px; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app, .stage-chip { animation: none; }
  .stage-play::before, .stage-play::after { animation: none; opacity: 0; }
}
