/* ─────────────────────────────────────────────────────────────
   MASTER GROOVERS — RESET + ELEMENTOS BASE
   ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* El nav fijo mide 68px: sin esto, los anclas #cabinas quedan
     debajo de la barra. */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  background: var(--negro);
  color: var(--hueso);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Las imágenes SIEMPRE llevan width/height en el HTML para reservar
   el espacio (CLS=0); estas reglas las hacen fluidas sin perder la
   proporción declarada. */
img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul, ol { list-style: none; }

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

table { border-collapse: collapse; width: 100%; }

/* ── Accesibilidad ── */

:focus-visible {
  outline: 2px solid var(--fucsia);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Sin :focus-visible el ratón dejaría anillos por todas partes. */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: calc(var(--z-nav) + 1);
  background: var(--fucsia);
  color: var(--negro);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { top: var(--space-sm); }

/* Oculto visualmente pero legible por lectores de pantalla. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Motion reducido ──
   Quien lo pide sufre mareo o migraña con el movimiento. Apagamos
   animación y scroll suave, pero dejamos los cambios de color:
   son los que comunican el estado de foco y hover. */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Impresión ── */
@media print {
  nav, .wa-float, .mobile-cta, .share-btns, .slider-arrows { display: none !important; }
  body { background: #fff; color: #000; }
}
