/* ==========================================================================
   OMNITEK — base.css
   Reset y estilos base. Se importa después de variables.css.
   ========================================================================== */

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

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

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

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

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

ul, ol{
  list-style: none;
}

button, input, textarea, select{
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: 0.4px;
}

/* respeta la preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- utilidades de layout ---------- */

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section{
  position: relative;
  z-index: 1;
  padding: var(--space-9) var(--space-6);
}

@media (max-width: 900px){
  .section{ padding: var(--space-8) var(--space-4); }
  .container{ padding: 0 var(--space-4); }
}

/* grid de fondo tipo HUD, disponible para cualquier página */
.bg-grid{
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(63,169,245,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,169,245,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* focus visible para accesibilidad / navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}
