/* ==========================================================================
   RESET Y NORMALIZACIÓN CSS — CONSTRUCCIONES JGP2410 C.A.
   ========================================================================== */

/* Modelo de caja universal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reducción de márgenes y paddings por defecto */
* {
  margin: 0;
  padding: 0;
}

/* Comportamiento fluido del documento */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Bloqueo de scroll cuando el menú móvil está abierto */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Tipografía y colores base del cuerpo */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-gray-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Imágenes y medios responsivos */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Enlaces sin decoraciones intrusivas */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Listas limpias para navegación y colecciones */
ul,
ol {
  list-style: none;
}

/* Botones y controles de formulario interactivos */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Tablas semánticas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Foco accesible universal */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* Accesibilidad: Reducción estricta de movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

