/* ==========================================================================
   BASE — Reset, tipografía global, utilidades
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-graphite);
  line-height: var(--lh-tight);
  margin: 0;
  font-weight: 400;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p { margin: 0; }

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

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Foco visible accesible en toda la web */
:focus-visible {
  outline: 2px solid var(--color-burgundy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Enlace saltar al contenido */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  z-index: var(--z-modal);
  background: var(--color-graphite);
  color: var(--color-white);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  transition: top var(--duration-base) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Contenedor central */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Utilidades tipográficas */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-burgundy);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--color-burgundy);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text);
  line-height: var(--lh-snug);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

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

/* Marcador de dato pendiente */
.placeholder-tag {
  display: inline-block;
  padding: 0.1em 0.5em;
  background: rgba(198, 168, 117, 0.18);
  border: 1px dashed var(--color-champagne);
  border-radius: var(--radius-sm);
  color: var(--color-burgundy-dark);
  font-size: 0.85em;
  font-style: normal;
}

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

/* Secciones desactivadas hasta disponer de contenido real (ej. testimonios) */
.is-hidden-pending-content {
  display: none;
}

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