/* 1. VARIABLES (Aquí controlas los colores de todo el sitio) */
:root {
    --color-fondo-nav: #2c3e50; /* Azul Oscuro Original */
    --color-texto-nav: #ffffff;
    --color-enfasis: #f59622;   /* Naranja Enlaces */
    --color-titulo: #2c3e50;    /* Azul para H1 */
    --fuente-titulos: 'Comfortaa', sans-serif;
    --fuente-cuerpo: 'Comfortaa', sans-serif;
}

/* 2. RESET BÁSICO */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--fuente-cuerpo);
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

/* 3. TIPOGRAFÍA */
h1, h2, h3 {
    font-family: var(--fuente-titulos);
    color: var(--color-titulo);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -1px;
}

h1 {
    text-align: right;
    margin-right: 20px;
    padding: 5px 10px;
    font-size: 1.8rem;
}

.contenido {
    padding-top: 0;
}

/* 4. ENLACES */
a {
    color: var(--color-enfasis);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #d37c15;
    text-decoration: underline;
}

/* 5. BARRA DE NAVEGACIÓN */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--color-fondo-nav);
    color: var(--color-texto-nav);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.checkboxbtn {
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    display: block;
}

#check {
    display: none;
}

.nav-mobile {
    position: fixed;
    top: 60px;
    left: -100%;
    background: var(--color-fondo-nav);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.nav-mobile a {
    color: white;
    font-size: 1.2rem;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a:hover {
    background-color: var(--color-enfasis);
    color: white;
    text-decoration: none;
}

#check:checked ~ .nav-mobile {
    left: 0;
}

/* 6. RESPONSIVE (PC) */
@media (min-width: 850px) {
    .checkboxbtn {
        display: none;
    }
    
    .nav-mobile {
        position: static;
        width: auto;
        height: auto;
        background: none;
        display: flex;
        flex-direction: row;
        left: 0;
    }

    .nav-mobile a {
        font-size: 1rem;
        padding: 0 15px;
        border: none;
    }
    
    nav {
        justify-content: center;
    }
}

/* 7. CONTENIDOS */
.contenido {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: block;
}

.articulos {
    width: 100%;
}

.secciones h2 {
    color: var(--color-titulo);
    margin-top: 30px;
}

/* 8. FOOTER (CORREGIDO) */
.footer {
    /* CORRECCIÓN: Usamos tu variable real de azul oscuro */
    background-color: var(--color-fondo-nav); 
    color: #ffffff;
    padding: 3rem 5%;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-legal a {
    /* CORRECCIÓN: Usamos tu variable real de naranja para los enlaces */
    color: var(--color-enfasis); 
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff; /* Al pasar el mouse se pone blanco */
    text-decoration: underline;
}

.footer-legal .separator {
    color: #ffffff;
    opacity: 0.5;
}

/* Ajuste móvil footer */
@media (max-width: 480px) {
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    .footer-legal .separator {
        display: none;
    }
}

/* 9. BOTONES DEL SITIO */
.btn-orange {
    background-color: var(--color-enfasis);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}
.btn-orange:hover {
    background-color: #d87e0f;
    text-decoration: none;
}