@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/InterVariable.woff2') format('woff2'); }
/* ==========================================================================
   contratar-wizard.css — Réplica del diseño del registro.php viejo de alCubo.
   Recrea el look Tailwind (tarjetas, wizard, gradientes) con CSS propio,
   compatible con la CSP estricta (sin CDN, sin inline). Fuente: system-ui
   como sustituto local de Inter.
   ========================================================================== */

:root {
  --w-blue-50:  #eff6ff;  --w-blue-100: #dbeafe;  --w-blue-500: #3b82f6;
  --w-blue-600: #2563eb;  --w-blue-700: #1d4ed8;
  --w-indigo-50:#eef2ff;  --w-indigo-100:#e0e7ff; --w-indigo-500:#6366f1;
  --w-indigo-600:#4f46e5; --w-purple-50:#faf5ff;
  --w-slate-50: #f8fafc;  --w-slate-100:#f1f5f9;  --w-slate-200:#e2e8f0;
  --w-slate-400:#94a3b8;  --w-slate-500:#64748b;  --w-slate-700:#334155;
  --w-slate-800:#1e293b;
  --w-emerald-100:#d1fae5;--w-emerald-600:#059669;
  --w-green-400:#4ade80;  --w-green-600:#16a34a;
  --w-red-400:  #f87171;  --w-red-500:  #ef4444;
}

/* Fondo degradado suave de toda la página */
.wz-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--w-blue-50) 0%, #ffffff 50%, var(--w-indigo-50) 100%);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--w-slate-800);
}

/* Salvaguarda: NINGÚN svg del wizard puede crecer sin control.
   Cada contenedor le da su tamaño exacto; este es el techo por si algo falla. */
.wz-page svg { max-width: 100%; max-height: 56px; width: auto; height: auto; }
.wz-card-icon svg { width: 16px; height: 16px; }
.wz-logo-box svg { width: 20px; height: 20px; }
.wz-tipo-icon svg { width: 28px; height: 28px; }
.wz-tipo-check svg { width: 14px; height: 14px; }
.wz-exito-check svg { width: 44px; height: 44px; }

/* Header */
.wz-header { background: #fff; border-bottom: 1px solid var(--w-slate-100); padding: 16px; }
.wz-header-in { max-width: 768px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.wz-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.wz-logo-box { padding: 6px; background: linear-gradient(135deg, var(--w-blue-600), var(--w-indigo-600)); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.wz-logo-box svg { width: 20px; height: 20px; color: #fff; }
.wz-logo span { font-weight: 700; color: var(--w-slate-800); font-size: 17px; }
.wz-back { font-size: 14px; color: var(--w-slate-500); text-decoration: none; }
.wz-back:hover { color: var(--w-blue-600); }

.wz-container { max-width: 640px; margin: 0 auto; padding: 24px 16px; }

/* ── Stepper ── */
.wz-stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.wz-step { display: flex; align-items: center; }
.wz-step-col { display: flex; flex-direction: column; align-items: center; }
.wz-step-circle {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; transition: all .25s;
  background: var(--w-slate-200); color: var(--w-slate-400);
}
.wz-step-circle.activo { background: var(--w-blue-600); color: #fff; box-shadow: 0 0 0 4px var(--w-blue-100); }
.wz-step-circle.hecho  { background: var(--w-blue-600); color: #fff; }
.wz-step-titulo { font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--w-slate-400); }
.wz-step-titulo.activo { color: var(--w-blue-700); }
.wz-step-sub { font-size: 12px; color: var(--w-slate-400); }
.wz-step-linea { height: 2px; width: 56px; margin: 0 8px; margin-top: -22px; background: var(--w-slate-200); transition: all .25s; }
.wz-step-linea.hecho { background: var(--w-blue-500); }
@media (max-width: 640px) { .wz-step-titulo, .wz-step-sub { display: none; } .wz-step-linea { width: 40px; } }

/* ── Paso (pantalla del wizard) ── */
.wz-paso { display: none; }
.wz-paso.activo { display: block; }
.wz-paso h2 { font-size: 20px; font-weight: 700; color: var(--w-slate-800); margin-bottom: 16px; }

/* ── Tarjeta blanca con sombra ── */
.wz-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); padding: 20px; margin-bottom: 16px; }
.wz-card-titulo { font-weight: 600; color: var(--w-slate-700); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.wz-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; }
.wz-card-icon svg { width: 16px; height: 16px; }
.wz-ic-blue    { background: var(--w-blue-100); }    .wz-ic-blue svg    { color: var(--w-blue-600); }
.wz-ic-emerald { background: var(--w-emerald-100); } .wz-ic-emerald svg { color: var(--w-emerald-600); }
.wz-ic-indigo  { background: var(--w-indigo-100); }  .wz-ic-indigo svg  { color: var(--w-indigo-600); }

/* ── Campos ── */
.wz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wz-col2 { grid-column: span 2; }
@media (max-width: 640px) { .wz-grid2 { grid-template-columns: 1fr; } .wz-col2 { grid-column: span 1; } }
.wz-lbl { display: block; font-size: 12px; font-weight: 500; color: var(--w-slate-500); margin-bottom: 4px; }
.wz-lbl .req { color: var(--w-red-500); }
.wz-lbl .opt { color: var(--w-slate-400); font-size: 11px; }
.wz-inp {
  width: 100%; border: 1px solid var(--w-slate-200); border-radius: 8px; padding: 8px 12px;
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; background: #fff; box-sizing: border-box;
}
.wz-inp:focus { border-color: var(--w-blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.wz-inp.error { border-color: var(--w-red-400); }
.wz-inp.fijo { background: var(--w-slate-100); color: var(--w-slate-500); cursor: not-allowed; }
select.wz-inp { appearance: auto; }
.wz-err { font-size: 11px; color: var(--w-red-500); margin-top: 3px; display: block; }
.wz-hint { font-size: 11px; color: var(--w-slate-400); margin-top: 4px; }

/* ── Tarjetas de tipo de servicio (fibra / inalámbrico) ── */
.wz-tipo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .wz-tipo-grid { grid-template-columns: 1fr; } }
.wz-tipo {
  padding: 20px; border-radius: 16px; border: 2px solid var(--w-slate-200);
  transition: all .2s; text-align: left; position: relative; overflow: hidden; cursor: pointer; background: #fff; width: 100%; display: block;
}
.wz-tipo:hover { border-color: #93c5fd; background: var(--w-slate-50); }
.wz-tipo.sel-fibra { border-color: var(--w-blue-500); background: linear-gradient(135deg, var(--w-blue-50), var(--w-indigo-50)); box-shadow: 0 10px 15px -3px var(--w-blue-100); }
.wz-tipo.sel-inal  { border-color: var(--w-indigo-500); background: linear-gradient(135deg, var(--w-indigo-50), var(--w-purple-50)); box-shadow: 0 10px 15px -3px var(--w-indigo-100); }
.wz-tipo-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: none; align-items: center; justify-content: center; }
.wz-tipo.sel-fibra .wz-tipo-check { display: flex; background: var(--w-blue-600); }
.wz-tipo.sel-inal  .wz-tipo-check { display: flex; background: var(--w-indigo-600); }
.wz-tipo-check svg { width: 14px; height: 14px; color: #fff; }
.wz-tipo-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: all .2s; background: var(--w-slate-100); }
.wz-tipo-icon svg { width: 28px; height: 28px; color: var(--w-slate-400); transition: color .2s; }
.wz-tipo.sel-fibra .wz-tipo-icon { background: var(--w-blue-600); box-shadow: 0 10px 15px -3px var(--w-blue-100); }
.wz-tipo.sel-inal  .wz-tipo-icon { background: var(--w-indigo-600); box-shadow: 0 10px 15px -3px var(--w-indigo-100); }
.wz-tipo.sel-fibra .wz-tipo-icon svg, .wz-tipo.sel-inal .wz-tipo-icon svg { color: #fff; }
.wz-tipo h4 { font-weight: 700; color: var(--w-slate-800); font-size: 16px; margin: 0; }
.wz-tipo p { font-size: 12px; color: var(--w-slate-500); margin: 4px 0 0; line-height: 1.5; }
.wz-tipo-badge { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.wz-tipo-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--w-green-400); }
.wz-tipo-badge .txt { font-size: 12px; color: var(--w-green-600); font-weight: 500; }
.wz-tipo.sel-inal .wz-tipo-badge .dot { background: var(--w-indigo-500); }

/* ── Tarjetas de plan ── */
.wz-planes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.wz-plan { border: 2px solid var(--w-slate-200); border-radius: 16px; padding: 18px; cursor: pointer; transition: all .2s; position: relative; background: #fff; display: block; }
.wz-plan:hover { border-color: #93c5fd; }
.wz-plan.sel { border-color: var(--w-blue-600); background: var(--w-blue-50); box-shadow: 0 10px 15px -3px var(--w-blue-100); }
.wz-plan input { position: absolute; opacity: 0; pointer-events: none; }
.wz-plan-nombre { font-weight: 700; font-size: 16px; color: var(--w-slate-800); }
.wz-plan-vel { font-size: 13px; color: var(--w-slate-500); margin-top: 2px; }
.wz-plan-precio { font-size: 26px; font-weight: 800; color: var(--w-slate-800); margin-top: 8px; }
.wz-plan-precio small { font-size: 12px; font-weight: 400; color: var(--w-slate-400); }
.wz-tec-titulo { font-size: 13px; color: var(--w-indigo-600); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin: 20px 0 10px; }

/* ── INE upload ── */
.wz-ine-drop { width: 100%; border: 2px dashed var(--w-slate-200); border-radius: 12px; padding: 12px; box-sizing: border-box; background: #fff; }
.wz-ine-drop:hover { border-color: var(--w-blue-500); }

/* ── Botones ── */
.wz-botones { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; padding: 0 32px; height: 48px; border-radius: 12px; border: none; cursor: pointer; transition: background .15s; font-size: 16px; }
.wz-btn-primary { background: var(--w-blue-600); color: #fff; box-shadow: 0 10px 15px -3px var(--w-blue-100); }
.wz-btn-primary:hover { background: var(--w-blue-700); }
.wz-btn-ghost { background: var(--w-slate-100); color: var(--w-slate-700); }
.wz-btn-ghost:hover { background: var(--w-slate-200); }
.wz-btn-full { width: 100%; }

/* ── Resumen (paso confirmar) ── */
.wz-resumen-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--w-slate-100); font-size: 14px; }
.wz-resumen-row .k { color: var(--w-slate-500); }
.wz-resumen-row .v { font-weight: 600; color: var(--w-slate-800); }
.wz-resumen-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-size: 18px; font-weight: 700; }
.wz-resumen-total .v { color: var(--w-blue-600); }

/* ── Éxito ── */
.wz-exito { text-align: center; padding: 20px; }
.wz-exito-check { width: 80px; height: 80px; border-radius: 50%; background: var(--w-emerald-100); color: var(--w-emerald-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.wz-exito-check svg { width: 44px; height: 44px; }
.wz-codigo { font-size: 30px; font-weight: 800; color: var(--w-blue-600); letter-spacing: .05em; margin: 14px 0; }

/* Utilidades (reemplazan style inline, bloqueado por CSP) */
.wz-oculto { display: none !important; }
.wz-botones-fin { justify-content: flex-end; }

/* Logo de imagen real (alCubo) en el encabezado del contratar */
.wz-logo-img { height: 34px; width: auto; display: block; }

/* Widget de Turnstile (anti-bots) */
.wz-turnstile { display: flex; justify-content: center; margin: 16px 0; }
