
/* ==========================================================================
   BASE.CSS — Complemento profesional para normalize.css v8.0.1
   Autor: Franco (adaptado por ChatGPT - 2025)
   Propósito: Base limpia, responsive, accesible, moderna.
========================================================================== */

/* === Box sizing universal === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* === HTML & Body === */
html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #212529;
  background-color: #ffffff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* === Links === */
a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

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

/* === Tablas === */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid #dee2e6;
}

/* === Listas === */
ul, ol {
  padding-left: 2rem;
}

/* === Formularios === */
input, textarea, select, button {
  font: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

button {
  cursor: pointer;
  background-color: #007BFF;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 0.4rem;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #0056b3;
}

/* === Form helpers === */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* === Accesibilidad === */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed #0d6efd;
  outline-offset: 2px;
}

/* === Utilidades === */
.hidden {
  display: none !important;
}
.invisible {
  visibility: hidden !important;
}
.text-center {
  text-align: center !important;
}

/* === Responsive Media Queries (Base) === */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  a:hover, a:focus {
    text-decoration-color: #bbb;
  }

  button {
    background-color: #1f6feb;
  }
}

/* ==========================================================================
   Fin de base.css
========================================================================== */
