/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

a.no-link {
    text-decoration: none;
    color: #333;
}


/* HEADER */
.header {
    background: linear-gradient(134deg, black 0%, black 13%, #0c395c 68%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 75px;
    width: auto;
}

/* NAVEGACIÓN DESKTOP ESTILO ANDROID */
#desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-family: 'Titillium Web', sans-serif;
}

#desktop-nav .nav-item {
    position: relative;
}

#desktop-nav .nav-item>a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 16px;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

#desktop-nav .nav-item>a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#desktop-nav .nav-item.has-dropdown>a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

#desktop-nav .nav-item.has-dropdown:hover>a::after {
    transform: rotate(180deg);
}

/* MENÚ DESPLEGABLE ESTILO ANDROID */
#desktop-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #8881814d;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    min-width: 200px;
    z-index: 1001;
    backdrop-filter: blur(3px);
    padding: 8px 0;
}

#desktop-nav .nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

#desktop-nav .dropdown-item {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

#desktop-nav .dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 65%;
    height: 2px;
    background-color: #2c4eab;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#desktop-nav .dropdown-item:hover::after {
    transform: scaleX(1);
}


/* NAVEGACIÓN MÓVIL ESTILO CAJÓN */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    transform: translateX(320px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px 2dvh;
    background-color: #0c395c;
    color: white;
}

.drawer-logo {
    height: 50px;
    width: auto;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.drawer-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.nav-section {
    border-bottom: 1px solid #f0f0f0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.nav-item.single-item {
    cursor: pointer;
}

.nav-item .material-icons {
    margin-right: 32px;
    color: #666;
}

.expand-icon {
    transition: transform 0.2s ease;
}

.nav-item.active .expand-icon {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.nav-submenu.open {
    max-height: 500px;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px 12px 72px;
    color: #555;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.submenu-item .material-icons {
    margin-right: 32px;
    font-size: 20px;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    #desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-drawer {
        display: none;
    }

    .drawer-backdrop {
        display: none;
    }
}