/* =========================================================================
   PK-Bayes — Design System
   Estética clínica premium. Paleta oficial de la plataforma.
   ========================================================================= */

:root {
  /* --- Paleta oficial PK-Bayes --- */
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --primary: #0b5cad;
  --primary-dark: #084a8a;
  --primary-light: #e8f1fb;
  --teal: #0891b2;
  --teal-light: #e3f4f7;
  --green: #1f8b4d;
  --green-light: #e7f5ed;
  --red: #c13b33;
  --red-light: #fbeae9;
  --amber: #b4720a;
  --amber-light: #fbf1e1;
  --sidebar-bg: #0f1c33;
  --sidebar-bg-2: #142644;

  /* --- Neutrales complementarios --- */
  --text-primary: #0f172a;
  --text-secondary: #45526b;
  --text-muted: #7c879b;
  --text-on-dark: #eef2f8;
  --text-on-dark-muted: #9fb0cc;
  --border: #e3e7ee;
  --border-strong: #cfd6e3;

  /* --- Sistema --- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 51, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 28, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 28, 51, 0.14);
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   Tipografía
   ========================================================================= */
h1, .h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
h4, .h4 { font-size: 1.05rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow.on-dark { color: #bcdcff; background: rgba(255,255,255,0.08); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }

/* =========================================================================
   Botones
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600;
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11,92,173,0.28); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(11,92,173,0.36); }
.btn-secondary { background: var(--bg-card); color: var(--primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-primary); }
.btn-ghost:hover { background: rgba(15,28,51,0.05); }
.btn-on-dark { background: #fff; color: var(--sidebar-bg); }
.btn-on-dark:hover { background: #dce8f7; }
.btn-outline-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* =========================================================================
   Badges / pills
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 11px; border-radius: 999px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-navy { background: rgba(255,255,255,0.1); color: #fff; }

/* =========================================================================
   Header / navegación
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text-primary); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; color: var(--text-secondary);
  transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px; padding: 10px 0 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mobile-menu a.active { color: var(--primary); }
.mobile-menu .nav-actions { flex-direction: column; align-items: stretch; margin-top: 12px; gap: 8px; }
body.menu-open .mobile-menu { display: flex; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-actions .btn-secondary.hide-mobile { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 520px) {
  .nav-row { height: auto; min-height: 64px; padding: 12px 0; }
  .brand small { display: none; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 28px; height: 28px; }
}
@media (min-width: 941px) { .mobile-menu { display: none !important; } }

/* =========================================================================
   Hero (fondo navy oscuro)
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 500px at 15% -10%, #16294a 0%, var(--sidebar-bg) 55%), var(--sidebar-bg);
  color: var(--text-on-dark);
  padding: 76px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(700px 400px at 20% 20%, black, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin: 18px 0 20px; }
.hero .lead { color: var(--text-on-dark-muted); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 0.82rem; color: var(--text-on-dark-muted); }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

/* Tarjeta ilustrativa del hero (mini gráfico de concentración) */
.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(6px);
}
.hero-visual-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-visual-head h4 { color: #fff; font-size: 0.95rem; }
.hero-visual svg { width: 100%; height: auto; }

/* =========================================================================
   Secciones genéricas
   ========================================================================= */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; }

.section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: var(--sidebar-bg); color: var(--text-on-dark); }
.section-navy .text-muted { color: var(--text-on-dark-muted); }

/* =========================================================================
   Cards / Grids
   ========================================================================= */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }

.icon-wrap {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 16px;
  font-weight: 800; font-size: 1.05rem;
}
.icon-wrap svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }
.feature-card .card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--primary); }

.icon-teal { background: var(--teal-light); color: var(--teal); }
.icon-green { background: var(--green-light); color: var(--green); }
.icon-red { background: var(--red-light); color: var(--red); }
.icon-amber { background: var(--amber-light); color: var(--amber); }

/* Ejemplo real callout */
.example-box {
  margin-top: 18px;
  background: var(--primary-light);
  border: 1px solid #d6e6f8;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 18px;
}
.example-box .label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; display: block; }
.example-box p { font-size: 0.92rem; color: var(--text-secondary); }
.example-box.teal { background: var(--teal-light); border-color: #c9e9ef; border-left-color: var(--teal); }
.example-box.teal .label { color: var(--teal); }

/* Feature detallada (funcionalidades.html) */
.feature-detail { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 40px 0; border-top: 1px solid var(--border); }
.feature-detail:first-of-type { border-top: none; padding-top: 0; }
.feature-detail .num {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sidebar-bg); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.feature-detail h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-detail p { color: var(--text-secondary); }
.feature-detail-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; margin-top: 20px; align-items: start; }
@media (max-width: 860px) { .feature-detail-body { grid-template-columns: 1fr; } .feature-detail { grid-template-columns: 1fr; } .feature-detail .num { margin-bottom: 6px; } }

.mini-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-secondary); }
.mini-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--green); }

/* =========================================================================
   Tablas
   ========================================================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 14px 18px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
th { background: #fbfcfd; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td.mono { color: var(--text-secondary); }

/* =========================================================================
   Kanban mockup
   ========================================================================= */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 940px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kanban { grid-template-columns: 1fr; } }
.kanban-col { background: #fbfcfe; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.kanban-col-head h4 { font-size: 0.82rem; }
.kanban-count { font-size: 0.72rem; font-weight: 800; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 8px; color: var(--text-muted); }
.kanban-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--border-strong);
}
.kanban-card:last-child { margin-bottom: 0; }
.kanban-card .pid { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.kanban-card .meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }
.kanban-col--incomplete .kanban-card { border-left-color: var(--text-muted); }
.kanban-col--pending .kanban-card { border-left-color: var(--amber); }
.kanban-col--stable .kanban-card { border-left-color: var(--green); }
.kanban-col--action .kanban-card { border-left-color: var(--red); }

/* =========================================================================
   Simulador PK
   ========================================================================= */
.simulator {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.simulator-head { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.simulator-body { display: grid; grid-template-columns: 300px 1fr; }
@media (max-width: 820px) { .simulator-body { grid-template-columns: 1fr; } }
.simulator-controls { padding: 24px; border-right: 1px solid var(--border); background: #fbfcfe; }
.simulator-chart { padding: 24px; }
.control-group { margin-bottom: 22px; }
.control-group:last-child { margin-bottom: 0; }
.control-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.control-label .val { color: var(--primary); font-family: var(--font); }
input[type="range"] {
  width: 100%; -webkit-appearance: none; height: 6px; border-radius: 999px; background: var(--border-strong); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary);
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--primary); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--primary); cursor: pointer;
}
select.control-select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; font-family: var(--font); font-weight: 600; font-size: 0.9rem;
}
.sim-readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.sim-readout { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.sim-readout .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.sim-readout .v { font-size: 1.15rem; font-weight: 800; margin-top: 2px; }
.sim-readout .v.ok { color: var(--green); }
.sim-readout .v.warn { color: var(--amber); }
.sim-readout .v.bad { color: var(--red); }

/* =========================================================================
   Disclaimer / avisos clínicos
   ========================================================================= */
.disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-light); border: 1px solid #f0dcb3; border-radius: 12px; padding: 16px 18px; font-size: 0.88rem; color: #6b4c0a;
}
.disclaimer svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber); margin-top: 1px; }
.disclaimer.red { background: var(--red-light); border-color: #f0c6c2; color: #7a2620; }
.disclaimer.red svg { color: var(--red); }
.disclaimer strong { display: block; margin-bottom: 2px; }

/* =========================================================================
   Timeline / pasos (casos clínicos)
   ========================================================================= */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline-step { position: relative; padding-bottom: 34px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -40px; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 0 0 5px var(--bg-page);
}
.timeline-step.is-done .timeline-dot { background: var(--green); }
.timeline-step.is-alert .timeline-dot { background: var(--red); }
.timeline-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.timeline-card h4 { margin-bottom: 6px; }
.timeline-card p { color: var(--text-secondary); font-size: 0.92rem; }
.timeline-card .tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* =========================================================================
   Personas / audiencia
   ========================================================================= */
.persona-card { display: flex; flex-direction: column; height: 100%; }
.persona-avatar {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sidebar-bg); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}

/* =========================================================================
   Precios
   ========================================================================= */
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card--featured { border-color: var(--primary); box-shadow: 0 14px 34px rgba(11,92,173,0.16); transform: translateY(-6px); }
.pricing-card--featured:hover { transform: translateY(-8px); }
.pricing-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase; box-shadow: var(--shadow-sm);
}
.pricing-name { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.pricing-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0 4px; }
.pricing-price .amount { font-size: 2.2rem; font-weight: 800; white-space: nowrap; }
.pricing-price .period { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
.pricing-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.pricing-features li { display: flex; gap: 10px; font-size: 0.9rem; align-items: flex-start; }
.pricing-features svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pricing-note { text-align: center; margin-top: 30px; font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================================
   Comparativa modelos (tabla + tarjetas)
   ========================================================================= */
.drug-card { border-top: 4px solid var(--primary); }
.drug-card.teal { border-top-color: var(--teal); }
.drug-card .drug-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }

/* =========================================================================
   FAQ / accordion
   ========================================================================= */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; text-align: left; padding: 20px 4px; font-weight: 700; font-size: 1rem; color: var(--text-primary);
}
.accordion-trigger svg { flex-shrink: 0; transition: transform .2s ease; color: var(--text-muted); }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); color: var(--primary); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel-inner { padding: 0 4px 20px; color: var(--text-secondary); font-size: 0.94rem; max-width: 760px; }

/* =========================================================================
   CTA banda final
   ========================================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--sidebar-bg), #163360);
  border-radius: var(--radius-lg);
  padding: 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-on-dark-muted); margin-top: 10px; }

/* =========================================================================
   Access / login
   ========================================================================= */
.auth-shell { max-width: 460px; margin: 0 auto; }
.auth-card { padding: 36px; }
.auth-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sidebar-bg); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--border-strong);
  font-family: var(--font); font-size: 0.94rem; background: #fff; color: var(--text-primary);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--text-muted); font-size: 0.82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--sidebar-bg); color: var(--text-on-dark-muted); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-grid p { font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.footer-col h5 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer-legal-note { font-size: 0.78rem; line-height: 1.6; max-width: 900px; margin-top: 20px; opacity: 0.75; }

/* =========================================================================
   Utilidades
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* Page hero (secundario, más compacto que el de home) */
.page-hero { background: var(--sidebar-bg); color: #fff; padding: 56px 0 68px; }
.page-hero .lead { color: var(--text-on-dark-muted); max-width: 640px; margin-top: 14px; }
.page-hero h1 { color: #fff; margin-top: 14px; }
.breadcrumb { font-size: 0.82rem; color: var(--text-on-dark-muted); display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: #fff; }

/* Toast (config Stripe) */
.toast {
  position: fixed; bottom: 24px; right: 24px; max-width: 360px; z-index: 999;
  background: var(--sidebar-bg); color: #fff; padding: 16px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: flex-start; transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }
.toast .t-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.toast .t-body { font-size: 0.8rem; color: var(--text-on-dark-muted); line-height: 1.5; }
.toast .t-close { background: none; border: none; color: var(--text-on-dark-muted); font-size: 1.1rem; line-height: 1; padding: 0 0 0 8px; }
