﻿/* CSS (mobile-first) */
.header {
    position: fixed;
    z-index: 99999;
    width: 100%;
}

.nav {
    background-color: #01479B;
    color: #fff;
    font-family: AmsiProNarw-Ultra;
}

.nav__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.nav__brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
}

.nav__toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Menú oculto por defecto */
.nav__menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    height: 100vh;
    padding: 30px 20px;
    overflow: auto;
}
/* Ítems del menú */
.nav__item-dt {
    display: none
}

.nav__item a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 5px;
    color: #fff;
    text-decoration: none;
}

    .nav__item a:hover {
        background-color: #062b62;
    }
/* Estado “abierto” */
.nav__menu.open {
    display: block;
}

/* =========================
   Dropdowns en mobile
   ========================= */
.nav__dropdown .dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav__dropdown .dropdown-menu li a {
        padding: 0.6rem 1.5rem;
        gap: 10px;
        justify-content: start;
    }

/* Cuando abra el dropdown */
.nav__dropdown.open .dropdown-menu {
    display: block;
}

/* Ajuste de icono chevron */
.nav__dropdown .dropdown-toggle i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.nav__dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

/*---- Ancles Tycos y faqs ----*/
.nav__item-tycos {
}

.nav-liga {
    display: block;
}
/*---- Dropdowns ----*/
.nav__dropdown {
    margin-bottom: 10px;
}

.registro-dropdown-toggle {
    border-radius: 10px;
    background: linear-gradient(43deg, #109FFF 15.99%, #B7E2FF 124.28%);
    padding-left: 15px !important;
}

.nav-item-ident {
    display: flex;
    margin-left: 20px;
}

.ligatelmex-dropdown-toggle {
    border-radius: 10px;
    background: linear-gradient(180deg, #FF9D86 -52.42%, #FF3403 100%);
    padding-left: 15px !important;
}

.nav__dropdown .open .dropdown-menu li a {
}
/*---- Button acciones login registro ----*/
.nav__item-dt--buttons-accions {
    display: flex;
    gap: 10px;
}

.nav__item-dt--buttons-accions-button {
    min-width: 110px;
    text-align: center;
}

.nav__item-dt--buttons-accions-login {
    border-radius: 4px;
    border: 1px solid #9DDDF8;
    background-color: #0198F7;
}

.nav__item-dt--buttons-accions-registro {
    border-radius: 4px;
    border: 2px solid #FFF;
}

@media (min-width: 768px) {
}

/* ==== Desktop (-añadimos estilos sólo a partir de aquí) ====/ */
@media (min-width: 900px) {
    .nav__menu {
        padding: unset;
        overflow: auto;
    }

    .nav-item-ident {
        display: none;
        margin-left: 10px;
    }

    .nav {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #FD5D37;
    }

    .nav__toggle {
        display: none;
    }

    .nav__header {
    }

    .nav__menu {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        height: initial;
    }

    .nav__item-dt {
        display: block;
    }

    .nav__item a {
        text-align: center;
        justify-content: center;
    }

        .nav__item a:hover {
            background: transparent;
            text-decoration: underline;
        }

    .nav__dropdown {
        display: none;
        position: relative;
    }

    /*.nav__dropdown .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #FD5D37;
            min-width: 12rem;
            display: none;*/ /* se mostrará al hover */
    /*box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

            .nav__dropdown .dropdown-menu li a {
                padding: 0.75rem 1rem;
                border: none;
            }*/

    .nav__item-tycos {
        display: none;
    }

    .nav-liga {
        display: none !important;
    }
}
