/* ==========================================================
   BiosMed – Sistema de diseño (Entrega 1)
   Ubicación recomendada: /wp-content/themes/medicenter-child/css/design-system.css

   IMPORTANTE: las variables de :root no afectan nada por sí
   solas. Las reglas de tipografía/espaciado solo se aplican
   dentro de elementos con la clase ".biosmed-section", que
   nosotros agregamos a propósito en las secciones nuevas.
   Esto evita tocar accidentalmente secciones que ya funcionan
   bien y que no pediste modificar.
   ========================================================== */

:root {
  /* Colores corporativos aproximados (ajusta aquí si tienes los
     códigos hexadecimales exactos de tu manual de marca) */
  --biosmed-blue-dark: #163b6d;
  --biosmed-blue: #1f6fb2;
  --biosmed-blue-light: #4fb3e0;
  --biosmed-white: #ffffff;
  --biosmed-gray-50: #f7f9fb;
  --biosmed-gray-100: #eef1f5;
  --biosmed-gray-400: #9aa4b2;
  --biosmed-gray-700: #4a4f57;
  --biosmed-gray-900: #24272c;

  /* No forzamos una tipografía nueva: heredamos la que ya
     configuraron en el panel del tema (Theme Options). */
  --biosmed-font-family: inherit;

  --biosmed-h2-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --biosmed-h3-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --biosmed-body-size: 1rem;
  --biosmed-small-size: 0.95rem;

  --biosmed-weight-regular: 400;
  --biosmed-weight-medium: 500;
  --biosmed-weight-semibold: 600;
  --biosmed-weight-bold: 700;

  --biosmed-space-xs: 8px;
  --biosmed-space-sm: 16px;
  --biosmed-space-md: 24px;
  --biosmed-space-lg: 40px;
  --biosmed-space-xl: 64px;

  --biosmed-container-max: 1200px;
  --biosmed-container-padding: 20px;

  --biosmed-radius: 10px;
  --biosmed-shadow-soft: 0 4px 16px rgba(20, 30, 60, 0.08);
  --biosmed-shadow-hover: 0 8px 24px rgba(20, 30, 60, 0.14);
}

.biosmed-section {
  max-width: var(--biosmed-container-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--biosmed-space-xl) var(--biosmed-container-padding);
  font-family: var(--biosmed-font-family);
  color: var(--biosmed-gray-900);
  box-sizing: border-box;
}

.biosmed-section *,
.biosmed-section *::before,
.biosmed-section *::after {
  box-sizing: border-box;
}

.biosmed-section .biosmed-section-header {
  text-align: center;
  margin-bottom: var(--biosmed-space-lg);
}

.biosmed-section h2 {
  font-size: var(--biosmed-h2-size);
  font-weight: var(--biosmed-weight-bold);
  color: var(--biosmed-blue-dark);
  margin: 0 0 var(--biosmed-space-xs);
  line-height: 1.25;
}

.biosmed-section h3 {
  font-size: var(--biosmed-h3-size);
  font-weight: var(--biosmed-weight-semibold);
  color: var(--biosmed-blue-dark);
  margin: 0 0 var(--biosmed-space-xs);
  line-height: 1.3;
}

.biosmed-section p,
.biosmed-section .biosmed-body {
  font-size: var(--biosmed-body-size);
  font-weight: var(--biosmed-weight-regular);
  color: var(--biosmed-gray-700);
  line-height: 1.6;
}

.biosmed-section .biosmed-subtitle {
  font-size: var(--biosmed-small-size);
  color: var(--biosmed-gray-700);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  .biosmed-section {
    padding: var(--biosmed-space-lg) var(--biosmed-container-padding);
  }
}
