/* ============================================================
   AELA ERP — style.css
   Paleta: violeta #7C3AED, cian #06B6D4, fondo claro #f8fafc
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #7C3AED;
  --blue-d:  #6D28D9;
  --blue-l:  #8B5CF6;
  --dark:    #f8fafc;
  --surface: #ffffff;
  --surf2:   #f1f5f9;
  --border:  #e2e8f0;
  --text:    #1e293b;
  --muted:   #64748b;
  --green:   #16a34a;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  /* Cyan accent */
  --cyan:    #06B6D4;
  --cyan-l:  #22D3EE;
  --cyan-d:  #0891B2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── BOTONES ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); color: #fff; }

.btn-ghost {
  display: inline-block;
  color: var(--text);
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--blue-l); color: var(--blue-l); }
.btn-full { width: 100%; text-align: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon { display: flex; align-items: center; }
.nav-sigla {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 2px;
}
.nav-sub { font-size: .68rem; color: var(--muted); letter-spacing: .5px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--blue);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.btn-nav:hover { background: var(--blue-d); color: #fff; }

/* Botón "Acceder" en nav — ghost con borde violeta */
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid rgba(124,58,237,.4);
  background: rgba(124,58,237,.06);
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-nav-login:hover {
  background: rgba(124,58,237,.12);
  border-color: var(--blue);
  color: var(--blue-d);
}

/* Mobile nav — botón acceder */
.btn-nav-mobile-login {
  display: block;
  background: rgba(124,58,237,.08);
  color: var(--blue) !important;
  border: 1px solid rgba(124,58,237,.35);
  padding: .6rem 1.25rem;
  border-radius: 7px;
  font-weight: 600;
  text-align: center;
  margin-top: .35rem;
  transition: background .2s;
}
.btn-nav-mobile-login:hover { background: rgba(124,58,237,.16); }

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: .35rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: auto;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: .75rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.98);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--muted); font-size: .95rem; padding: .35rem 0; }
.nav-mobile a:hover { color: var(--text); }
.btn-nav-mobile {
  display: block;
  background: var(--blue);
  color: #fff !important;
  padding: .6rem 1.25rem;
  border-radius: 7px;
  font-weight: 600;
  text-align: center;
  margin-top: .5rem;
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-hamburger { display: block; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.08) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(124,58,237,.10) 0%,
    rgba(6,182,212,.05) 50%,
    transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--blue);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-l) 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* Hint de acceso para usuarios existentes */
.hero-login-hint {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-login-link {
  color: var(--blue-l);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.hero-login-link:hover { color: var(--text); }
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-sep { width: 1px; height: 40px; background: var(--border); }
@media (max-width: 480px) { .stat-sep { display: none; } }

/* ── SECTION BASE ── */
.section { padding: 5rem 0; }
.section-dark { background: var(--surf2); }
.section-accent {
  background: linear-gradient(135deg, rgba(124,58,237,.04) 0%, rgba(6,182,212,.02) 60%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block;
  background: rgba(124,58,237,.08);
  color: var(--blue);
  border: 1px solid rgba(124,58,237,.25);
  padding: .25rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .9rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: .75rem;
}
.section-header p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: .97rem; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.feature-card:hover {
  border-color: rgba(124,58,237,.4);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(124,58,237,.1);
}
.feature-icon { font-size: 2rem; margin-bottom: .9rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ── MODULES ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.module-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(124,58,237,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: border-color .2s;
}
.module-item:hover { border-color: rgba(124,58,237,.45); }
.module-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.module-item strong { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.module-item small { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* ── PLANS ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.plan-card { padding: 1.75rem 1.5rem; }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.plan-card:hover {
  border-color: rgba(124,58,237,.4);
  box-shadow: 0 4px 20px rgba(124,58,237,.1);
}
.plan-card-featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(124,58,237,.05) 0%, var(--surface) 60%);
  box-shadow: 0 0 35px rgba(124,58,237,.12);
}

/* Plan Lite — destacado como gratuito */
.plan-card-lite {
  border-color: #16a34a;
  background: linear-gradient(160deg, rgba(22,163,74,.04) 0%, var(--surface) 60%);
  box-shadow: 0 0 28px rgba(22,163,74,.10);
}
.plan-card-lite:hover {
  border-color: #16a34a;
  box-shadow: 0 4px 24px rgba(22,163,74,.15);
}

.plan-badge-popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-badge-free {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-header { margin-bottom: 1.5rem; }
.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--blue); margin-bottom: .4rem; }
.plan-price-free { color: #16a34a; }
.plan-desc { font-size: .82rem; color: var(--muted); }
.plan-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.plan-features li { font-size: .88rem; }
.plan-features li.ok { color: var(--text); }
.plan-features li.no { color: var(--muted); }
.btn-plan {
  display: block;
  text-align: center;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.btn-plan:hover { border-color: var(--blue); color: var(--blue); background: rgba(124,58,237,.05); }
.btn-plan-featured { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-plan-featured:hover { background: var(--blue-d); color: #fff; }
.btn-plan-lite-cta {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  font-size: .95rem;
  padding: .8rem 1rem;
}
.btn-plan-lite-cta:hover { background: #15803d; border-color: #15803d; color: #fff; }
.plans-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Plan Contador Directo — banner destacado, distinto de las tarjetas principales ── */
.plan-cta-banner {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #1e1b3a 0%, #0f172a 100%);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.plan-cta-banner-text { flex: 1 1 380px; }
.plan-cta-banner-badge {
  display: inline-block;
  background: rgba(251,191,36,.15);
  color: #fbbf24;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.plan-cta-banner-text h3 { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.plan-cta-banner-text p { color: #cbd5e1; font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; max-width: 520px; }
.plan-cta-banner-features { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.plan-cta-banner-features li { color: #e2e8f0; font-size: .85rem; }
.plan-cta-banner-price {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(251,191,36,.3);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.plan-cta-banner-amount { color: #fbbf24; font-size: 2.2rem; font-weight: 800; white-space: nowrap; }
.plan-cta-banner-amount span { font-size: 1rem; font-weight: 500; color: #cbd5e1; }
.plan-cta-banner-btn {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1e1b3a;
  white-space: nowrap;
  font-weight: 700;
}
.plan-cta-banner-btn:hover { background: #f59e0b; border-color: #f59e0b; color: #1e1b3a; }

@media (max-width: 640px) {
  .plan-cta-banner { padding: 1.75rem; flex-direction: column; }
  .plan-cta-banner-price { width: 100%; }
}

/* ── TECH ── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.tech-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s;
}
.tech-item:hover { border-color: rgba(6,182,212,.5); }
.tech-icon { font-size: 1.1rem; }

/* ── CONTACT ── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .82rem; font-weight: 500; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(124,58,237,.06);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .65rem .9rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .75rem; }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .25rem; }
.contact-item { display: flex; align-items: flex-start; gap: .9rem; }
.contact-icon { font-size: 1.3rem; margin-top: .1rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.contact-item a, .contact-item span { font-size: .93rem; color: var(--text); }
.contact-item a:hover { color: var(--blue-l); }
.contact-highlight {
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.35);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: .5rem;
}
.contact-highlight strong { display: block; font-size: 1rem; margin-bottom: .4rem; }
.contact-highlight p { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}
.footer-sigla {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 3px;
}
.footer-sub { font-size: .78rem; color: var(--muted); display: block; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; color: var(--muted); line-height: 1.6; max-width: 300px; }

.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links h4 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: .35rem; }
.footer-links a { font-size: .87rem; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--blue); }

/* ── ANIMACIONES ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background .2s, transform .15s;
  z-index: 50;
}
#scroll-top:hover { background: var(--blue-d); transform: translateY(-2px); }
#scroll-top.visible { display: flex; }

/* ============================================================
   PÁGINA REGISTRO (registro.html)
   ============================================================ */

/* ── Layout ── */
.reg-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  background:
    radial-gradient(ellipse at 60% 0%, rgba(124,58,237,.07) 0%, transparent 60%),
    #f8fafc;
}

.reg-container {
  width: 100%;
  max-width: 520px;
}

/* ── Nav mínimo ── */
.reg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.reg-nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.reg-nav-sigla {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7C3AED;
  letter-spacing: 2px;
}
.reg-nav-sub { font-size: .65rem; color: #94a3b8; }

/* ── Back link ── */
.reg-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 1.75rem;
  transition: color .15s;
}
.reg-back:hover { color: #7C3AED; }

/* ── Card ── */
.reg-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

/* ── Header ── */
.reg-header { text-align: center; margin-bottom: 2rem; }
.reg-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
}
.reg-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: .4rem;
}
.reg-header p { font-size: .9rem; color: #64748b; }

/* ── Badge gratis ── */
.reg-badge-free {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.3);
  color: #166534;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ── Formulario ── */
.reg-form { display: flex; flex-direction: column; gap: 1rem; }

.reg-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.reg-field label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}
.reg-field input {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .95rem;
  color: #1e293b;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}
.reg-field input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.reg-field input::placeholder { color: #c0c9d5; }

/* ── Términos ── */
.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .83rem;
  color: #475569;
  line-height: 1.5;
}
.reg-terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #7C3AED;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── Botón submit ── */
.reg-submit {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: .85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  width: 100%;
}
.reg-submit:hover:not(:disabled) { background: #15803d; transform: translateY(-1px); }
.reg-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Mensaje error ── */
.reg-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .88rem;
  display: none;
}
.reg-error.visible { display: block; }

/* ── Estado éxito ── */
.reg-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.reg-success.visible { display: block; }
.reg-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}
.reg-success h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .75rem;
}
.reg-success p {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: .5rem;
}
.reg-success-email {
  display: inline-block;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.25);
  color: #7C3AED;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 6px;
  font-size: .9rem;
  margin: .5rem 0 1.25rem;
}
.reg-success-note {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 1rem;
  font-size: .83rem;
  color: #64748b;
  text-align: left;
  margin-top: 1rem;
}
.reg-success-note strong { color: #475569; }

/* ── Polling — barra de progreso y estado ── */
.reg-polling { margin: 1.5rem 0 1rem; }
.reg-polling-bar-wrap {
  background: #e2e8f0;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-bottom: .85rem;
}
.reg-polling-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7C3AED, #a855f7);
  width: 15%;
  transition: width .6s ease;
  animation: polling-pulse 2s ease-in-out infinite alternate;
}
@keyframes polling-pulse {
  from { opacity: .75; }
  to   { opacity: 1; }
}
.reg-polling-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: .88rem;
  color: #64748b;
}
.reg-polling-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7C3AED;
  animation: dot-bounce .9s ease-in-out infinite;
}
.reg-polling-dot:nth-child(2) { animation-delay: .15s; }
.reg-polling-dot:nth-child(3) { animation-delay: .30s; }
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

/* ── Botón ir al sistema ── */
.reg-goto-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #7C3AED;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .9rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
  margin-top: .75rem;
}
.reg-goto-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.45);
}
.reg-goto-btn-icon { font-size: 1.15rem; }

/* ── Estado listo ── */
.reg-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.3);
  color: #166534;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── Error de provisioning ── */
.reg-prov-error {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 8px;
  padding: .9rem 1rem;
  font-size: .87rem;
  text-align: left;
  margin-top: 1rem;
}

/* ── Timeout ── */
.reg-timeout-note {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: .9rem 1rem;
  font-size: .87rem;
  text-align: left;
  margin-top: 1rem;
}

/* ── Loader spinner ── */
.reg-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Separador ── */
.reg-sep {
  text-align: center;
  font-size: .82rem;
  color: #94a3b8;
  margin: .5rem 0;
}

/* ── Ya tiene cuenta ── */
.reg-login-link {
  text-align: center;
  font-size: .85rem;
  color: #64748b;
  margin-top: 1.25rem;
}
.reg-login-link a {
  color: #7C3AED;
  font-weight: 600;
}

/* ── Bloque "qué incluye" ── */
.reg-includes {
  margin-top: 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.reg-includes-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #94a3b8;
  margin-bottom: .75rem;
}
.reg-includes-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .5rem;
}
.reg-includes-list li {
  font-size: .82rem;
  color: #475569;
}

/* ── Selector de plan ── */
.reg-plan-selector {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.reg-plan-opt {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #fafafa;
}
.reg-plan-opt input[type="radio"] { display: none; }
.reg-plan-opt-selected,
.reg-plan-opt:has(input:checked) {
  border-color: #7C3AED;
  background: rgba(124,58,237,.04);
}
.reg-plan-opt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.reg-plan-opt-info strong { font-size: .9rem; color: #1e293b; }
.reg-plan-opt-info span  { font-size: .78rem; color: #64748b; }
.reg-plan-opt-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.reg-badge-free-sm { background: rgba(22,163,74,.1);   color: #166534; border: 1px solid rgba(22,163,74,.3); }
.reg-badge-paid-sm { background: rgba(124,58,237,.1);  color: #5b21b6; border: 1px solid rgba(124,58,237,.3); }

/* ── Plan info en pantalla éxito ── */
.reg-success-plan-info {
  display: block;
  font-size: .8rem;
  color: #64748b;
  margin-top: 4px;
}

/* ── Plan de pago — aviso ── */
.reg-plan-paid-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .85rem;
  color: #1e40af;
  line-height: 1.5;
}

/* ── Helpers de color usados en textos de soporte ── */
.reg-link-green  { color: #16a34a; font-weight: 600; }
.reg-link-purple { color: #7C3AED; font-weight: 600; }
.reg-text-muted  { color: #64748b; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .reg-card { padding: 2rem 1.25rem; }
  .reg-includes-list { grid-template-columns: 1fr; }
}
