/* ============================================================
   ESTRAMENTE — SISTEMA VISUAL 2.0 (tanda 7)
   Solo páginas públicas (no lo cargan el panel del psicólogo ni el admin).
   Se carga al final del <head> para ganar a los estilos en línea de cada página.
   Tokens: css/main.css (:root). Manual de marca 2.0, pp. 10 y 16-17.
   ============================================================ */

/* ─── Texto base: Inter 400, 16 px móvil / 18 px escritorio, interlineado 1,6 ─── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
@media (min-width: 1024px) {
  body { font-size: 18px; }
}
b, strong { font-weight: 600; }

/* Párrafos largos: medida de lectura ~70 caracteres */
.section-subtitle,
.hero-subtitle,
.post-content p,
.t-landing-box p {
  max-width: 70ch;
}
.section-subtitle { margin-left: auto; margin-right: auto; }

/* ─── Escala tipográfica (Outfit) ───
   H1 600 32/48 · lh 1,15 · -1 %   |   H2 600 24/32 · lh 1,25   |   H3 500 20/24 · lh 1,3 */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

h1,
.hero-title,
.catalog-title,
.t-landing-hero-title,
.post-title,
.error-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2,
.section-title,
.cta-title,
.step-title,
.more-posts-title,
.post-cta-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
}
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  h1,
  .hero-title,
  .catalog-title,
  .t-landing-hero-title,
  .post-title,
  .error-title { font-size: 48px; }
  h2,
  .section-title,
  .cta-title,
  .step-title,
  .more-posts-title,
  .post-cta-title { font-size: 32px; }
  h3 { font-size: 24px; }
}

/* El H1 del directorio tenía tamaños forzados con !important */
.page-header-info h1,
.page-header-info .catalog-title {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}
@media (min-width: 768px) {
  .page-header-info h1,
  .page-header-info .catalog-title { font-size: 48px !important; }
}

/* Títulos de las cajas del perfil y de tarjetas: escala de H2/H3 sin desbordar la columna */
.t-landing-box-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
}
.t-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
}

/* Pie de página: los encabezados son <h2> (sin saltar niveles); su tamaño lo da la clase */
.footer .footer-heading,
.footer .footer-title {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ─── Botones: Inter 600 16 px ─── */
.btn,
.match-cta-btn,
.btn-landing-hero-book,
.btn-landing-hero-wa {
  font-family: var(--font-body);
  font-weight: 600;
}
.btn:not(.btn-sm),
html body .match-cta-btn,
html body .hero-match-cta .match-cta-btn {
  font-size: 16px !important;
}

/* Botones de marca: azul #003E82; hover y foco #0079AD con texto blanco */
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-accent:focus-visible {
  background: var(--accent, #0079AD);
  color: #FFFFFF;
}

/* Botón de acción (antes degradado celeste): sólido #003E82 en páginas públicas.
   En franjas oscuras (pie, CTA azul) main.css mantiene su versión clara, que tiene más especificidad. */
.btn-accent {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 62, 130, 0.22);
  font-weight: 600;
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent, #0079AD);
  color: #FFFFFF;
}

/* ─── Textos pequeños: 14 px, interlineado 1,5 ─── */
.caption,
figcaption,
.footer-crisis-note {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* ─── Enlaces ─── */
a:not([class]) { text-underline-offset: 3px; }
