/**
 * Fuentes variables auto-alojadas: un archivo por familia cubre 400-600.
 * Descargadas del repositorio de Google Fonts (licencia SIL Open Font) y
 * servidas desde nuestro dominio: el navegador del usuario nunca habla con
 * Google, que es lo que exige el RGPD.
 */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--topo-oscuro);          /* 6,2:1 — nunca usar --topo aquí */
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--sp-2);
  color: var(--topo-oscuro);
}

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

p { margin: 0 0 var(--sp-2); }

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

a { color: var(--topo-oscuro); }

.contenedor {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.seccion { padding: var(--sp-6) 0; }
.seccion--honda { background: var(--crema-hondo); }

.antetitulo {                       /* la cursiva del logo, uso restringido */
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-lg);
  /* No puede ser --topo: a 20px y peso 600 no cuenta como "texto grande"
     para WCAG, así que le exigen 4,5:1 y solo da 3,83:1 sobre --crema-hondo.
     Lo que distingue al antetítulo es la cursiva, no el color. */
  color: var(--topo-oscuro);
  margin-bottom: var(--sp-1);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--rosa-cta);      /* 5,0:1 con blanco */
  color: var(--blanco);
  font: 600 var(--fs-base) var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* Foco visible en todo elemento interactivo */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--topo-oscuro);
  outline-offset: 2px;
}

.solo-lectores {                    /* visible solo para lectores de pantalla */
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
