/* ============================================================
   base.css — reset, tipografía y estructura general
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

/* ---- Contenedor responsivo ---- */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 1025px) { .container { max-width: var(--contenedor); } }
@media (max-width: 1024px) { .container { max-width: 700px; } }
@media (max-width: 767px)  { .container { max-width: 340px; padding-inline: 0; } }

/* ---- Respiro de sección ---- */

.section { padding-block: 12vh; }
@media (max-width: 767px) { .section { padding-block: 9vh; } }

/* ---- Accesibilidad: respetar la preferencia de menos movimiento ---- */

@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;
  }
}
