/* ---------------------------- */
/* 🌎 CSS RESET MODERNO 2025    */
/* Basado en el de @leeoble :) */
/* ---------------------------- */

/* 1️ Box sizing, márgenes y paddings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2️Tipografía base y desplazamiento */
html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 3️Elementos de bloque básicos */
body,
h1, h2, h3, h4, h5, h6,
p, figure, picture {
  margin: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;   /* navegadores viejos */
  overflow-x: clip;     /* modernos: recorta sin crear scroller */

  /* Base typography */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.6rem; /* 16px real */

}

/* 4️ Imágenes y multimedia */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5️Formularios y controles */
/*----------------*/
/* FORM RESET     */
/*----------------*/

fieldset {
    border: none;
    min-width: 0;
}

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

/* BUTTON RESET */

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

/* TEXTAREA */

textarea {
    resize: vertical;
}

/*----------------*/
/* CUSTOM INPUTS  */
/*----------------*/

/*
    SOLO inputs custom.
    NO date, radio, checkbox, file, etc.
*/

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

input,
textarea,
select {
    outline: none;
}
/*----------------*/
/* TEXT INPUTS  */
/*----------------*/
input {
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/*----------------*/
/* NUMBER INPUTS  */
/*----------------*/

/* Chrome, Safari, Edge */

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */

/* AGREGA ESTA LÍNEA: */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield; /* <- Añade esto para quitar la advertencia */
}


/*----------------*/
/* DATE INPUT     */
/*----------------*/

/*
    Mantener UI nativa.
    Safari/iOS depende muchísimo de esto.
*/

input[type="date"]{
  -webkit-appearance: auto;
  appearance: auto;
  background-color: var(--surface-base);
  color: black;
}

/*----------------*/
/* RADIO/CHECKBOX */
/*----------------*/

/*
    Aquí sí puedes customizar después
    por componente específico.
*/

input[type="radio"],
input[type="checkbox"] {
    margin: 0;
}
/* 6️⃣ Enlaces */
a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
a:hover { text-decoration: none; }
a:focus-visible,
:focus-visible {
  outline: none;
  outline-offset: 0;
}

/* 7️ Listas */
ul, ol {
  list-style: none;
}
/* 8️Tipografía semántica */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: 1.2;
}

/* 9️Tablas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*  Accesibilidad: reducir animaciones si el usuario lo solicita */
::selection { background: rgba(0,0,0,.12); }

@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;
  }
}
