/* ============================================
   BASE / RESET
   Estilos globales y normalización.
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* Respaldo: si AOS no llega a inicializar (CDN lento o bloqueado),
   se fuerza la visibilidad para que la página nunca quede en blanco. */
.aos-fallback [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

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

h1, h2, h3, h4 {
  color: var(--color-dark);
  line-height: 1.2;
}

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

ul, ol {
  list-style: none;
}

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

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

input, select, textarea {
  font: inherit;
  width: 100%;
}

/* Contenedor central reutilizable */
.container {
  width: min(var(--container-width), calc(100% - 3rem));
  margin-inline: auto;
}

/* Espaciado estándar entre secciones */
.section {
  padding: var(--section-padding);
}

.section:nth-of-type(even) {
  background-color: var(--color-bg-alt);
}

::selection {
  background: var(--color-mint);
  color: var(--color-dark-teal);
}

:focus-visible {
  outline: 3px solid rgba(67, 170, 164, 0.45);
  outline-offset: 3px;
}
