/* ==========================================================================
   ESAC — Escuela de Acústica de Car Audio
   reset.css — Normalización y Reset CSS3 Puro (Vanilla)
   ========================================================================== */

/* Reseteo Universal del Modelo de Caja y Márgenes */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Comportamiento del Documento */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

/* Estilo Base del Cuerpo */
body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Manejo Responsivo y Proporcional de Medios */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Herencia Tipográfica en Elementos de Formulario */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Ajustes de Rotura de Palabras en Textos */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Reseteo de Listas */
ul,
ol {
  list-style: none;
}

/* Reseteo de Enlaces */
a {
  color: inherit;
  text-decoration: none;
}

/* Reseteo de Botones */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Accesibilidad: Enlace de Salto al Contenido */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
  background-color: #d90429;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Accesibilidad: Ocultamiento Visual para Lectores de Pantalla */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
