/* =============================================================
   Don Cheech — Reset y base
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  /* el sticky header no debe tapar las anclas de categorías */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-4);
  overflow-wrap: break-word;
}

h1 { font-size: var(--text-hero); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 600; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-burgundy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-burgundy-dark); }

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

ul, ol { padding-left: 1.25rem; }

hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}

::selection { background: var(--color-gold); color: var(--color-black); }

/* Tipos utilitarios ------------------------------------------ */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-3);
}

.on-light .eyebrow, .eyebrow--burgundy { color: var(--color-burgundy); }

.lead { font-size: var(--text-lg); color: var(--color-text-muted); }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }

/* Banda negra de cabecera de sección interior (ref. 02/05/06) */
.section-band {
  background: var(--color-black);
  color: var(--color-text-on-dark);
  text-align: center;
  padding: var(--space-7) var(--container-pad);
}
.section-band .eyebrow { margin-bottom: var(--space-2); }
.section-band h1, .section-band h2 { margin-bottom: 0; color: var(--color-text-on-dark); }

/* Accesibilidad ---------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-black);
  color: var(--color-text-on-dark);
  padding: var(--space-3) var(--space-5);
}
.skip-link:focus {
  left: 0;
  outline: var(--focus-ring);
}

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