/* ───────────────────────────────────────────────────────────────────────────
   INVERSOR IA — Sistema de diseño base
   Paleta: navy #0F2A4A · gold #C9A84C · cream #F4F1E8
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --navy:        #0F2A4A;
  --navy-dark:   #081a30;
  --gold:        #C9A84C;
  --gold-light:  #e0c374;
  --gold-bg:     #f4f1e8;
  --cream:       #FAF7EE;
  --bg:          #F6F8FB;
  --surface:     #FFFFFF;
  --text:        #1A1A1A;
  --text-soft:   #4A5568;
  --muted:       #94A3B8;
  --border:      #E2E8F0;
  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;
  --info:        #2563EB;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 2px rgba(15,42,74,.06);
  --shadow:      0 4px 16px rgba(15,42,74,.08);
  --shadow-lg:   0 12px 32px rgba(15,42,74,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Navegación ───────────────────────────────────────────────────────────── */

.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.nav-links a:hover { color: var(--navy); }
.nav-user {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* ── Botones ──────────────────────────────────────────────────────────────── */

.btn, .btn-primary, .btn-secundario, .btn-ghost {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn, .btn-primary {
  background: var(--navy);
  color: white;
}
.btn:hover, .btn-primary:hover {
  background: var(--navy-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
}
.btn-gold:hover {
  filter: brightness(1.05);
  color: var(--navy-dark);
}
.btn-secundario {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secundario:hover { background: var(--navy); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover { background: var(--bg); color: var(--navy); }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 32px 24px; }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* ── Landing / Pricing ────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 760px;
  margin: 0 auto 18px;
  line-height: 1.15;
}
.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 28px;
  opacity: .88;
}
.hero .btn-gold { padding: 14px 32px; font-size: 15px; }

.pricing-section { padding: 60px 24px; }
.pricing-section > h1 {
  text-align: center;
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 8px;
}
.pricing-section > p.sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 50px;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.plan-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.destacado {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf6 0%, white 100%);
}
.plan-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.plan-card h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.plan-card .precio {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0 18px;
}
.plan-card .precio span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.plan-card ul {
  list-style: none;
  margin: 18px 0 26px;
  min-height: 200px;
}
.plan-card li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-soft);
  display: flex; gap: 8px; align-items: flex-start;
}
.plan-card li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}
.plan-card .btn { width: 100%; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.dash-header h1 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 6px;
}
.dash-header p { color: var(--muted); font-size: 14px; }

.progress {
  width: 280px;
  height: 7px;
  background: var(--border);
  border-radius: 100px;
  margin-top: 10px;
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width .4s ease;
}

.consultas-tabla {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  border-collapse: collapse;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.consultas-tabla th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.consultas-tabla td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.consultas-tabla tr:last-child td { border-bottom: none; }
.consultas-tabla tr:hover { background: var(--cream); }
.consultas-tabla .vacio {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}

.estado {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.estado-completado  { background: #dcfce7; color: var(--success); }
.estado-procesando  { background: #dbeafe; color: var(--info); }
.estado-error       { background: #fee2e2; color: var(--danger); }
.estado-pendiente   { background: #f1f5f9; color: var(--muted); }

.paginacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ── Cuenta ───────────────────────────────────────────────────────────────── */

.cuenta .card h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.cuenta .card p {
  color: var(--text-soft);
  margin-bottom: 8px;
  font-size: 14px;
}

/* ── Forms (login/signup) ─────────────────────────────────────────────────── */

.form-card {
  max-width: 420px;
  margin: 60px auto;
}
.form-card h1 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}
.form-card p.sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.form-card label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-soft);
  margin: 14px 0 6px;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  background: white;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form-card .btn { width: 100%; margin-top: 22px; }
.form-card .form-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.errorlist {
  list-style: none;
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
}

/* ── Mensajes Django ──────────────────────────────────────────────────────── */

.mensajes { max-width: 1200px; margin: 16px auto 0; padding: 0 24px; }
.alerta {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 14px;
}
.alerta-success { background: #f0fdf4; color: var(--success); border-left: 4px solid var(--success); }
.alerta-error   { background: #fef2f2; color: var(--danger);  border-left: 4px solid var(--danger); }
.alerta-info    { background: #eff6ff; color: var(--info);    border-left: 4px solid var(--info); }
.alerta-warning { background: #fffbeb; color: var(--warning); border-left: 4px solid var(--warning); }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 30px 24px;
  font-size: 13px;
  margin-top: 60px;
}
.footer a { color: var(--gold-light); }

/* ── Auth split-screen (signup / login / reset) ───────────────────────────── */

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  background: white;
}

/* Panel izquierdo: marca + propuesta de valor */
.auth-left {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,168,76,.18) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(201,168,76,.10) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-left::after {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  z-index: 1;
}
.auth-brand span { color: var(--gold); }

.auth-hero { z-index: 1; max-width: 460px; }
.auth-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.auth-hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.auth-hero p {
  font-size: 16px;
  opacity: .82;
  line-height: 1.55;
  margin-bottom: 32px;
}

.auth-bullets {
  list-style: none;
  margin-top: 28px;
}
.auth-bullets li {
  padding: 9px 0;
  font-size: 14px;
  opacity: .92;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.auth-bullets li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}

.auth-quote {
  z-index: 1;
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-top: 32px;
  backdrop-filter: blur(6px);
}
.auth-quote p {
  font-size: 14px;
  line-height: 1.55;
  font-style: italic;
  opacity: .92;
  margin-bottom: 10px;
}
.auth-quote footer {
  font-size: 12px;
  opacity: .65;
  font-style: normal;
}
.auth-quote footer strong { color: var(--gold-light); font-weight: 600; }

/* Panel derecho: formulario */
.auth-right {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.auth-form-wrap {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
.auth-form-wrap h1 {
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.auth-form-wrap > p.sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Botón social (Google etc) — preparado por si lo activas */
.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-social:hover { border-color: var(--navy); background: #fafbfc; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  background: white;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.auth-field input::placeholder { color: #B0BAC9; }
.auth-field input:hover { border-color: #cbd5e0; }
.auth-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.15);
  background: #fffdf6;
}
.auth-field input.has-error {
  border-color: var(--danger);
  background: #fef9f9;
}
.auth-field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.field-error::before { content: "⚠"; flex-shrink: 0; }

.auth-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.btn-submit:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,42,74,.18);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
}
.auth-footer a {
  color: var(--navy);
  font-weight: 600;
}
.auth-footer a:hover { color: var(--gold); }

.auth-fine {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-fine a { color: var(--muted); text-decoration: underline; }

/* Vínculo de regreso al landing en panel izquierdo */
.auth-back {
  position: absolute;
  top: 24px;
  right: 64px;
  font-size: 13px;
  color: var(--text-soft);
  z-index: 1;
}
.auth-back a {
  color: var(--text-soft);
  text-decoration: none;
}
.auth-back a:hover { color: var(--navy); }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-left {
    padding: 36px 28px;
    min-height: auto;
  }
  .auth-hero h1 { font-size: 26px; }
  .auth-bullets, .auth-quote { display: none; }
  .auth-right { padding: 36px 24px; }
  .auth-back { right: 24px; top: 18px; }
}

/* ── Beta request form ────────────────────────────────────────────────────── */

.beta-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 70px);
  background: white;
}
.beta-left {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,168,76,.18) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.beta-left .eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.beta-left h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin-bottom: 16px;
  max-width: 440px;
}
.beta-left h1 em { color: var(--gold); font-style: normal; }
.beta-left p {
  font-size: 15px;
  line-height: 1.6;
  opacity: .85;
  max-width: 440px;
  margin-bottom: 28px;
}
.beta-perks {
  background: rgba(255,255,255,.06);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(6px);
  max-width: 440px;
}
.beta-perks h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 700;
}
.beta-perks ul { list-style: none; }
.beta-perks li {
  padding: 7px 0;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.beta-perks li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.beta-right {
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.beta-form-wrap {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.beta-form-wrap h2 {
  font-size: 24px;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.beta-form-wrap > p.sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

.beta-form .form-field {
  margin-bottom: 18px;
}
.beta-form .form-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}
.beta-form input[type="text"],
.beta-form input[type="email"],
.beta-form select,
.beta-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.beta-form select { cursor: pointer; }
.beta-form textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.beta-form input:focus, .beta-form select:focus, .beta-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.15);
  background: #fffdf6;
}
.beta-form .errorlist {
  list-style: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

@media (max-width: 960px) {
  .beta-shell { grid-template-columns: 1fr; }
  .beta-left { padding: 36px 28px; }
  .beta-perks { display: none; }
  .beta-right { padding: 36px 24px; }
  .beta-left h1 { font-size: 26px; }
}

/* ── Feedback card (precisión de valuación) ──────────────────────────────── */

.feedback-card {
  background: linear-gradient(135deg, #FAF7EE 0%, #F4F1E8 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 28px;
}
.feedback-card h2 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.feedback-card .sub {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 18px;
}
.feedback-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.feedback-opt {
  display: block;
  padding: 14px 12px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  transition: border-color .15s, background .15s, transform .12s;
}
.feedback-opt:hover {
  border-color: var(--gold);
  background: white;
  transform: translateY(-2px);
}
.feedback-opt input[type="radio"] { display: none; }
.feedback-opt input[type="radio"]:checked + .opt-content {
  color: var(--navy);
  font-weight: 700;
}
.feedback-opt:has(input:checked) {
  border-color: var(--gold);
  background: white;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.18);
}
.feedback-opt .opt-icon { font-size: 22px; display: block; margin-bottom: 4px; }

.feedback-details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.feedback-details.open { display: block; }
.feedback-details .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.feedback-details label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feedback-details input[type="text"],
.feedback-details input[type="number"],
.feedback-details textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.feedback-details input:focus, .feedback-details textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.feedback-details textarea { resize: vertical; min-height: 70px; }

.feedback-saved {
  background: white;
  border-left: 4px solid var(--success);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-soft);
}
.feedback-saved strong { color: var(--success); }
.feedback-saved .editar {
  display: inline-block;
  margin-left: 8px;
  color: var(--navy);
  font-size: 12px;
}

@media (max-width: 600px) {
  .feedback-options { grid-template-columns: 1fr; }
  .feedback-details .form-row { grid-template-columns: 1fr; }
}

/* ── Breadcrumb (ruta de navegación) ─────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.breadcrumb a:hover {
  background: var(--cream);
  color: var(--navy);
}
.breadcrumb .crumb-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb .crumb-home::before {
  content: "←";
  font-weight: 600;
  margin-right: 2px;
}
.breadcrumb .sep {
  color: var(--muted);
  font-size: 11px;
  opacity: 0.6;
}
.breadcrumb .current {
  color: var(--navy);
  font-weight: 600;
  padding: 5px 10px;
}

/* Versión flotante arriba a la izquierda (para páginas standalone como xenta) */
.breadcrumb-floating {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  margin: 0 0 0 0;
}

/* ── Utility classes ──────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-soft   { color: var(--text-soft); }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }
.font-sm     { font-size: 13px; }
.font-xs     { font-size: 12px; }
.fw-bold     { font-weight: 700; }
.fw-semi     { font-weight: 600; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mt-5 { margin-top: 30px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 22px; }
.mb-5 { margin-bottom: 30px; }

.flex          { display: flex; }
.flex-between  { display: flex; justify-content: space-between; align-items: center; }
.flex-start    { display: flex; justify-content: space-between; align-items: flex-start; }
.flex-center   { display: flex; justify-content: center; align-items: center; }
.flex-col      { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.gap-4 { gap: 22px; }
.wrap  { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* ── Secciones genéricas ─────────────────────────────────────────────────── */

.section-title {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}
.card-title {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}
.card-title-lg {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ── Landing — Features grid ─────────────────────────────────────────────── */

.landing-features-section {
  padding: 70px 24px;
  text-align: center;
}
.landing-features-section h2 {
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 14px;
}
.landing-features-section .lead {
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 50px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature-card { text-align: left; }
.feature-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.feature-card h3 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
}
.feature-card p { color: var(--text-soft); font-size: 13px; }

/* ── Pricing — FAQ ───────────────────────────────────────────────────────── */

.faq-section {
  max-width: 720px;
  margin: 80px auto 40px;
  padding: 0 24px;
}
.faq-section h2 {
  text-align: center;
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 28px;
}
.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Empty states mejorados ──────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 60px 30px;
}
.empty-state .icon {
  font-size: 56px;
  margin-bottom: 18px;
  opacity: .85;
}
.empty-state h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-soft);
  margin-bottom: 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.empty-state .btn { margin: 4px; }
.empty-state-inline {
  text-align: center;
  padding: 48px 20px;
}
.empty-state-inline .icon {
  font-size: 38px;
  margin-bottom: 10px;
  opacity: .6;
}
.empty-state-inline p { color: var(--muted); margin-bottom: 14px; }

/* ── Detalle de consulta ─────────────────────────────────────────────────── */

.detalle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.detalle-back { color: var(--muted); margin-bottom: 14px; display: inline-block; }
.detalle-title { color: var(--navy); font-size: 24px; }
.detalle-fecha { color: var(--muted); font-size: 13px; margin-top: 4px; }

.precio-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.precio-card {
  flex: 1;
  min-width: 200px;
  background: var(--gold-bg);
  padding: 16px 20px;
  border-radius: 8px;
}
.precio-card .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.precio-card .precio {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2px;
}
.precio-card .pm2 {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.detalle-section { margin-top: 24px; }
.detalle-section h2 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 10px;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}
.narrativa {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}
.detalle-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Status banner inline */
.status-banner {
  text-align: center;
  padding: 48px 30px;
  border-radius: var(--radius-lg);
}
.status-banner .icon { font-size: 40px; display: block; margin-bottom: 14px; }
.status-banner h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.status-banner p { color: var(--text-soft); font-size: 14px; }
.status-banner.processing { background: #f0f9ff; }
.status-banner.error { background: #fef2f2; }
.status-banner.error h3 { color: var(--danger); }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(15,42,74,.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mi cuenta */
.cuenta-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.warning-text {
  color: var(--warning);
  margin-top: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Checkout exito */
.success-card {
  text-align: center;
  padding: 50px 36px;
}
.success-card .icon {
  font-size: 54px;
  margin-bottom: 14px;
}
.success-card h1 {
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 12px;
}
.success-card .resumen {
  background: var(--gold-bg);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 22px 0 26px;
  text-align: left;
}
.success-card .resumen-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-soft);
}
.success-card .resumen-row strong { color: var(--navy); }
.next-steps {
  text-align: left;
  margin-top: 24px;
}
.next-steps h3 {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.next-steps ol {
  padding-left: 0;
  list-style: none;
  counter-reset: ns;
}
.next-steps li {
  counter-increment: ns;
  padding: 10px 14px 10px 44px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  position: relative;
  font-size: 14px;
}
.next-steps li::before {
  content: counter(ns);
  position: absolute;
  left: 14px;
  top: 9px;
  width: 22px;
  height: 22px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.legal-header {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 18px;
  margin-bottom: 36px;
}
.legal-header h1 {
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.legal-body h2 {
  font-size: 19px;
  color: var(--navy);
  margin: 30px 0 12px;
}
.legal-body p {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
  font-size: 14.5px;
}
.legal-body ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-body li {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 6px;
  font-size: 14.5px;
}
.legal-body a {
  color: var(--navy);
  text-decoration: underline;
}

/* ── Error pages (404 / 500) ─────────────────────────────────────────────── */

.error-page {
  max-width: 560px;
  margin: 80px auto;
  padding: 0 24px;
}
.error-card {
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: 52px 36px;
  box-shadow: var(--shadow);
}
.error-code {
  font-size: 92px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -3px;
}
.error-card h1 {
  font-size: 24px;
  color: var(--navy);
  margin-top: 14px;
  margin-bottom: 14px;
}
.error-card p {
  color: var(--text-soft);
  margin-bottom: 26px;
  line-height: 1.6;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-actions button.btn-secundario { font-family: inherit; }

/* ── Email progress indicator (dashboard tabla) ──────────────────────────── */

.table-loader {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── Pricing hero + comparison + trust ────────────────────────────────────── */

.pricing-hero {
  text-align: center;
  padding: 70px 24px 30px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}
.pricing-hero .eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pricing-hero h1 {
  font-size: 42px;
  color: var(--navy);
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.1;
}
.pricing-hero h1 em { color: var(--gold); font-style: normal; }
.pricing-hero p {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

.pricing-cards-wrap { padding: 30px 24px 50px; }

/* Tabla comparativa */
.comparison-section {
  max-width: 980px;
  margin: 60px auto;
  padding: 0 24px;
}
.comparison-section h2 {
  text-align: center;
  color: var(--navy);
  font-size: 26px;
  margin-bottom: 30px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left;
  color: var(--text-soft);
  font-weight: 500;
}
.comparison-table thead th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--border);
}
.comparison-table thead th.highlight {
  background: var(--gold-bg);
  color: var(--navy);
  position: relative;
}
.comparison-table thead th.highlight::before {
  content: "Popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comparison-table td.highlight {
  background: rgba(201,168,76,.06);
  font-weight: 600;
  color: var(--navy);
}
.comparison-table tbody tr:hover td {
  background: rgba(15,42,74,.02);
}
.comparison-table tbody tr:hover td.highlight {
  background: rgba(201,168,76,.10);
}
.comparison-check { color: var(--success); font-size: 18px; font-weight: 700; }
.comparison-x { color: #cbd5e0; }

/* Trust strip */
.trust-strip {
  background: white;
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.trust-strip h3 {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 22px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.trust-item {
  text-align: center;
}
.trust-item .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1;
}
.trust-item .num em {
  color: var(--gold);
  font-style: normal;
}
.trust-item .label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
  margin-top: 40px;
}
.final-cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.final-cta p {
  font-size: 16px;
  opacity: .8;
  margin-bottom: 26px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Dashboard pro: stats grid + quick actions ──────────────────────────── */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card .stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-top: 4px;
  line-height: 1.1;
}
.stat-card .stat-value small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-card .stat-hint {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
}
.stat-card.gold {
  background: linear-gradient(135deg, var(--gold-bg), white);
  border-color: var(--gold);
}
.stat-card.gold .stat-value { color: var(--navy); }
.stat-card .stat-bar {
  margin-top: 12px;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.stat-card .stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width .5s ease;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.quick-action {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  gap: 14px;
  align-items: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quick-action:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--navy);
}
.quick-action .qa-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.quick-action .qa-title { font-weight: 600; font-size: 14px; }
.quick-action .qa-desc { color: var(--text-soft); font-size: 12px; margin-top: 2px; }
.quick-action.primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  border-color: var(--navy);
}
.quick-action.primary:hover { color: white; }
.quick-action.primary .qa-desc { color: rgba(255,255,255,.7); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 30px 0 16px;
}
.section-header h2 {
  font-size: 18px;
  color: var(--navy);
}
.section-header a { font-size: 13px; color: var(--text-soft); }

/* ── Mi cuenta: tabs + payment history ──────────────────────────────────── */

.cuenta-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px;
}
.cuenta-header {
  margin-bottom: 30px;
}
.cuenta-header h1 {
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.cuenta-header p { color: var(--text-soft); font-size: 14px; margin-top: 4px; }

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}
.tab-link {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
}
.tab-link:hover { color: var(--navy); }
.tab-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Plan card hero (mi cuenta) */
.plan-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.plan-hero::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.plan-hero .plan-name {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.plan-hero .plan-price {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.5px;
}
.plan-hero .plan-price small { font-size: 14px; font-weight: 400; opacity: .7; }
.plan-hero .plan-state {
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
}
.plan-hero .plan-state strong { color: var(--gold-light); }

.usage-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.usage-card .label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.usage-card .label-row strong { color: var(--navy); font-size: 16px; font-weight: 700; }

/* Account data list */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field-item .field-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.field-item .field-value {
  font-size: 15px;
  color: var(--navy);
  margin-top: 4px;
  font-weight: 500;
}

/* Payment history table */
.history-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
}
.history-table th, .history-table td {
  padding: 12px 16px;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.history-table th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}
.history-table tr:last-child td { border-bottom: none; }

@media (max-width: 760px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: 1fr; }
  .pricing-hero h1 { font-size: 30px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-hero { flex-direction: column; align-items: flex-start; }
  .field-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .planes-grid { grid-template-columns: 1fr; max-width: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-header { flex-direction: column; align-items: stretch; }
  .dash-header .btn-primary { width: 100%; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }

  /* Tabla → cards en mobile */
  .consultas-tabla, .consultas-tabla thead, .consultas-tabla tbody,
  .consultas-tabla tr, .consultas-tabla td { display: block; width: 100%; }
  .consultas-tabla thead { display: none; }
  .consultas-tabla tr {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
  }
  .consultas-tabla td {
    padding: 6px 0;
    border: none;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .consultas-tabla td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
  }
  .consultas-tabla td.vacio { display: block; text-align: center; }
  .consultas-tabla td.vacio::before { display: none; }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .auth-form-wrap { max-width: 100%; }
}
