/* ─────────────────────────────────────────────────────────────
 * Rumbolia · Registro de agencias
 * ───────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

.register-body {
  margin: 0;
  background: #f5f7fb;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
}

.reg-root { min-height: 100vh; }

/* ── Navbar ── */
.reg-nav {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reg-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #0ea5e9;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.reg-brand span { color: #0f172a; }
.reg-login-link { font-size: 14px; color: #64748b; text-decoration: none; }
.reg-login-link:hover { color: #0ea5e9; }

/* ── Steps ── */
.reg-step { padding: 0 0 80px; }
.reg-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.reg-inner-narrow { max-width: 560px; }

/* ── Hero texto ── */
.reg-eyebrow {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.reg-step h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
  line-height: 1.1;
}
.reg-step h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}
.reg-sub { color: #64748b; font-size: 17px; margin: 0 0 48px; line-height: 1.55; }

/* ── Plan cards ── */
.reg-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .reg-plans { grid-template-columns: 1fr; } }

.reg-plan-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 36px 28px 28px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reg-plan-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(14,165,233,0.12);
}
.reg-plan-card.featured {
  border-color: #0ea5e9;
  box-shadow: 0 20px 60px rgba(14,165,233,0.18);
  transform: scale(1.02);
}
.reg-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,#0ea5e9,#0891b2);
  color: #fff;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.reg-plan-icon { font-size: 32px; margin-bottom: 4px; }
.reg-plan-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}
.reg-plan-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin: 4px 0 2px;
}
.reg-plan-price small { font-size: 15px; color: #64748b; font-weight: 500; letter-spacing: 0; }
.reg-plan-tagline { font-size: 13px; color: #64748b; margin: 0 0 16px; }
.reg-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.reg-plan-features li {
  padding: 7px 0 7px 22px;
  font-size: 13px;
  color: #1e293b;
  position: relative;
  border-bottom: 1px dashed #e2e8f0;
}
.reg-plan-features li:last-child { border-bottom: none; }
.reg-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}
.reg-plan-features li.no { color: #94a3b8; }
.reg-plan-features li.no::before { content: "·"; color: #94a3b8; }
.reg-plan-cta {
  display: block;
  background: linear-gradient(135deg,#0ea5e9,#0891b2);
  color: #fff;
  padding: 13px 16px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-top: auto;
}
.reg-plan-card:not(.featured) .reg-plan-cta {
  background: #f1f5f9;
  color: #0f172a;
}
.reg-plan-card:not(.featured):hover .reg-plan-cta {
  background: linear-gradient(135deg,#0ea5e9,#0891b2);
  color: #fff;
}

/* ── Form ── */
.reg-back-btn {
  background: none;
  border: none;
  font: inherit;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.reg-back-btn:hover { color: #0ea5e9; }

.reg-selected-plan-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e0f2fe;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  flex-wrap: wrap;
}
.reg-selected-plan-label { color: #64748b; }
.reg-selected-plan-name { font-weight: 700; color: #0369a1; }
.reg-selected-plan-price { color: #0369a1; font-weight: 600; margin-left: auto; }

.reg-form-grid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field label { font-size: 14px; font-weight: 600; color: #374151; }
.reg-field input {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  color: #0f172a;
}
.reg-field input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.reg-field input.error { border-color: #ef4444; }
.reg-field-hint { font-size: 12px; color: #94a3b8; }

.reg-slug-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.reg-slug-wrap:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.reg-slug-suffix {
  padding: 12px 14px 12px 6px;
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
  user-select: none;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  font-weight: 600;
}
.reg-slug-wrap input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 14px !important;
  flex: 1;
  min-width: 0;
  font-family: monospace;
  font-size: 14px;
}
.reg-slug-wrap input:focus { box-shadow: none !important; }

.reg-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #dc2626;
  margin-bottom: 16px;
}

.reg-submit-btn {
  width: 100%;
  background: linear-gradient(135deg,#0ea5e9,#0891b2);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 10px 30px rgba(14,165,233,0.35);
}
.reg-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(14,165,233,0.45); }
.reg-submit-btn:disabled { opacity: 0.7; transform: none; cursor: default; }
.reg-legal { font-size: 12px; color: #94a3b8; margin-top: 16px; text-align: center; line-height: 1.5; }
.reg-legal a { color: #64748b; text-decoration: underline; }

/* ── Google button ── */
.reg-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 0; color: #94a3b8; font-size: 13px;
}
.reg-auth-divider::before,
.reg-auth-divider::after {
  content: ""; flex: 1; height: 1px; background: #e2e8f0;
}
.reg-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 12px; padding: 13px 20px;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #1e293b; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.reg-google-btn:hover { border-color: #94a3b8; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.reg-google-btn:disabled { opacity: 0.7; cursor: default; }

/* ── Success ── */
.reg-success { text-align: center; padding-top: 80px; }
.reg-success-icon { font-size: 72px; margin-bottom: 24px; }
.reg-success p { font-size: 18px; color: #64748b; margin: 0 0 32px; line-height: 1.6; }
.reg-go-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg,#0ea5e9,#0891b2);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(14,165,233,0.35);
  transition: transform 0.15s;
}
.reg-go-btn:hover { transform: translateY(-2px); }
