/* ============================= */
/* 🎨 VARIABLES DE COLOR */
/* ============================= */

/* Estilo para sección de bienvenida */
.welcome {
    background: linear-gradient(135deg, #0f4c81, #1C69A8);
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    padding: 3em 2em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 2em;
}

.welcome a {
    color: #f59e0b;
    font-weight: bold;
}

.welcome a:hover {
    color: #ffffff;
    text-decoration: underline;
}




:root {
    --primary: #0f4c81;       /* Azul oscuro */
    --secondary: #1C69A8;     /* Azul intermedio */
    --accent: #f59e0b;        /* Amarillo / acento */
    --bg-light: #f9fafb;      /* Fondo claro */
    --bg-dark: #1e293b;       /* Fondo oscuro */
    --text-dark: #1e293b;     
    --text-light: #ffffff;
    --link-color: #0f4c81;
    --link-hover: #1C69A8;
}

/* ============================= */
/* 🌐 RESET BÁSICO */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================= */
/* 🖼 HEADER */
/* ============================= */
header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

header nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent);
}

/* ============================= */
/* 🏠 MAIN CONTENT */
/* ============================= */
main {
    max-width: 1000px;
    margin: 2em auto;
    padding: 0 2em;
}

section {
    background-color: var(--text-light);
    border-radius: 12px;
    padding: 2em;
    margin-bottom: 2em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

section h2 {
    color: var(--primary);
    margin-bottom: 1em;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5em;
}

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
}

/* ============================= */
/* 🖇 LINKS */
/* ============================= */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ============================= */
/* 📄 FOOTER */
/* ============================= */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    text-align: center;
    padding: 1.5em 2em;
    font-size: 0.9em;
    margin-top: 2em;
}

/* ============================= */
/* 📱 RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    header, main, footer {
        padding: 1em;
    }

    header h1 {
        font-size: 1.6em;
    }

    section {
        padding: 1.5em;
    }

    header nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header nav a {
        margin: 0.5em 0;
    }
}
