/* =============================================================
   invitaasufiesta.com — Estilos principales
   1. Variables & Reset
   2. Base
   3. Nav
   4. Hero (2 columnas)
   5. Social Proof strip
   6. Secciones (cómo funciona, features)
   7. CTA Banner
   8. Formulario
   9. Resultado final
   10. Footer
   11. Responsive
============================================================= */

/* ── 1. VARIABLES & RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #FFFFFF;
  --bg-soft:      #F8F5FF;
  --surface:      #FFFFFF;
  --border:       rgba(0,0,0,0.08);
  --border-h:     rgba(0,0,0,0.14);
  --text:         #1A1733;
  --muted:        #6B6A8A;
  --purple:       #7C3AED;
  --purple-light: #EDE9FE;
  --pink:         #E91E8C;
  --pink-light:   #FFF0F8;
  --green:        #10B981;
  --red:          #EF4444;
  --yellow:       #F59E0B;
  --shadow:       0 4px 24px rgba(0,0,0,0.07);
  --shadow-md:    0 8px 40px rgba(124,58,237,0.15);
  --radius:       16px;
  --grad:         linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
}

/* ── 2. BASE ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.grad-text {
  background: linear-gradient(135deg, #7C3AED 0%, #E91E8C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-pink   { color: var(--pink); }
.text-purple { color: var(--purple); font-weight: 700; }

/* ── 3. NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1;
}

.logo-invita { color: var(--text); }
.logo-asu    { color: var(--pink); }
.logo-fiesta { color: var(--purple); }
.logo-com    { color: var(--muted); font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 24px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── 4. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px 80px;
}

/* Columna texto */
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--purple-light);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

/* URL pill estática */
.hero-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border-h);
  border-radius: 14px;
  padding: 14px 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.hero-url-pill .url-icon { font-size: 1.1rem; }

.hero-url-pill .url-text {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero-url-pill .url-name { color: var(--pink); }

/* Botón CTA hero */
.btn-hero-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
  margin-bottom: 8px;
}

.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(124,58,237,0.45); }

/* Badges de confianza */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.hero-trust span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Columna imagen */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(233,30,140,0.18) 0%, rgba(124,58,237,0.12) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-phone {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(124,58,237,0.25));
  animation: float-phone 5s ease-in-out infinite;
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── 5. SOCIAL PROOF ──────────────────────────────────────── */
.proof-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.proof-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.proof-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.proof-icon--green  { background: rgba(16,185,129,0.12); }
.proof-icon--orange { background: rgba(245,158,11,0.12); }
.proof-icon--purple { background: var(--purple-light); }
.proof-icon--pink   { background: var(--pink-light); }

.proof-body { display: flex; flex-direction: column; gap: 2px; }
.proof-body strong { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.proof-body span   { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }

/* ── 6. SECCIONES ─────────────────────────────────────────── */
.section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-soft { background: var(--bg-soft); }

.section-tag {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.1;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 60px;
  line-height: 1.65;
}

/* Cómo funciona — con confeti */
.section-pasos {
  background: linear-gradient(135deg, #7C3AED 0%, #C026D3 60%, #E91E8C 100%);
  padding: 0;
  position: relative;
}

.section-pasos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/background-pasos.png') center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Ondas divisorias */
.wave-divider { line-height: 0; position: relative; z-index: 1; }
.wave-divider svg { display: block; width: 100%; height: 80px; }

@media (max-width: 768px) {
  .wave-divider svg { height: 48px; }
}

.section-pasos-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  position: relative;
  z-index: 1;
}

.section-tag--white   { color: rgba(255,255,255,0.85); }
.section-title--white { color: #fff; }

.section-title-accent {
  color: #FDE68A;
  display: inline-block;
  text-shadow: 0 0 30px rgba(253,230,138,0.55), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: underline 2.5px wavy rgba(253,230,138,0.5);
  text-underline-offset: 8px;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(253,230,138,0.4); }
  50%       { text-shadow: 0 0 40px rgba(253,230,138,0.85), 0 0 80px rgba(253,230,138,0.25); }
}

.section-sub--white { color: rgba(255,255,255,0.78); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}

.step-card {
  background: rgba(255,255,255,0.97);
  border: none;
  border-radius: 24px;
  padding: 130px 28px 32px 28px;
  position: relative;
  overflow: visible;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

.step-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.22); }

/* Ilustración: arriba-derecha, salida del card */
.step-illustration {
  position: absolute;
  top: -40px;
  right: -16px;
  width: 195px;
  height: 195px;
  pointer-events: none;
}

.step-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
  transition: transform 0.3s;
}

.step-card:hover .step-illustration img {
  transform: scale(1.07) rotate(3deg);
}

/* Números grandes */
.step-num {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  font-family: 'Fredoka One', cursive;
}

.step-num--1 { background: linear-gradient(135deg, #7C3AED, #9333EA); }
.step-num--2 { background: linear-gradient(135deg, #E91E8C, #F43F5E); }
.step-num--3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }

.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-card p  { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* Features */
.features-wrap { padding: 80px 24px 100px; scroll-margin-top: 72px; }
.features-inner { max-width: 1100px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow);
}

.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fi-v { background: var(--purple-light); }
.fi-g { background: rgba(16,185,129,0.12); }
.fi-p { background: var(--pink-light); }
.fi-y { background: rgba(245,158,11,0.12); }

.feat-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.feat-card p  { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/* ── 7. PRECIOS ──────────────────────────────────────────── */
.pricing-wrap { padding: 0 24px 100px; scroll-margin-top: 72px; }
.pricing-inner { max-width: 1160px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pricing-card--featured {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 12px 48px rgba(124,58,237,0.32);
  transform: translateY(-8px);
  color: #fff;
}

.pricing-card--featured:hover { transform: translateY(-14px); box-shadow: 0 20px 60px rgba(124,58,237,0.4); }

.pricing-popular {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: #FDE68A;
  color: #92400E;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  width: fit-content;
}

.pricing-badge--gray   { background: rgba(0,0,0,0.07); color: var(--muted); }
.pricing-badge--green  { background: rgba(16,185,129,0.12); color: #059669; }
.pricing-badge--purple { background: rgba(255,255,255,0.2); color: #fff; }
.pricing-badge--pink   { background: var(--pink-light); color: var(--pink); }

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.pricing-card--featured .pricing-price { color: #fff; }

.pricing-recurrence {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.pricing-card--featured .pricing-recurrence { color: rgba(255,255,255,0.7); }

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.pricing-divider--white { background: rgba(255,255,255,0.2); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  color: var(--text);
}

.pricing-card--featured .pricing-features li { color: rgba(255,255,255,0.92); }

.feat-ok::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.feat-no::before { content: '✕'; color: var(--muted); font-weight: 800; flex-shrink: 0; opacity: 0.5; }

.pricing-card--featured .feat-ok::before { color: #86EFAC; }
.pricing-card--featured .feat-no::before { color: rgba(255,255,255,0.35); }

.pricing-note {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.pricing-card--featured .pricing-note {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

.btn-pricing {
  width: 100%;
  padding: 13px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  border: none;
}

.btn-pricing--ghost {
  background: none;
  border: 1.5px solid var(--border-h);
  color: var(--text);
}

.btn-pricing--ghost:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }

.btn-pricing--white {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-pricing--white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── 7b. CTA BANNER ──────────────────────────────────────── */
.cta-banner { padding: 0 24px 100px; }

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 28%, #C026D3 62%, #E91E8C 100%);
  border-radius: 32px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(124,58,237,0.35), 0 8px 24px rgba(233,30,140,0.2);
}

/* Spotlight central + blobs de luz en esquinas */
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(255,255,255,0.18) 0%, transparent 65%),
    radial-gradient(circle 200px at 4%  14%, rgba(255,255,255,0.10) 0%, transparent 70%),
    radial-gradient(circle 200px at 96% 88%, rgba(255,255,255,0.10) 0%, transparent 70%),
    radial-gradient(circle 120px at 92%  8%, rgba(253,230,138,0.12) 0%, transparent 70%),
    radial-gradient(circle 120px at 8%  90%, rgba(253,230,138,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Confeti de puntos CSS */
.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(253,230,138,0.30) 1px,   transparent 1px),
    radial-gradient(circle, rgba(255,182,255,0.22) 1px,   transparent 1px);
  background-size: 52px 52px, 36px 36px, 70px 70px;
  background-position: 0 0, 18px 18px, 9px 38px;
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  letter-spacing: -0.02em;
}

/* Estrellas doradas animadas flanqueando el título */
.cta-inner h2::before,
.cta-inner h2::after {
  display: inline-block;
  font-size: 1.1rem;
  color: #FDE68A;
  animation: sparkle-spin 5s linear infinite;
  vertical-align: middle;
}
.cta-inner h2::before { content: '✦ '; }
.cta-inner h2::after  { content: ' ✦'; animation-delay: 2.5s; }

.cta-inner p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 38px;
  position: relative;
}

.btn-cta-white {
  background: #fff;
  color: var(--purple);
  border: none;
  border-radius: 100px;
  padding: 18px 46px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

/* Shine sweep sobre el botón */
.btn-cta-white::before {
  content: '';
  position: absolute;
  top: 0; left: -80px;
  width: 50px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.14), transparent);
  transform: skewX(-20deg);
  animation: cta-btn-shine 3.5s ease-in-out infinite 2s;
}

@keyframes cta-btn-shine {
  0%   { left: -80px; }
  100% { left: calc(100% + 80px); }
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

/* ── 8. FORMULARIO ───────────────────────────────────────── */
.form-section {
  background: #FFFFFF;
  padding: 80px 24px 160px;
  position: relative;
  overflow: hidden;
}

/* Ola superior (oculta — fondo blanco no necesita transición) */
.form-wave-top { display: none; }

/* (sin confeti — fondo blanco) */

.form-section > * { position: relative; z-index: 1; }

.form-section .section-tag { color: var(--purple); }
.form-section .form-section-title { color: var(--text); }

.form-section-title {
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.15;
  position: relative;
  display: block;
}

.form-title-sparkle {
  color: #F59E0B;
  font-size: 1.2rem;
  vertical-align: middle;
  display: inline-block;
  animation: sparkle-spin 6s linear infinite;
}

.form-title-sparkle--2 { animation-delay: 3s; color: var(--pink); }

@keyframes sparkle-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

.form-title-sub-sparkles {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 10px;
  color: rgba(124,58,237,0.4);
  margin-top: 2px;
  margin-bottom: 2px;
}

.form-section-sub { text-align: center; color: #9B6B9B; margin-bottom: 40px; font-family: 'Plus Jakarta Sans', sans-serif; }

/* Progress bar */
.progress-wrap {
  position: relative;
  max-width: 460px;
  margin: 0 auto 32px;
}

/* Estrellitas decorativas */
.prog-star {
  position: absolute;
  pointer-events: none;
  font-style: normal;
  line-height: 1;
  animation: sparkle-spin 5s linear infinite;
}
.ps1 { top: -16px; left:  8%;  font-size: 0.7rem;  color: #F59E0B; animation-duration: 5s; }
.ps2 { top: -10px; right: 12%; font-size: 0.5rem;  color: var(--pink);   animation-duration: 4s; animation-delay: 1s; }
.ps3 { bottom: -14px; left: 28%; font-size: 0.6rem; color: var(--purple); animation-duration: 6s; animation-delay: 0.5s; }
.ps4 { bottom: -10px; right: 22%; font-size: 0.45rem; color: #F59E0B; animation-duration: 3.5s; animation-delay: 2s; }
.ps5 { top: -8px; left: 50%; font-size: 0.4rem; color: var(--pink); animation-duration: 4.5s; animation-delay: 1.5s; }

.progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #E2DBF5;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: #C4B8E8;
  transition: all 0.3s;
  flex-shrink: 0;
  position: relative; z-index: 1;
  background: #F4F0FD;
}

.step-dot.active {
  border-color: var(--purple);
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #A855F7);
  box-shadow: 0 2px 14px rgba(124,58,237,0.35);
}
.step-dot.done { border-color: var(--green); background: var(--green); color: #fff; }

.step-line {
  flex: 1; height: 2px;
  background: #E2DBF5;
  transition: background 0.3s;
}

.step-line.done { background: var(--green); }

/* Form card */
.container {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  overflow: visible; /* permite que los globos sobresalgan */
}

.card {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.80) 60%,
    rgba(255,255,255,0.55) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 8px 48px rgba(233,30,140,0.13), 0 2px 12px rgba(0,0,0,0.07);
  position: relative;
  z-index: 1; /* por encima de .form-balloons (z-index: 0) dentro del container */
}

.fstep { display: none; }
.fstep.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-titulo { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-desc   { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; line-height: 1.6; }

/* Inputs */
label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

label:first-of-type { margin-top: 0; }

input[type="text"], input[type="tel"], input[type="date"],
input[type="time"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-h);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

input::placeholder, textarea::placeholder { color: #B0ADCC; }

textarea { height: 88px; resize: none; }

/* Tipo de evento */
.tipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.tipo-btn {
  padding: 14px 8px;
  background: var(--bg);
  border: 2px solid var(--border-h);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tipo-btn .tipo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.tipo-btn:hover    { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(124,58,237,0.15); }
.tipo-btn.selected { border-color: var(--purple); background: var(--purple-light); color: var(--purple); }

/* ── Fila 3 columnas: edad / fecha / hora ────────────────── */
.form-row-fecha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
  padding-bottom: 22px;
}
.form-row-fecha.no-edad {
  grid-template-columns: 1fr 1fr;
}
.form-row-fecha > div > label {
  margin-top: 0;
}

/* Campo edad */
input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-h);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Date / Time custom pickers ──────────────────────────── */
.date-btn {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-h);
  border-radius: 12px;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  color: #B0ADCC;
}
.date-btn:hover,
.date-btn.open    { border-color: var(--purple); }
.date-btn:focus   { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.date-btn.has-value { color: var(--text); border-color: var(--purple); }
.dbtn-icon  { font-size: .95rem; flex-shrink: 0; line-height: 1; }
.dbtn-text  { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.dbtn-caret { font-size: .55rem; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.date-btn.open .dbtn-caret { transform: rotate(180deg); }

/* Popup base */
.mini-cal, .time-pick {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 999;
  background: #fff;
  border: 1.5px solid #e5e1f5;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(124,58,237,.13), 0 2px 8px rgba(0,0,0,.06);
  display: none;
  animation: pkPop .15s ease;
}
.mini-cal.open, .time-pick.open { display: block; }
@keyframes pkPop {
  from { opacity:0; transform:translateY(-6px) scale(.97) }
  to   { opacity:1; transform:none }
}

/* ── Calendario ── */
.mini-cal { padding: 14px; width: 280px; }
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-nav {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%;
  color: var(--purple); font-size: 1.1rem; cursor: pointer;
  transition: background .15s;
}
.cal-nav:hover { background: var(--purple-light); }
.cal-month-label { font-size: .88rem; font-weight: 700; color: var(--text); }
.cal-grid     { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day-name { font-size: .58rem; font-weight: 700; text-align: center; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .2px; }
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: .79rem; border-radius: 50%;
  cursor: pointer; border: none; background: none;
  font-family: inherit; color: var(--text);
  transition: background .12s, color .12s;
  position: relative;
}
.cal-day:hover:not(:disabled) { background: var(--purple-light); color: var(--purple); }
.cal-day:disabled              { color: #D5D2EA; cursor: default; }
.cal-day.today                 { font-weight: 800; color: var(--purple); }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 1px; left: 50%;
  transform: translateX(-50%); width: 4px; height: 4px;
  border-radius: 50%; background: var(--purple);
}
.cal-day.selected              { background: var(--purple); color: #fff; font-weight: 700; }
.cal-day.selected::after       { display: none; }

/* ── Time picker ── */
.time-pick { padding: 16px; width: 252px; }
.tp-ampm {
  display: flex; gap: 4px;
  background: var(--bg-soft); border-radius: 10px; padding: 3px;
  margin-bottom: 14px;
}
.tp-ampm-btn {
  flex: 1; padding: 7px; border: none; border-radius: 8px;
  cursor: pointer; font-size: .82rem; font-weight: 600;
  font-family: inherit; background: none; color: var(--muted);
  transition: all .15s;
}
.tp-ampm-btn.sel {
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,.3);
}
.tp-section-lbl {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted); margin-bottom: 6px;
}
.tp-hours { display: grid; grid-template-columns: repeat(6,1fr); gap: 3px; margin-bottom: 12px; }
.tp-mins  { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.tp-btn {
  padding: 7px 2px; font-size: .76rem; font-family: inherit;
  border: 1.5px solid transparent; border-radius: 8px;
  cursor: pointer; background: var(--bg-soft); color: var(--text);
  transition: all .12s; text-align: center; font-weight: 500;
}
.tp-btn:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.tp-btn.sel   { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 700; }
.tp-footer    { margin-top: 10px; display: flex; justify-content: flex-end; }
.tp-clear     { font-size: .72rem; color: var(--muted); background: none; border: none; cursor: pointer; font-family: inherit; }
.tp-clear:hover { color: var(--purple); }

.edad-input-wrap {
  position: relative;
}
.edad-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  line-height: 1;
}
.edad-input-wrap input[type="number"] {
  padding-left: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--purple);
  background: #f9f7ff;
  border-color: #DDD6FE;
}
.edad-input-wrap input[type="number"]:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.field-hint {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Slugs */
.slug-status { font-size: 0.82rem; color: var(--muted); margin-top: 10px; min-height: 20px; }
.slug-grid   { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.slug-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-h);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.slug-item:hover    { border-color: var(--purple); box-shadow: 0 2px 12px rgba(124,58,237,0.1); }
.slug-item.selected { border-color: var(--purple); background: var(--purple-light); }
.slug-item.taken    { opacity: 0.45; cursor: not-allowed; }

.slug-nombre { flex: 1; font-family: monospace; font-size: 0.9rem; color: var(--text); }
.slug-nombre strong { color: var(--purple); }

.slug-badge { font-size: 0.72rem; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; font-weight: 600; }
.slug-badge.ok    { background: rgba(16,185,129,0.12); color: var(--green); }
.slug-badge.taken { background: rgba(239,68,68,0.12);  color: var(--red); }
.slug-badge.check { background: rgba(0,0,0,0.05);      color: var(--muted); }


/* Invitados */
#invitadosList { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.inv-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px; align-items: center;
}

.inv-row input { margin-top: 0; }

.btn-remove {
  width: 38px; height: 38px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  color: var(--red);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.btn-remove:hover { background: rgba(239,68,68,0.15); }

.btn-add-inv {
  background: none;
  border: 1.5px dashed var(--border-h);
  border-radius: 12px;
  color: var(--muted);
  padding: 12px; width: 100%;
  cursor: pointer; font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-add-inv:hover { border-color: var(--purple); color: var(--purple); }

/* Botones */
.btn-row { display: flex; gap: 10px; margin-top: 28px; }

.btn {
  padding: 13px 24px;
  border-radius: 12px; border: none;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad);
  color: #fff; flex: 1;
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}

.btn-primary:hover    { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: none;
  border: 1.5px solid var(--border-h);
  color: var(--muted);
}

.btn-ghost:hover { border-color: var(--border-h); color: var(--text); background: var(--bg-soft); }

/* ── 9. RESULTADO FINAL ──────────────────────────────────── */
.resultado { text-align: center; padding: 8px 0; }

.resultado .check-anim {
  font-size: 4.5rem;
  animation: pop 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  display: block;
  margin-bottom: 18px;
}

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

.resultado h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.resultado p  { color: var(--muted); margin-bottom: 28px; }

.url-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--purple-light);
  border: 1.5px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  padding: 14px 18px; margin-bottom: 24px;
}

.url-box span { flex: 1; font-family: monospace; font-size: 0.95rem; color: var(--purple); font-weight: 700; word-break: break-all; }

.btn-copy {
  background: none; border: 1.5px solid var(--border-h);
  border-radius: 8px; color: var(--muted);
  padding: 7px 14px; cursor: pointer;
  font-size: 0.82rem; font-family: inherit;
  flex-shrink: 0; transition: all 0.2s;
}

.btn-copy:hover   { border-color: var(--purple); color: var(--purple); }
.btn-copy.copiado { border-color: var(--green); color: var(--green); }

.inv-links h3 {
  font-size: 0.88rem; margin-bottom: 12px;
  color: var(--muted); font-weight: 600; text-align: left;
}

.inv-link-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left;
}

.inv-link-item:last-child { border-bottom: none; }
.inv-link-name { flex: 1; font-size: 0.88rem; font-weight: 500; color: var(--text); }
.inv-link-url  { font-family: monospace; font-size: 0.72rem; color: var(--muted); flex: 2; word-break: break-all; }

.btn-wa {
  background: #25d366; color: #fff; border: none;
  border-radius: 8px; padding: 6px 12px;
  cursor: pointer; font-size: 0.78rem; font-weight: 700;
  font-family: inherit; white-space: nowrap;
}

/* Botones del formulario — pill gradient rosa→amarillo */
.form-section .btn-primary {
  background: linear-gradient(135deg, #E91E8C 0%, #F97316 65%, #FBBF24 100%);
  border-radius: 100px;
  padding: 15px 32px;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(233,30,140,0.32);
}

.form-section .btn-primary:hover {
  opacity: 0.93;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(233,30,140,0.42);
}

.form-section .btn-ghost {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 100px;
  color: #9B6B9B;
}

.form-section .btn-ghost:hover {
  background: rgba(255,255,255,0.85);
  color: var(--text);
}

/* ── GLOBOS SVG ──
   .form-balloons está DENTRO de .container (antes de .card)
   → posicionamiento relativo al container (620px max)
   → .card tiene z-index:1, .form-balloons z-index:0 → card queda encima
*/
.form-balloons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.fbal {
  position: absolute;
  width: 420px;
}

/*
  Container: 620px
  Globos izquierda (inclinados izq): su borde derecho se mete ~120px dentro del card
    rosa    → left: -(420-120) = -300px  (borde dcho en 120px dentro del card)
    morado  → left: -(420-200) = -220px  (borde dcho en 200px dentro del card), más arriba
  Globos derecha (inclinados der): simétrico
*/
.fbal--rosa    { width: 420px; left: -300px;  bottom: -120px; animation: balloon-sway 6s   ease-in-out infinite; }
.fbal--morado  { width: 320px; left: -180px;  bottom:  460px; animation: balloon-sway 7.5s ease-in-out infinite 1.2s; }

.fbal--azul    { width: 320px; right: -180px; bottom:  460px; animation: balloon-sway 5.5s ease-in-out infinite 0.7s; }
.fbal--amarillo { width: 420px; right: -300px; bottom: -120px; animation: balloon-sway 6.5s ease-in-out infinite 1.8s; }

@keyframes balloon-sway {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

@media (max-width: 900px) {
  .fbal { width: 300px; }
  .fbal--rosa    { left: -200px; }
  .fbal--morado  { left: -140px; }
  .fbal--azul    { right: -140px; }
  .fbal--amarillo { right: -200px; }
}

@media (max-width: 680px) {
  .fbal { width: 200px; }
  .fbal--rosa    { left: -130px; bottom: -10px; }
  .fbal--morado  { display: none; }
  .fbal--azul    { display: none; }
  .fbal--amarillo { right: -130px; bottom: -10px; }
}

@media (max-width: 420px) {
  .fbal { width: 130px; }
  .fbal--rosa    { left: -80px; }
  .fbal--amarillo { right: -80px; }
}

/* Alerts & spinner */
.alert { padding: 12px 16px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,0.08);   border: 1px solid rgba(239,68,68,0.2);   color: var(--red); }
.alert-info  { background: var(--purple-light);    border: 1px solid rgba(124,58,237,0.2);  color: var(--purple); }

.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 6px;
}

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

/* ── 10. FAQ ─────────────────────────────────────────────── */
.faq-wrap {
  background: var(--bg-soft);
  padding: 80px 24px;
}

.faq-wrap .section-title { margin-bottom: 8px; }
.faq-wrap .section-sub   { margin-bottom: 48px; }

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(124,58,237,0.10);
}

.faq-q {
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--purple);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── 11. FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--text);
  padding: 40px 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-logo {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}

.flogo-invita { color: #fff; }
.flogo-asu    { color: #F472B6; }
.flogo-fiesta { color: #A78BFA; }
.flogo-com    { color: rgba(255,255,255,0.4); font-weight: 500; }

footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }

/* ── 11. PREVIEW OVERLAY ─────────────────────────────────── */
.preview-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: #f0ecf7;
  flex-direction: column;
}
.preview-overlay.active { display: flex; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.preview-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 56px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 3;
}

/* Botón volver */
.ptb-back {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none;
  font-size: .84rem; font-weight: 700;
  color: var(--purple); cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  padding: 6px 2px;
  transition: opacity .15s;
}
.ptb-back svg { flex-shrink: 0; }
.ptb-back:hover { opacity: .7; }

/* Tabs (desktop) */
.ptb-tabs {
  display: flex; gap: 6px;
  flex: 1;
}

.ptb-tab {
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: 20px; padding: 7px 18px;
  font-size: .8rem; font-weight: 700;
  color: var(--muted); cursor: pointer;
  white-space: nowrap; transition: all .2s;
  font-family: inherit;
}
.ptb-tab:hover  { border-color: var(--purple); color: var(--purple); }
.ptb-tab.active {
  background: var(--purple-light);
  border-color: var(--purple);
  color: var(--purple);
}

/* Separador */
.ptb-sep {
  width: 1px; height: 24px;
  background: rgba(0,0,0,.08);
  flex-shrink: 0;
}

/* Colores */
.ptb-colors {
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}

.ptb-color {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  outline: none;
  flex-shrink: 0;
}
.ptb-color:hover  { transform: scale(1.15); }
.ptb-color.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--text);
  transform: scale(1.08);
}

/* Botón crear desktop */
.ptb-crear {
  background: var(--purple);
  color: #fff; border: none; cursor: pointer;
  font-size: .82rem; font-weight: 700;
  padding: 10px 22px; border-radius: 10px;
  white-space: nowrap; transition: all .2s;
  font-family: inherit;
  letter-spacing: .3px;
}
.ptb-crear:hover    { background: #6D28D9; }
.ptb-crear:disabled { opacity: .45; cursor: not-allowed; }

/* ── PREVIEW BODY ───────────────────────────────────────── */
.preview-body {
  flex: 1; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.preview-frame {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM BAR — plantillas horizontales + crear
   ══════════════════════════════════════════════════════════ */
.mob-bottom {
  display: none; /* se muestra en mobile */
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  flex-shrink: 0;
  z-index: 3;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Strip horizontal de plantillas */
.mob-tpl-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 8px 4px;
}
.mob-tpl-strip::-webkit-scrollbar { display: none; }

.mob-tpl {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  background: none; border: 2px solid transparent;
  border-radius: 14px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  flex-shrink: 0;
  min-width: 72px;
}
.mob-tpl-icon { font-size: 1.4rem; line-height: 1; }
.mob-tpl-name {
  font-size: .65rem; font-weight: 800;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.mob-tpl:active { transform: scale(.95); }
.mob-tpl.active {
  background: var(--purple-light);
  border-color: var(--purple);
}
.mob-tpl.active .mob-tpl-name { color: var(--purple); }

/* Botón crear móvil */
.mob-crear {
  margin: 4px 12px 10px;
  background: var(--purple);
  color: #fff; border: none; cursor: pointer;
  font-family: inherit;
  font-size: .88rem; font-weight: 800;
  padding: 14px;
  border-radius: 14px;
  letter-spacing: .3px;
  transition: background .2s;
}
.mob-crear:hover  { background: #6D28D9; }
.mob-crear:active { transform: scale(.98); }
.mob-crear:disabled { opacity: .45; cursor: not-allowed; }

/* ══ MOBILE < 640px ═══════════════════════════════════════ */
@media (max-width: 639px) {
  .preview-topbar {
    height: 48px;
    padding: 0 12px;
    gap: 8px;
  }
  .ptb-back-label { display: inline; }
  .ptb-tabs   { display: none; }
  .ptb-sep    { display: none; }
  .ptb-crear--desktop { display: none; }

  .ptb-colors { margin-left: auto; }
  .ptb-color  { width: 30px; height: 30px; }

  .mob-bottom { display: flex; }

  .preview-body { padding-bottom: 0; }

  .preview-overlay { background: #f0ecf7; }
}

/* ══ DESKTOP ≥ 640px ══════════════════════════════════════ */
@media (min-width: 640px) {
  .preview-topbar {
    height: 56px;
    padding: 0 20px;
    gap: 12px;
  }
  .ptb-tabs  { flex: 1; }
  .ptb-crear--desktop { margin-left: auto; }
  .mob-bottom { display: none !important; }
  .ptb-color { width: 26px; height: 26px; }
}

/* ── 12. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 12px 24px; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-sub  { max-width: 100%; }
  .hero-url-pill { margin-left: auto; margin-right: auto; }
  .demo-input-wrap { max-width: 100%; }
  .demo-preview { max-width: 100%; }
  .hero-image { display: none; }
}

@media (max-width: 768px) {
  .section-pasos { padding: 0; }  /* las olas manejan los bordes — sin padding extra */
  .steps-grid    { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-inner     { padding: 48px 28px; }
  .proof-strip   { grid-template-columns: repeat(2, 1fr); padding: 24px; }
}

@media (max-width: 580px) {
  .form-row-fecha,
  .form-row-fecha.no-edad {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .card { padding: 24px 18px; }
  .tipo-grid { grid-template-columns: repeat(2, 1fr); }
  .inv-row { grid-template-columns: 1fr auto; }
  .inv-row input:nth-child(2) { display: none; }
}
