/* ===== NAVBAR DE ESCRITORIO ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(1, 2, 3, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 max(env(safe-area-inset-right), 22px) 0 max(env(safe-area-inset-left), 22px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: 8dvh;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    will-change: height;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
     font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
    font-weight: 700; /* Bold */
}



.navbar-main {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.logo img {
    width: 180px;
    object-fit: contain;
}

.logo p {
    color: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Lexend', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 20px;
    padding: 0;
}

.navbar nav {
    display: flex;
    align-items: center;
    height: 100%;
}

ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

li a {
    color: #f5f5f7;
    text-decoration: none;
    font-weight: 700; /* Cambiar de 400 a 700 */
    font-size: 0.875rem;
    padding: 0 12px;
    display: flex;
    align-items: center;
    height: 8dvh;
    transition: color 0.2s ease;
}

li a:hover {
    color: #0a84ff;
}

/* Dropdown con expansión vertical */
.dropdown {
    position: relative;
}

.dropdown-area {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-30px);
    transition: max-height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1),
                opacity 0.35s cubic-bezier(0.28, 0.11, 0.32, 1) 0.15s,
                transform 0.35s cubic-bezier(0.28, 0.11, 0.32, 1) 0.15s;
    will-change: max-height, opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    justify-content: flex-start;
    padding-left: max(env(safe-area-inset-left), 22px);
}

.menu-col > *:last-child {
    padding-bottom: 1rem;
}

.navbar.expanded {

    height: 18dvh;    
}

.dropdown-area.active {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-content-expanded {
    display: flex;
    gap: 60px;
    padding: 0;
}

.dropdown-content-expanded.hidden {
    display: none;
}

.menu-col {
    min-width: 140px;
}

.menu-col h4 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    color: #f5f5f7;
    font-weight: 600;
    letter-spacing: 0.013em;
}

.menu-col a {
    display: block;
    color: #d1d1d6;
    padding: 6px 0;
    text-decoration: none;
    font-size: 1rem;
    margin: 0 0 2px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.menu-col a:hover {
    color: #0a84ff;
}

/* ===== NAVBAR MÓVIL ===== */

.mobile-navbar {
    display: none;
}

.mobile-navbar-top {
    height: 8dvh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.mobile-logo img {
    height: 28px;
    display: block;
}

.hamburger {
    width: 28px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 22px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.25s ease;
}

.mobile-menu.open {
    padding-top: 12px;
    padding-bottom: 12px;
    height: auto;
    opacity: 1;
    overflow: visible;
}

.mobile-menu a {
    color: #f5f5f7;
    font-size: 1rem;
    text-decoration: none;
}

@media (max-width: 468px) {
    .navbar,
    .navbar * {
        display: none !important;
        pointer-events: none !important;
    }

    .mobile-navbar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background-color: rgba(1, 2, 3, 0.75);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        z-index: 2000;
        box-sizing: border-box;
        padding: 0 16px;
    }
}

/* Mobile landscape */
@media (max-width: 767px) and (orientation: landscape) {
    .navbar.expanded {
        height: 35dvh;
    }
}

/* Tablet portrait (iPad, Xiaomi Pad, etc) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar.expanded {
        height: 25dvh;
    }
}

/* Tablet landscape (768px-1366px) */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .navbar.expanded {
        height: 35dvh;
    }
    .navbar {
        height: 15dvh;
    }
}


