/* ==========================================================================
   MATESEREÑO — Base / Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto-principal);
  font-family: var(--fuente-cuerpo);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Bloquea el scroll cuando hay un overlay abierto (lightbox / menú mobile) */
body.sin-scroll {
  overflow: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--fuente-display);
  margin: 0;
  color: var(--verde-mate-oscuro);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

/* Las anclas del menú no quedan tapadas por el header fijo */
section[id] {
  scroll-margin-top: var(--header-alto);
}

/* Selección de texto con la paleta de la marca */
::selection {
  background: var(--dorado-sutil);
  color: #fff;
}

/* Barra de scroll discreta (Chrome / Edge) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb {
  background: rgba(17, 55, 4, 0.35);
  border-radius: 100px;
  border: 3px solid var(--beige);
}
::-webkit-scrollbar-thumb:hover { background: var(--verde-mate); }

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--dorado-sutil);
  outline-offset: 3px;
}

.contenedor {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--espacio-md);
}

.eyebrow {
  font-family: var(--fuente-cuerpo);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado-sutil);
}

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

@media (max-width: 560px) {
  .contenedor { padding: 0 20px; }
}
