/* ── Google Fonts ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Merriweather:wght@300;400&display=swap');

/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:        #fff0ff;
  --surface:   #ffffff;
  --surface2:  #faf5ff;
  --surface3:  #f3e8ff;
  --border:    rgba(75,28,113,0.10);
  --border-md: rgba(75,28,113,0.18);
  --accent:    #4b1c71;
  --accent2:   #b57edc;
  --accent3:   #dbb6ee;
  --text:      #2a0d45;
  --muted:     rgba(42,13,69,0.52);
  --muted2:    rgba(42,13,69,0.32);
  --glow:      0 0 48px rgba(181,126,220,0.18);
  --glow-btn:  0 6px 32px rgba(75,28,113,0.28);

  --ff-title:  'Poppins', sans-serif;
  --ff-body:   'Merriweather', serif;
  --ff-mono:   'Poppins', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Capas de fondo ─────────────────────────────────── */
.bg-layer {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 10%,  rgba(219,182,238,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 85%,  rgba(181,126,220,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 55% 40%,  rgba(255,240,255,0.60) 0%, transparent 50%);
}

.noise-layer {
  position: fixed; inset: 0; z-index: 1; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px; pointer-events: none;
}

.grid-layer {
  position: fixed; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(75,28,113,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,28,113,0.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}

/* ── Partículas ─────────────────────────────────────── */
.particles { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

.particle {
  position: absolute; border-radius: 50%;
  animation: float-particle linear infinite; opacity: 0;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Contenedor ─────────────────────────────────────── */
.container {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
  gap: 2.8rem; text-align: center;
}

/* ── Header / Logo ──────────────────────────────────── */
.header {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  animation: fade-up 0.8s ease both;
}

.logo-wrap { display: flex; align-items: baseline; gap: 0.2em; }

.logo-icon {
  font-size: 1.2rem; color: var(--accent2);
  animation: spin-star 8s linear infinite; display: inline-block;
}

@keyframes spin-star { to { transform: rotate(360deg); } }

.logo-text {
  font-family: var(--ff-title);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.02em; color: var(--accent);
}

.logo-tag {
  font-family: var(--ff-title);
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--accent2); letter-spacing: 0.02em;
}

.badge {
  font-family: var(--ff-title); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--accent);
  border: 1px solid rgba(75,28,113,0.25);
  background: rgba(75,28,113,0.06);
  padding: 0.3em 1em; border-radius: 100px;
  text-transform: uppercase;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  animation: fade-up 0.8s 0.15s ease both;
}

.eyebrow {
  font-family: var(--ff-title); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase;
}

.headline {
  font-family: var(--ff-title);
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 6.5rem);
  /* line-height: 1.05; letter-spacing: -0.025em; color: var(--accent); */
}

.headline em {
  font-style: italic; font-weight: 600;
  color: var(--accent2); position: relative;
}

.headline em::after {
  content: ''; position: absolute; bottom: 0.04em; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  border-radius: 2px; opacity: 0.7;
}

.subheadline {
  font-family: var(--ff-body);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--muted); font-weight: 300;
  line-height: 1.8; max-width: 38ch;
}

/* ── Countdown ──────────────────────────────────────── */
.countdown-section {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  animation: fade-up 0.8s 0.3s ease both;
}

.countdown-label {
  font-family: var(--ff-title); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase;
}

.countdown {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  box-shadow: var(--glow), 0 1px 0 rgba(255,255,255,0.9) inset;
}

.time-block {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem; min-width: 60px;
}

.time-num {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--accent); line-height: 1;
  transition: transform 0.2s ease;
}

.time-block:hover .time-num { color: var(--accent2); transform: scale(1.05); }

.time-unit {
  font-family: var(--ff-title); font-size: 0.55rem; font-weight: 500;
  letter-spacing: 0.15em; color: var(--muted2); text-transform: uppercase;
}

.divider {
  font-family: var(--ff-title); font-size: 2rem; color: var(--border-md);
  margin-bottom: 1.4rem; animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

/* ══════════════════════════════════════════════════════
   FORMULARIO
══════════════════════════════════════════════════════ */

.notify-section {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  animation: fade-up 0.8s 0.45s ease both;
  width: 100%; max-width: 500px;
}

.notify-label {
  font-family: var(--ff-body); font-size: 0.95rem; font-weight: 300;
  color: var(--muted); letter-spacing: 0.01em;
}

/* Tarjeta con borde gradiente */
#mc_embed_signup {
  width: 100%; position: relative;
  border-radius: var(--radius-lg); padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(75,28,113,0.5) 0%,
    rgba(181,126,220,0.4) 50%,
    rgba(219,182,238,0.3) 100%
  );
}

#mc_embed_signup::before {
  content: ''; position: absolute; inset: 1.5px;
  border-radius: calc(var(--radius-lg) - 1.5px);
  background: var(--surface); z-index: 0;
}

#mc_embed_signup form {
  position: relative; z-index: 1;
  margin: 0; padding: 1.8rem 2rem 1.6rem;
}

#mc_embed_signup_scroll {
  display: flex; flex-direction: column; gap: 1.1rem;
}

.form-header {
  display: flex; align-items: center; gap: 0.8rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--border);
}

.form-header-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(75,28,113,0.08); border: 1px solid rgba(75,28,113,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

.form-header-text { text-align: left; }

.form-header-title {
  font-family: var(--ff-title); font-size: 0.88rem; font-weight: 600;
  color: var(--accent);
}

.form-header-sub {
  font-family: var(--ff-title); font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.13em; color: var(--muted2);
  text-transform: uppercase; margin-top: 2px;
}

.mc-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.mc-field-group,
.mc-field-full { display: flex; flex-direction: column; gap: 0.45rem; text-align: left; }

.mc-field-group label,
.mc-field-full label {
  font-family: var(--ff-title); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.asterisk { color: var(--accent2); }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-icon {
  position: absolute; left: 0.85rem; font-size: 13px;
  color: var(--muted2); pointer-events: none; transition: color 0.2s;
}

.mc-field-group input,
.mc-field-full input {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem 0.72rem 2.4rem;
  font-family: var(--ff-title); font-size: 0.875rem; font-weight: 400;
  color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.mc-field-group input::placeholder,
.mc-field-full input::placeholder { color: var(--muted2); font-size: 0.845rem; }

.mc-field-group input:hover,
.mc-field-full input:hover { border-color: rgba(75,28,113,0.3); }

.mc-field-group input:focus,
.mc-field-full input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(181,126,220,0.15);
  background: #fff;
}

.input-wrap:focus-within .input-icon { color: var(--accent2); }

.mc-field-group input.input-error,
.mc-field-full input.input-error {
  border-color: #e05c7a;
  box-shadow: 0 0 0 3px rgba(224,92,122,0.12);
}

.form-divider { border: none; border-top: 1px solid var(--border); }

.mc-response {
  font-family: var(--ff-title); font-size: 0.8rem; font-weight: 400;
  padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  text-align: center; line-height: 1.5;
}

.mc-error {
  background: rgba(224,92,122,0.07);
  border: 1px solid rgba(224,92,122,0.22); color: #c0405a;
}

.mc-success {
  background: rgba(75,28,113,0.07);
  border: 1px solid rgba(75,28,113,0.2); color: var(--accent);
}

.mc-submit-wrap { display: flex; flex-direction: column; gap: 0.7rem; }

.notify-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; background: var(--accent); color: #fff0ff;
  border: none; border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  font-family: var(--ff-title); font-size: 0.93rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--glow-btn); position: relative; overflow: hidden;
}

.notify-btn::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: rgba(255,255,255,0.1); pointer-events: none;
}

.notify-btn:hover {
  background: #6b2899; transform: translateY(-1px);
  box-shadow: 0 8px 36px rgba(75,28,113,0.38);
}

.notify-btn:active { transform: translateY(0); }
.notify-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.trust-row {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
}

.trust-item {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--ff-title); font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--muted2); text-transform: uppercase;
}

.trust-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent2); opacity: 0.7; flex-shrink: 0;
}

/* ── Pillars ─────────────────────────────────────────── */
.pillars {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 0.8rem 1.2rem;
  animation: fade-up 0.8s 0.6s ease both;
}

.pillar {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-title); font-size: 0.82rem; font-weight: 400;
  color: var(--muted);
}

.pillar-icon { font-size: 1rem; }
.pillar-sep { color: var(--border-md); font-size: 1rem; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  font-family: var(--ff-title); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--muted2);
  animation: fade-up 0.8s 0.75s ease both;
}

.footer-accent { color: var(--accent2); }

/* ── Animaciones globales ────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   PÁGINA DE GRACIAS
══════════════════════════════════════════════════════ */

.check-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid rgba(181,126,220,0.4);
  background: rgba(219,182,238,0.15);
  display: flex; align-items: center; justify-content: center;
  animation: pulse-ring 2.5s ease infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,126,220,0.3); }
  50%       { box-shadow: 0 0 0 14px rgba(181,126,220,0); }
}

.check-icon {
  font-size: 2.2rem;
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  animation-delay: 0.2s;
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.thanks-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  max-width: 460px; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 32px rgba(75,28,113,0.1);
}

.thanks-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}

.thanks-title {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.02em; color: var(--accent); line-height: 1.1;
}

.thanks-title em { font-style: italic; color: var(--accent2); }

.thanks-msg {
  font-family: var(--ff-body); font-size: 0.98rem; font-weight: 300;
  color: var(--muted); line-height: 1.8; max-width: 34ch;
}

.email-step {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: left; width: 100%;
}

.step-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.step-text { display: flex; flex-direction: column; gap: 0.2rem; }

.step-label {
  font-family: var(--ff-title); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent2);
}

.step-desc {
  font-family: var(--ff-title); font-size: 0.88rem; font-weight: 500;
  color: var(--text); line-height: 1.5;
}

.step-hint {
  font-family: var(--ff-body); font-size: 0.75rem; font-weight: 300;
  color: var(--muted); margin-top: 0.1rem;
}

.back-link {
  font-family: var(--ff-title); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted2); text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent2); }
.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-3px); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 520px) {
  .countdown { padding: 1.2rem 1rem; gap: 0.3rem; }
  .time-block { min-width: 44px; }
  .mc-fields-row { grid-template-columns: 1fr; }
  #mc_embed_signup form { padding: 1.4rem 1.2rem 1.3rem; }
  .trust-row { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .pillars { flex-direction: column; gap: 0.5rem; }
  .pillar-sep { display: none; }
  .thanks-card { padding: 1.6rem 1.2rem; }
}