/* Styles for the custom navbar */
.navbar-custom {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
}

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


.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}


.no-arrow::after {
    display: none !important;
}

.navbar-custom .navbar-nav {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos en el centro */
}

.navbar-custom .navbar-nav .nav-item {
    margin-right: 2rem;
}

.navbar-custom .nav-link {
    color: white !important;
    position: relative;
    text-decoration: none; /* Eliminamos el subrayado predeterminado */
    transition: color 0.3s ease; /* Transición para el color del texto */
}

.navbar-custom .nav-link::after {
    color: white;
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Controla qué tan abajo quieres la línea (ajústalo según sea necesario) */
    width: 100%;
    height: 2px; /* Grosor de la línea */
    background-color: var(--primary-color);
    transform: scaleX(0); /* Inicialmente la línea está escondida */
    transform-origin: right;
    transition: transform 0.3s ease; /* Transición suave */
}

.navbar-custom .nav-link:hover {
    color: white;
}

.navbar-custom .nav-link:not(.remove-line):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Styles for the "Registrar-se" button */
.navbar-custom .btn-danger {
    padding: 1rem 2rem !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: unset;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}


.navbar-custom .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0063c4;
    z-index: -1;
    transition: all 0.5s ease;
}

.navbar-custom .btn-danger:hover::before {
    left: 0;
}

.navbar-custom .btn-danger:hover {
    color: white;
    border-color: #0063c4;
}

.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Styles for the Language Selector */
.dropdown-menu {
    border-radius: 0 !important;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.dropdown-menu {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1201px) {
    .navbar-custom .navbar-brand img {
        height: 60px;
    }

    .navbar-custom .navbar .nav-link {
        font-size: 10px !important; /* Tamaño más pequeño para móviles */
        margin-right: 20px; /* Reducir espacio entre enlaces */
    }

    .nav-link {
        font-size: 14px !important; /* Tamaño más pequeño para móviles */
    }

    .navbar-custom .navbar .btn {
        font-size: 10px; /* Texto más pequeño en botones */
        padding: 8px 12px; /* Reducir padding */
    }

    .navbar-custom .navbar .dropdown-menu {
        font-size: 10px; /* Tamaño más pequeño para el menú desplegable */
    }

    /* Reducir espacio entre los items */
    .navbar-custom .navbar-nav .nav-item {
        margin-right: 20px; /* Espacio horizontal entre items */
    }

    /* Reducir padding interno de los enlaces */
    .navbar-custom .navbar-nav .nav-link {
        padding: 8px 10px; /* Menor espacio interno */
    }

    /* Reducir espacio de botones */
    .navbar-custom .navbar-nav .btn {
        margin-right: 20px !important; /* Menor separación entre botones */
        padding: 8px 12px; /* Menor espacio interno */
    }
}