/* ============================================================================
 * SPES MED — vidriera institucional. Tokens de marca centralizados.
 * Cara CELESTE-DOMINANTE del sistema Alvarez Cordeyro (inversión de la paleta
 * bordó-dominante de SPES JUR): el celeste es el color médico y conduce la
 * identidad; el bordó queda como acento secundario. Mismo sistema tipográfico
 * (Cormorant para títulos, Inter para cuerpo). Valores PROVISIONALES hasta el
 * manual definitivo. Para re-marcar, se tocan SOLO estas variables.
 * ========================================================================== */
:root {
  /* Celeste — color dominante (médico) */
  --celeste: #2ca9e3;          /* celeste de marca, brillante (acentos, mark, pill) */
  --celeste-deep: #156c97;     /* celeste profundo: wordmark, títulos, botones, links */
  --celeste-strong: #0e4d6e;   /* celeste muy profundo: fondo de la banda CTA */
  --celeste-soft: #dcf0fb;     /* celeste claro: fondos suaves, pill, recuadro legal */
  /* Bordó — acento secundario (heredado de JUR, mismo sistema) */
  --bordo: #5e2230;
  /* Neutros fríos/clínicos */
  --hueso: #f4f8fb;            /* fondo general: hueso con leve frío */
  --hueso-card: #ffffff;       /* tarjetas */
  --ink: #15252e;              /* texto principal (gris azulado oscuro) */
  --muted: #5d7480;            /* texto secundario */
  --border: #dbe6ec;           /* bordes fríos */
  --maxw: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--hueso);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .title { font-family: "Cormorant Garamond", Georgia, serif; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 248, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 1.5rem; letter-spacing: 0.18em; color: var(--celeste-deep);
  text-decoration: none;
}
.btn {
  display: inline-block; background: var(--celeste-deep); color: #fff;
  font-weight: 600; font-size: 0.95rem; padding: 11px 22px;
  border-radius: var(--radius); text-decoration: none; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--celeste-deep); border: 1px solid var(--celeste-deep); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; line-height: 1.05; color: var(--ink); }
.hero h1 .accent { display: block; color: var(--celeste-deep); }
.hero .lead { margin-top: 22px; font-size: 1.25rem; color: var(--muted); max-width: 640px; }
.hero .subtagline { margin-top: 14px; font-size: 1.05rem; color: var(--celeste-deep); font-weight: 600; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.beta-pill {
  display: inline-block; background: var(--celeste-soft); color: var(--celeste-strong);
  font-size: 0.8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Secciones */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; color: var(--celeste-deep); margin-bottom: 10px; }
.section .sub { color: var(--muted); max-width: 660px; margin-bottom: 36px; font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--hueso-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .mark { display: inline-block; width: 28px; height: 3px; background: var(--bordo); border-radius: 2px; margin-bottom: 14px; }

/* Recuadro legal / encuadre clínico — VISIBLE */
.legal-notice {
  background: var(--celeste-soft);
  border: 1px solid var(--celeste);
  border-left: 4px solid var(--celeste-deep);
  border-radius: var(--radius);
  padding: 24px 26px;
  max-width: 760px;
}
.legal-notice .lead {
  font-weight: 700; color: var(--celeste-strong); font-size: 1.08rem; margin-bottom: 12px;
}
.legal-notice p { color: var(--ink); font-size: 0.96rem; }
.legal-notice p + p { margin-top: 10px; }

/* CTA final */
.cta-band { background: var(--celeste-strong); color: #fff; padding: 64px 0; }
.cta-band h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 14px 0 28px; max-width: 580px; }
.cta-band .btn { background: var(--bordo); color: #fff; }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer .wordmark { font-size: 1.2rem; display: inline-block; margin-bottom: 12px; }
.site-footer .tagline { color: var(--ink); margin-bottom: 18px; }
.site-footer a { color: var(--celeste-deep); }
.site-footer .links { margin: 16px 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .fineprint { margin-top: 16px; font-size: 0.82rem; }
.site-footer .legal-fine { margin-top: 14px; font-size: 0.82rem; color: var(--ink); max-width: 760px; }

/* Pantallas angostas: el CTA del header se oculta para no desbordar
 * (el hero tiene el mismo "Solicitar acceso" inmediatamente debajo). */
@media (max-width: 480px) {
  .site-header .btn { display: none; }
}
