/* Estilo común de las páginas públicas de cuenta: alta (/signup/), planes y
   pago (/plan/) y políticas legales. Mismos colores y tipografía que la
   portada (landing-web/app/globals.css). */
:root {
  color-scheme: light;
  --ink: #151223;
  --ink-2: rgba(21, 18, 35, 0.72);
  --ink-3: rgba(21, 18, 35, 0.55);
  --line: rgba(21, 18, 35, 0.09);
  --line-2: rgba(21, 18, 35, 0.16);
  --bg: #f5f3fb;
  --card: #ffffff;
  --violet-50: #f1efff;
  --violet-100: #e6e2ff;
  --violet-500: #6d5ef5;
  --violet-600: #5a48ee;
  --violet-700: #4b3fe0;
  --violet-900: #241d54;
  --mint: #b7f0d8;
  --ok: #0f7b52;
  --ok-bg: #e7f7ef;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --danger: #b4232a;
  --danger-bg: #fdeced;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(21, 18, 35, 0.04), 0 8px 28px rgba(21, 18, 35, 0.06);
  --gradient: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet-700); text-underline-offset: 3px; }
a:hover { color: var(--violet-900); }
:focus-visible { outline: 3px solid rgba(90, 72, 238, 0.45); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
[hidden] { display: none !important; }

/* Cabecera */
.topbar {
  max-width: 1120px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.topbar-link { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.topbar-link strong { color: var(--violet-700); font-weight: 650; }
.topbar-link:hover strong { text-decoration: underline; }

/* Tarjetas y tipografía */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-600); margin: 0 0 8px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
.lead { color: var(--ink-2); margin: 10px 0 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 650; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  font: inherit; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: rgba(21, 18, 35, 0.35); }
.input:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 4px rgba(109, 94, 245, 0.16); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 42, 0.1); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 84px; }
.input-action {
  position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 9px; background: var(--violet-50); color: var(--violet-700);
  font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 16px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet-600); flex-shrink: 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s, transform 0.05s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(90, 72, 238, 0.28); }
.btn-primary:hover { opacity: 0.92; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: #faf9fe; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--violet-700); }
.btn-danger { background: #fff; color: var(--danger); border-color: rgba(180, 35, 42, 0.3); }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-secondary .spinner { border-color: rgba(21, 18, 35, 0.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Avisos */
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; border: 1px solid transparent; }
.notice-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(180, 35, 42, 0.18); }
.notice-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(15, 123, 82, 0.18); }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(154, 91, 0, 0.18); }
.notice-info { background: var(--violet-50); color: var(--violet-900); border-color: var(--violet-100); }
.notice strong { font-weight: 700; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info { background: var(--violet-50); color: var(--violet-700); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--violet-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235a48ee' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.footer { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.footer a { color: var(--ink-3); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

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