/* ==========================================================================
   base.css — variables, reset, tipografía y layout base
   Dr. Rodrigo Santiago López — sitio personal
   ========================================================================== */

:root {
  /* Colores — tomados de la identidad real del Dr. Rodrigo Santiago (drrodrigosantiago.com) */
  --color-primary: #0b0b0c;
  --color-primary-dark: #000000;
  --color-primary-light: #1c1c1e;
  --color-secondary: #6ea8e6;       /* azul CIDIEC, versión clara para fondos negros */
  --color-secondary-dark: #08294c;  /* azul CIDIEC, acento sobre fondo blanco */
  --color-accent: #f5f5f5;
  --color-icon-accent: #08294c;
  --color-whatsapp: #1daa61;
  --color-whatsapp-dark: #158a4e;

  --color-text: #111111;
  --color-text-light: #5a5a5a;
  --color-text-inverse: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e4e4e4;

  /* Tipografía — Plus Jakarta Sans, la misma familia que usa el sitio real */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 3.5rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);

  --transition: 0.3s ease;
  --transition-fast: 0.18s ease;

  --container-width: 1160px;
  --nav-height: 76px;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
button {
  font-size: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-lg);
}

p {
  color: var(--color-text-light);
}

/* Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary-dark);
  margin-bottom: var(--space-xs);
}

.section-header p {
  margin-top: var(--space-xs);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mobile-first breakpoints -------------------------------------------------
   base: < 640px (móvil)
   sm:   >= 640px
   md:   >= 860px
   lg:   >= 1080px
---------------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --fs-3xl: 4rem;
    --fs-2xl: 3rem;
  }
}

@media (min-width: 860px) {
  .section {
    padding-block: var(--space-2xl);
  }
}
