/* --- VARIABLES Y BASES --- */
:root {
    --primary-blue: #1a2a3a;
    --nav-blue: #1a2a3a;
    --accent-green: #2ecc71;
    --whatsapp-green: #25d366;
    --light-bg: #f8fafc;
    --text-main: #2d3436;
    --white: #ffffff;
}

/* --- NAVBAR DEFINITIVO --- */
.navbar {
    background-color: var(--nav-blue);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--accent-green); }

/* --- SUBMENÚS --- */
.has-submenu { 
    position: relative; 
    padding-bottom: 10px; /* Crea un puente para que no se cierre al bajar el mouse */
    margin-bottom: -10px;
}
.submenu {
    position: absolute;
    top: 100%; /* Se posiciona justo debajo del padding del padre */
    left: 0;
    background: var(--primary-blue);
    list-style: none;
    padding: 15px;
    min-width: 220px;
    display: none; /* Oculto por defecto */
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    border-radius: 8px;
    z-index: 1100;
}

.has-submenu:hover .submenu { display: block; }
.submenu li { margin-bottom: 10px; }
.submenu a { font-size: 0.9rem; display: block; }

/* --- BOTONES Y RESPONSIVO --- */
.btn-gratis {
    background: var(--whatsapp-green);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    border: none;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- FOOTER UNIFICADO --- */
.footer-main {
    background: var(--primary-blue);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.social-links {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: 0.3s;
    opacity: 0.8;
}

.social-links a:hover { color: var(--accent-green); opacity: 1; }

.footer-bottom { margin-top: 60px; opacity: 0.6; font-size: 0.85rem; }
.footer-divider { width: 50%; border: 0.5px solid rgba(255,255,255,0.1); margin: 0 auto 20px; }
.footer-legal-links {color:#ffffff; text-decoration: none; }

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-right {
        position: fixed;
        top: 60px;
        right: -100%;
        background: var(--primary-blue);
        width: 75%;
        height: 100vh;
        flex-direction: column;
        padding: 40px 20px;
        transition: 0.4s;
        align-items: flex-start;
    }
    .nav-right.active { right: 0; }
    .nav-menu { flex-direction: column; width: 100%; }
    .submenu {
        position: static; /* En móvil debe empujar el contenido hacia abajo */
        width: 100%;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        padding-left: 20px;
    }
     .has-submenu.active .submenu {
        display: block;
    }
}

/* Mostrar al pasar el mouse (Desktop) */
@media (min-width: 769px) {
    .has-submenu:hover .submenu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

