/* Barra de Navegación - Estilo Actualizado */
.navbar {
    background: linear-gradient(90deg, #1D4E89, #4A90E2) !important; /* Gradiente azul */
    padding: 10px 20px;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF;
}

.navbar-brand img {
    max-height: 120px;
    width: auto; /* Mantiene la proporción del logo */
    margin-right: 40px;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #E23027; /* Rojo brillante para resaltar */
}

.navbar .bi {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-left: 10px;
}

.navbar .bi:hover {
    color: #FFC107; /* Amarillo claro */
}

/* 🛠️ Menú colapsado con fondo azul en móviles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(90deg, #1D4E89, #4A90E2); /* Azul sólido */
        position: absolute;
        top: 80px; /* Ajuste para que quede debajo del navbar */
        left: 0;
        width: 100%;
        z-index: 1000;
        padding-top: 15px;
        padding-bottom: 15px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        padding: 10px 0;
    }

    .navbar-nav .nav-link {
        color: white !important;
        font-size: 1.2rem;
        font-weight: bold;
        display: block;
        padding: 12px;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Loading Page */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-page.hidden {
    visibility: hidden; /* Oculta el elemento */
    opacity: 0;
}

.loading-logo {
    width: 100px; /* Tamaño reducido para un diseño limpio */
    animation: zoom-pulse 1.5s infinite;
}

@keyframes zoom-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Estilos de Tarjetas */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: #36509A; /* Azul principal */
    font-size: 1.25rem;
    font-weight: 700;
}

.card-text {
    font-size: 1rem;
    color: #6C757D; /* Gris neutro */
}

/* Botones */
.btn-primary {
    background-color: #E23027;
    border-color: #E23027;
    color: #FFFFFF;
    font-size: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #C62828;
    border-color: #C62828;
}

.btn-outline-primary {
    color: #E23027;
    border-color: #E23027;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #E23027;
    color: #FFFFFF;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #222;
    color: #CCCCCC;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #FFC107;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
