/* 
   ╔══════════════════════════════════════════════════════════╗
   ║  JAVA POO LEARNING - RESET & BASE STYLES                 ║
   ║  Estilos fundamentales y reset de navegador             ║
   ╚══════════════════════════════════════════════════════════╝ 
*/

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== ENCABEZADOS ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* ==================== PÁRRAFOS Y TEXTO ==================== */
p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* ==================== LISTAS ==================== */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ==================== CÓDIGO ==================== */
code, pre {
    font-family: var(--font-mono);
}

code {
    background-color: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
}

pre {
    background-color: transparent;
    margin-bottom: 1rem;
    overflow-x: auto;
}

/* =================══ IMÁGENES ==================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== BOTONES ==================== */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==================== FORMULARIOS ==================== */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ==================== UTILIDADES ==================== */
.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;
}

/* ==================== SELECCIÓN ==================== */
::selection {
    background-color: var(--primary-200);
    color: var(--primary-900);
}
