/* ═══════════════════════════════════════════════════════════
   RESET CSS — Oriol Romaní
   Reset moderno basado en Josh Comeau / Andy Bell
   ═══════════════════════════════════════════════════════════ */

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

/* Eliminar márgenes y paddings por defecto */
* {
  margin: 0;
  padding: 0;
}

/* Comportamiento del scroll */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

/* Body base */
body {
  min-height: 100dvh;
  line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Imágenes y media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Inputs heredan tipografía */
input, button, textarea, select {
  font: inherit;
}

/* Texto largo no se desborda */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Encabezados no negrita por defecto (se aplica en base.css) */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
}

/* Listas sin estilos cuando son de navegación */
ul[role='list'], ol[role='list'] {
  list-style: none;
}

/* Links sin decoración por defecto */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Fieldset reset */
fieldset {
  border: none;
}

/* Tabla reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Prevenir overflow en root */
#root, #__next {
  isolation: isolate;
}

/* Iframe sin borde */
iframe {
  border: 0;
}

/* Dialog reset */
dialog {
  background: transparent;
  border: none;
  padding: 0;
}
