/*
 * Menú móvil independiente para proyectos.php.
 * En escritorio se conservan todos los enlaces en horizontal.
 */
header.navbar.encabezado-andres,
header.navbar.encabezado-andres * {
    box-sizing: border-box;
}

header.navbar.encabezado-andres {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 84px;
    padding: 12px clamp(16px, 3vw, 42px);
    background: #263b5b;
}

header.navbar.encabezado-andres .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

header.navbar.encabezado-andres .logo img {
    display: block;
    width: 160px;
    max-height: 68px;
    height: auto;
    object-fit: contain;
}

header.navbar.encabezado-andres .menu {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 22px);
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
}

header.navbar.encabezado-andres .menu a {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 10px 0;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .35px;
    text-decoration: none;
    white-space: nowrap;
}

header.navbar.encabezado-andres .menu a:hover {
    color: #e8a4c9;
}

header.navbar.encabezado-andres .redes {
    display: flex;
    align-items: center;
    gap: 12px;
}

header.navbar.encabezado-andres .redes a {
    color: #fff;
    font-size: 19px;
}

header.navbar.encabezado-andres .menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

header.navbar.encabezado-andres .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

header.navbar.encabezado-andres .menu-toggle.activo span:first-child {
    transform: translateY(7px) rotate(45deg);
}
header.navbar.encabezado-andres .menu-toggle.activo span:nth-child(2) {
    opacity: 0;
}
header.navbar.encabezado-andres .menu-toggle.activo span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    header.navbar.encabezado-andres {
        min-height: 76px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
        padding: 9px 14px;
    }

    header.navbar.encabezado-andres .logo img {
        width: 130px;
        max-height: 54px;
    }

    header.navbar.encabezado-andres .menu-toggle {
        display: block !important;
        flex: 0 0 44px;
        margin-left: auto;
    }

    header.navbar.encabezado-andres .redes {
        display: none !important;
    }

    header.navbar.encabezado-andres .menu {
        display: none !important;
        position: static !important;
        flex: 0 0 calc(100% + 28px);
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        width: calc(100% + 28px) !important;
        height: auto !important;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        order: 10;
        margin: 9px -14px -9px !important;
        padding: 8px 22px 18px !important;
        background: #263b5b !important;
        box-shadow: 0 12px 24px rgba(0,0,0,.18);
    }

    header.navbar.encabezado-andres .menu.menu-abierto {
        display: flex !important;
    }

    header.navbar.encabezado-andres .menu a {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 14px 2px !important;
        color: #fff !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        text-align: left !important;
        white-space: normal !important;
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    header.navbar.encabezado-andres .menu a:last-child {
        border-bottom: 0;
    }
}
