/* ===== FORGE OVERLAY - Sobrescribe estilos sin romper funcionalidad ===== */


/* Importar variables FORGE */

:root {
    --primary-red: #dc3545;
    --dark-red: #8b1538;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --shadow-color: rgba(220, 53, 69, 0.3);
    --glow-color: rgba(220, 53, 69, 0.6);
    --font-main: 'Rajdhani', sans-serif;
    --font-title: 'Orbitron', monospace;
}


/* ===== FONDO PRINCIPAL FORGE ===== */

body {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 25%, var(--dark-red) 75%, var(--primary-red) 100%) !important;
    color: #fff !important;
    font-family: var(--font-main) !important;
    position: relative;
}


/* Decoración de fondo */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}


/* ===== NAVEGACIÓN SUPERIOR FORGE ===== */

.top-navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid rgba(220, 53, 69, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    z-index: 1000;
}

.top-navbar h2 {
    font-family: var(--font-title) !important;
    color: #fff !important;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color) !important;
    animation: titleGlow 2s ease-in-out infinite alternate;
}


/* Efecto dorado para la copa en el título */

.top-navbar h2 {
    filter: drop-shadow(0 0 8px #ffd700);
}


/* Remover los pseudo-elementos anteriores para usar el HTML directo */

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    }
    to {
        text-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color);
    }
}


/* ===== BOTÓN HAMBURGUESA FORGE ===== */

.hamburger {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

.hamburger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.hamburger i {
    filter: drop-shadow(0 0 4px var(--glow-color)) !important;
}


/* ===== SELECTOR DE IDIOMAS FORGE ===== */

.language-selector .language-flag {
    border: 2px solid rgba(220, 53, 69, 0.4) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.language-selector .language-flag:hover,
.language-selector .language-flag.active {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 12px var(--glow-color) !important;
    transform: scale(1.1) !important;
}


/* ===== SIDEBAR FORGE ===== */

.sidebar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-right: 2px solid rgba(220, 53, 69, 0.3) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 999;
}

.sidebar .nav li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-main) !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
}

.sidebar .nav li a:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
    color: white !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

.sidebar .nav li a i {
    color: var(--primary-red) !important;
    filter: drop-shadow(0 0 4px var(--glow-color)) !important;
    margin-right: 10px !important;
}


/* ===== CONTENIDO PRINCIPAL FORGE ===== */

.content {
    position: relative;
    z-index: 1;
    background: transparent !important;
}


/* ===== SECCIONES FORGE ===== */

section {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    border-radius: 15px !important;
    margin: 20px 0 !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}


/* ===== TÍTULOS DE SECCIÓN FORGE ===== */

.section-title {
    font-family: var(--font-title) !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color) !important;
    margin-bottom: 2rem !important;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    box-shadow: 0 0 10px var(--glow-color);
}


/* ===== BANNER FORGE (preservando imagen original) ===== */

.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/img/logos/bannervcopa.png') !important;
    background-size: cover !important;
    background-position: center !important;
    color: white !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner h1 {
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.banner p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* ===== BOTONES CTA FORGE ===== */

.cta-button {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: white !important;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 8px 15px rgba(220, 53, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
    font-family: var(--font-main) !important;
}

.cta-button::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.5s;
}

.cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(220, 53, 69, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

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


/* ===== TABLAS FORGE ===== */

.table {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    backdrop-filter: blur(8px) !important;
}

.table th {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red)) !important;
    color: white !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
    border: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.table td {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    font-family: var(--font-main) !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(220, 53, 69, 0.1) !important;
}

.table-bordered {
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
}


/* ===== CATEGORÍAS CON COLORES FORGE ===== */

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    color: #000 !important;
    text-shadow: none !important;
}

.bg-secondary {
    background: linear-gradient(135deg, var(--dark-gray), var(--black)) !important;
    color: #fff !important;
}

.bg-dark {
    background: linear-gradient(135deg, var(--black), var(--dark-red)) !important;
    color: #fff !important;
}

.table-warning th {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    color: #000 !important;
    text-shadow: none !important;
}

.table-info th {
    background: linear-gradient(135deg, #17a2b8, #007bff) !important;
}

.table-danger th {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
}


/* ===== TEXTO Y ENLACES FORGE ===== */

.invitation-text,
p,
li {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-main) !important;
    line-height: 1.6 !important;
}

a {
    color: var(--primary-red) !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px var(--glow-color) !important;
}


/* ===== FOOTER FORGE ===== */

.footer {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 2px solid rgba(220, 53, 69, 0.3) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-main) !important;
    padding: 30px 0 !important;
    margin-top: 40px !important;
}

.footer a {
    color: var(--primary-red) !important;
    transition: all 0.3s ease !important;
}

.footer a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px var(--glow-color) !important;
}


/* ===== ALERTAS Y DESTACADOS FORGE ===== */

.text-danger {
    color: var(--primary-red) !important;
    text-shadow: 0 0 8px var(--glow-color) !important;
    font-weight: 600 !important;
}

.text-center.text-danger {
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}


/* ===== RESPONSIVO FORGE ===== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem !important;
    }
    .top-navbar h2 {
        font-size: 1.5rem !important;
    }
    .cta-button {
        font-size: 1rem !important;
        padding: 12px 30px !important;
    }
    section {
        margin: 15px 10px !important;
        padding: 20px !important;
    }
}