/**
 * ============================================================
 * RESET.CSS - Estilos de normalización y reset
 * ============================================================
 * 
 * Archivo: reset.css
 * Descripción: Elimina los estilos por defecto de los navegadores
 *              para lograr consistencia cross-browser
 * 
 * Autor: TeknoSoft Development Team
 * Fecha: Febrero 2026
 * 
 * Dependencias: Ninguna (debe cargarse primero)
 * ============================================================
 */

/* ============================================================
   BOX SIZING
   ============================================================ */

/* Aplicar box-sizing: border-box a todos los elementos */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================================
   RESET DE MÁRGENES Y PADDINGS
   ============================================================ */

/* Eliminar márgenes y paddings por defecto */
html,
body,
div,
span,
applet,
object,
iframe,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl, dt, dd,
ol, ul, li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* ============================================================
   ELEMENTOS HTML5 - DISPLAY BLOCK
   ============================================================ */

/* Asegurar comportamiento correcto en navegadores antiguos */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
    display: block;
}

/* ============================================================
   BODY
   ============================================================ */

body {
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================================
   LISTAS
   ============================================================ */

/* Eliminar estilos de lista por defecto */
ol,
ul,
menu {
    list-style: none;
}

/* ============================================================
   CITAS
   ============================================================ */

blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* ============================================================
   TABLAS
   ============================================================ */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ============================================================
   ENLACES
   ============================================================ */

a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

a:focus {
    outline: none;
}

/* ============================================================
   IMÁGENES Y MULTIMEDIA
   ============================================================ */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Eliminar espacio extra debajo de imágenes */
img {
    vertical-align: middle;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */

/* Reset de inputs y botones */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

/* Eliminar estilos nativos de botones */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
    cursor: pointer;
}

/* Eliminar estilos de focus por defecto (se aplicarán personalizados) */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Eliminar spinner en inputs numéricos - Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Eliminar spinner en inputs numéricos - Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Placeholder - normalizar opacidad */
::placeholder {
    opacity: 1;
}

/* Textarea - solo resize vertical */
textarea {
    resize: vertical;
}

/* ============================================================
   ELEMENTOS DE TEXTO
   ============================================================ */

/* Bold elements */
b,
strong {
    font-weight: bold;
}

/* Italic elements */
i,
em {
    font-style: italic;
}

/* Subíndice y superíndice */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */

/* Ocultar visualmente pero mantener accesible para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    z-index: 100;
    background: #1E2852;
    color: #fff;
}

.skip-link:focus {
    top: 0;
}

/* ============================================================
   SELECCIÓN DE TEXTO
   ============================================================ */

::selection {
    background-color: #4A5FA5;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #4A5FA5;
    color: #FFFFFF;
}

/* ============================================================
   SCROLLBAR PERSONALIZADA (WebKit)
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: #4A5FA5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E2852;
}

/* ============================================================
   FIN DEL ARCHIVO
   ============================================================ */
