﻿.header {
    display: flex;
    height: 84px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding: 0 10px;
    background: var(--P-AzulUltramar);
    position: fixed;
    width: 100%;
    z-index: 99999;
}

.main-container {
    padding-top: 84px;
}

.options-menu{
    display: flex;
    align-items: center;

    gap: 32px;
}


.default-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
}

.notificaciciones-nombre-container {
    display: flex;
    align-items: center;
    gap: 10px;
}



.options-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 0 0;
    backdrop-filter: blur(13.5px);
}

.hidden {
    opacity: 0;
    display: none;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 0;
    overflow: hidden;
}

.fade-in {
    opacity: 1;
    display: flex;
    transform: translateY(0);
    pointer-events: all;
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: auto;
}

.btn-logout {
    display: flex;
    gap: 4px;
}


.option-header {
    display: flex;
    height: 54px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subMenu-container {
    width: 100%;
    display: flex;
    justify-content: initial;
    gap: 10px;
    background: var(--P-AzulUltramar);
}

.option-subHeader {
    display: flex;
    height: 53px;
    padding: 6px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.img-foto-logo-nav {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    border: 2px solid var(--S-GrisTele);
}

.img-name-container {
    display: flex;
    gap: 6px;
    align-items: center;
}

.name-desktop {
    display: none;
}

.info-container-lg {
    display: none;
}

.user-dropdown-menu {
    position: absolute;
    top: 60px;
    right: 5px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 8px 0;
    min-width: 160px;
}

    .user-dropdown-menu a {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        text-decoration: none;
        color: #000000;
        font-weight: 500;
        cursor: pointer;
    }

        .user-dropdown-menu a:hover {
            background-color: #f2f2f2;
        }

.border-top-red {
    border-top: 2px solid var(--S-GrisTele);
}

@media (min-width: 320px) and (max-width: 720px) {
    .img-foto-logo-nav {
        display: none;
    }
}

@media (min-width: 720px) {
    .name-mobile {
        display: none;
    }

    .name-desktop {
        display: inline;
    }

    .info-container-lg {
        display: flex;
    }

    .default-header-container {
        display: none;
    }

    .options-header-container {
        display: flex !important;
        opacity: 1;
        transform: initial;
        height: initial;
        overflow: initial;
        pointer-events: initial;
        transition: initial;
    }

    .btn-menu {
        display: none;
    }

    .user-dropdown-menu {
        min-width: 220px;
    }
}




/* Mostrar menú móvil solo entre 320 y 720 */
@media (min-width:320px) and (max-width:720px) {

    .header{
        display: none !important;
    }
    .mmv-wrap {
        font-family: system-ui, Segoe UI, Roboto, Arial;
        position: relative;
        display: block
    }

    .mmv-appbar {
        display: flex;
        position: fixed;
        width: 100%;
        justify-content: space-between;
        height: 70px;
        background: var(--nav-bg);
        color: var(--nav-txt);
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 99999;
        padding: 0 8px;
    }

    

    .mmv-burger {
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        border-radius: 8px;
        display: grid;
        place-items: center;
        color: #fff
    }

    .mmv-burger-lines {
        display: block;
        position: relative;
        width: 22px;
        height: 2px;
        background: #fff
    }

        .mmv-burger-lines::before, .mmv-burger-lines::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            height: 2px;
            background: #fff
        }

        .mmv-burger-lines::before {
            top: -6px
        }

        .mmv-burger-lines::after {
            top: 6px
        }

    .mmv-title {
        color: #fff;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .mmv-spacer {
        width: 44px
    }

    .mmv-tabs-wrap {
        position: relative;
        background: var(--nav-bg);
        padding: 8px 0 10px
    }

    .mmv-tabs {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 0 8px
    }

        .mmv-tabs::-webkit-scrollbar {
            display: none
        }

    .mmv-tab {
        color: #fff;
        text-decoration: none;
        white-space: nowrap;
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid transparent;
        flex: 0 0 auto;
        opacity: .95;
        background: transparent
    }

        .mmv-tab.active {
            background: rgba(255,255,255,.14);
            border-color: rgba(255,255,255,.2);
            font-weight: 600
        }

    .mmv-more {
        position: relative;
        flex: 0 0 auto
    }

    .mmv-more-btn {
        color: #fff;
        background: rgba(255,255,255,.1);
        border: 0;
        border-radius: 999px;
        padding: 8px 10px;
        cursor: pointer
    }

    .mmv-dropdown {
        position: absolute;
        right: 8px;
        top: 40px;
        min-width: 220px;
        background: #fff;
        color: #111;
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(0,0,0,.18);
        display: none;
        overflow: hidden;
        z-index: 40
    }

        .mmv-dropdown.show {
            display: block
        }

        .mmv-dropdown a, .mmv-dropdown .dropdown-link {
            display: block;
            padding: 10px 12px;
            color: #111;
            text-decoration: none;
            background: #fff;
            width: 100%;
            text-align: left;
            border: 0
        }

            .mmv-dropdown a:hover, .mmv-dropdown .dropdown-link:hover {
                background: #f2f3f7;
                cursor: pointer
            }

    .dropdown-group {
        padding: 8px 0;
        border-top: 1px solid #ececf4
    }

        .dropdown-group:first-child {
            border-top: 0
        }

    .dropdown-header {
        font-weight: 700;
        font-size: 12px;
        color: #666;
        padding: 8px 12px
    }

    .mmv-fade {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 24px;
        pointer-events: none
    }

    .mmv-fade-left {
        left: 0;
        background: linear-gradient(90deg, rgba(38,16,90,1), rgba(38,16,90,0))
    }

    .mmv-fade-right {
        right: 0;
        background: linear-gradient(270deg, rgba(38,16,90,1), rgba(38,16,90,0))
    }

    .mmv-drawer {
        position: fixed;
        inset: 0;
        display: none;
        z-index: 90
    }

        .mmv-drawer.open {
            display: block
        }

    .mmv-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.35)
    }

    .mmv-panel {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 78%;
        background: var(--nav-bg);
        color: #fff;
        padding: 16px 12px 24px;
        box-shadow: 2px 0 16px rgba(0,0,0,.4)
    }

    .mmv-close {
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 22px
    }

    .mmv-panel h4 {
        margin: 4px 0 10px;
        font-size: 14px;
        opacity: .85
    }

    .mmv-panel ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 6px
    }

    .drawer-link {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 10px;
        border-radius: 8px;
        background: transparent;
        border: 0;
        text-align: left
    }

        .drawer-link:hover {
            background: var(--hover);
            cursor: pointer
        }

    .drawer-group details summary {
        cursor: pointer;
        padding: 10px;
        border-radius: 8px;
    }

    .drawer-group details[open] summary {
        background: rgba(255,255,255,.08)
    }

    .drawer-group details ul {
        padding: 6px 0 6px 10px
    }

    /* alturas base (ajústalas si tu appbar o tabs miden distinto) */
    :root {
        --mmv-appbar-h: 56px; /* altura de la barra morada superior */
        --mmv-tabs-h: 40px; /* altura de las tabs */
        --mmv-gap: 6px; /* pequeño gap bajo tabs */
    }

    /* evita que contenedores recorten el popover */
    .mmv-tabs-wrap {
        overflow: visible;
    }

    .mmv-tabs {
        overflow-x: auto;
        overflow-y: visible;
    }

    .mmv-more {
        position: relative;
        z-index: 2000;
    }

    /* dropdown base */
    .mmv-dropdown {
        display: none;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 14px 28px rgba(0,0,0,.24);
        overflow: hidden;
    }

        .mmv-dropdown.show {
            display: block;
        }

        /* ——— MODO FIJO: renderiza por encima de TODO ——— */
        .mmv-dropdown.force-fixed {
            position: fixed;
            right: 12px;
            top: calc(var(--mmv-appbar-h) + var(--mmv-tabs-h) + var(--mmv-gap));
            z-index: 100000; /* por encima de banners/sticky */
            max-height: 60vh; /* scroll interno si crece mucho */
            overflow: auto;
        }

            /* caret opcional */
            .mmv-dropdown.force-fixed::before {
                content: "";
                position: fixed;
                right: 36px; /* alinea con botón “Más” */
                top: calc(var(--mmv-appbar-h) + var(--mmv-tabs-h) - 6px);
                border: 8px solid transparent;
                border-bottom-color: #fff;
                filter: drop-shadow(0 -2px 2px rgba(0,0,0,.06));
                z-index: 100001;
            }

        /* items */
        .mmv-dropdown a, .mmv-dropdown .dropdown-link {
            display: block;
            padding: 10px 12px;
            color: #111;
            text-decoration: none;
        }

            .mmv-dropdown a:hover, .mmv-dropdown .dropdown-link:hover {
                background: #f2f3f7;
            }

    .dropdown-group {
        padding: 8px 0;
        border-top: 1px solid #ececf4
    }

        .dropdown-group:first-child {
            border-top: 0
        }

    .dropdown-header {
        font-weight: 700;
        font-size: 12px;
        color: #666;
        padding: 8px 12px
    }
}

@media (max-width:319px), (min-width:721px) {
    .mmv-wrap {
        display: none
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}
