/* =========================================================
   REGISTRO.CSS — BAK'TUN TECHNOLOGY v2
   ========================================================= */

.reg-body {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--off);
  padding: 32px clamp(16px, 4%, 32px);
  position: relative;
}

/* Fondo con grano sutil */
.reg-body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
  opacity: 0.55;
}

/* Orbe dorado de fondo */
.reg-body::after {
  content: '';
  position: fixed; top: -20%; right: -15%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,165,66,0.1) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ── CARD CENTRAL ───────────────────────────────────────── */
.reg-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 580px;
}

.reg-card {
  background: var(--white);
  border: 1px solid var(--border-m);
  border-radius: 24px;
  padding: clamp(32px, 5%, 52px);
  box-shadow: var(--shadow-lg);
  animation: regFadeUp 0.65s var(--ease) both;
}

@keyframes regFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO ───────────────────────────────────────────────── */
.reg-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 0;
}
.reg-logo .logo-img { height: 36px; width: auto; }

.reg-divider {
  height: 1px; margin: 22px 0;
  background: linear-gradient(90deg, transparent, var(--border-s), transparent);
}

/* ── BADGE ÉXITO ────────────────────────────────────────── */
.reg-success-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #2d8a50;
  background: rgba(45,138,80,0.09);
  border: 1px solid rgba(45,138,80,0.25);
  border-radius: 999px; padding: 5px 16px;
  margin-bottom: 16px;
}
.reg-success-badge i { font-size: 0.78rem; }

/* ── TITULOS ────────────────────────────────────────────── */
.reg-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300; color: var(--ink); line-height: 1.1;
  margin-bottom: 8px;
}

.reg-subtitle {
  font-size: 0.95rem; color: var(--ink-soft); line-height: 1.75;
  margin-bottom: 18px;
}

/* ── BADGE DE PLAN ──────────────────────────────────────── */
.reg-plan-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-d);
  background: var(--gold-p1); border: 1px solid var(--border-m);
  border-radius: 999px; padding: 5px 15px;
  margin-bottom: 28px;
}
.reg-plan-badge i { color: var(--gold); }

/* ── FORM ───────────────────────────────────────────────── */
.reg-form { display: flex; flex-direction: column; gap: 16px; }

.reg-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

.reg-field { display: flex; flex-direction: column; gap: 6px; }

.reg-field label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px;
}
.reg-optional {
  font-size: 0.62rem; font-weight: 400; color: var(--ink-ghost);
  letter-spacing: 0.06em; text-transform: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px;
}

.reg-input-wrap {
  position: relative; display: flex; align-items: center;
}
.reg-input-wrap > i:first-child {
  position: absolute; left: 14px;
  color: var(--ink-ghost); font-size: 0.82rem; pointer-events: none;
  transition: color 0.2s ease;
}
.reg-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 38px;
  background: var(--off); border: 1px solid var(--border-m);
  border-radius: var(--radius); color: var(--ink);
  font-family: var(--font); font-size: 0.95rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.2s ease;
}
.reg-input-wrap input::placeholder { color: var(--ink-ghost); }
.reg-input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,165,66,0.12);
  background: var(--white);
}
.reg-input-wrap input:focus ~ i:first-child,
.reg-input-wrap:focus-within > i:first-child { color: var(--gold-d); }

.reg-eye {
  position: absolute; right: 12px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-ghost); font-size: 0.82rem;
  padding: 4px; transition: color 0.2s ease;
}
.reg-eye:hover { color: var(--gold-d); }

/* ── MEDIDOR DE FORTALEZA ───────────────────────────────── */
.reg-strength {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
}
.reg-bars { display: flex; gap: 4px; flex: 1; }
.reg-bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--border-m);
  transition: background 0.25s ease;
}
.reg-bar--weak   { background: #d94f4f; }
.reg-bar--medium { background: #d99a2a; }
.reg-bar--strong { background: #3a9e68; }
.reg-strength-label { font-size: 0.72rem; font-weight: 600; flex-shrink: 0; min-width: 60px; }

/* ── SUBMIT ─────────────────────────────────────────────── */
.reg-submit {
  width: 100%; justify-content: center;
  padding: 15px; font-size: 1rem;
  margin-top: 4px;
}

/* ── PIE ────────────────────────────────────────────────── */
.reg-footer {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--ink-ghost);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.reg-footer i { color: var(--gold-d); }
.reg-footer-links {
  display: flex; align-items: center; gap: 10px;
}
.reg-footer-links a {
  color: var(--ink-soft); transition: color 0.2s ease;
  display: flex; align-items: center; gap: 5px;
}
.reg-footer-links a:hover { color: var(--gold-d); }
.reg-footer-links span    { color: var(--border-m); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 520px) {
  .reg-card { padding: 28px 20px; }
  .reg-row  { grid-template-columns: 1fr; }
  .reg-title { font-size: 1.7rem; }
}