/* =========================================================================
   Marketter — portada de suscripción (15 oct 2026)
   Misma paleta y mismo lenguaje que la app (styles.css), pero esta página
   hace scroll y no comparte el layout del chat, así que vive aparte.
   El cerebro es el fondo; la página no compite con él.
   ========================================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05080f;
  --surface: rgba(17, 23, 37, 0.82);
  --surface-2: rgba(10, 15, 26, 0.7);
  --surface-3: rgba(255, 255, 255, 0.045);
  --border: rgba(142, 172, 236, 0.13);
  --border-2: rgba(142, 172, 236, 0.26);
  --text: #e9edf5;
  --text-2: #a7b1c4;
  --text-3: #6e7889;
  --accent: #4ade80;
  --accent-ink: #04240f;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --accent-line: rgba(74, 222, 128, 0.38);
  --danger: #f87171;
  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.5);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; overflow-x: hidden;
}
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: var(--r-xs); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- fondo: degradado, rejilla y el cerebro ---------- */
.bg-gradient {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(58% 74% at 72% 34%, rgba(42, 74, 176, 0.20), transparent 62%),
    radial-gradient(52% 62% at 18% 82%, rgba(74, 222, 128, 0.065), transparent 62%),
    radial-gradient(38% 48% at 86% 88%, rgba(248, 113, 113, 0.055), transparent 62%),
    var(--bg);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2%, -1%, 0) scale(1.05); } }
.bg-grid {
  position: fixed; inset: -50%; z-index: -2;
  background-image:
    linear-gradient(rgba(130, 165, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 250, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(56deg);
  animation: gridmove 18s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
}
@keyframes gridmove { from { background-position-y: 0; } to { background-position-y: 64px; } }
#hero-brain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .bg-gradient, .bg-grid { animation: none; }
}

.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--sh-1);
}

/* ---------- botones ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.72rem 1.1rem; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.94rem; font-weight: 700; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer; transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; filter: none; transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
  padding: 0.5rem 0.9rem; border-radius: var(--r-sm); border: 1px solid var(--border-2);
  color: var(--text); font-weight: 600; font-size: 0.9rem; background: var(--surface-2);
}
.btn-ghost:hover { background: var(--surface-3); }
.btn-ghost.small { padding: 0.42rem 0.8rem; font-size: 0.84rem; }
.btn-soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.68rem 1.05rem; border-radius: var(--r-sm);
  border: 1px dashed var(--border-2); background: var(--surface-2); color: var(--text-2);
  font-size: 0.9rem; font-weight: 600; cursor: not-allowed; letter-spacing: 0.01em;
}
.btn-soon.grande { width: 100%; padding: 0.9rem 1rem; font-size: 1rem; margin: 0.9rem 0 1rem; }
.btn-soon .icon { width: 16px; height: 16px; }

/* ---------- cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: rgba(5, 8, 15, 0.62); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.top-nav { display: none; gap: 1.1rem; margin-left: auto; }
.top-nav a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.top-nav a:hover { color: var(--text); }
.top .btn-ghost { margin-left: auto; }
@media (min-width: 720px) {
  .top-nav { display: flex; }
  .top .btn-ghost { margin-left: 0; }
}

/* ---------- portada ---------- */
main { position: relative; z-index: 1; }
.hero {
  min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 3.2rem var(--gutter) 2.6rem; max-width: 820px; margin: 0 auto;
}
.eyebrow {
  color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 {
  margin-top: 0.8rem;
  font-size: clamp(1.9rem, 6.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  text-wrap: balance;
}
.lead {
  margin: 1.1rem auto 1.8rem; max-width: 60ch;
  color: var(--text-2); font-size: clamp(0.98rem, 2.4vw, 1.12rem); line-height: 1.6; text-wrap: pretty;
}

/* ---------- lista de espera ---------- */
.lista { width: 100%; max-width: 560px; }
.hero .lista { padding: 0.75rem; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.lista-row { display: flex; align-items: center; gap: 0.5rem; position: relative; flex-wrap: wrap; }
.lista-row > .icon { position: absolute; left: 0.85rem; top: 0.95rem; color: var(--text-3); width: 16px; height: 16px; }
.lista-row input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 0.78rem 0.9rem 0.78rem 2.4rem;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 0.96rem;
  transition: border-color 0.15s ease;
}
.lista-row input[type="email"]::placeholder { color: var(--text-3); }
.lista-row input[type="email"]:focus { outline: none; border-color: var(--accent-line); }
.lista-row .btn-primary { flex: 0 0 auto; }
.lista .web { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lista-nota { margin-top: 0.6rem; color: var(--text-3); font-size: 0.76rem; }
.lista-msg { min-height: 1.3em; margin-top: 0.45rem; font-size: 0.86rem; color: var(--text-2); }
.lista-msg.ok { color: var(--accent); font-weight: 600; }
.lista-msg.error { color: var(--danger); }
.lista.hecho .lista-row, .lista.hecho .lista-nota { display: none; }
@media (max-width: 480px) {
  .lista-row .btn-primary { flex: 1 1 100%; }
}
.hero-cta2 { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.8rem; color: var(--text-3); font-size: 0.8rem; text-decoration: none; border-radius: var(--r-full);
}
.scroll-cue:hover { color: var(--text-2); }
.scroll-cue .icon { width: 15px; height: 15px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- bloques ---------- */
.bloque { width: min(960px, 100%); margin: 0 auto; padding: 3rem var(--gutter); }
.bloque h2 {
  text-align: center; font-size: clamp(1.35rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2;
  margin-bottom: 1.5rem; text-wrap: balance;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.1rem 1.15rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.98rem; font-weight: 700; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.card h3 .icon { color: var(--accent); width: 17px; height: 17px; }
.card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.card strong, .numero-card strong { color: var(--text); font-weight: 650; }

/* el número */
.numero { padding-top: 1rem; }
.numero-card { max-width: 760px; margin: 0 auto; padding: 1.6rem 1.4rem; text-align: center; border-radius: var(--r-lg); }
.numero-card h2 { margin: 0.5rem 0 0.9rem; }
.numero-card p { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; max-width: 64ch; margin: 0 auto; text-wrap: pretty; }
.numero-card .otro-lado {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-2);
}

/* pasos */
.pasos { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; counter-reset: paso; }
.paso { padding: 1.15rem 1.15rem 1.2rem; position: relative; }
.paso .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
  font-weight: 800; font-size: 0.9rem; margin-bottom: 0.7rem;
}
.paso h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.paso p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* precio */
.precio-card { max-width: 440px; margin: 0 auto; padding: 1.5rem 1.4rem 1.3rem; text-align: center; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.precio-valor { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.35rem 0 0.6rem; }
.precio-lista { list-style: none; text-align: left; display: grid; gap: 0.45rem; margin: 0.4rem 0 0.4rem; }
.precio-lista li { display: flex; align-items: center; gap: 0.55rem; color: var(--text-2); font-size: 0.92rem; }
.precio-lista .icon { color: var(--accent); width: 16px; height: 16px; }
.precio-card .lista { margin: 0 auto; }

/* faq */
.faq { max-width: 740px; margin: 0 auto; }
.faq details { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.75rem 1rem; margin-bottom: 0.5rem; transition: border-color 0.18s ease; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; list-style: none; position: relative; padding-right: 1.4rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 0.42em; width: 7px; height: 7px;
  border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin-top: 0.55rem; font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }

/* pie */
.pie { position: relative; z-index: 1; text-align: center; padding: 2rem var(--gutter) 2.6rem; border-top: 1px solid var(--border); background: rgba(5, 8, 15, 0.55); }
.pie-brand { font-weight: 700; letter-spacing: -0.01em; }
.pie-legal { color: var(--text-3); font-size: 0.74rem; max-width: 66ch; margin: 0.6rem auto 0; line-height: 1.6; }
