/* ============================================
   RETROGRADOS GAMING - NAVIGATION MENU CSS
   Megamenu con animaciones y efectos
============================================= */

/* Variables */
:root {
    --nav-bg: #0f172a;
    --nav-bg-light: #1e293b;
    --neon-green: #00ffcc;
    --neon-green-dark: #00cc99;
    --text-white: #f8fafc;
    --text-gray: #cbd5e1;
    --nav-height: 80px;
    --megamenu-height: 500px;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== TOP BAR ==================== */
.retrogrados-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-family: 'Orbitron', 'Inter', sans-serif;
}

.nav-topbar {
    position: fixed;
    top: 45px;  /* Altura del promo banner (padding 0.6rem * 2 + line-height) */
    left: 0;
    right: 0;
    z-index: 999;  /* Debajo del promo (2000) pero encima del resto */
    background: rgba(15, 23, 42, 0.7);  /* Fondo semitransparente */
    backdrop-filter: blur(20px);        /* Efecto blur glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    height: var(--nav-height);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 204, 0.1),  /* Glow sutil */
        inset 0 -1px 0 rgba(0, 255, 204, 0.2); /* Borde inferior brillante */
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    overflow: hidden;
    transition: top 0.3s ease;
}

/* Cuando el promo banner se oculta (al hacer scroll) */
body.promo-hidden .nav-topbar {
    top: 0;
}

/* Gradiente animado de fondo */
.nav-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 204, 0.03),
        transparent
    );
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.3));  /* Glow permanente */
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.6))   /* Glow más intenso al hover */
            drop-shadow(0 0 40px rgba(0, 255, 204, 0.3));
}

.nav-logo img {
    height: 50px;
    width: auto;
}

/* Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Menu Button */
.nav-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--neon-green);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-menu-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-menu-btn:hover {
    color: var(--nav-bg);
    border-color: var(--neon-green);
}

.menu-icon {
    font-size: 1.2rem;
}

.menu-text {
    font-weight: 700;
    letter-spacing: 1px;
}

/* Shop Now Button */
.nav-shop-btn {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-dark));
    color: var(--nav-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}

.nav-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 204, 0.5);
}

/* ==================== MEGAMENU ==================== */
.megamenu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.85);  /* Fondo semitransparente */
    backdrop-filter: blur(20px);         /* Glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(0, 255, 204, 0.1);  /* Borde superior brillante */
    border-top: 1px solid rgba(0, 255, 204, 0.15);
}

.megamenu.active {
    /* En lugar de altura fija, usa altura automática */
    max-height: 85vh; /* 85% del viewport */
    overflow-y: auto; /* Agrega scroll si es necesario */
    opacity: 1;
    overflow-y: auto; /* Scroll vertical cuando sea necesario */
}

/* Estilos para la barra de scroll */
.megamenu::-webkit-scrollbar {
    width: 8px;
}

.megamenu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.megamenu::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
}

/* Para que el contenido tenga altura flexible */
.megamenu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Tabs */
.megamenu-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.megamenu-tab {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.megamenu-tab::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

.megamenu-tab:hover,
.megamenu-tab.active {
    color: var(--neon-green);
}

.megamenu-tab.active::after {
    width: 100%;
}

/* Content Sections */
.megamenu-content {
    position: relative;
}

.megamenu-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.megamenu-section.active {
    display: block;
}

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

/* Split Layout */
.megamenu-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;  /* Left más grande que Right */
    gap: 3rem;
    align-items: start;  /* Cambiar de center a start */
}

.megamenu-left {
    width: 100%;
    min-width: 0;  /* Permite que el grid funcione correctamente */
}

.megamenu-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.megamenu-left h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.megamenu-left h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
}

.megamenu-left p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.megamenu-note {
    font-style: italic;
    opacity: 0.8;
}

/* Welcome Section */
.megamenu-welcome {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.megamenu-welcome h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
}

.megamenu-welcome p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Buttons */
.megamenu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-dark));
    color: var(--nav-bg);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
    margin-top: 1rem;
}

.megamenu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 204, 0.5);
}

.megamenu-btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}

/* Images */
.megamenu-preview-img,
.megamenu-device-img,
.megamenu-ryu-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.megamenu-preview-img:hover,
.megamenu-device-img:hover,
.megamenu-ryu-img:hover {
    transform: scale(1.02);
}

.megamenu-ryu-img {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

/* Downloads Columns - MÁXIMA ESPECIFICIDAD */
.megamenu .megamenu-content .megamenu-section .megamenu-split .megamenu-left .downloads-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
}

.megamenu .megamenu-content .megamenu-section .megamenu-split .megamenu-left .downloads-column {
    display: block !important;
    width: 100% !important;
}

.megamenu .megamenu-content .megamenu-section .megamenu-split .megamenu-left .downloads-column h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    display: block !important;
    width: 100% !important;
}

.megamenu .megamenu-content .megamenu-section .megamenu-split .megamenu-left .downloads-list {
    list-style: none !important;
}

.megamenu .megamenu-content .megamenu-section .megamenu-split .megamenu-left .downloads-list li {
    margin-bottom: 0.75rem;
    display: block !important;
}

.megamenu .download-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block !important;
    position: relative;
    padding-left: 1.5rem;
}

.megamenu .download-link::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-size: 0.8rem;
}

.megamenu .download-link:hover {
    color: var(--neon-green);
    transform: translateX(5px);
}

/* Tooltips para enlaces gratuitos */
.free-content-link {
    cursor: help;
    position: relative;
}

.free-content-link::after {
    content: attr(data-tooltip);
    position: fixed;  /* Fixed para que aparezca por encima */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.98);  /* Casi opaco */
    backdrop-filter: blur(20px);
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 12px;
    border: 2px solid rgba(255, 165, 0, 0.8);  /* Borde más visible */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 165, 0, 0.3);  /* Glow naranja */
    white-space: normal;
    max-width: 350px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;  /* Por encima de todo absolutamente */
    pointer-events: none;
}

/* Icono de advertencia en tooltips */
.free-content-link::before {
    content: '⚠';
    color: #ffa500;  /* Naranja para advertencia */
    font-size: 0.9rem;
}

.free-content-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Packages List */
.packages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.package-item {
    background: rgba(0, 255, 204, 0.1);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.package-item:hover {
    background: var(--neon-green);
    color: var(--nav-bg);
    transform: translateX(10px);
}

.rom-description {
    margin-top: 2rem;
}

.rom-description h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-column h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.contact-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--neon-green);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--neon-green);
    color: var(--nav-bg);
    transform: translateY(-5px);
}

.contact-description {
    text-align: center;
    max-width: 700px;
    margin: 2rem auto 0;
}

.contact-description h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.contact-description p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Megamenu Footer */
.megamenu-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.compatible-devices {
    display: flex;
    gap: 1rem;
}

.compatible-devices img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.compatible-devices img:hover {
    opacity: 1;
}

/* Overlay */
.megamenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.megamenu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--nav-bg);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    height: 40px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--neon-green);
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-link {
    color: var(--text-white);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mobile-menu-link:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .megamenu-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .megamenu-right {
        order: -1;
    }
    
    .downloads-columns {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-menu-btn,
    .nav-shop-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .menu-text {
        display: none;
    }
    
    /* Ocultar megamenu en móvil */
    .megamenu {
        display: none;
    }
}

@media (min-width: 769px) {
    /* Ocultar mobile menu en desktop */
    .mobile-menu {
        display: none;
    }
}





/* ==================== BRANDS FOOTER - TAMAÑO FIJO ==================== */
.brands-footer-fixed {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 255, 204, 0.2);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brands-fixed-image {
    width: 344px;      /* Ancho exacto */
    height: 25px;      /* Alto exacto */
    object-fit: contain; /* Mantiene proporciones */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
}

/* Efecto hover sutil */
.brands-fixed-image:hover {
    filter: brightness(1.05) contrast(1.2);
    transform: scale(1.02);
}

/* Asegurar que se vea bien en todos los dispositivos */
@media (max-width: 768px) {
    .brands-footer-fixed {
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .brands-fixed-image {
        width: 300px;   /* Un poco más pequeño en móvil */
        height: 22px;   /* Mantiene proporción */
    }
}

@media (max-width: 480px) {
    .brands-fixed-image {
        width: 280px;
        height: 20px;
    }
}

/* ============================================
   DOWNLOADS SECTION - ESTILOS AISLADOS
   NO INTERFERIDOS POR INDEX.CSS
============================================= */

/* Wrapper principal */
.downloads-wrapper {
    position: relative;
    padding: 2.5rem;
}

/* Título principal */
.downloads-main-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #f8fafc !important;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    display: block !important;
    width: 100% !important;
}

/* Grid de 2 columnas */
.downloads-grid-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
}

/* Cada columna */
.downloads-col {
    flex: 1 !important;
    min-width: 0 !important;
    display: block !important;
}

/* Títulos de columnas */
.downloads-col-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #00ffcc !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.free-title {
    color: #ffa500 !important;
}

/* Lista de enlaces */
.downloads-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.downloads-links-list li {
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Enlaces */
.dl-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.dl-link:hover {
    color: #00ffcc !important;
    transform: translateX(5px) !important;
}

/* Enlaces gratuitos con tooltip */
.dl-link-free {
    position: relative !important;
    cursor: help !important;
}

.dl-link-free::after {
    content: attr(data-tooltip);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    color: #f8fafc;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 12px;
    border: 2px solid rgba(255, 165, 0, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    white-space: normal;
    max-width: 350px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    pointer-events: none;
}

.dl-link-free:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Imagen de dispositivos */
.downloads-devices-img {
    text-align: center !important;
    margin-top: 2rem !important;
    display: block !important;
    width: 100% !important;
}

.downloads-devices-img img {
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .downloads-grid-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .downloads-wrapper {
        padding: 1.5rem !important;
    }
    
    .downloads-main-title {
        font-size: 1.5rem !important;
    }
    
    .downloads-devices-img img {
        max-width: 100% !important;
    }
}










/* ============================================
   DOWNLOADS SECTION - ESTILOS AISLADOS
   NO INTERFERIDOS POR INDEX.CSS
============================================= */

/* Wrapper principal */
.downloads-wrapper {
    position: relative;
    padding: 2.5rem;
}

/* Título principal */
.downloads-main-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #f8fafc !important;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    display: block !important;
    width: 100% !important;
}

/* Grid de 2 columnas */
.downloads-grid-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
}

/* Cada columna */
.downloads-col {
    flex: 1 !important;
    min-width: 0 !important;
    display: block !important;
}

/* Títulos de columnas */
.downloads-col-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #00ffcc !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.free-title {
    color: #ffa500 !important;
}

/* Lista de enlaces */
.downloads-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.downloads-links-list li {
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

/* Enlaces */
.dl-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    z-index: 2000;
}

.dl-link:hover {
    color: #00ffcc !important;
    transform: translateX(5px) !important;
}

/* Enlaces gratuitos con tooltip */
.dl-link-free {
    position: relative !important;
    cursor: help !important;
}

.dl-link-free::after {
    content: attr(data-tooltip);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 1.25rem 1.75rem;
    background: rgba(10, 15, 30, 0.98);  /* Fondo más oscuro */
    backdrop-filter: blur(20px);
    color: #f8fafc;
    font-size: 0.8rem !important;  /* Texto más pequeño (12.8px) */
    line-height: 1.6;
    border-radius: 12px;
    border: 2px solid rgba(255, 165, 0, 0.9);  /* Borde más visible */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 165, 0, 0.3);  /* Glow naranja */
    white-space: normal;
    min-width: 400px;  /* Más ancho */
    max-width: 450px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    pointer-events: none;
    font-weight: 500 !important;
}

.dl-link-free:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Imagen de dispositivos */
.downloads-devices-img {
    text-align: center !important;
    margin-top: 2rem !important;
    display: block !important;
    width: 100% !important;
}

.downloads-devices-img img {
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .downloads-grid-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .downloads-wrapper {
        padding: 1.5rem !important;
    }
    
    .downloads-main-title {
        font-size: 1.5rem !important;
    }
    
    .downloads-devices-img img {
        max-width: 100% !important;
    }
}




/* ============================================
   NAV USER MENU CSS
   Estilos para menú de usuario en navegación
============================================= */

/* Auth Buttons (Guest) */
.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.nav-btn-login {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-btn-login:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-2px);
}

.nav-btn-register {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* User Dropdown */
.nav-user-dropdown {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-user-trigger:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.nav-user-trigger i:first-child {
    font-size: 1.25rem;
}

.nav-user-trigger i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-user-trigger:hover i:last-child {
    transform: rotate(180deg);
}

.nav-username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Menu */
.nav-user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 260px;
    background: #1a1a1a;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

.nav-user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User Header */
.nav-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
}

.nav-user-header i {
    font-size: 2rem;
    color: #8b5cf6;
}

.nav-user-header strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}

.nav-user-header small {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Menu Divider */
.nav-menu-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
    margin: 0.5rem 0;
}

/* Menu Items */
.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nav-menu-item:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.nav-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-logout-btn {
    color: #ef4444;
}

.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-username {
        max-width: 80px;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-user-menu {
        right: -1rem;
        min-width: 240px;
    }
    
    .nav-auth-buttons {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-auth-buttons {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-btn i {
        display: none;
    }
    
    .nav-user-trigger {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-username {
        display: none;
    }
}

/* Mobile User Section */
.mobile-user-section {
    margin-bottom: 0;
}

.mobile-user-section .mobile-menu-link {
    padding: 0.75rem 0;
    border-bottom: none;
}

.mobile-logout-btn {
    font-family: inherit;
    font-size: inherit;
    padding: 0.75rem 0;
}

.mobile-logout-btn:hover {
    background: transparent !important;
    opacity: 0.8;
}


/* ============================================
   FIX: User dropdown puede salir del nav-topbar
============================================= */

.nav-topbar {
    overflow: visible !important;  /* Permite que el dropdown salga */
}

/* Asegurar z-index correcto */
.nav-user-dropdown {
    position: relative;
    z-index: 100;
}

.nav-user-menu {
    position: absolute;
    z-index: 100;
}