/* ═══════════════════════════════════════════════════════════════
   geminipro · landing 18 meses · dual theme (día/noche) · Geist
   Tokens en tokens.css · solo var() aquí, cero valores crudos
   ═══════════════════════════════════════════════════════════════ */

html { overflow-x: clip; }
body { overflow-x: clip; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-paper);
  /* Dos blooms estáticos · atmósfera Gemini · sin animación */
  background-image:
    radial-gradient(38rem 30rem at 18% -6%, var(--color-bloom-a), transparent 70%),
    radial-gradient(34rem 26rem at 88% 12%, var(--color-bloom-b), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left));
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}

/* ── Utilidades ── */
.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  min-width: 0;
}
p { max-width: 65ch; }
a { color: inherit; }

.section-title { font-size: var(--text-xl); margin-bottom: var(--space-lg); }
.section-lede {
  color: var(--color-ink-2);
  margin: calc(var(--space-lg) * -1) 0 var(--space-xl);
}

/* Enfoque: instantáneo, visible, nunca animado */
:where(a, button, summary, details, input):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ═══ Nav · N5 floating pill ═══ */
.nav {
  position: fixed;
  inset: var(--space-md) auto auto 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-md);
  background: color-mix(in oklch, var(--color-paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  z-index: var(--z-sticky);
  max-width: calc(100vw - 2 * var(--page-gutter));
}
.nav__wordmark {
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}
.nav__logo { width: 20px; height: 20px; flex: none; }
.wordmark-accent { color: var(--color-accent); }
.nav__links { list-style: none; display: flex; gap: var(--space-md); }
.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.nav__links a:hover { color: var(--color-ink); }

/* Toggle de tema */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink-2);
  cursor: pointer;
  transition: color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.theme-toggle:hover { color: var(--color-ink); border-color: var(--color-ink-2); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* ═══ Botones ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.btn--fill { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--fill:hover { transform: translateY(-1.5px); }
.btn--fill:active { transform: translateY(1px); }
.btn--outline { border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.btn--outline:hover { border-color: var(--color-ink-2); }
.btn--sm { min-height: 40px; padding: var(--space-2xs) var(--space-md); font-size: var(--text-sm); }
.btn--lg { min-height: 56px; padding: var(--space-md) var(--space-2xl); font-size: var(--text-md); }

/* ═══ Hero ═══ */
.hero {
  position: relative;
  padding-block: calc(var(--space-3xl) + var(--space-2xl)) var(--space-2xl);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.hero__spark {
  width: clamp(4.5rem, 9vw, 6rem);
  height: auto;
  margin-bottom: var(--space-xs);
  filter: drop-shadow(0 0 24px oklch(70% 0.14 275 / 0.35));
}
.hero__tag {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.hero__title { font-size: var(--text-display); max-width: 20ch; }
.hero__figure {
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: var(--text-figure);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin-top: var(--space-xs);
}
.hero__figure-note {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-muted);
  margin-top: var(--space-sm);
}
.hero__actions {
  display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center;
  margin-top: var(--space-sm);
}

/* ═══ Barra de confianza ═══ */
.trust { padding-block: var(--space-xl) var(--space-2xl); }
.trust__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-lg);
}
.trust__grid li { display: flex; flex-direction: column; gap: var(--space-2xs); }
.trust__grid h3 { font-size: var(--text-base); letter-spacing: -0.02em; }
.trust__grid p { font-size: var(--text-sm); color: var(--color-muted); }
.trust__icon {
  width: 1.5rem; height: 1.5rem;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--space-2xs);
}

/* ═══ Productos incluidos ═══ */
.products { padding-block: var(--space-2xl); }
.products__row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.products__row li {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: var(--space-xs) var(--space-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 500;
  white-space: nowrap;
}
.products__row img { width: 28px; height: 28px; flex: none; }

/* ═══ Steps ═══ */
.steps { padding-block: var(--space-2xl); }
.steps__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.steps__grid h3 { font-size: var(--text-md); margin: var(--space-sm) 0 var(--space-2xs); }
.steps__grid p { color: var(--color-ink-2); font-size: var(--text-sm); }
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  font-family: var(--font-outlier);
  font-weight: 500;
  color: var(--color-accent);
}

/* ═══ Bento ═══ */
.bento-section { padding-block: var(--space-2xl) var(--space-3xl); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(11rem, auto);
  gap: var(--space-md);
}
.cell {
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.cell h3 { font-size: var(--text-md); letter-spacing: -0.02em; }
.cell p { color: var(--color-ink-2); font-size: var(--text-sm); }
.cell__head { display: flex; align-items: center; gap: var(--space-sm); }
.cell__head h3 { flex: 1; }
.cell__chip {
  display: inline-grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
  flex: none;
}
.cell__chip svg {
  width: 1.4rem; height: 1.4rem;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cell__chip img { width: 1.5rem; height: 1.5rem; }
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; }

/* Tile de almacenamiento */
.storage {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-paper-3);
  border-radius: var(--radius-md);
}
.storage__icon { width: 44px; height: 44px; flex: none; }
.storage__big {
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
.storage__sub { font-size: var(--text-sm); color: var(--color-muted); }

.cell__list { list-style: none; margin-top: var(--space-xs); display: grid; gap: var(--space-2xs); }
.cell__list li {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  padding-inline-start: 1.2em;
  position: relative;
}
.cell__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.45em; height: 0.45em;
  background: var(--color-accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ── Demo de chat (componente real) ── */
.demo {
  margin-top: auto;
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.demo__label { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.demo__log { display: flex; flex-direction: column; gap: var(--space-sm); min-height: 3.5rem; }
.demo__msg {
  font-size: var(--text-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  max-width: 90%;
}
.demo__msg--user {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.demo__msg--bot {
  align-self: flex-start;
  background: var(--color-paper-2);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.demo__avatar { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; flex: none; }
.demo__avatar img { width: 16px; height: 16px; }
.demo__form { display: flex; gap: var(--space-2xs); }
.demo__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: var(--space-xs) var(--space-sm);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-ink);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
}
.demo__input::placeholder { color: var(--color-muted); }
.demo__send {
  min-height: 48px;
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out);
}
.demo__send:active { transform: translateY(1px); }

/* ═══ Membresía ═══ */
.member { padding-block: var(--space-2xl) var(--space-3xl); }
.member__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-2xl);
  align-items: center;
  max-width: 60rem;
}
.member__points { list-style: none; display: grid; gap: var(--space-sm); }
.member__points li { color: var(--color-ink-2); padding-inline-start: 1.4em; position: relative; }
.member__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.4em;
  width: 0.55em; height: 0.55em;
  background: var(--color-accent);
  border-radius: 1px;
  transform: rotate(45deg);
}
.member__points b { color: var(--color-ink); }
.member__card {
  justify-self: center;
  border-radius: calc(var(--radius-md) + 2px);
  padding: 2px;
  background: var(--gradient-gemini);
  max-width: 20rem;
  width: 100%;
}
.member__inner {
  background: var(--color-paper);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  text-align: center;
}
.member__logo { width: 40px; height: auto; margin-bottom: var(--space-xs); }
.member__plan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  line-height: 1;
}
.member__storage { font-family: var(--font-outlier); font-size: var(--text-md); }
.member__storage span { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); }
.member__status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  margin-top: var(--space-sm);
  padding: var(--space-2xs) var(--space-md);
  background: color-mix(in srgb, var(--color-g-green) 12%, transparent);
  border-radius: var(--radius-pill);
}
.member__dot {
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--color-g-green);
  flex: none;
}
.member__card figcaption {
  text-align: center;
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-sm);
}

/* ═══ Precio ═══ */
.price { padding-block: var(--space-2xl); }
.price__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-lg);
  max-width: 56rem;
}
.price__card {
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.price__card--offer {
  background: var(--color-paper-3);
  border-color: color-mix(in oklch, var(--color-accent) 45%, var(--color-rule));
}
.price__label { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.price__amount {
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}
.price__amount span { font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; color: var(--color-muted); letter-spacing: 0; }
.price__total { color: var(--color-ink-2); font-size: var(--text-sm); }
.price__notes { list-style: none; display: grid; gap: var(--space-2xs); margin-top: var(--space-2xs); }
.price__notes li { font-size: var(--text-sm); color: var(--color-muted); padding-inline-start: 1.2em; position: relative; }
.price__notes li::before { content: "–"; position: absolute; inset-inline-start: 0; color: var(--color-rule); }
.price__card .btn { margin-top: var(--space-md); align-self: start; }
.price__safe { font-size: var(--text-sm); color: var(--color-muted); }

/* Pulso único de la tarjeta recomendada */
@keyframes pulse-border {
  0%   { border-color: color-mix(in oklch, var(--color-accent) 45%, var(--color-rule)); }
  50%  { border-color: var(--color-accent); }
  100% { border-color: color-mix(in oklch, var(--color-accent) 45%, var(--color-rule)); }
}
.pulse-once { animation: pulse-border 2s var(--ease-in-out) 1; }

/* ═══ FAQ ═══ */
.faq { padding-block: var(--space-2xl); max-width: 46rem; }
.faq__list { display: grid; gap: var(--space-sm); }
.faq details {
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-outlier);
  font-weight: 400;
  color: var(--color-accent);
  font-size: var(--text-lg);
  flex: none;
  transition: transform var(--dur-short) var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }

/* ═══ CTA final ═══ */
.final-cta {
  padding-block: var(--space-3xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.final-cta__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 24ch;
}
.final-cta__note { font-size: var(--text-sm); color: var(--color-muted); }

/* ═══ Footer · Ft5 ═══ */
.footer { padding-block: var(--space-2xl) var(--space-xl); }
.footer__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 28ch;
}
.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.footer__legal { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }

/* ═══ Reveal · entrada escalonada one-shot (hero) ═══ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

.cell.is-hidden { opacity: 0; transform: translateY(8px); }
.cell.is-shown {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-long) var(--ease-out),
              transform var(--dur-long) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ═══ Responsive ═══ */
@media (max-width: 60rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2x2, .span-2x1 { grid-column: span 2; }
  .steps__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .nav__links { display: none; }
}

@media (max-width: 40rem) {
  .bento { grid-template-columns: 1fr; }
  .span-2x2, .span-2x1 { grid-column: span 1; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero { padding-block-start: calc(var(--space-3xl) + var(--space-md)); }
}

/* Móvil muy estrecho: el pill conserva wordmark + toggle, el CTA del nav se oculta */
@media (max-width: 24rem) {
  .nav .btn { display: none; }
}

/* Pantallas táctiles: objetivos cómodos */
@media (pointer: coarse) {
  .nav__links a { min-height: 44px; display: inline-flex; align-items: center; }
  .products__row li { padding-block: var(--space-sm); }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal, .cell.is-shown { transform: none; }
}
