/* ==========================================
   AzorGold Design System (Fondo Dorado + Vinotinto + Rojo + Gold Accents)
   ========================================== */

:root {
    --gold-primary: #d4af37;
    --gold-bright: #ffd700;
    --gold-dark: #b8860b;
    --gold-light: #fbeea8;
    --vinotinto-main: #800020;
    --vinotinto-dark: #4a0b16;
    --vinotinto-glow: #6e1022;
    --red-vibrant: #dc2626;
    --red-dark: #991b1b;
    --bg-dark-gold: #140e04;
    --bg-card: #1c1407;
}

body {
    background-color: #120c03;
    color: #f3e5ab;
    font-family: 'Poppins', sans-serif;
}

#bg-scroll-away {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -50;
    background: linear-gradient(to bottom, transparent 60%, rgba(18, 12, 3, 0.95) 90%, #120c03 100%), url('../image/fondo.webp') no-repeat center top;
    background-size: cover;
    pointer-events: none;
    overflow: hidden;
}

/* Nav Bar Customization for AzorGold */
.celestial-nav, .vanguard-nav {
    background-color: rgba(26, 18, 6, 0.94) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease;
}
.celestial-nav.scrolled, .vanguard-nav.scrolled {
    background-color: #160f04 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5) !important;
}

/* Logo Animation */
@keyframes vanguard-gold-pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 25px rgba(128, 0, 32, 0.4));
    }
    50% { 
        transform: scale(1.04); 
        filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 35px rgba(220, 38, 38, 0.6)) brightness(1.15);
    }
}
.animate-logo-life {
    animation: vanguard-gold-pulse 3.5s infinite ease-in-out;
}

/* Custom Glow Effects */
.drop-shadow-gold {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
}
.drop-shadow-red {
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.7));
}
.drop-shadow-vinotinto {
    filter: drop-shadow(0 0 10px rgba(128, 0, 32, 0.8));
}

/* Cards & Containers */
.vanguard-card {
    background: rgba(28, 20, 7, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.vanguard-card:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15), 0 4px 10px rgba(128, 0, 32, 0.2);
}

.vanguard-gold-header {
    background: linear-gradient(135deg, #4a0b16 0%, #6e1022 50%, #4a0b16 100%);
    color: #ffd700;
    border-bottom: 2px solid #d4af37;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #140e04;
}
::-webkit-scrollbar-thumb {
    background: #800020;
    border: 1px solid #d4af37;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Rune Animations */
@keyframes runeFloatLeft {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-25px) scale(1.08); opacity: 0.9; }
    100% { transform: translateY(0) scale(1); opacity: 0.6; }
}

@keyframes runeSpinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes runeSpinCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes sparklePulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.85); }
    50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.85); }
}

.rune-animate-left {
    animation: runeFloatLeft 7s ease-in-out infinite !important;
}

.rune-animate-right {
    animation: runeFloatLeft 8.5s ease-in-out infinite 0.5s !important;
}

.rune-spin {
    animation: runeSpinClockwise 50s linear infinite !important;
    transform-origin: center center !important;
}

.rune-spin-reverse {
    animation: runeSpinCounterClockwise 55s linear infinite !important;
    transform-origin: center center !important;
}

.rune-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.45) 0%, rgba(128,0,32,0.3) 45%, transparent 70%);
    filter: blur(35px);
    z-index: -1;
    animation: sparklePulse 4.5s ease-in-out infinite !important;
    pointer-events: none;
}
