html {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

#nav {
    height: 60px;
    width: 100%;
    padding: 0;
    position: fixed;
    top: 0;
    z-index: 100000;
    background: rgb(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ecf4d5;
}

#nav-logo {
    padding: 0;
}

#nav-logo>img {
    height: 60px;
}
.menu{
    border: none !important;
}

#nav-container {
    max-width: 1900px;
}

#nav-search {
    border-bottom: 1px solid #ecf4d5;
    color: #ecf4d5;
    font-family: 'Zodiak', serif;
}

#nav-search>button {
    all: unset;
    padding-bottom: 5px;
    padding-right: 5px;
}

#nav-search>input {
    all: unset;
    width: 300px;
    padding-bottom: 5px;
    padding-left: 10px;
}

#nav-search>input::placeholder {
    color: #ecf4d5;
    opacity: 30%;
}

#nav-user {
    height: 60px;
    margin: 0;
    padding: 0;
    min-width: 370px;
    display: flex;
    justify-content: flex-end;
}

#nav-user>ol {
    height: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-buttons {
    padding: 5px 20px;
    font-weight: 500;
    background: transparent;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    border: 2px solid #ecf4d5;
    border-radius: 0.375rem;
    z-index: 1;
    color: #ecf4d5;
    margin-left: 10px;
    text-decoration: none;
    font-family: 'Zodiak', serif;
    margin-right: 10px;
}

.user-buttons:after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    direction: rtl;
    z-index: -1;
    background: #ecf4d5;
    transition: all 0.3s ease;
}

.user-buttons:hover {
    color: #393e46;
}

.user-buttons:hover:after {
    left: auto;
    right: 0;
    width: 100%;
}

.user-buttons:active {
    top: 2px;
}

#navbarSupportedContent {
    width: 100%;
    justify-content: space-between;
    background: transparent;
}

#navegation>li>a>svg {
    color: #ecf4d5;
    width: 26px;
    height: 26px;
    transition: all 0.2s ease;
}

#navegation>li>a:hover svg {
    color: #9Ad0c2;
}

#navegation>li>a:active svg {
    transform: scale(1.3);
}

#navegation {
    display: flex;
    gap: 25px;
}

.nav-item>a>p {
    padding-left: 15px;
    color: #ecf4d5;
}


.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #9Ad0c2;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

.hover-underline-animation.left::after {
    transform-origin: bottom right;
}

.hover-underline-animation.left:hover::after {
    transform-origin: bottom left;
}

.hover-underline-animation.center::after {
    transform-origin: bottom center;
}

.hover-underline-animation.center:hover::after {
    transform-origin: bottom center;
}

.hover-underline-animation.right::after {
    transform-origin: bottom left;
}

.hover-underline-animation.right:hover::after {
    transform-origin: bottom right;
}

.menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 60px;
}

.menu>svg {
    height: 50px;
    width: 50px;
}

.line {
    fill: none;
    stroke: #ecf4d5;
    stroke-width: 6;
    height: 60px;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}

.line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
}

.line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}

.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}

.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
}

.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}

.userImg2 {
    width: 20px;
    height: 20px;
}

/* Scroll suave en todo el documento */
html {
    scroll-behavior: smooth;
}

/* Personalización del scrollbar */
::-webkit-scrollbar {
    width: 10px;
    /* Ancho del scrollbar */

}

::-webkit-scrollbar-track {
    background: #1f1f1f;
    /* Color de fondo del track */
}

::-webkit-scrollbar-thumb {
    background: #9ad0c2;
    /* Color de la barra */
    border-radius: 5px;
    /* Bordes redondeados */
    border: 2px solid #1f1f1f;
    /* Espaciado entre el thumb y el track */
}

::-webkit-scrollbar-thumb:hover {
    background: #78b9a9;
    /* Color cuando se pasa el mouse */
}

/* Ajustes para contenedores específicos */
.my-scroll-container {
    scroll-behavior: smooth;
    /* Scroll suave solo para un contenedor */
    overflow-y: scroll;
    /* Permitir scroll vertical */
}

.user-button-2>svg {
    width: 25px;
    height: 25px;
    color: #ecf4d5;
}

.nav-item {
    position: relative;
}

.nav-item a.user-button-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ecf4d5;
}

.dropdown-item {
    padding: 10px 20px;
    font-family: 'Zodiak', serif;
    color: #ecf4d5 !important;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: #9ad0c2 !important;
    color: #393e46 !important;
    cursor: pointer;
}

.nav-item ul.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #393e46;
    list-style: none;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 200px;
}

.nav-item:hover ul.dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-title {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #9ad0c2;
    border-bottom: 1px solid #ecf4d5;
    margin-bottom: 5px;
}

#nav-user>ol>li>a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#imgUser2 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 10000;
    overflow: hidden;
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: pointer;
}

.nav-link:hover svg {
    padding-bottom: 15px;
}

.nav-link p {
    display: block;
    position: absolute;
    left: 30%;
    top: 65%;
    font-size: 13px;
    width: 70px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    font-family: 'Zodiak', serif;
}

.nav-link:hover p {
    opacity: 1;

}

@media (max-width: 1050px) {
    #nav-user>ol>li a {
        margin: 0;
    }

    #navegation>li>a {
        height: 40px;
    }

    #navegation>li>a>svg {
        width: 20px;
        height: 50px;
        padding-bottom: 20px;
    }

    .nav-link:hover svg {
        padding-bottom: 15px;
        opacity: 0;
    }

    .nav-link p {
        display: block;
        position: absolute;
        left: 30%;
        top: 65%;
        font-size: 15px;
        width: 70px;
        text-align: center;
        opacity: 0;
        transition: all 1s ease;
        transform: translate(-50%, -80%);
    }

    .nav-link:hover p {
        opacity: 1;
    }

}

@media (max-width: 1190px) {
    #setTable {
        font-size: 0.65rem;
    }

    #nav-user {
        justify-content: end;
        width: 100%;
        min-width: auto;
    }

    #navegation {
        margin-left: 22px;
    }

}

@media (max-width: 991px) {

    #nav {
        backdrop-filter: unset;
        -webkit-backdrop-filter: unset;
        /* Para soporte adicional */
        border-bottom: 0px;
    }

    #nav-container {
        border-bottom: 1px solid #ecf4d5;
        background: rgb(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
    }

    #nav-search>input {
        width: 100%;
        background: rgb(0, 0, 0, 0);
    }

    .navbar-nav {
        align-items: start;
    }

    #nav-user {
        justify-content: start;
        width: 100%;
        min-width: 300px;
    }

    #nav-user ol {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #nav-user ol>li {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-item {
        width: 110px;
    }

    .nav-item>a>p {
        display: flex;
        margin: 0;
    }

    .nav-item:nth-child(1) {
        padding-top: 20px;
    }

    .nav-item>a {
        display: flex;
        flex-direction: row;
        padding-left: 5px;
    }

    #nav-search {
        border-bottom: 1px solid #ecf4d5;
        color: #ecf4d5;
        padding-top: 20px;
        font-size: 18px;
    }

    .hover-underline-animation::after {
        transform-origin: bottom right;
    }

    .hover-underline-animation:hover::after {
        transform-origin: bottom left;
    }

    .navbar-toggler-icon {
        background-image: url('/img/menu.png');
    }

    .navbar-toggler {
        border: 0px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .nav-link:hover svg {
        opacity: 1;
    }

    .nav-link p {
        display: block;
        position: absolute;
        left: 30%;
        top: 65%;
        font-size: 15px;
        width: 80px;
        text-align: center;
        opacity: 1;
        transition: all 1s ease;
        transform: translate(-20%, -65%);
    }

    .nav-link:hover p {
        opacity: 1;
    }
    .user-buttons{
        margin-right: 20px;
    }

}