/* Estilos base de la barra de navegación */
.navbar {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

/* Estilos del logo */
.navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

/* Estilos de los enlaces de navegación */
html {
    scroll-behavior: smooth;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 6px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Estilos del botón del menú móvil */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Efecto de scroll */
.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(33, 37, 41, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.2rem 0;
    }
}