/* Premium Header Navigation Dropdowns */

.header-dropdown-content {
    background: rgba(18, 18, 20, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    min-width: 220px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    height: auto !important;
}

.header-dropdown-content li {
    min-height: auto !important;
    background: transparent !important;
    transition: background 0.3s ease;
}

.header-dropdown-content li a {
    color: #ffffff !important;
    padding: 14px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    height: auto !important;
    line-height: normal !important;
    transition: all 0.3s ease !important;
}

.header-dropdown-content li a:hover {
    background: rgba(101, 31, 255, 0.1) !important;
    color: #b388ff !important;
}

.header-dropdown-content li a i {
    color: #651fff !important;
    margin: 0 !important;
    font-size: 20px !important;
    transition: color 0.3s ease;
}

.header-dropdown-content li a:hover i {
    color: #b388ff !important;
}

/* Fix materialize default list items */
.header-dropdown-content li:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Materialize desktop navbar alignment fixes */
.app-bar .main-menu > li {
    position: relative;
}

.app-bar .main-menu > li > a.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar colapsables premium styles */
.mobile-nav .collapsible-header {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding-left: 16px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav .collapsible-header i {
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
}

.mobile-nav .collapsible-body {
    border: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 0 !important;
}

.mobile-nav .collapsible-body li a {
    padding-left: 32px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
}

.mobile-nav .collapsible-body li a.active {
    color: #b388ff !important;
    background: rgba(101, 31, 255, 0.1) !important;
}

/* Fix logo squishing / aspect ratio and alignment on desktop navbar */
.app-bar .logo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.app-bar .logo a, .app-bar .logo-main {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.app-bar .logo-main img {
    width: auto !important;
    height: 38px !important;
    max-height: 38px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

/* Footer logo custom layout to prevent squishing and improve alignment */
footer.footer-sitemap .logo-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

footer.footer-sitemap .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    width: auto !important;
    margin-bottom: 10px !important;
}

footer.footer-sitemap .logo-main {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    width: auto !important;
}

footer.footer-sitemap .logo-main img {
    height: 44px !important; /* Slightly taller for clear readability of logo text */
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
}

footer.footer-sitemap .logo-area p.body-2 {
    margin-top: 15px !important;
    line-height: 1.7 !important;
}

.theme--dark footer.footer-sitemap .logo-area p.body-2 {
    color: rgba(255, 255, 255, 0.65) !important;
}

.theme--light footer.footer-sitemap .logo-area p.body-2 {
    color: rgba(0, 0, 0, 0.65) !important;
}


/* Fix contrast on "Pruébalo Gratis" header button */
.user-menu a.primary-light {
    color: #ffffff !important;
    background-color: #651fff !important;
    font-weight: 700 !important;
}

/* Fix contrast on "Acceder" button in light/dark themes */
.theme--dark .user-menu a.btn-acceder {
    color: #ffffff !important;
}

.theme--light .user-menu a.btn-acceder {
    color: #1e1e1e !important;
}

@media (max-width: 992px) {
    .app-bar .logo {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        min-height: 56px !important; /* Match mobile navbar height */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .app-bar .logo-main {
        display: flex !important;
        align-items: center !important;
    }

    .app-bar .logo-main img {
        height: 28px !important; /* Adjusted to leave vertical spacing in 56px bar */
        max-height: 28px !important;
        max-width: 130px !important;
        width: auto !important;
        object-fit: contain !important;
    }
}
