/* ==========================================================================
   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 {
	background-color: #ffffff;
	color: #212529;
	font-size: 1.6rem;
	line-height: 1.6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
		"Open Sans", "Helvetica Neue", sans-serif;
	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 {
	display: block;
	max-width: 100%;
	height: auto;
}

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

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

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

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

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

/* === Form helpers === */
fieldset {
	margin: 0;
	border: none;
	padding: 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
========================================================================== */
