/* =========================
   GoCorte — Registro Sucursal
   Estilo alineado a landing pero con tarjeta clara
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* Base dark de fondo */
  --bg-0:#0a0f1c;
  --bg-1:#0d1324;
  --bg-2:#11182b;

  /* Colores UI */
  --text:#eaf0ff;
  --muted:#a8b2c7;
  --title:#ffffff;

  /* Brand */
  --primary:#4f8cff;    /* azul botón */
  --primary-2:#2dd4ff;  /* cian glow */

  /* Light Surface (más blanco) */
  --surface:#ffffff;
  --surface-text:#0b1220;
  --surface-muted:#52617d;
  --surface-stroke:#e6ecf6;
  --surface-stroke-2:#cfd7e6;

  --shadow:0 10px 40px rgba(15,23,42,.35);
  --radius:18px;
}

/* Reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  background:var(--bg-0);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Fondo con glow */
.page{min-height:100%; position:relative; overflow-x:hidden;}
.bg{
  position:fixed; inset:-10% -10% auto -10%; height:72vh; z-index:-1;
  background:
    radial-gradient(1100px 520px at 16% -8%, rgba(79,140,255,.38), transparent 60%),
    radial-gradient(900px 540px at 86% -6%, rgba(45,212,255,.28), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
  pointer-events:none;
  filter:saturate(110%);
}

/* Topbar */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:18px 24px; position:sticky; top:0; z-index:10;
  background:linear-gradient(180deg, rgba(10,15,28,.85), rgba(10,15,28,.35), transparent);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.04);
}
.brand{font-weight:800; letter-spacing:.2px; color:#fff; text-decoration:none; font-size:18px; display:flex; align-items:center; gap:10px}
.brand .dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 0 18px var(--primary)}
.top-actions{display:flex; align-items:center; gap:10px}
.link{color:var(--muted); text-decoration:none; font-weight:500}
.link:hover{color:#fff}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:42px; padding:0 16px; border-radius:999px; border:1px solid rgba(255,255,255,.1);
  background:transparent; color:#fff; text-decoration:none; cursor:pointer;
  transition:transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn.ghost:hover{background:rgba(255,255,255,.08)}
.btn.primary{
  border:none;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 30px rgba(45,212,255,.22);
  font-weight:800;
  color:#0a1220;
}
.btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(79,140,255,.25) inset, 0 12px 36px rgba(45,212,255,.32);
}
.btn.loading{opacity:.7; pointer-events:none; position:relative}
.btn.loading::after{
  content:''; width:16px;height:16px;border:2px solid rgba(255,255,255,.75); border-top-color:transparent;
  border-radius:50%; position:absolute; right:14px; animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* Layout */
.layout{
  max-width:1100px; margin:42px auto; padding:0 18px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:28px;
}
@media (max-width: 980px){
  .layout{grid-template-columns:1fr; gap:18px; margin:26px auto;}
}

/* Intro copy */
.intro .title{
  font-size: clamp(28px, 4.2vw, 46px);
  line-height:1.05; margin:8px 0 12px; color:var(--title);
}
.intro .subtitle{color:var(--muted); font-size:16px; margin:0 0 16px}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 18px}
.badge{
  font-size:12px; padding:8px 12px; border-radius:999px; color:#e8efff;
  background:rgba(79,140,255,.14); border:1px solid rgba(79,140,255,.28);
  box-shadow: inset 0 0 25px rgba(45,212,255,.10);
}
.bullets{margin:6px 0 0 2px; padding-left:18px; color:#d6def1}
.bullets li{margin:8px 0}

/* Card base (glass dark) */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 20px;
  backdrop-filter: blur(10px);
  color: var(--text);
}
/* OVERRIDE: Modo claro (más blanco) */
.card.light{
  background: var(--surface);
  color: var(--surface-text);
  border:1px solid var(--surface-stroke);
  box-shadow: 0 12px 36px rgba(8,12,22,.18), 0 2px 0 rgba(8,12,22,.02) inset;
}
.card-title{margin:6px 4px 16px; font-size:22px}

/* Stepper */
.steps{display:flex; align-items:center; gap:10px; margin:4px 0 14px}
.step{
  width:28px;height:28px;border-radius:50%;
  display:grid; place-items:center; font-weight:800; font-size:14px;
  color:#a8c1ff; border:1px solid rgba(79,140,255,.35);
  background:rgba(79,140,255,.08);
}
.step.active{
  color:#071021; background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-color: transparent; box-shadow:0 0 0 3px rgba(79,140,255,.25);
}
.line{flex:1; height:2px; background:linear-gradient(90deg, rgba(79,140,255,.35), rgba(45,212,255,.35))}

/* Stepper en tarjeta clara */
.card.light .step{ color:#6882b4; background:#f3f7ff; border:1px solid #dbe6ff}
.card.light .line{ background:linear-gradient(90deg,#cfe0ff,#d9f7ff)}

/* Tabs de rubro */
.tabs{display:flex; gap:8px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  padding:6px; border-radius:999px; margin:8px 0 14px}
.card.light .tabs{ background:#f5f8ff; border:1px solid var(--surface-stroke)}
.tab{position:relative}
.tab input{display:none}
.tab span{
  display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border-radius:999px;
  color:#d7e3ff; font-weight:700; cursor:pointer; transition:all .18s ease;
}
.card.light .tab span{ color:#53607a}
.tab input:checked + span{
  background:linear-gradient(90deg, var(--primary), var(--primary-2));
  color:#071021; box-shadow:0 6px 22px rgba(45,212,255,.25);
}

/* Form */
.form{display:block}
.grid{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width:720px){ .grid{grid-template-columns:1fr; gap:12px} }

.field{display:flex; flex-direction:column; gap:8px}
.field label{font-size:13px; color:#cbd5e1}
.card.light .field label{color:#495a77}

.field input, .field select{
  height:46px; border-radius:12px; padding:0 14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(8,12,22,.65);
  color:#eff5ff; outline:none; transition:border .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder{color:#8491ad}

/* Inputs claros dentro de card light */
.card.light .field input,
.card.light .field select{
  background:#fff;
  color:var(--surface-text);
  border:1px solid var(--surface-stroke-2);
}
.card.light .field input::placeholder{color:#94a1b5}

.field input:focus, .field select:focus{
  border-color: rgba(79,140,255,.75);
  box-shadow: 0 0 0 3px rgba(79,140,255,.22);
}

/* Password toggle — ojo/ojito tachado */
.pw{position:relative}
.pw-toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:36px;height:36px;border-radius:10px;
  border:1px solid var(--surface-stroke-2);
  background:#fff; cursor:pointer; display:grid; place-items:center;
  box-shadow:0 1px 0 rgba(8,12,22,.03) inset;
}
.pw-toggle::before{
  content:''; width:20px;height:20px; display:block;
  background-repeat:no-repeat; background-position:center; background-size:20px 20px;
  /* Ícono "eye" (stroke #121b2f) */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121b2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.pw-toggle.on::before{
  /* Ícono "eye-off" (mismo color + diagonal) */
  background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121b2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3L21 21'/%3E%3C/svg%3E\");
}

/* Botón del form */
.form .submit{width:100%; margin-top:10px}
.card.light .submit{color:#0a1220}

/* Terms/hints */
.form .terms, .form .hint{color:#96a0b6; font-size:12px; margin:12px 2px 0}
.card.light .terms, .card.light .hint{color:#7083a6}
.form .terms a, .form .hint a{color:var(--primary-2); text-decoration:none}
.form .terms a:hover, .form .hint a:hover{text-decoration:underline}

/* Mensajes */
.alert{
  margin-top:14px; padding:12px 14px; border-radius:12px;
  background:rgba(239,68,68,.10); color:#ff6b6b;
  border:1px solid rgba(239,68,68,.25);
}
.card.light .alert{
  background:#fff5f5; color:#b91c1c; border-color:#fecaca;
}

/* Footer */
.foot{
  padding:32px 16px; text-align:center; color:#9fb0c9; font-size:13px;
  border-top:1px solid rgba(255,255,255,.05); margin-top:24px;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; animation:none !important}
}
