/* General Navbar Styling */
.navbar {
    position: absolute;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%;
    z-index: 1000;
}

/* Navbar cuando se hace scroll */
.navbar.scrolled {
    background-color: #000;
    border-bottom: 2px solid #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
}

/* Ajustes generales del logotipo de la navbar */
.navbar-logo {
    max-height: 40px;
    width: auto;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    text-decoration: none;
}

/* Efecto hover para la marca */
.navbar-brand:hover {
    color: #f0f0f0 !important;
}

/* Estilo de los links del menú de navegación */
.navbar-nav .nav-item .nav-link {
    color: #ddd;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.navbar-nav .nav-item.active .nav-link {
    color: #fff;
    background-color: #444;
    border-radius: 5px;
}

/* Estilo del botón toggler para móviles */
.navbar-toggler {
    border-color: #fff;
}

.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(88, 88, 88, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Alinear contenido del menú a la derecha */
.navbar-collapse {
    justify-content: flex-end;
}

/* Estilo de los dropdowns */
.nav-item.dropdown {
    position: relative;
}

.dropdown-hover .dropdown-menu {
    display: none;
    background-color: #222;
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Estilo para los elementos dentro del dropdown */
.dropdown-item {
    color: #000000;
    padding: 10px 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #444;
    color: #fff;
    border-radius: 5px;
}

/* Indicador de dropdown */
.dropdown-toggle::after {
    content: '\25BC';
    margin-left: 5px;
    font-size: 0.6em;
}
/* Media Query for Mobile Screens */
@media (max-width: 768px) {

    /* Fix the navbar at the top on mobile screens */
    .navbar {
        position: absolute;
        top: 0;
        width: 100%;
        background-color: #000;
        transition: none;
        padding: 5px 0;
        /* Reduce padding to fit content better */
    }

    /* Ensure menu items align vertically */
    .navbar-nav {
        background-color: #000;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar-nav .nav-item {
        text-align: center;
        margin: 5px 0;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 12px;
        /* Reduce padding to make it more compact */
        font-size: 1.1rem;
        /* Adjust font size for better fit */
        display: block;
        width: 100%;
    }

    /* Dropdown on mobile screens */
    .dropdown-menu {
        background-color: #000;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .dropdown-item {
        color: #ddd;
        padding: 12px;
        /* Reduced padding for better fit */
        width: 100%;
        text-align: left;
    }

    .dropdown-item:hover {
        background-color: #444;
        color: #fff;
    }

    /* Toggler icon for mobile screens */
    .navbar-toggler {
        padding: 6px 10px;
        /* Smaller padding for better fit */
        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(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    /* General font sizing adjustments for mobile */
    .navbar-brand,
    .navbar-nav .nav-link {
        font-size: 1rem;
        /* Slightly smaller font size for better fit */
    }

    /* Adjust dropdown links */
    .dropdown-menu .dropdown-item {
        font-size: 1rem;
        /* Smaller font size for better readability */
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
