/* --- VARIABLES Y RESET (GLOBAL) --- */
:root {
    --primary-color: #003366; /* Azul oscuro corporativo (Base) */
    --secondary-color: #00509e; /* Azul medio */
    --accent-color: #00a8e8; /* Azul claro brillante */
    
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --gray-light: #f9f9f9;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--gray-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- HEADER GLOBAL --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.conthead {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--accent-color);
}

.menus ul {
    display: flex;
    gap: 2rem;
}

.menus a {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.menus a:hover, .menus a.active {
    color: var(--primary-color);
}

.menus a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.menus a:hover::after {
    width: 100%;
}

/* --- FOOTER GLOBAL --- */
footer {
    background-color: #002244;
    color: var(--text-light);
    padding-top: 4rem;
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
}

.contfoot {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
    margin-top: 8px;
}

.enlaces ul li {
    margin-bottom: 1rem;
}

.enlaces a {
    color: #ccc;
    transition: var(--transition);
    display: inline-block;
}

.enlaces a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.redes-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn img {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

.coppy {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.coppy p {
    margin: 0.2rem 0;
}

/* --- RESPONSIVE GLOBAL (Header/Footer) --- */
@media (max-width: 768px) {
    /* Header Responsive */
    .conthead {
        flex-direction: row; 
        flex-wrap: wrap; 
    }

    .hamburger {
        display: block; 
    }

    .menus ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .menus ul.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .menus a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Footer Responsive */
    .contfoot {
        text-align: center;
    }
    
    .footer-section h3::after {
        margin: 8px auto 0;
    }
    
    .redes-icons {
        justify-content: center;
    }
}