/* ============================================================
   IBIZZI · reset.css
   Reset moderno. No agrega estilos, solo normaliza.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol, fieldset {
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"],
ul.nav-list,
ul.plain {
  list-style: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: 1.2;
}

/* Selección de texto */
::selection {
  background-color: #F5F5F5;
  color: #171717;
}

/* Scrollbar sobrio */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #444;
}

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid #F5F5F5;
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* No scroll horizontal en toda la app.
   Va "clip" y no "hidden": hidden convierte al elemento en contenedor de
   scroll y eso rompe el position:sticky del header (queda pegado al
   contenedor y no al viewport, así que se va con el scroll). clip recorta
   igual pero sin crear contenedor. */
html, body {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}
