/* =============================================
   RENOVAR.CSS — Roller Pingüinos
   ============================================= */

:root {
  --yellow:      #FFB612;
  --yellow-dim:  #e6a20e;
  --dark:        #101820;
  --dark-2:      #161f29;
  --dark-3:      #1e2a38;
  --dark-card:   #0d1520;
  --white:       #ffffff;
  --gray:        #8899aa;
  --gray-light:  #ccd6e0;
  --green:       #22c55e;
  --green-dim:   #16a34a;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --font:        'Outfit', sans-serif;
  --radius:      20px;
  --radius-sm:   10px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 3px; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Fondo con video ────────────────────────── */
.bg-wrap {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.bg-video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.18) saturate(0.6);
}
.bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(16,24,32,0.92) 0%,
    rgba(16,24,32,0.82) 50%,
    rgba(255,182,18,0.04) 100%
  );
}

/* ── Navbar ─────────────────────────────────── */
.rnav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(16,24,32,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,182,18,0.12);
}
.rnav-logo img { height: 40px; }
.rnav-back {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--gray-light);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.rnav-back:hover {
  color: var(--yellow);
  border-color: rgba(255,182,18,0.4);
  background: rgba(255,182,18,0.06);
}

/* ── Main ───────────────────────────────────── */
.renovar-main {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 20px 80px;
  gap: 28px;
}

/* ── Barra de pasos ─────────────────────────── */
.steps-bar {
  display: flex; align-items: center;
  width: 100%; max-width: 520px;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.step-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  position: relative;
}
.step-num {
  font-size: 15px; font-weight: 800;
  color: var(--gray);
  transition: var(--transition);
}
.step-check {
  position: absolute;
  font-size: 14px;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.step-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gray);
  transition: var(--transition);
}

/* Activo */
.step.active .step-circle {
  border-color: var(--yellow);
  background: rgba(255,182,18,0.12);
  box-shadow: 0 0 20px rgba(255,182,18,0.25);
}
.step.active .step-num { color: var(--yellow); }
.step.active .step-label { color: var(--yellow); }

/* Completado */
.step.done .step-circle {
  border-color: var(--green);
  background: var(--green);
}
.step.done .step-num { opacity: 0; transform: scale(0); }
.step.done .step-check { opacity: 1; transform: scale(1); color: var(--white); }
.step.done .step-label { color: var(--green); }

/* Track entre pasos */
.step-track {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  margin-bottom: 24px;
  overflow: hidden;
}
.step-fill {
  height: 100%; width: 0;
  background: var(--green);
  border-radius: 1px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-fill.full { width: 100%; }

/* ── Card ───────────────────────────────────── */
.card {
  width: 100%; max-width: 540px;
  background: rgba(22, 31, 41, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
  animation: card-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.card.hidden { display: none; }

.card-head {
  display: flex; align-items: center; gap: 18px;
}
.card-icon {
  width: 60px; height: 60px; flex-shrink: 0;
  background: rgba(255,182,18,0.12);
  border: 1px solid rgba(255,182,18,0.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--yellow);
}
.card-icon--blue {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: var(--blue);
}
.card-head h1 { font-size: 24px; font-weight: 900; line-height: 1.15; }
.card-head h2 { font-size: 22px; font-weight: 900; line-height: 1.15; }
.card-sub {
  font-size: 13px; color: var(--gray); margin-top: 3px;
}
.card-desc {
  font-size: 15px; color: var(--gray-light); line-height: 1.7;
}
.card-actions {
  display: flex; flex-direction: column; gap: 10px;
}

/* ── Input ──────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-light);
}
.input-row {
  display: flex; align-items: center;
  background: var(--dark-3);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input-row:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,182,18,0.12);
}
.input-icon {
  padding: 0 16px;
  font-size: 16px; color: var(--yellow);
  border-right: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  display: flex; align-items: center;
}
.input-row input {
  flex: 1; padding: 15px 16px;
  background: none; border: none; outline: none;
  font-family: var(--font); font-size: 20px; font-weight: 700;
  color: var(--white);
  -moz-appearance: textfield;
}
.input-row input::-webkit-outer-spin-button,
.input-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.input-hint {
  font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 6px;
}

/* ── Botones ─────────────────────────────────── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  background: var(--yellow); color: var(--dark);
  font-family: var(--font); font-weight: 800; font-size: 16px;
  border-radius: 50px;
  border: 2px solid var(--yellow);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  background: transparent; color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,182,18,0.3);
}
.btn-primary:disabled {
  opacity: 0.6; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  background: transparent; color: var(--gray-light);
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.14);
  transition: var(--transition);
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,182,18,0.5); color: var(--yellow); }

/* ── Error ──────────────────────────────────── */
.error-msg {
  display: none;
  padding: 13px 18px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  font-size: 14px; color: #fca5a5;
  line-height: 1.5;
}
.error-msg.show {
  display: flex; align-items: flex-start; gap: 10px;
  animation: fade-down 0.3s ease;
}
.error-msg::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Alumno banner (paso 2) ─────────────────── */
.alumno-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  background: rgba(255,182,18,0.07);
  border: 1px solid rgba(255,182,18,0.22);
  border-radius: var(--radius-sm);
}
.alumno-avatar {
  font-size: 52px; color: var(--yellow);
  line-height: 1; flex-shrink: 0;
}
.alumno-data h2 { font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.alumno-matricula { font-size: 13px; color: var(--gray); }
.mat-chip {
  display: inline-block;
  background: rgba(255,182,18,0.15);
  color: var(--yellow);
  font-weight: 800; font-size: 13px;
  padding: 2px 10px; border-radius: 50px;
  margin-left: 4px;
}

/* ── Info blocks ─────────────────────────────── */
.info-block { display: flex; flex-direction: column; gap: 10px; }
.block-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gray);
}
.plan-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 14px; font-weight: 600; color: var(--gray-light);
  width: fit-content;
}
.plan-chip i { color: var(--yellow); font-size: 16px; }

/* ── Radio cards ─────────────────────────────── */
.opciones-group {
  display: flex; flex-direction: column; gap: 10px;
  border: none; padding: 0;
}
.radio-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--dark-3);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.radio-card:hover { border-color: rgba(255,182,18,0.35); }
.radio-card.selected {
  border-color: var(--yellow);
  background: rgba(255,182,18,0.06);
}
.radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.rc-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,182,18,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--yellow);
  transition: var(--transition);
}
.radio-card.selected .rc-icon { background: rgba(255,182,18,0.18); }
.rc-body { flex: 1; }
.rc-body strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.rc-body span { font-size: 13px; color: var(--gray-light); }
.rc-check {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
  transition: var(--transition);
}
.radio-card.selected .rc-check {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ── Plan selector ───────────────────────────── */
.plan-selector { display: flex; flex-direction: column; gap: 12px; }
.plan-selector.hidden { display: none; }
.planes-grid { display: flex; flex-direction: column; gap: 8px; }
.plan-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--dark-card);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  cursor: pointer; user-select: none;
  transition: var(--transition);
}
.plan-option:hover { border-color: rgba(255,182,18,0.35); }
.plan-option.selected {
  border-color: var(--yellow);
  background: rgba(255,182,18,0.07);
}
.plan-option-info strong { display: block; font-size: 14px; font-weight: 700; }
.plan-option-info span { font-size: 12px; color: var(--gray-light); }
.plan-option-precio {
  font-size: 20px; font-weight: 900; color: var(--yellow);
  white-space: nowrap;
}
.plan-option-precio small { font-size: 12px; font-weight: 500; color: var(--gray); }

/* ── Resumen de pago (paso 3) ────────────────── */
.resumen {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.resumen-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--gray-light);
}
.resumen-row strong { color: var(--white); font-weight: 700; }
.resumen-divider { height: 1px; background: rgba(255,255,255,0.07); }
.resumen-total { font-size: 15px; }
.precio-total {
  font-size: 22px; font-weight: 900; color: var(--yellow) !important;
}

/* ── Stripe ──────────────────────────────────── */
.stripe-wrap { display: flex; flex-direction: column; gap: 10px; }
.stripe-wrap label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-light);
}
#stripe-card-element {
  background: var(--dark-3);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#stripe-card-element.StripeElement--focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,182,18,0.12);
}
#stripe-card-element.StripeElement--invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.stripe-error {
  font-size: 13px; color: #fca5a5; min-height: 18px;
}

/* ── Nota de seguridad ───────────────────────── */
.seguridad-nota {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
}
.seguridad-nota i {
  color: var(--green); font-size: 18px; flex-shrink: 0; margin-top: 1px;
}
.seguridad-nota p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.seguridad-nota strong { color: var(--gray-light); }

/* ── Éxito (paso 4) ──────────────────────────── */
.card-success {
  align-items: center; text-align: center;
  gap: 28px;
}
.success-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: var(--green);
  animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 40px rgba(34,197,94,0.25);
}
@keyframes success-pop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.success-text h2 { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.success-details {
  width: 100%;
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sd-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  font-size: 14px; color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sd-row:last-child { border-bottom: none; }
.sd-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,182,18,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--yellow);
}

/* ── Spinner ─────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .rnav { padding: 14px 20px; }
  .card { padding: 28px 22px; }
  .steps-bar { max-width: 340px; }
  .step-circle { width: 38px; height: 38px; }
  .step-num { font-size: 13px; }
  .step-label { font-size: 10px; }
  .card-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .alumno-banner { flex-direction: column; text-align: center; }
  .alumno-data { text-align: center; }
}

/* ── Reducir movimiento ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
