/* assets/css/navbar-footer.css - VERSIÓN COMPLETA */
/* Estilos del navbar y footer */

:root {
    --color-primary: #a00022;
    --gray-dark: #575756;
}

/* ===== FLEXBOX PARA FOOTER SIEMPRE ABAJO ===== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: 1px; /* Compensa navbar fija */
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #ffffff;
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    border-bottom: 1px solid #eaeaea;
}

.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--color-primary);
}

/* ===== LOGO ===== */
.navbar-brand img {
    height: 90px;
    width: auto;
    max-width: 260px;
    transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 55px;
}

/* ===== MENÚ ===== */
.nav-link {
    font-weight: 600;
    color: var(--gray-dark);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 1.5px;
}

/* ===== BOTÓN CONACTO EN NAVBAR ===== */
.navbar .btn-telnetworks {
    padding: 10px 20px;
    font-size: 1rem;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer-custom {
    background: #000000;
    color: #ffffff;
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--color-primary);
    flex-shrink: 0; /* Para flexbox */
}

.footer-logo {
    height: 130px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--color-primary);
    width: 20px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-link i {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .main-content {
        padding-top: 70px;
    }
    
    .navbar-brand img {
        height: 55px;
    }
    
    .footer-custom {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        height: 100px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 50px;
    }
    
    .main-content {
        padding-top: 65px;
    }
    
    .navbar .btn-telnetworks {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .footer-custom {
        padding: 2.5rem 0 1.5rem;
        text-align: center;
    }
    
    .footer-contact p,
    .footer-link {
        justify-content: center;
    }
    
    .footer-logo {
        height: 80px;
    }
}