/* =============================================================================
   Padel Group — Reset Moderno
   Basado en: Josh W. Comeau's CSS Reset + best practices 2024
   ============================================================================= */

/* 1. Box-sizing como universo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Sin márgenes por defecto */
* {
  margin: 0;
  padding: 0;
}

/* 3. Root y body */
html {
  /* Scroll suave nativo */
  scroll-behavior: smooth;
  /* Evitar zoom horizontal en iOS */
  overflow-x: hidden;
  /* Texto más nítido en pantallas HiDPI */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background-color: var(--color-surface);
  color: var(--color-on-high);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
}

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

/* 5. Fuentes heredadas en inputs */
input,
button,
textarea,
select {
  font: inherit;
}

/* 6. Evitar overflow en textos largos */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 7. Scrollbar de raíz para evitar el salto de layout */
html {
  scrollbar-gutter: stable;
}

/* 8. Listas sin estilos (usar .list para estilar si se necesita) */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

/* 10. Botones reseteados */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 11. Separadores */
hr {
  border: none;
  border-top: 1px solid var(--color-outline);
}

/* 12. Foco accesible (se sobreescribe por componente si es necesario) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
