/**
 * Estilos Base - Fortuna
 * Reset y estilos globales
 */

/* ============================================
   RESET Y VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --Color_Primario: #667eea;
    --Color_Secundario: #764ba2;
    --Color_Exito: #2ecc71;
    --Color_Error: #e74c3c;
    --Color_Advertencia: #f39c12;
    --Color_Info: #3498db;

    --Color_Texto: #333;
    --Color_Texto_Claro: #666;
    --Color_Fondo: #f8f9fa;
    --Color_Borde: #e0e0e0;

    --Sombra_Pequeña: 0 2px 4px rgba(0, 0, 0, 0.1);
    --Sombra_Media: 0 5px 15px rgba(0, 0, 0, 0.15);
    --Sombra_Grande: 0 20px 60px rgba(0, 0, 0, 0.3);

    --Radio_Borde: 6px;
    --Transicion_Rapida: 0.2s ease;
    --Transicion_Media: 0.3s ease;
    --Transicion_Lenta: 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--Color_Texto);
    background-color: var(--Color_Fondo);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--Color_Primario);
    text-decoration: none;
    transition: color var(--Transicion_Rapida);
}

a:hover {
    color: var(--Color_Secundario);
}

/* ============================================
   CÓDIGO
   ============================================ */

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    padding: 0;
    background: none;
}

/* ============================================
   FORMULARIOS
   ============================================ */

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ============================================
   BOTONES
   ============================================ */

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: var(--Radio_Borde);
    transition: all var(--Transicion_Rapida);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CONTENEDORES COMUNES
   ============================================ */

.Contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.Contenedor_Fluido {
    width: 100%;
    padding: 0 20px;
}

/* ============================================
   UTILIDADES
   ============================================ */

.Texto_Centro {
    text-align: center;
}

.Texto_Derecha {
    text-align: right;
}

.Texto_Izquierda {
    text-align: left;
}

.Oculto {
    display: none !important;
}

.Invisible {
    visibility: hidden !important;
}

.Sin_Margen {
    margin: 0 !important;
}

.Sin_Padding {
    padding: 0 !important;
}

.Flex {
    display: flex;
}

.Flex_Centro {
    display: flex;
    justify-content: center;
    align-items: center;
}

.Flex_Entre {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Flex_Columna {
    display: flex;
    flex-direction: column;
}

.Grid {
    display: grid;
}

.Sombra_Pequeña {
    box-shadow: var(--Sombra_Pequeña);
}

.Sombra_Media {
    box-shadow: var(--Sombra_Media);
}

.Sombra_Grande {
    box-shadow: var(--Sombra_Grande);
}

.Margen_Arriba {
    margin-top: 1rem;
}

.Margen_Abajo {
    margin-bottom: 1rem;
}

.Margen_Lateral {
    margin-left: 1rem;
    margin-right: 1rem;
}

.Padding_Pequeño {
    padding: 0.5rem;
}

.Padding_Normal {
    padding: 1rem;
}

.Padding_Grande {
    padding: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
}
