/* ============================================================
   sueldia — landing "llega pronto" (tema oscuro)
   Se carga DESPUÉS de base.css: reutiliza @font-face + reset y
   redefine los tokens en oscuro para esta página.
   Dirección: monocromo premium (crema sobre negro cálido),
   sage sólo como acento mínimo. Radios concéntricos.
   ============================================================ */

:root {
  --bg: #0C0D0A;                 /* negro cálido, no azul */

  --ink: #F4F3EE;               /* crema / blanco cálido */
  --ink-mid: rgba(244, 243, 238, 0.64);
  --ink-soft: rgba(244, 243, 238, 0.40);

  --cream: #F4F3EE;             /* superficie de acción principal */
  --cream-hover: #FFFFFF;
  --btn-ink: #16160F;           /* texto sobre crema */

  --sage: #A7B79B;              /* acento, uso mínimo (foco + glow) */
  --sage-glow: rgba(167, 183, 155, 0.22);

  --surface: rgba(244, 243, 238, 0.035);
  --line: rgba(244, 243, 238, 0.13);
  --line-strong: rgba(244, 243, 238, 0.26);

  --danger: #E4A79A;

  /* Radios concéntricos: contenedor 16, relleno interior 10, con 6px de inset */
  --r-bar: 16px;
  --r-fill: 10px;
}

html, body { height: 100%; }

/* El atributo hidden debe ganarle a los display de abajo */
[hidden] { display: none !important; }

body.pronto {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Foco visible sobre oscuro */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* ============ Aurora de fondo (sutil) ============ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.aurora-blob.a1 {
  width: 78vmax;
  height: 78vmax;
  top: -34vmax;
  left: 6vmax;
  background: radial-gradient(circle at center, rgba(167, 183, 155, 0.18), rgba(167, 183, 155, 0) 66%);
  animation: drift1 36s ease-in-out infinite alternate;
}
.aurora-blob.a2 {
  width: 60vmax;
  height: 60vmax;
  bottom: -30vmax;
  right: -8vmax;
  background: radial-gradient(circle at center, rgba(244, 243, 238, 0.05), rgba(244, 243, 238, 0) 66%);
  animation: drift2 44s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-7vmax, -5vmax, 0) scale(1); }
}

/* Viñeta: asienta el texto sobre la aurora */
body.pronto::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(12, 13, 10, 0) 42%, rgba(12, 13, 10, 0.72) 100%);
}

/* ============ Top bar ============ */
.pronto-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(22px, 3vw, 34px) var(--gutter);
}
.pronto-top .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ============ Hero centrado ============ */
.pronto-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 5vw, 48px) var(--gutter) clamp(56px, 9vw, 104px);
  gap: clamp(20px, 3vw, 32px);
}

/* Rotador de frases (elemento firma) */
.rotator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(2.35rem, 6.2vw, 5rem);
  color: var(--ink);
  max-width: 17ch;
  min-height: calc(1.05em * 3); /* reserva ~3 líneas: evita saltos al cambiar de frase */
  margin: 0;
}
.rotator-phrase {
  display: inline-block;
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
.rotator-phrase.is-out {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(-6px);
}

.pronto-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-mid);
  max-width: 42ch;
  margin: 0;
}

/* ============ Formulario lista de espera ============ */
.wl {
  width: 100%;
  max-width: 460px;
  margin-top: 6px;
}
.wl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.wl-step.is-active {
  animation: stepIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Barra: input + botón embebido, con radios concéntricos */
.wl-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-bar);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wl-bar:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-glow);
}
.wl-bar.is-error {
  border-color: var(--danger);
}
.wl-field {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 1.02rem;
  padding: 12px 8px 12px 14px;
}
.wl-field::placeholder { color: var(--ink-soft); }

.wl-btn {
  flex: 0 0 auto;
  background: var(--cream);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--r-fill);
  transition: background 0.2s ease, transform 0.12s ease;
}
.wl-btn:hover { background: var(--cream-hover); }
.wl-btn:active { transform: translateY(1px); }
.wl-btn:disabled { opacity: 0.55; cursor: default; }

/* Chips empresa / contador (mismo radio que los botones) */
.wl-q {
  color: var(--ink-mid);
  font-size: 1.02rem;
  margin: 0;
}
.wl-choice {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.wl-chip {
  padding: 11px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-fill);
  background: transparent;
  color: var(--ink-mid);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.wl-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.wl-chip[aria-pressed="true"] {
  background: var(--cream);
  color: var(--btn-ink);
  border-color: var(--cream);
}

/* Nota / error bajo la barra (mismo elemento, texto que cambia) */
.wl-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  transition: color 0.2s ease;
}
.wl-note.is-error { color: var(--danger); }

/* Estado de éxito */
.wl-success {
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.wl-success.is-active {
  animation: stepIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.wl-success h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wl-success p {
  color: var(--ink-mid);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* ============ Responsive ============ */
@media (max-width: 480px) {
  /* Bajamos el bloque hacia la parte inferior de la pantalla */
  .pronto-main {
    justify-content: flex-end;
    padding-bottom: clamp(80px, 17vh, 170px);
    gap: clamp(16px, 4vw, 24px);
  }
  .rotator { max-width: 100%; min-height: calc(1.05em * 4); } /* frases largas llegan a 4 líneas en mobile */

  /* Registro más compacto: input + botón en una sola fila */
  .wl { max-width: 400px; }
  .wl-bar { padding: 5px; }
  .wl-field { font-size: 0.96rem; padding: 10px 6px 10px 13px; }
  .wl-btn { padding: 10px 18px; font-size: 0.95rem; }
  .wl-choice { width: 100%; }
  .wl-chip { flex: 1 1 auto; padding: 10px 16px; }
}

/* ============ Movimiento reducido ============ */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
  .rotator-phrase { transition: none !important; }
  .wl-step.is-active { animation: none !important; }
}
