/*
 Theme Name:   Tradercor Disruptive
 Description:  Tema High-End con Motor de Partículas y Efectos 3D
 Version:      4.0 (Gold Dust Edition)
*/

:root {
    --bg-dark: #00050a;
    --gold: #C59D5F;
    --gold-bright: #ffd700;
    --blue-deep: #001529;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(197, 157, 95, 0.3);
    --font-main: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- FONDO ANIMADO (Canvas) --- */
#gold-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #001a33 0%, #000000 100%);
}

/* --- ORBES FLOTANTES (Fondo profundo) --- */
.orb {
    position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.4; z-index: -2;
    animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--blue-deep); animation-delay: 0s; }
.orb-2 { bottom: -20%; right: -10%; width: 40vw; height: 40vw; background: rgba(197, 157, 95, 0.2); animation-delay: -5s; }
.orb-3 { top: 40%; left: 40%; width: 20vw; height: 20vw; background: rgba(197, 157, 95, 0.15); animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- HEADER GLASS --- */
.custom-header {
    position: fixed; top: 0; width: 100%; padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(0, 5, 10, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
.brand-logo span { color: var(--gold); }
/* --- HEADER MASTER (CORRECCIÓN) --- */
.custom-header {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    padding: 15px 40px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 9999; /* Prioridad máxima sobre todo */
    background-color: rgba(2, 4, 10, 0.85) !important; /* Fondo oscuro consistente */
    backdrop-filter: blur(20px); /* Efecto vidrio */
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.brand-logo { 
    font-size: 1.8rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    color: #ffffff !important; 
    text-decoration: none;
}
.brand-logo span { color: var(--gold); }
.brand-logo a { color: #fff !important; text-decoration: none; }

/* Forzamos el color de los enlaces para que NO salgan azules */
.nav-links a { 
    color: #ffffff !important; /* BLANCO OBLIGATORIO */
    text-decoration: none; 
    margin-left: 25px; 
    font-size: 0.85rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover { 
    color: var(--gold) !important; /* Dorado al pasar el mouse */
    opacity: 1;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .custom-header { padding: 15px 20px; }
    .nav-links { display: none; } /* Ocultar menú en móvil por ahora */
}
/* --- HERO CON EFECTO 3D --- */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 0 20px;
    perspective: 1000px; /* Para efecto 3D */
}

.hero-content {
    animation: fadeInUp 1.5s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 6rem); line-height: 1; font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff 20%, #C59D5F 50%, #fff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.btn-gold {
    position: relative; overflow: hidden;
    background: transparent; color: var(--gold);
    border: 1px solid var(--gold); padding: 15px 40px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.4s; cursor: pointer; margin-top: 30px; display: inline-block;
}
.btn-gold:hover {
    background: var(--gold); color: #000;
    box-shadow: 0 0 30px var(--border-glass);
}

/* --- TARJETAS FLOTANTES (Glassmorphism Avanzado) --- */
.section-pad { padding: 120px 20px; max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.glass-card {
    background: rgba(10, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px 30px; border-radius: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
}

/* Efecto de barra dorada al hacer hover */
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%;
    background: var(--gold); transform: scaleY(0); transition: transform 0.4s;
}
.glass-card:hover::before { transform: scaleY(1); }
.glass-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(197, 157, 95, 0.05);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.card-icon { font-size: 3.5rem; margin-bottom: 25px; filter: drop-shadow(0 0 10px rgba(197,157,95,0.3)); }

/* --- TICKER FINANCIERO --- */
.ticker-wrap {
    position: fixed; bottom: 0; width: 100%; background: #000; border-top: 1px solid #333;
    z-index: 100; padding: 10px 0;
}
.ticker-move { display: inline-block; white-space: nowrap; animation: ticker 35s linear infinite; }
.ticker-item { display: inline-block; padding: 0 40px; color: #888; font-size: 0.85rem; font-family: monospace; }
.ticker-item strong { color: #fff; }
.up { color: #00ff88; } .down { color: #ff0055; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
/* --- SISTEMA DE MENÚ MAESTRO (Final) --- */

/* 1. Header General (Fijo y Oscuro) */
.custom-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 99999; /* Siempre encima de todo */
    background-color: rgba(2, 4, 10, 0.95); /* Casi negro sólido para legibilidad */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-logo a {
    font-size: 1.8rem; font-weight: 900; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 2px;
}
.brand-logo span { color: #C59D5F; }

/* 2. Menú de Escritorio (PC) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px; /* Espacio entre enlaces */
    position: static; /* Posición normal en PC */
    height: auto;
    background: transparent;
    width: auto;
    box-shadow: none;
}

.nav-links a {
    color: #fff !important; /* Blanco obligatorio */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transform: none;
    margin: 0;
}

.nav-links a:hover { color: #C59D5F !important; }

/* Ocultar elementos móviles en PC */
.mobile-toggle { display: none !important; }
.close-menu { display: none !important; }


/* 3. Menú Móvil (Solo celulares) */
@media (max-width: 900px) {
    /* Mostrar botón hamburguesa */
    .mobile-toggle {
        display: block !important;
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
    }

    /* Panel lateral oculto */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Fuera de pantalla a la derecha */
        width: 85%;
        height: 100vh; /* Altura completa */
        background-color: #000; /* Fondo negro sólido */
        flex-direction: column; /* Lista vertical */
        justify-content: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px;
        box-shadow: -10px 0 50px rgba(0,0,0,0.8);
        gap: 0; /* Resetear gap de PC */
    }

    /* Clase activa (cuando JS la añade) */
    .nav-links.active {
        right: 0; /* Entra a la pantalla */
    }

    /* Enlaces grandes en móvil */
    .nav-links a {
        font-size: 1.5rem;
        margin: 20px 0;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }

    /* Botón cerrar (X) */
    .close-menu {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 30px;
        font-size: 3rem;
        color: #C59D5F;
        cursor: pointer;
        line-height: 1;
    }
}
