:root {
  --primary: #4f46e5; --primary-dark: #4338ca; --ink: #1f2937; --muted: #6b7280; --border: #e5e7eb;
  --ok: #047857; --bad: #b91c1c; --surface: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px;
  color: var(--ink); background: #0f172a; -webkit-font-smoothing: antialiased;
}
.signup { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.hero {
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 3rem clamp(1.5rem, 5vw, 4.5rem);
  color: #e0e7ff; background: radial-gradient(circle at 20% 20%, #4338ca 0%, #1e1b4b 55%, #0f172a 100%);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #4338ca);
}
.hero h1 { margin: .5rem 0 0; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; color: #fff; max-width: 32rem; }
.lead { margin: 0; font-size: 1.1rem; line-height: 1.55; max-width: 32rem; }
.features { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; max-width: 34rem; }
.features li { position: relative; padding-left: 1.8rem; line-height: 1.45; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #a5b4fc; font-weight: 800; }
.features b { color: #fff; }
.trust { margin: .5rem 0 0; color: #a5b4fc; font-weight: 600; }

.panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: #f5f6fa; }
.card {
  width: min(470px, 100%); display: flex; flex-direction: column; gap: .9rem; padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.card[hidden] { display: none; }
.card h2 { margin: 0; font-size: 1.45rem; }
.card p { margin: 0; line-height: 1.5; }
.muted { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > span { font-weight: 600; font-size: .88rem; color: #374151; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
input, select {
  width: 100%; font: inherit; color: inherit; padding: .65rem .75rem; border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
}
input:focus, select:focus { outline: 2px solid rgba(79, 70, 229, .35); border-color: var(--primary); }
[aria-invalid="true"] { border-color: var(--bad); }
.subdomain { display: flex; align-items: stretch; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden; background: #fff; }
.subdomain:focus-within { outline: 2px solid rgba(79, 70, 229, .35); border-color: var(--primary); }
.subdomain input { border: 0; border-radius: 0; outline: none; min-width: 0; }
.suffix { display: flex; align-items: center; padding: 0 .75rem; background: #f3f4f6; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.hint { color: var(--muted); font-size: .8rem; }
.hint.ok { color: var(--ok); font-weight: 600; }
.hint.bad { color: var(--bad); font-weight: 600; }
.error { color: var(--bad); font-size: .82rem; font-weight: 600; }
.error:empty { display: none; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.4; color: #374151; cursor: pointer; }
.check input { width: auto; margin-top: .2rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1rem; border: 0; border-radius: 10px;
  background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; text-decoration: none;
}
.primary:hover { background: var(--primary-dark); }
.primary:disabled { opacity: .6; cursor: progress; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.steps li { display: flex; gap: .6rem; align-items: center; color: var(--muted); }
.steps li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #c7d2fe; border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; display: grid; place-items: center; border: 0; background: var(--ok); color: #fff; font-size: .7rem; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #ecfdf5; color: var(--ok); font-size: 1.8rem; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .steps li::before { animation: none; } }
@media (max-width: 900px) {
  .signup { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1.25rem; gap: .8rem; }
  .features { display: none; }
}
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } .card { padding: 1.25rem; } }
img.brand-mark { background: none; } /* isotipo de Cuadre */
