body {
    font-family: var(--font-primary) !important;
    min-height: 100%;
}
body.modal-open .btn-login,
body.modal-open .btn-demo {
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.4) !important;
    pointer-events: none;
}

#login_modal{top:150;} /**voy a usar el mismo modal le pongo 100 para q se ubique en el medio de la pantalla. */
#olvide_clave{
	position: fixed;
	top: 20%;
}
.marca-registrada-title {
    font-size: 1rem;
    vertical-align: super;
}
    /* TEMPORAL DPS SE SACA CUANDO NO ESTEN DESHABILITADOS */
.mega-menu a.is-disabled{
    pointer-events: none !important; 
    cursor: not-allowed;
    opacity: .45;
    text-decoration: none;
}
.mega-menu a.is-disabled:hover{
    color: inherit;
    background: none;
}

#header {
    position: sticky;
    top: 0;
    z-index: 99999;
    width: 100%;
}
.header.login-header {
    background-color: var(--fid-50);
    border: none;
}
.header.login-im-header {
    background-color: rgb(255, 253, 249);
    border: none;
}
.header {
    /* height: 6vh; */
    width: 100%;
    padding-left: 5vw;
    padding-right: 5vh;
    border-bottom: 1px solid var(--neutral-100);
    background-repeat: no-repeat;
    background-size: 100% 50%, 100% 50%; /* altura del fade arriba/abajo */
    background-color: #ffffff;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2vw;
    margin-left: 4vw;
}
.login-header .header-nav a,
.login-im-header .header-nav a {
    color: var(--fid-primary);
}
.header-nav a {
    color: var(--neutral-dark);
    text-decoration: none;
    cursor: pointer;
}
.header-nav .nav-item:hover {
    background-color: var(--fid-card);
}
.login-im-header .header-nav .nav-item:hover {
    background-color: var(--imperium-100);
}
.login-header .header-nav .nav-item:hover {
    background-color: var(--fid-200);
}
.nav-link.idioma-link {
    color: var(--neutral-dark);
    text-decoration: none;
    cursor: pointer;
}
.nav-link.idioma-link:hover {
    color: var(--fid-primary);
    font-weight: bold;
}
.mega-menu.mega-menu-idioma {
    width: 150px;
    padding: 12px 15px;
}
.idioma:hover .idioma-link,
.idioma:hover .idioma-link .bi-chevron-right {
    color: var(--fid-primary);
}
/* Rotar el chevron cuando hay hover sobre el contenedor idioma */
.idioma:hover .idioma-link .bi-chevron-right {
    transform: rotate(90deg);
}

/* Asegurar que el chevron tenga la transición */
.idioma-link .bi-chevron-right {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}
.idioma:hover .bi-chevron-right {
    transform: rotate(90deg);
}
.idioma:hover .mega-menu-idioma {
    display: block;
}
@media (hover: hover) and (pointer: fine) {
    .idioma:hover {
        background-color: var(--fid-card);
    }
}
/* =============================
   DESKTOP: hover real
============================= */
@media (hover: hover) and (pointer: fine) {
    .header-nav .nav-item:hover .nav-link .bi-chevron-right {
        transform: rotate(90deg);
    }
}

.header-nav .nav-link .bi-chevron-right {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .idioma-link:hover .bi-chevron-right {
        transform: rotate(90deg);
    }
}

.idioma-link:hover .bi-chevron-right {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.header-nav .nav-item:hover .nav-link {
    color: var(--fid-primary);
    font-weight: bold;
    text-decoration: underline;
}

.header .nav-item .nav-link:focus {
    color: var(--fid-primary);
    font-weight: bold;
    text-decoration: underline;
}

.nav-item {
    height: 5vh;
    display: flex;
    align-items: center;
}

.nav-arrow {
    font-size: 18px;
    color: #1f3042;
    margin-top: -2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ICON BUTTON */
.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d2dce7;
    background: #f7f9fb;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* OUTLINE BUTTON */
.btn-login {
    height: 4vh;
    border-radius: 24px;
    border: 1px solid var(--fid-200);
    background: rgba(95, 138, 180, 0.2);
    box-shadow: 0px 0px 8px var(--neutral-200) inset;
    color: var(--fid-primary);
    cursor: pointer;
}
.btn-login.login-im{
    background-color: var(--imperium-200);
    color: var(--imperium-500);
    box-shadow: none;
}
.btn-login.login-im:hover {
    background-color: var(--imperium-100);
    color: var(--imperium-500);
    text-decoration: underline;
    font-weight: bold;
    box-shadow: none;
    border: none;
}

.btn-login.active {
    background: var(--fid-primary);
    color: white;
    border: none;
    font-weight: bold;
    box-shadow: none;
}
.btn-login.active:hover{
    background: rgba(95, 138, 180, 0.2);
    color: var(--fid-primary);
}

.btn-login:hover {
    background-color: var(--fid-primary);
    color: white;
    text-decoration: underline;
    font-weight: bold;
    box-shadow: none;
}

/* PRIMARY BUTTON */
.btn-demo.login-page {
    background: rgba(95, 138, 180, 0.2);
    color: var(--fid-primary);
}
.btn-demo.login-page:hover {
    background-color: var(--fid-primary);
    color: white;
    box-shadow: none;
}
.btn-demo.login-page a:hover {
    color: white;
}
.btn-demo.login-im {
    background-color: var(--imperium-100);
    color: var(--imperium-500);
    box-shadow: none;
}
.btn-demo.login-im:hover {
    background-color: var(--imperium-200);
    color: var(--imperium-500);
    font-weight: bold;
    box-shadow: none;
    border: none;
}
.btn-demo {
    height: 4vh;
    border-radius: 24px;
    border: none;
    background-color: var(--fid-primary);
    color: white;
    cursor: pointer;
}
.btn-demo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}
.btn-demo:hover {
    background-color: rgba(95, 138, 180, 0.2);
    color: var(--fid-primary);
    font-weight: bold;
    box-shadow: 0px 0px 8px var(--neutral-200) inset;
    text-decoration: underline;
}
.btn-demo:hover {
    color: var(--fid-primary);
}

.btn-traducir {
    height: 2vh;
    color: var(--fid-primary);
    cursor: pointer;
}

.p2-medium {
    font-size: var(--p2-size);
    font-weight: var(--font-medium);
}

/* Contenedor del mega menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;

    width: 600px;
    background: #fff;
    border-radius: 10px;

    padding: 25px 30px;
    display: none;

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);

    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    animation: fadeIn 0.15s ease-out;
    z-index: 50;
}
.mega-menu-soluciones {
    width: 230px !important;
}
.mega-menu-soluciones a.active {
    color: var(--fid-primary);
}

/* Columnas internas */
.mega-col h4,
.mega-col h4 a {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #222;
}

.mega-col a {
    display: block;
    padding: 5px 0;
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

.mega-col a:hover {
    color: var(--fid-primary);
}

.mega-col a.active {
    color: var(--fid-primary);
}

/* Mostrar el menú */
.mega-trigger {
    position: relative;
}
.mega-trigger.activo > .mega-menu {
    display: grid;
}

/* Animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--fid-primary);
}
/* =========================================================
   BASE / ESTRUCTURA GENERAL
========================================================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    /* height: auto; */
    /* min-height: 64px; */
    height: var(--navbar-height);
    padding-left: 5vw;
    padding-right: 5vw;
}

.header-logo,
.header-actions {
    flex: 0 0 auto;
}

.header-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header-nav .nav-item {
    flex: 0 0 auto;
}

.HeaderLogoImg {
    height: 34px;
    max-height: 34px;
    max-width: 170px;
}

.header-nav .nav-link {
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
}

.mega-trigger {
    position: relative;
}

/* =========================================================
   NOTEBOOK / LAPTOP GRANDE (<=1500px)
========================================================= */
@media (max-width: 1500px) {
    .header {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    .HeaderLogoImg {
        max-height: 32px;
    }

    .header-nav {
        gap: 14px;
    }

    .header-nav .nav-link {
        font-size: 0.92rem;
        padding: 0.42rem 0.52rem;
    }
}

/* =========================================================
   NOTEBOOK / LAPTOP MEDIO (<=1280px)
========================================================= */
@media (max-width: 1280px) {
    .header {
        min-height: 60px;
    }

    .header-nav {
        gap: 10px;
    }

    .header-nav .nav-link {
        font-size: 0.88rem;
        padding: 0.38rem 0.46rem;
    }

    .header-nav .btn,
    .header-nav .btn-plataforma-pill,
    .header-nav .btn-plataforma-cta {
        padding: 0.42rem 0.6rem;
        font-size: 0.88rem;
    }
}

/* =========================================================
   NOTEBOOK COMPACTO (<=1200px) – sin hamburguesa
========================================================= */
@media (max-width: 1200px) {
    .header {
        padding-left: 2.5vw;
        padding-right: 2.5vw;
        gap: 10px;
    }

    .HeaderLogoImg {
        max-height: 30px;
    }

    .header-nav {
        gap: 8px;
    }

    .header-nav .nav-item.px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .header-nav .nav-item.py-2 {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .header-nav .nav-link {
        font-size: 0.9rem;
        padding: 0 !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-right: 0 !important;
    }

    .btn-login,
    .btn-demo {
        padding: 0.35rem 0.55rem !important;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* =========================================================
   TABLET / MOBILE DESKTOP (<=992px)
========================================================= */
@media (max-width: 992px) {
    .header {
        height: auto;
        min-height: 64px;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .HeaderLogoImg {
        height: 30px;
    }

    .btn-login,
    .btn-demo {
        height: auto;
        padding: 5px 12px;
    }

    .hamburger-btn {
        display: inline-flex;
    }

    .header-nav {
        display: none;
        margin-left: 0;
    }

    .header-actions .idioma {
        display: none;
    }

    .header-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        border-top: 1px solid #ddd;
        z-index: 2000;
        gap: 0;
    }

    .header-nav.mobile-open .nav-item {
        height: auto;
        width: 100%;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
    }

    .header-nav .nav-link {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        white-space: normal;
    }

    .mega-trigger {
        flex-direction: column;
        align-items: stretch;
    }

    .mega-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin-top: 10px;
        transform: none;
        display: none;
        grid-template-columns: 1fr;
    }

    .mega-trigger.activo > .mega-menu {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mega-menu-productos {
        width: 270px;
    }
}

/* =========================================================
   MOBILE (<=768px)
========================================================= */
@media (max-width: 768px) {
    .header-nav.mobile-open .nav-item {
        width: 100%;
        height: auto;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }
    .header-logo {
        width: 40%;
        justify-content: flex-start;
    }

    .header-logo a .HeaderLogoImg {
        height: 24px;
    }

    .header-actions {
        justify-content: flex-end;
        gap: 10px;
    }
}

/* =========================================================
   MOBILE SMALL (<=480px)
========================================================= */
@media (max-width: 480px) {
    .header-nav{
        margin-left: 0;
    }
    .header-logo a .HeaderLogoImg {
        height: 18px;
    }
    .hamburger-btn {
        font-size: 22px;
    }
    .btn-traducir {
        display: none;
    }
    .header-actions {
        gap: 6px;
    }

    .btn-login,
    .btn-demo {
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 18px;
    }

    .btn-traducir {
        font-size: 14px;
    }

    .header-nav.mobile-open .nav-item a {
        font-size: 14px;
    }

    .mega-col h4 {
        font-size: 14px;
    }

    .mega-col a {
        font-size: 13px;
    }
}

/* =========================================================
   DISPOSITIVOS TÁCTILES (sin hover real)
========================================================= */
@media (hover: none) and (pointer: coarse) {
    .header-nav .nav-item:hover {
        background: none;
    }

    .header-nav .nav-item:hover .nav-link {
        font-weight: normal;
        text-decoration: none;
    }

    .header-nav .mega-trigger.activo {
        background-color: var(--fid-card);
    }

    .header-nav .mega-trigger.activo .nav-link .bi-chevron-right {
        transform: rotate(90deg);
    }

    .header-nav .mega-trigger.activo .nav-link {
        font-weight: bold;
        text-decoration: underline;
        color: var(--fid-primary) !important;
    }
}
