/* ============================================================================
   NAVIGATION.CSS - Extraído de global.css
   MitikLive Frontend
   ============================================================================ */

/* ============================================================================
   HEADER - Sistema de navegación principal
   Versión limpia y consolidada - Sin  innecesarios
   ============================================================================ */

/* Header principal */
header.site {
    /* Fallback sólido + efecto glass en navegadores modernos */
    background: var(--surface-dark, var(--bg-dark));
    background: color-mix(in srgb, var(--surface-dark, var(--bg-dark)) 88%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    width: 100%;
    min-height: 64px;
}

header.site .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: visible; /* Importante para dropdowns */
}

header.site .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* Brand/Logo */
header.site .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

header.site .brand:hover {
    color: white;
}

header.site .brand .logo {
    width: 32px;
    height: 32px;
    background: var(--primary, var(--primary));
    border-radius: 6px;
    flex-shrink: 0;
}

/* Navegación */
header.site nav,
header.site .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

/* Links de navegación base */
header.site .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

header.site .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

header.site .nav-link.active {
    color: var(--primary-light, var(--indigo));
    background: rgba(99, 102, 241, 0.1);
}

header.site .nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
}

header.site .nav-link:hover i {
    opacity: 1;
}

/* Separador visual entre grupos */
.nav-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.5rem;
}

/* Spacer para empujar elementos a la derecha */
.nav-spacer {
    flex: 1;
}

/* ============================================================================
   BOTÓN LOGIN - Estilo outline elegante
   ============================================================================ */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.nav-login-btn i {
    font-size: 0.9rem;
}

/* ============================================================================
   DROPDOWN Y MEGA MENÚ
   ============================================================================ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}

/* Puente invisible: extiende el área hover del dropdown hasta el mega-menu */
.nav-dropdown:has(.mega-menu)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 30px;
    pointer-events: auto;
}

.nav-dropdown-trigger {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Focus visible para navegación por teclado (WCAG) */
header.site .nav-link:focus-visible,
header.site .brand:focus-visible,
.nav-dropdown-trigger:focus-visible,
.nav-btn-cta:focus-visible {
    outline: 2px solid var(--primary-light, var(--indigo));
    outline-offset: 2px;
}

.nav-dropdown-trigger i:first-child {
    color: var(--primary-light, var(--indigo));
    font-size: 0.9rem;
}

.nav-dropdown-trigger .dropdown-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown simple (para Recursos, etc.) */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--surface-dark, var(--bg-dark));
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 10000;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Puente invisible: cubre el gap entre trigger y menú para evitar flickering (solo desktop) */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    pointer-events: auto;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    border-radius: 6px;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-dropdown-menu a i,
.nav-dropdown-menu a i.fa-solid {
    width: 20px;
    min-width: 20px;
    text-align: center;
    color: var(--primary-light);
    font-size: 1rem;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-right: 8px;
}

.nav-dropdown-menu a:hover i {
    color: var(--primary-light, var(--indigo));
}

/* Iconos con colores distintivos en dropdowns (FA6) */
.nav-dropdown .nav-dropdown-menu a i.fa-book-open { color: var(--success); }
.nav-dropdown .nav-dropdown-menu a i.fa-file-lines { color: var(--info); }
.nav-dropdown .nav-dropdown-menu a i.fa-circle-question { color: var(--warning); }
.nav-dropdown .nav-dropdown-menu a i.fa-calculator { color: var(--violet); }
.nav-dropdown .nav-dropdown-menu a i.fa-coins { color: var(--warning); }
.nav-dropdown .nav-dropdown-menu a i.fa-file-invoice { color: var(--info); }

/* ============================================================================
   SELECTOR DE IDIOMA (reutiliza el patrón .nav-dropdown)
   ============================================================================ */
.lang-switcher-trigger .lang-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-switcher-trigger .lang-code {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Menú alineado a la derecha (el selector vive en el borde derecho del header) */
.lang-switcher-menu {
    left: auto;
    right: 0;
    min-width: 180px;
}

.lang-switcher-item .lang-flag {
    font-size: 1.1rem;
    line-height: 1;
    width: 22px;
    min-width: 22px;
    text-align: center;
}

.lang-switcher-item .lang-name {
    flex: 1;
}

/* Check del idioma activo, empujado al extremo derecho */
.lang-switcher-menu a i.lang-check {
    margin-left: auto;
    margin-right: 0;
    width: auto;
    min-width: 0;
    color: var(--success);
}

.lang-switcher-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 6px 0;
}

/* ============================================================================
   MEGA MENÚ AMPLIADO (estilo Fiverr)
   ============================================================================ */

/* Base (shared): only layout-neutral properties */
.mega-menu {
    transition: all 0.25s ease;
    z-index: 10000;
    overflow: hidden;
}

/* Desktop-only: positioning, visibility, show/hide animation */
@media (min-width: 769px) {
    .mega-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 980px;
        max-width: 95vw;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        overflow-x: hidden;
        background: var(--surface-dark, var(--bg-dark));
        border-radius: 16px;
        box-shadow: 0 25px 80px rgba(0,0,0,0.5);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        border: 1px solid rgba(255,255,255,0.28);
    }

    .nav-dropdown:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .mega-menu-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }

    .mega-menu-section {
        padding: 14px 14px;
        border-right: 1px solid rgba(255,255,255,0.06);
    }

    .mega-menu-section:last-child {
        border-right: none;
    }

    /* Fondo sutil por columna con el color de acento del propio icono.
       color-mix sobre las variables ya existentes (sin hardcode); degrada a
       transparente en navegadores sin soporte. No añade espacio. */
    .mega-menu-section:has(.section-icon.web)        { background: linear-gradient(180deg, color-mix(in srgb, var(--info) 7%, transparent), transparent 78%); }
    .mega-menu-section:has(.section-icon.apps)       { background: linear-gradient(180deg, color-mix(in srgb, var(--success) 7%, transparent), transparent 78%); }
    .mega-menu-section:has(.section-icon.software)   { background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 7%, transparent), transparent 78%); }
    .mega-menu-section:has(.section-icon.automation) { background: linear-gradient(180deg, color-mix(in srgb, var(--warning) 7%, transparent), transparent 78%); }
    .mega-menu-section:has(.section-icon.soporte)    { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 78%); }

    /* Hover: intensifica el mismo tinte de la columna */
    .mega-menu-section:has(.section-icon.web):hover        { background: linear-gradient(180deg, color-mix(in srgb, var(--info) 15%, transparent), color-mix(in srgb, var(--info) 3%, transparent)); }
    .mega-menu-section:has(.section-icon.apps):hover       { background: linear-gradient(180deg, color-mix(in srgb, var(--success) 15%, transparent), color-mix(in srgb, var(--success) 3%, transparent)); }
    .mega-menu-section:has(.section-icon.software):hover   { background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 15%, transparent), color-mix(in srgb, var(--violet) 3%, transparent)); }
    .mega-menu-section:has(.section-icon.automation):hover { background: linear-gradient(180deg, color-mix(in srgb, var(--warning) 15%, transparent), color-mix(in srgb, var(--warning) 3%, transparent)); }
    .mega-menu-section:has(.section-icon.soporte):hover    { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--accent) 3%, transparent)); }
}

/* Base mega-menu-section: only shared properties */
.mega-menu-grid {
    gap: 0;
}

/* ── Buscador global del sitio (mismo JS en MitikLive y Boost) ───────────────
   Desktop: input inline en el header. Móvil: lupa que despliega barra.
   Panel de resultados con el lenguaje del megamenú. */
.site-search {
    position: relative;
}
/* Buscador centrado en flujo flex: va entre dos .nav-spacer simétricos
   (ver layout.php) y con margin auto queda en el medio sin salirse del
   flujo — imposible que se solape a ningún ancho; se encoge solo. */
header.site .main-nav {
    min-width: 0;
}
header.site nav .nav-search-center {
    flex: 0 1 380px;
    min-width: 0;
    max-width: 380px;
    margin: 0 auto;
    justify-content: center;
}
header.site nav .nav-search-center .site-search {
    width: 100%;
    min-width: 0;
}
header.site nav .nav-search-center .site-search-input {
    width: 100%;
    min-width: 0;
}
.site-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 17px;
}
/* X de cerrar (solo móvil con campo vacío; en desktop nunca se muestra) */
.site-search-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
}
.site-search-input {
    width: 230px;
    padding: 10px 16px 10px 40px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2394a3b8'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") no-repeat 14px center / 15px 15px;
    color: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, width 0.25s ease;
}
.site-search-input::placeholder { color: rgba(148,163,184,0.9); }
.site-search-input:focus { border-color: var(--primary, #6366f1); }
.site-search-input::-webkit-search-cancel-button { cursor: pointer; }
.site-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 94vw);
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: var(--surface-dark, var(--bg-dark));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    padding: 8px;
    z-index: 10000;
}
.site-search-panel[hidden] { display: none; }
.site-search-group-title {
    padding: 10px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}
.site-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}
.site-search-item.is-active, .site-search-item:hover { background: rgba(255,255,255,0.07); }
.site-search-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,0.14);
    color: var(--primary-light, #a5b4fc);
    font-size: 15px;
}
.site-search-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-search-title { font-size: 14px; font-weight: 600; }
.site-search-title mark, .site-search-desc mark {
    background: rgba(99,102,241,0.35);
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}
.site-search-desc {
    font-size: 12px;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-search-empty { padding: 18px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.site-search-empty span { opacity: 0.65; font-size: 13px; }

.site-search-mobile { display: none; }
@media (max-width: 768px) {
    .site-search-mobile { display: block; }
    .site-search-toggle { display: inline-flex; }
    .site-search-field { display: none; }
    .site-search.is-open .site-search-field {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        left: 8px;
        right: 8px;
        z-index: 10000;
        background: var(--surface-dark, var(--bg-dark));
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: 16px;
        padding: 8px;
    }
    .site-search.is-open .site-search-input { flex: 1; min-width: 0; width: auto; }
    .site-search.is-open .site-search-close:not([hidden]) { display: inline-flex; }
    .site-search .site-search-panel {
        position: fixed;
        left: 8px;
        right: 8px;
        width: auto;
        transform: none;
    }
}

.mega-menu-section {
    background: transparent;
    transition: background 0.2s ease;
}

/* Header de sección con imagen */
.mega-menu-section-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.mega-menu-section-header .section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 1.05rem;
    margin: 0 8px 0 0;
}

.mega-menu-section-header .section-icon.web {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: var(--info);
}

.mega-menu-section-header .section-icon.apps {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: var(--success);
}

.mega-menu-section-header .section-icon.software {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--violet);
}

.mega-menu-section-header .section-icon.automation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: var(--warning);
}

.mega-menu-section-header .section-icon.soporte {
    background: linear-gradient(135deg, rgba(19, 193, 172, 0.2), rgba(19, 193, 172, 0.1));
    color: var(--accent);
}

.mega-menu-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, var(--text-primary));
    margin: 0 0 4px 0;
}

.mega-menu-section-header h4 {
    display: inline;
    vertical-align: middle;
    margin: 0;
}

.mega-menu-section .section-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted, var(--admin-secondary));
    margin: 4px 0 0 0;
    text-align: center;
}

/* Links de servicios */
.mega-menu-section .service-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-section .service-link {
    display: block;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    margin: 0 -10px;
    position: relative;
}
.mega-menu-section .service-link:not(.featured) {
    padding-left: 22px;
}
.mega-menu-section .service-link:not(.featured)::before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--accent);
}

.mega-menu-section .service-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding-left: 14px;
}

.mega-menu-section .service-link.featured {
    color: var(--primary-light);
    font-weight: 600;
}

.mega-menu-section .service-link.featured:hover {
    color: var(--link-hover);
}

/* Franja destacada reparación PC (base desktop; en móvil la ajusta el
   @media max-width:768px). Centrada y con fondo para que resalte. */
.mega-menu-repair {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 12px 24px;
    text-decoration: none;
    background-color: #2a2350;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 32%, transparent), color-mix(in srgb, var(--violet) 20%, transparent));
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease;
}
.mega-menu-repair:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 42%, transparent), color-mix(in srgb, var(--violet) 28%, transparent));
}
.mega-menu-repair .repair-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
    color: var(--accent);
}
.mega-menu-repair .repair-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.mega-menu-repair .repair-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}
.mega-menu-repair .repair-text span {
    font-size: 0.75rem;
    color: var(--text-muted, var(--text-muted));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-menu-repair .repair-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: white;
    transition: filter 0.2s ease;
}
.mega-menu-repair:hover .repair-cta {
    filter: brightness(1.15);
}
.mega-menu-repair:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* Sección especial MitikLive */
.mega-menu-mitiklive {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    grid-column: span 4;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mega-menu-mitiklive .mitik-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    text-align: center;
}

.mega-menu-mitiklive .mitik-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-mitiklive .mitik-logo i {
    font-size: 1.5rem;
    color: white;
}

.mega-menu-mitiklive .mitik-text h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.mega-menu-mitiklive .mitik-text p {
    font-size: 0.75rem;
    color: var(--text-muted, var(--text-muted));
    margin: 0;
}

.mega-menu-mitiklive .platform-badges {
    display: flex;
    gap: 8px;
}

.mega-menu-mitiklive .platform-badges a.platform-badge {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    background: none !important;
    background-image: none !important;
    border-radius: 8px;
    overflow: visible;
    opacity: 0.85;
    transition: all 0.2s ease;
    padding: 0;
}

.mega-menu-mitiklive .platform-badges a.platform-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.mega-menu-mitiklive .platform-badges a.platform-badge img {
    display: block;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px;
}

.mega-menu-mitiklive .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mega-menu-mitiklive .btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Grid de marcas del ecosistema (Boost, Fans, AI) */

/* Hide inline brand icon — card already has .brand-icon */

/* ============================================================================
   BOTÓN CTA - Descargar (MUY destacado)
   ============================================================================ */
.nav-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 50%, var(--gradient-green) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 
                0 0 0 0 rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: cta-glow 2s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6), 0 0 0 4px rgba(16, 185, 129, 0.1); }
}

.nav-btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.nav-btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: white;
    animation: none;
}

.nav-btn-cta:hover::before {
    left: 100%;
}

.nav-btn-cta i {
    font-size: 1rem;
}

/* ============================================================================
   BOTONES CTA MARCA — Shared base (DRY: Boost + Fans usan misma estructura)
   Cada botón define --_brand-* scoped para colores propios
   ============================================================================ */

/* Diferenciación visual "Mitik" (light) + "Brand" (bold) */
.nav-ai-brand {
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ============================================================================
   PRICE TAGS en dropdown
   ============================================================================ */
.price-tag {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-lighter, #a5b4fc);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: auto;
    text-transform: uppercase;
}

.price-tag.hot {
    background: linear-gradient(135deg, var(--danger), #f97316);
    color: white;
    animation: pulse-hot 2s infinite;
}

@keyframes pulse-hot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* ============================================================================
   USER AVATAR DROPDOWN - Menú de usuario estilo GitHub/Stripe
   ============================================================================ */
/* Avatar dentro del grupo centrado, separado visualmente */
header.site .main-nav > .user-avatar-dropdown {
    margin-left: 0.25rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary, var(--indigo));
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.user-avatar-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-dropdown .nav-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
}

/* Avatar: abre al pasar el ratón (como Productos/Recursos) vía la regla general
   .nav-dropdown:hover .nav-dropdown-menu. En móvil abre al tocar (clase .active,
   gestionada en main.js). */
.user-avatar-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.user-avatar-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-avatar-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-avatar-role {
    font-size: 0.7rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-avatar-logout-form {
    margin: 0;
}

.user-avatar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: none;
    width: 100%;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-avatar-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-light, var(--danger-lighter));
}

.user-avatar-logout i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    color: var(--danger, var(--danger));
    font-size: 1rem;
}

/* ============================================================================
   MENÚ HAMBURGUESA - Solo móvil
   ============================================================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación X cuando está abierto */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================================
   HEADER MÓVIL - Área derecha con login/user + hamburguesa
   ============================================================================ */
.header-mobile-right {
    display: none;
    align-items: center;
    gap: 8px;
}

/* Botón login móvil */
.mobile-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary, var(--indigo));
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-login-btn:hover {
    background: var(--primary-dark, var(--primary));
    color: white;
    transform: translateY(-1px);
}

.mobile-login-btn i {
    font-size: 1rem;
}

/* Botón descargar móvil (verde) - oculto en desktop */
.mobile-download-btn {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.mobile-download-btn:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--gradient-green) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.mobile-download-btn i {
    font-size: 0.85rem;
}

/* Avatar móvil en header-mobile-right */
.header-mobile-right .user-avatar-dropdown {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.header-mobile-right .user-avatar-trigger {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.875rem;
    padding: 0;
    border-radius: 50%;
}

/* Nav links estilo unificado */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary, var(--text-secondary));
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Desktop only */
.desktop-only {
    display: flex;
}

/* Footer fijo móvil */
.mobile-nav-footer {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-footer .nav-btn-cta {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
}

/* Links marca en menú móvil lateral (ocultos en desktop) */

/* ============================================================================
   RESPONSIVE - NAV COMPACTO (ocultar texto, solo iconos)
   ============================================================================ */
@media (max-width: 1100px) and (min-width: 769px) {
    header.site .main-nav {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    header.site .main-nav .nav-text {
        display: none;
    }

    header.site .nav-link,
    header.site .nav-dropdown-trigger {
        padding: 0.5rem 0.625rem;
    }

    header.site .nav-btn-cta {
        padding: 0.5rem 0.75rem;
    }

    header.site .nav-btn-cta .nav-text {
        display: none;
    }

    .nav-separator,
    .nav-spacer {
        display: none;
    }
}

/* ============================================================================
   RESPONSIVE - TABLET Y MÓVIL
   ============================================================================ */
@media (max-width: 768px) {
    /* Mostrar área derecha móvil */
    .header-mobile-right {
        display: flex;
        order: 2;
    }

    /* Mostrar botón descargar móvil */
    .mobile-download-btn {
        display: flex;
        order: 1;
        margin-left: auto;
        margin-right: 8px;
    }

    /* Ocultar elementos desktop */
    .desktop-only {
        display: none !important;
    }

    /* Ocultar texto en nav en móvil pequeño */
    .mobile-login-btn span {
        display: inline;
    }
    
    /* Mostrar hamburguesa */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    /* Header más compacto */
    header.site {
        padding: 0.75rem 0;
        min-height: auto;
    }
    
    header.site .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    
    /* Brand más pequeño */
    header.site .brand {
        font-size: 1.1rem;
        gap: 0.5rem;
        order: 1;
    }
    
    header.site .brand .logo {
        width: 28px;
        height: 28px;
    }
    
    /* Nav principal - menú lateral estilo frosted glass (adaptado dark) */
    header.site .main-nav {
        position: fixed;
        top: 60px;
        right: 0;
        width: 50vw;
        min-width: 260px;
        height: calc(100vh - 60px);
        background:
            linear-gradient(180deg, rgba(30, 41, 59, 0.97) 0%, rgba(13, 20, 38, 0.98) 80px),
            linear-gradient(180deg, rgba(13, 20, 38, 0.98) 0%, rgba(10, 16, 32, 1) 100%);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 8px 0;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Scrollbar estilo Boost */
    header.site .main-nav::-webkit-scrollbar { width: 4px; }
    header.site .main-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
    header.site .main-nav::-webkit-scrollbar-track { background: transparent; }

    header.site .main-nav.active,
    header.site .main-nav.open {
        transform: translateX(0);
    }
    
    /* Links en menú móvil - Estilo Boost premium (dark) */
    header.site .main-nav > a,
    header.site .main-nav > .nav-btn,
    header.site .main-nav > .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        margin: 2px 12px;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
    }

    /* Icon badges estilo Boost */
    header.site .main-nav > a i,
    header.site .main-nav > .nav-link i {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 11px;
        opacity: 1;
        transition: all 0.25s ease;
    }

    header.site .main-nav > a:hover,
    header.site .main-nav > a:active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: white;
        transform: translateX(4px);
    }

    header.site .main-nav > a:hover i,
    header.site .main-nav > a:active i {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: rgba(var(--primary-rgb), 0.3);
        color: var(--primary-light);
    }

    /* Active state premium con barra lateral */
    header.site .main-nav > a.active,
    header.site .main-nav > .nav-link.active {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.08));
        border-color: var(--primary);
        color: var(--primary-light);
        font-weight: 700;
        box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    header.site .main-nav > a.active::before,
    header.site .main-nav > .nav-link.active::before {
        content: '';
        position: absolute;
        left: -12px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 22px;
        background: linear-gradient(180deg, var(--primary), var(--primary-light));
        border-radius: 0 3px 3px 0;
        box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.6);
    }

    header.site .main-nav > a.active i,
    header.site .main-nav > .nav-link.active i {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        border-color: transparent;
        color: white;
        box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
    }

    /* Dropdown en móvil - estilo Boost */
    .nav-dropdown {
        width: auto;
        margin: 2px 12px;
        flex-direction: column;
    }

    /* Excluir avatar del header móvil de los estilos sidebar */
    .header-mobile-right .user-avatar-dropdown {
        margin: 0;
        flex-direction: row;
    }

    .nav-dropdown-trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid transparent;
        background: transparent;
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    /* Avatar trigger: mantener forma circular en móvil */
    .header-mobile-right .user-avatar-trigger {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 50%;
        font-size: 0.875rem;
        background: var(--primary, var(--indigo));
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .nav-dropdown-trigger i:first-child {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 11px;
        opacity: 1;
        transition: all 0.25s ease;
    }

    .nav-dropdown-trigger .nav-text {
        flex: 1;
    }

    .nav-dropdown-trigger:hover,
    .nav-dropdown-trigger:active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        color: white;
        transform: translateX(4px);
    }

    .nav-dropdown-trigger:hover i:first-child,
    .nav-dropdown-trigger:active i:first-child {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: rgba(var(--primary-rgb), 0.3);
        color: var(--primary-light);
    }

    .nav-dropdown.active .nav-dropdown-trigger {
        background: rgba(var(--primary-rgb), 0.1);
        border-color: rgba(var(--primary-rgb), 0.2);
        color: white;
    }

    .nav-dropdown.active .nav-dropdown-trigger i:first-child {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        border-color: transparent;
        color: white;
        box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
    }

    .nav-dropdown-trigger .dropdown-arrow {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.7rem;
        opacity: 0.5;
        margin-left: auto;
    }
    
    /* Dropdown simple en móvil - panel estilo Boost */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0 0 8px 8px;
        background: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        min-width: auto;
    }

    .nav-dropdown-menu::before {
        display: none;
    }
    
    /* ================================================================
       MEGA MENÚ MÓVIL - Diseño profesional acordeón
       IMPORTANTE: Usamos selectores específicos para override
       ================================================================ */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        top: auto;
        margin: 0;
    }

    .mega-menu-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.5rem 0;
        width: 100%;
        max-width: 100%;
    }

    .mega-menu-section {
        border-right: none;
        border-bottom: none;
        padding: 0;
        background: transparent;
        width: 100%;
        max-width: 100%;
    }

    .mega-menu-section-header {
        padding: 14px 14px 6px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border-bottom: none;
        width: 100%;
    }

    .mega-menu-section-header .section-icon {
        width: 22px;
        height: 22px;
        font-size: 9px;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 5px;
    }

    .mega-menu-section-header h4 {
        font-size: 11px;
        margin: 0;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.7);
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* Línea decorativa estilo Boost */
    .mega-menu-section-header::after {
        content: '';
        flex: 1;
        height: 2px;
        border-radius: 2px;
        background: rgba(var(--primary-rgb), 0.3);
    }

    .mega-menu-section .section-subtitle {
        display: none;
    }

    .mega-menu-section .service-links {
        padding: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mega-menu-section .service-link {
        padding: 8px 12px;
        margin: 2px 8px;
        border-radius: 6px;
        font-size: 12.5px;
        color: rgba(255, 255, 255, 0.8);
        border: 1px solid transparent;
        transition: all 0.25s ease;
        width: auto;
        display: block;
    }

    .mega-menu-section .service-link:hover,
    .mega-menu-section .service-link:active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateX(3px);
    }

    .mega-menu-section .service-link.featured {
        color: var(--primary-light);
        font-weight: 500;
    }

    /* Grid de marcas en móvil — mantener 3 columnas compactas */

    /* Sección MitikLive en móvil */
/* Franja reparación en móvil: apila en columna (la base desktop ya define
   centrado, fondo y resto; ver regla base junto a .mega-menu-mitiklive) */
.mega-menu-repair {
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
}
.mega-menu-mitiklive {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
        text-align: center;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.5rem;
        grid-column: auto;
        width: 100%;
    }

    .mega-menu-mitiklive .mitik-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .mega-menu-mitiklive .mitik-logo {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }

    .mega-menu-mitiklive .mitik-text h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .mega-menu-mitiklive .mitik-text p {
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .mega-menu-mitiklive .platform-badges {
        justify-content: center;
        gap: 0.5rem;
    }

    .mega-menu-mitiklive .platform-badge {
        width: 32px;
        height: 32px;
    }

    .mega-menu-mitiklive .btn-explore {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .mega-menu-repair {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .mega-menu-repair .repair-text span {
        white-space: normal;
    }

    .mega-menu-repair .repair-cta {
        width: 100%;
        justify-content: center;
    }

    /* ================================================================
       DROPDOWN RECURSOS MÓVIL - panel Boost
       ================================================================ */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0 0 8px 8px;
        background: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        min-width: auto;
    }

    /* Cuando está activo el dropdown */
    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
        padding: 6px 0;
    }

    .nav-dropdown.active .mega-menu {
        max-height: 3000px;
        padding: 0;
        overflow-y: auto;
    }

    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu a {
        display: flex;
        align-items: center;
        padding: 9px 12px;
        margin: 2px 8px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85);
        border: 1px solid transparent;
        gap: 10px;
        transition: all 0.25s ease;
    }

    .nav-dropdown-menu a:last-child {
        border-bottom: none;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateX(3px);
    }

    .nav-dropdown-menu a:hover i,
    .nav-dropdown-menu a:active i {
        background: rgba(var(--primary-rgb), 0.15);
        border-color: rgba(var(--primary-rgb), 0.3);
    }

    .nav-dropdown-menu a i {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 10px;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }

    /* Colores de iconos en móvil */
    .nav-dropdown-menu a i.fa-coins { color: var(--warning); }
    .nav-dropdown-menu a i.fa-calculator { color: var(--violet); }
    .nav-dropdown-menu a i.fa-file-invoice { color: var(--info); }
    .nav-dropdown-menu a i.fa-book-open { color: var(--success); }
    .nav-dropdown-menu a i.fa-file-lines { color: var(--info); }
    .nav-dropdown-menu a i.fa-circle-question { color: var(--warning); }
    .nav-dropdown-menu a i.fa-bell { color: var(--danger-light); }
    .nav-dropdown-menu a i.fa-bolt { color: var(--boost-nav); }

    .nav-dropdown-divider {
        height: 1px;
        margin: 6px 16px;
        background: rgba(255, 255, 255, 0.06);
    }

    /* Avatar dropdown en mobile: floating (no accordion) */
    .header-mobile-right .user-avatar-dropdown .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: var(--surface-dark, var(--bg-dark));
        max-height: none;
        overflow: visible;
        padding: 8px;
        min-width: 200px;
        margin-top: 8px;
        transition: all 0.2s ease;
    }

    .header-mobile-right .user-avatar-dropdown.active .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Mostrar footer móvil */
    .mobile-nav-footer {
        display: block;
    }
    
    /* Ocultar CTAs en nav principal (visibles como links en menú lateral) */
    header.site .main-nav > .nav-btn-cta {
        display: none;
    }

    /* Links marca en menú lateral móvil — DRY shared base */

    @keyframes brandMobileShimmer {
        0% { left: -100%; }
        50% { left: 100%; }
        100% { left: 100%; }
    }
    
    /* Overlay oscuro con blur estilo Boost */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(12, 18, 32, 0.65);
        z-index: 9997;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Animación de entrada de los links */
    header.site .main-nav.active > a,
    header.site .main-nav.active > .nav-dropdown,
    header.site .main-nav.active > .nav-btn,
    header.site .main-nav.open > a,
    header.site .main-nav.open > .nav-dropdown,
    header.site .main-nav.open > .nav-btn {
        animation: slideInRight 0.3s ease forwards;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Delay escalonado para cada elemento */
    header.site .main-nav.active > *:nth-child(1),
    header.site .main-nav.open > *:nth-child(1) { animation-delay: 0.05s; }
    header.site .main-nav.active > *:nth-child(2),
    header.site .main-nav.open > *:nth-child(2) { animation-delay: 0.1s; }
    header.site .main-nav.active > *:nth-child(3),
    header.site .main-nav.open > *:nth-child(3) { animation-delay: 0.15s; }
    header.site .main-nav.active > *:nth-child(4),
    header.site .main-nav.open > *:nth-child(4) { animation-delay: 0.2s; }
    header.site .main-nav.active > *:nth-child(5),
    header.site .main-nav.open > *:nth-child(5) { animation-delay: 0.25s; }
    header.site .main-nav.active > *:nth-child(6),
    header.site .main-nav.open > *:nth-child(6) { animation-delay: 0.3s; }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    header.site .brand span {
        display: none;
    }

    header.site .brand .logo {
        width: 32px;
        height: 32px;
    }

    .mobile-login-btn span {
        display: inline;
    }

    .mobile-login-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Descargar: solo icono en pantallas pequeñas */
    .mobile-download-btn {
        padding: 8px;
        margin-right: 4px;
    }

    .mobile-download-btn span {
        display: none;
    }

    .mobile-download-btn i {
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .hamburger-line {
        width: 20px;
    }

    header.site .main-nav {
        top: 56px;
        height: calc(100vh - 56px);
    }

    .mobile-overlay {
        top: 56px;
    }

    /* Mega menu en pantallas pequeñas */
    .mega-menu-section .service-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .mega-menu-section .service-link:hover,
    .mega-menu-section .service-link:active {
        padding-left: 1.25rem;
    }

    .mega-menu-section-header {
        padding: 0.875rem 1rem;
    }

    .mega-menu-section-header .section-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .mega-menu-section-header h4 {
        font-size: 0.85rem;
    }

    /* Dropdown items más compactos */
    .nav-dropdown-menu a {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .nav-dropdown-menu a i {
        font-size: 1rem;
        width: 20px;
    }
}
