/* ============================================================
   Formaplus — Embudo carretillas · Design system (LIGHT)
   Brand: lime #84B817 · forest #00492C (extracted from aulaformaplus.com)
   Light premium: warm paper background, forest ink, lime = action fills,
   darkened lime for accent text (contrast-safe on light).
   ============================================================ */

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

:root {
  --bg: #F5F7F1;
  --bg-2: #EDF1E7;
  --surface: #FFFFFF;
  --surface-2: #F0F4EC;
  --lime: #84B817;
  --lime-bright: #587D0B;      /* accent TEXT on light (contrast-safe) */
  --lime-hover: #8FC51D;
  --lime-dim: rgba(132, 184, 23, 0.16);
  --forest: #00492C;
  --border: rgba(12, 32, 20, 0.12);
  --border-lime: rgba(105, 145, 25, 0.5);
  --text: #14261B;
  --muted: #57685C;
  --dim: rgba(20, 38, 27, 0.55);
  --amber: #9A6E0D;
  --danger: #CE452C;
  --ink: #14261B;              /* dark text on lime buttons */
  --paper: #FFFFFF;            /* contract document */
  --paper-ink: #1A2C20;
  --shadow-card: 0 1px 2px rgba(12, 32, 20, 0.04), 0 14px 34px -18px rgba(12, 32, 20, 0.18);
  --radius: 18px;
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 120% 55% at 50% -5%, rgba(132, 184, 23, 0.12) 0%, transparent 55%),
    radial-gradient(rgba(0, 73, 44, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 28px 28px, auto;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h3, h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.logo-chip {
  background: #fff; border-radius: 10px; padding: 7px 12px;
  border: 1px solid var(--border);
  display: flex; align-items: center; flex-shrink: 0;
}
.logo-chip img { height: 26px; width: auto; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--muted);
  transition: color 0.2s;
}
.topbar-phone:hover { color: var(--text); }
.topbar-phone svg { width: 15px; height: 15px; }
.topbar-phone { white-space: nowrap; }
@media (max-width: 719px) {
  .topbar-phone { display: none; }
  .topbar-inner { padding: 10px 16px; }
  .logo-chip { padding: 6px 10px; }
  .logo-chip img { height: 17px; }
  .topbar .btn-sm { padding: 9px 14px; font-size: 0.8rem; white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.22s ease;
  border-radius: 14px; font-size: 1rem; padding: 15px 28px;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--lime); color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(105, 145, 25, 0.55);
}
.btn-primary:hover { background: var(--lime-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(12, 32, 20, 0.3); }
.btn-wa {
  background: rgba(37, 211, 102, 0.14); color: #157A3F;
  border: 1px solid rgba(21, 122, 63, 0.35);
}
.btn-wa:hover { background: rgba(37, 211, 102, 0.22); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 6px 13px; border-radius: 100px;
  background: #fff; border: 1px solid var(--border);
  color: var(--muted);
}
.chip svg { width: 13px; height: 13px; color: var(--lime-bright); }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}

/* numbered section kicker */
.sec-kicker {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px;
}
.sec-kicker .sec-num {
  font-family: var(--font-display); font-size: 1.05rem;
  color: transparent; -webkit-text-stroke: 1px rgba(20, 38, 27, 0.35);
}
.sec-kicker .sec-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 44px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 920px) { .hero-grid { grid-template-columns: 11fr 9fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); margin-bottom: 20px; }
.hero h1 .hi {
  color: var(--text);
  background: linear-gradient(var(--lime), var(--lime)) 0 89% / 0% 0.16em no-repeat;
  animation: marker 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.45s forwards;
}
@keyframes marker { to { background-size: 100% 0.16em; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hi { animation: none; background-size: 100% 0.16em; }
}
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 540px; margin-bottom: 26px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-chips { display: flex; gap: 9px; flex-wrap: wrap; }

.next-session {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 18px;
  font-size: 0.9rem; color: var(--muted);
  box-shadow: var(--shadow-card);
}
.next-session b { color: var(--text); font-weight: 600; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); position: relative; flex-shrink: 0; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(132, 184, 23, 0.5); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- Photo slots ---------- */
.foto {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
}
.foto.ratio-16-9 { aspect-ratio: 16 / 9; }
.foto.ratio-4-3 { aspect-ratio: 4 / 3; }
.foto.ratio-1-1 { aspect-ratio: 1 / 1; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  border: 2px dashed rgba(12, 32, 20, 0.18); border-radius: var(--radius);
  padding: 18px; color: var(--dim);
}
.foto .ph svg { width: 26px; height: 26px; opacity: 0.5; }
.foto .ph .ph-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.foto .ph .ph-file { font-size: 0.68rem; font-family: monospace; opacity: 0.55; }

/* ---------- Sections ---------- */
.section { padding: clamp(76px, 9vw, 116px) 0 8px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ---------- Stat band ---------- */
.stat-band {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}
.stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px; padding-top: 40px; padding-bottom: 40px;
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-big { text-align: center; }
.stat-big .n {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat-big .l {
  display: block; margin-top: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Price card ---------- */
.price-card {
  background: linear-gradient(135deg, rgba(132, 184, 23, 0.14), rgba(0, 73, 44, 0.07)), #fff;
  border: 1px solid var(--border-lime); border-radius: 22px;
  padding: 34px 30px; text-align: center;
  box-shadow: var(--shadow-card);
}
.price-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 400; line-height: 1; color: var(--text); }
.price-num small { font-size: 1.4rem; }
.price-note { color: var(--muted); font-size: 0.9rem; margin: 8px 0 20px; }
.price-includes { text-align: left; margin: 0 auto 24px; max-width: 320px; list-style: none; }
.price-includes li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; color: var(--text); padding: 5px 0;
}
.price-includes svg { width: 16px; height: 16px; color: var(--lime-bright); flex-shrink: 0; margin-top: 4px; }

/* ---------- Sessions: ticket cards ---------- */
.sesiones-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .sesiones-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

.sesion-card {
  position: relative; display: grid; grid-template-columns: 1fr 104px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sesion-card:hover { border-color: var(--border-lime); transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(90, 130, 20, 0.35); }
.ticket-main { padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ticket-kicker { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); }
.sesion-fecha { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; }
.sesion-meta { font-size: 0.83rem; color: var(--muted); }
.ticket-stub {
  position: relative; border-left: 2px dashed rgba(12, 32, 20, 0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 8px; text-align: center;
  background: var(--surface-2);
}
.ticket-stub::before, .ticket-stub::after {
  content: ''; position: absolute; left: -9px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border);
}
.ticket-stub::before { top: -9px; }
.ticket-stub::after { bottom: -9px; }
.stub-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--lime-bright); line-height: 1; }
.stub-note { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); line-height: 1.5; }

/* occupancy bar */
.occ { display: flex; gap: 3px; margin-top: 3px; }
.occ span { flex: 1; height: 7px; border-radius: 3px; background: rgba(12, 32, 20, 0.12); }
.occ span.free { background: var(--lime); }
.occ-label { font-size: 0.74rem; color: var(--muted); }
.occ-label b { color: var(--lime-bright); font-weight: 700; }
.ticket-cta { margin-top: 8px; align-self: flex-start; }
.ticket-copy { font-size: 0.68rem; color: var(--dim); }

.plazas-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 0.74rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
}
.plazas-badge.ok { color: var(--lime-bright); background: var(--lime-dim); border: 1px solid var(--border-lime); }
.plazas-badge.low { color: var(--amber); background: rgba(154, 110, 13, 0.12); border: 1px solid rgba(154, 110, 13, 0.35); }
.plazas-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sesiones-empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- Steps (cómo funciona) ---------- */
.pasos { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: paso; }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { counter-increment: paso; }
.paso .paso-num {
  font-family: var(--font-display); font-size: 0.8rem;
  color: var(--dim); margin-bottom: 10px;
}
.paso .paso-num::before {
  content: '0' counter(paso); font-size: 1.7rem; display: block;
  color: transparent; -webkit-text-stroke: 1px rgba(20, 38, 27, 0.4);
}
.paso h3 { font-size: 1.05rem; margin-bottom: 6px; }
.paso p { font-size: 0.89rem; color: var(--muted); }

.garantia {
  margin-top: 26px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--lime-dim); border: 1px solid var(--border-lime);
  border-radius: var(--radius); padding: 20px 22px;
}
.garantia svg { width: 26px; height: 26px; color: var(--forest); flex-shrink: 0; margin-top: 2px; }
.garantia b { display: block; font-family: var(--font-body); font-weight: 700; margin-bottom: 3px; }
.garantia p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Testimonios ---------- */
.testi-card blockquote { font-size: 0.95rem; color: var(--text); margin-bottom: 16px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who .foto { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.testi-who .foto .ph { border-radius: 50%; padding: 4px; }
.testi-who .foto .ph svg { width: 16px; height: 16px; }
.testi-who .foto .ph .ph-label, .testi-who .foto .ph .ph-file { display: none; }
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.78rem; color: var(--dim); }
.testi-demo {
  display: inline-block; margin-top: 12px;
  font-size: 0.76rem; font-weight: 600; color: #6B4E0A;
  background: #FBF3DD; border: 1px dashed #E3CD8E;
  padding: 6px 13px; border-radius: 100px;
}
.stars { color: var(--lime-bright); letter-spacing: 2px; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 20px 4px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-x { transition: transform 0.25s; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary .faq-x { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 20px; color: var(--muted); font-size: 0.94rem; max-width: 640px; }

/* ---------- CTA final ---------- */
.cta-final {
  margin: 80px 0 0; padding: 64px 24px; text-align: center;
  background: linear-gradient(135deg, rgba(132, 184, 23, 0.16), rgba(0, 73, 44, 0.08));
  border-top: 1px solid var(--border-lime);
  border-bottom: 1px solid var(--border-lime);
}
.cta-final h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.cta-final p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 110px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-legal { font-size: 0.8rem; color: var(--dim); line-height: 1.8; max-width: 420px; }
.footer-legal a { color: var(--muted); }
.footer-links { font-size: 0.8rem; color: var(--dim); display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.pay-badges { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pay-badge {
  font-size: 0.7rem; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pay-badge svg { width: 12px; height: 12px; color: var(--lime-bright); }

/* ---------- Sticky mobile CTA + WhatsApp float ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(12, 32, 20, 0.08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.sticky-cta .price { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.sticky-cta .price small { display: block; font-size: 0.64rem; font-weight: 600; color: var(--muted); font-family: var(--font-body); letter-spacing: 0.02em; }
.sticky-cta .btn { flex: 1; padding: 13px 18px; }
@media (min-width: 920px) { .sticky-cta { display: none; } }

.wa-float {
  position: fixed; right: 18px; bottom: 86px; z-index: 56;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(12, 32, 20, 0.3); text-decoration: none;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (min-width: 920px) { .wa-float { bottom: 24px; } }

/* ============================================================
   Inscripción (multi-step)
   ============================================================ */
.insc-wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px 120px; }
.stepper { display: flex; gap: 6px; margin-bottom: 28px; }
.stepper .st {
  flex: 1; text-align: center; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim);
  padding-bottom: 10px; border-bottom: 3px solid rgba(12, 32, 20, 0.1);
  transition: all 0.3s;
}
.stepper .st.active { color: var(--lime-bright); border-color: var(--lime); }
.stepper .st.done { color: var(--muted); border-color: rgba(0, 73, 44, 0.45); }

.insc-card { padding: 30px 26px; }
.insc-card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.insc-card .insc-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.resumen-curso {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--lime-dim); border: 1px solid var(--border-lime);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 26px;
  font-size: 0.9rem;
}
.resumen-curso[hidden] { display: none; }
.resumen-curso b { font-family: var(--font-body); font-weight: 700; }
.resumen-curso .cambiar { margin-left: auto; font-size: 0.78rem; color: var(--muted); cursor: pointer; text-decoration: underline; background: none; border: none; font-family: inherit; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(12, 32, 20, 0.2);
  color: var(--text); font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus { outline: none; border-color: var(--lime-bright); background: #FCFEF8; }
.field .err { display: none; font-size: 0.76rem; color: var(--danger); margin-top: 5px; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.fields-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .fields-2 { grid-template-columns: 1fr 1fr; } }

/* DNI dropzones */
.dni-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .dni-grid { grid-template-columns: 1fr 1fr; } }
.dropzone {
  position: relative; aspect-ratio: 8 / 5; border-radius: 14px;
  border: 2px dashed rgba(12, 32, 20, 0.25); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-align: center; padding: 14px; overflow: hidden;
  transition: border-color 0.2s;
}
.dropzone:hover { border-color: var(--lime-bright); }
.dropzone svg { width: 26px; height: 26px; color: var(--lime-bright); }
.dropzone .dz-label { font-size: 0.86rem; font-weight: 600; }
.dropzone .dz-hint { font-size: 0.72rem; color: var(--dim); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.filled { border-style: solid; border-color: var(--border-lime); padding: 0; }
.dropzone.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone .dz-retake {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-size: 0.7rem; font-weight: 700; color: var(--ink);
  background: var(--lime); border: none; border-radius: 8px; padding: 5px 10px; cursor: pointer;
  display: none;
}
.dropzone.filled .dz-retake { display: block; }
.dropzone.filled .dz-icon, .dropzone.filled .dz-label, .dropzone.filled .dz-hint { display: none; }

/* Contract */
.contrato-box {
  background: var(--paper); color: var(--paper-ink);
  border-radius: 14px; padding: 26px 24px; max-height: 420px; overflow-y: auto;
  font-size: 0.84rem; line-height: 1.7; margin-bottom: 18px;
  border: 1px solid rgba(12, 32, 20, 0.2);
  box-shadow: inset 0 1px 4px rgba(12, 32, 20, 0.04);
}
.contrato-box h3 { font-size: 1.05rem; text-align: center; margin-bottom: 16px; color: var(--forest); }
.contrato-box h4 { font-size: 0.88rem; margin: 16px 0 6px; color: var(--forest); }
.contrato-box p { margin-bottom: 10px; }
.contrato-box .firma-slot { margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, 0.25); font-size: 0.8rem; }

.firma-pad-wrap { margin-bottom: 6px; }
.firma-pad {
  background: #fff; border-radius: 14px; border: 1px solid rgba(12, 32, 20, 0.25);
  width: 100%; height: 160px; touch-action: none; display: block; cursor: crosshair;
}
.firma-tools { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 18px; }
.firma-tools .hint { font-size: 0.76rem; color: var(--dim); }
.firma-tools button {
  background: #fff; border: 1px solid var(--border); color: var(--muted);
  font-size: 0.76rem; font-weight: 600; padding: 6px 12px; border-radius: 9px;
  cursor: pointer; font-family: inherit;
}

.check-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.check-row input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--lime-bright); flex-shrink: 0; }
.check-row span { font-size: 0.84rem; color: var(--muted); }
.check-row a { color: var(--lime-bright); }

/* Pago resumen */
.pago-lineas { list-style: none; margin-bottom: 20px; }
.pago-lineas li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(12, 32, 20, 0.08);
  font-size: 0.92rem; color: var(--muted);
}
.pago-lineas li b { color: var(--text); font-weight: 600; }
.pago-lineas li.total { font-family: var(--font-display); font-size: 1.15rem; border-bottom: none; padding-top: 16px; }
.pago-lineas li.total b { color: var(--lime-bright); font-size: 1.5rem; }
.pago-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.78rem; color: var(--dim); margin-top: 14px; }
.pago-secure svg { width: 14px; height: 14px; color: var(--lime-bright); }

/* ---------- Stripe Payment Element (inline) ---------- */
#payment-element { margin: 8px 0 4px; }
.pago-cargando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; color: var(--muted); font-size: 0.9rem; }
.payment-message { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(206, 69, 44, 0.10); color: var(--danger); font-size: 0.85rem; }
.demo-pay { padding: 16px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); font-size: 0.85rem; background: var(--surface-2); }
#btnPagar { margin-top: 14px; }

.insc-nav { display: flex; gap: 12px; margin-top: 26px; }
.insc-nav .btn-back { flex: 0 0 auto; }
.insc-nav .btn-next { flex: 1; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 60px));
  background: var(--danger); color: #fff; font-size: 0.88rem; font-weight: 600;
  padding: 13px 22px; border-radius: 12px; z-index: 90;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.28, 1);
  max-width: calc(100vw - 40px); text-align: center;
  box-shadow: 0 10px 34px rgba(12, 32, 20, 0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(20, 38, 27, 0.3); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite; display: none;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Gracias */
.gracias-wrap { max-width: 620px; margin: 0 auto; padding: 80px 24px 120px; text-align: center; }
.gracias-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 28px;
  background: var(--lime-dim); border: 1px solid var(--border-lime);
  display: flex; align-items: center; justify-content: center;
}
.gracias-icon svg { width: 40px; height: 40px; color: var(--lime-bright); }
.gracias-wrap h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin-bottom: 14px; }
.gracias-wrap > p { color: var(--muted); margin-bottom: 34px; }
.gracias-steps { text-align: left; margin-bottom: 30px; }
.gracias-steps .card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; padding: 18px 20px; }
.gracias-steps svg { width: 20px; height: 20px; color: var(--lime-bright); flex-shrink: 0; margin-top: 3px; }
.gracias-steps b { display: block; font-size: 0.95rem; }
.gracias-steps p { font-size: 0.85rem; color: var(--muted); }
.demo-banner {
  background: #FBF3DD; border: 1px solid #E3CD8E;
  color: var(--amber); font-size: 0.82rem; font-weight: 600;
  border-radius: 12px; padding: 12px 18px; margin-bottom: 30px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot::after { animation: none; }
  * { scroll-behavior: auto; }
}
