/* public/assets/client/css/register_pro.css
   Registro PRO con look tipo SAT Vault (dashboard limpio + acento verde/azul)
*/

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --border:#e5e7eb;

  --text:#0f172a;
  --muted:#64748b;

  --line:#e5e7eb;
  --pill-bg:#f9fafb;

  /* Acentos estilo bóveda */
  --accent:#22c55e;
  --accent-2:#16a34a;

  --info:#2563eb;
  --info-ring: rgba(37,99,235,.18);

  --ok:#16a34a;
  --bad:#ef4444;

  --shadow: 0 12px 32px rgba(15,23,42,.10);
}

html[data-theme="dark"]{
  --bg:#0b1220;
  --card:#0f172a;
  --border:#1f2a44;

  --text:#e5e7eb;
  --muted:#9aa4b2;

  --line:#1f2a44;
  --pill-bg: rgba(255,255,255,.04);

  --accent:#22c55e;
  --accent-2:#16a34a;

  --info:#60a5fa;
  --info-ring: rgba(96,165,250,.20);

  --ok:#22c55e;
  --bad:#f87171;

  --shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Página */
html.page-register-pro body{
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
}

/* Fondo suave tipo dashboard (no rosa) */
html.page-register-pro body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 420px at 85% 20%, rgba(34,197,94,.10), transparent 55%),
    radial-gradient(900px 420px at 50% 90%, rgba(148,163,184,.14), transparent 60%);
}

/* Layout */
.wrap{
  display:grid;
  place-items: start center;
  height:100vh;
  padding: 24px 14px;
  box-sizing:border-box;
}

/* Card */
.card{
  width:min(560px,92vw);
  margin-top: 6vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  position:relative;
}

/* Borde fino tipo “sat-card” */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 19px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(37,99,235,.55), rgba(34,197,94,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity:.22;
  pointer-events:none;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom: 6px;
}
.logo{height:56px;width:auto;display:block;}
.logo-dark{display:none;}
html[data-theme="dark"] .logo-light{display:none;}
html[data-theme="dark"] .logo-dark{display:block;}

/* Theme toggle pill */
.theme{
  position:absolute;
  top:12px;
  right:12px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
html[data-theme="dark"] .theme{ box-shadow:none; }
.theme span{ pointer-events:none; }
.theme:hover{ filter:brightness(.98); }

/* Badge PRO (chip) */
.badge-pro{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(37,99,235,.30);
  background: rgba(37,99,235,.10);
  color: var(--info);
  font-size: 11px;
  font-weight: 900;
  letter-spacing:.06em;
  text-transform: uppercase;
  margin: 6px auto 0;
}

/* Title */
.title{
  text-align:center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.title h1{
  margin:0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}
.title p{
  margin:6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* Alerts */
.alert{
  border:1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  margin: 10px 0;
}
.alert.ok{
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
  background: color-mix(in srgb, var(--ok) 10%, var(--card));
}
.alert.err{
  border-color: color-mix(in srgb, var(--bad) 40%, var(--line));
  background: color-mix(in srgb, var(--bad) 10%, var(--card));
}

/* Form */
.form{
  margin-top: 6px;
  max-height: calc(100vh - 240px);
  overflow:auto;
  padding-right: 4px;
}
.form::-webkit-scrollbar{width:8px;}
.form::-webkit-scrollbar-thumb{background: rgba(100,116,139,.25); border-radius: 999px;}
html[data-theme="dark"] .form::-webkit-scrollbar-thumb{background: rgba(148,163,184,.25);}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin: 10px 0;
}
.label{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

/* Inputs tipo bóveda */
.input{
  width:100%;
  border-radius: 12px;
  border:1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  outline:none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing:border-box;
  min-height: 44px;
}
.input::placeholder{
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.input:focus{
  border-color: var(--info);
  box-shadow: 0 0 0 3px var(--info-ring);
  background: color-mix(in srgb, var(--card) 92%, var(--pill-bg));
}
.input[aria-invalid="true"]{
  border-color: var(--bad);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent);
}

.help{ font-size: 11px; color: var(--muted); }
.error{ color: var(--bad); }

/* Honeypot */
.hp{position:absolute;left:-9999px;opacity:0;width:1px;height:1px;overflow:hidden;}

/* Plan picker */
.plan-picker{
  display:flex;
  gap:10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.plan-opt{
  flex:1 1 auto;
  min-width: 180px;
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
}
html[data-theme="dark"] .plan-opt{ box-shadow:none; }

.plan-opt:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--card) 92%, rgba(37,99,235,.06));
}
.plan-opt[aria-checked="true"]{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 3px var(--info-ring);
}

.plan-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;}
.plan-head span:first-child{font-weight:900;color:var(--text);}
.plan-price{
  font-weight: 900;
  color: var(--info);
  white-space: nowrap;
}
.plan-desc{color: var(--muted);font-size: 12px;margin-top: 4px;line-height:1.3;}

/* Terms */
.terms{
  margin: 10px 0 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.terms label{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  cursor:pointer;
}
.terms input{
  margin-top: 2px;
  accent-color: var(--accent);
}
.terms a{
  font-weight: 900;
  color: var(--info);
  text-decoration:none;
}
.terms a:hover{ text-decoration:underline; }

/* Actions */
.actions{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

/* Botones base */
.btn{
  border:1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 900;
  cursor:pointer;
  transition: filter .12s ease, transform .12s ease, box-shadow .12s ease, background .12s ease;
}

/* Primario verde (Vault style) */
.btn-primary{
  flex:1;
  min-width: 200px;
  text-align:center;
  border-color: rgba(34,197,94,.35);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color:#052e16;
  box-shadow: 0 10px 22px rgba(34,197,94,.25);
}
.btn-primary:hover{ filter:brightness(1.03); transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0); }
.btn-primary[disabled]{
  background: linear-gradient(90deg,#cbd5e1,#94a3b8);
  border-color: var(--line);
  color:#f1f5f9;
  box-shadow:none;
  cursor:not-allowed;
  transform:none;
}

/* Link a FREE como chip */
.btn-free{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(37,99,235,.30);
  background: rgba(37,99,235,.10);
  color: var(--info);
  font-weight: 900;
  text-decoration:none;
  white-space: nowrap;
}
.btn-free:hover{
  filter:brightness(1.02);
  transform: translateY(-1px);
  background: rgba(37,99,235,.14);
}
.btn-free:active{ transform: translateY(0); }

.login-cta{
  width:100%;
  text-align:center;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.login-cta a{
  font-weight: 900;
  color: var(--info);
  text-decoration:none;
}
.login-cta a:hover{ text-decoration:underline; }

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,.55);
  z-index:9999;
}
.modal[aria-hidden="false"]{ display:flex; }

.modal-card{
  width:min(520px,92vw);
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
  color: var(--text);
  border:1px solid var(--border);
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
  animation: pop .18s ease-out;
}
@keyframes pop{
  from{ transform: scale(.98); opacity:.4; }
  to{ transform: scale(1); opacity:1; }
}

.modal-title{
  margin:0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--info);
}
.modal-body{
  font-size: 13px;
  color: var(--muted);
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 14px;
}

/* Ghost */
.btn-ghost{
  border:1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
}

/* Responsive */
@media (max-width: 520px){
  .card{ padding: 18px 16px 14px; }
  .actions{ flex-direction:column; align-items:stretch; }
  .btn-free{ width:100%; border-radius: 12px; }
}
