/* --- 1. ESTILOS GENERALES --- */
:root {
    --color-dorado: #D4AF37;
    --color-dorado-brillo: #F9E79F;
    --color-rojo: #E63946;
    --color-oscuro: #0a0a0a;
    --color-glow: rgba(212, 175, 55, 0.4);
}

body {
    font-family: 'Roboto', sans-serif;
    color: white;
    overflow-x: hidden;
    background-color: var(--color-oscuro);
    user-select: none; 
}

h1, h2, h3, h4, .btn, .nav-link, .countdown-number, .stat-number {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* --- INSIGNIA BETA (PRO) --- */
.beta-badge {
    background-color: rgba(230, 57, 70, 0.2);
    color: var(--color-rojo);
    border: 1px solid var(--color-rojo);
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    display: inline-flex;
    align-items: center;
}
.beta-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-rojo);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* --- 2. FONDO INTERACTIVO CANVAS --- */
#interactive-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

/* --- 3. INTRO ANIMADA --- */
#intro-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
}

.intro-text {
    font-size: 3.5rem; font-weight: 700; color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(to right, #4d4d4d 0%, #fff 50%, #4d4d4d 100%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; letter-spacing: 5px;
    animation: shineMove 2.5s linear infinite; text-align: center;
}

@keyframes shineMove { to { background-position: 200% center; } }
.intro-line {
    width: 0; height: 4px; background: var(--color-dorado); margin-top: 15px;
    box-shadow: 0 0 15px var(--color-dorado); animation: lineExpand 1s ease-out 0.5s forwards;
}
@keyframes slideOut { 
    0% { opacity: 1; transform: translateY(0); }
    90% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-100vh); display: none; }
}

/* --- 4. NAVBAR GLASS --- */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo img { max-height: 45px; object-fit: contain; }
.brand-logo i, .brand-logo strong { color: var(--color-dorado); font-size: 1.2rem;}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 120px; padding-bottom: 30px;
}

.hero-title {
    font-size: 5.5rem; font-weight: 700; line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8); margin-bottom: 20px; letter-spacing: 3px;
}

.text-gradient {
    background: linear-gradient(to bottom, #ffffff 0%, var(--color-dorado) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--color-glow));
}

.hero-subtitle {
    font-size: 1.3rem; font-weight: 300; margin-bottom: 40px;
    color: rgba(255,255,255,0.8); max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* STATS (Prueba Social) */
.social-proof-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    margin-bottom: 40px;
}
.stat-number { font-size: 2rem; color: var(--color-dorado); font-weight: 700; }
.stat-label { font-size: 0.8rem; color: #aaa; letter-spacing: 2px; text-transform: uppercase; }

/* CONTADOR */
.countdown-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.countdown-box {
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 8px;
    padding: 15px 20px; min-width: 90px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}
.countdown-box:hover { border-color: #fff; transform: translateY(-3px); box-shadow: 0 5px 20px var(--color-glow); }
.countdown-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--color-dorado); line-height: 1; }
.countdown-label { font-size: 0.75rem; letter-spacing: 2px; color: #ccc; }

/* BOTONES CTA */
.btn-cta {
    padding: 16px 35px; font-size: 1.1rem; border-radius: 0;
    border: 1px solid var(--color-dorado); transition: all 0.4s;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    clip-path: polygon(8% 0, 100% 0, 100% 75%, 92% 100%, 0 100%, 0 25%);
    background: var(--color-dorado); color: black;
    box-shadow: 0 0 15px var(--color-glow);
}
.btn-cta:hover { background: #fff; color: black; box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); transform: scale(1.03); }

/* --- 6. TARJETAS GLASS (CON VIDA Y GLOW) --- */
.glass-card {
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 4px;
    padding: 40px 30px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    height: 100%; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--color-dorado); opacity: 0; transition: opacity 0.3s;
}
.glass-card:hover {
    transform: translateY(-12px); background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 20px var(--color-glow);
    border-color: rgba(212, 175, 55, 0.5);
}
.glass-card:hover::before { opacity: 1; }

.img-torneo-container { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.img-torneo { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); transition: transform 0.4s; }
.glass-card:hover .img-torneo { transform: scale(1.08); }

.icon-box { font-size: 3rem; color: var(--color-dorado); margin-bottom: 20px; text-shadow: 0 0 15px var(--color-glow); transition: transform 0.3s; }
.glass-card:hover .icon-box { transform: scale(1.1) rotate(5deg); color: #fff; }

/* --- 7. PATROCINADORES (Lógica Inteligente) --- */
.sponsors-section {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,15,15,0.9) 50%, rgba(0,0,0,0) 100%);
    border-top: 1px solid rgba(212,175,55,0.1); border-bottom: 1px solid rgba(212,175,55,0.1);
    padding: 50px 0; text-align: center;
}
.sponsors-title {
    font-size: 0.9rem; color: var(--color-dorado); letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 30px; opacity: 0.8;
}
.sponsors-grid { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; }
.sponsors-marquee { overflow: hidden; white-space: nowrap; position: relative; width: 100%; }
.sponsors-track { display: inline-block; animation: scrollSponsors 35s linear infinite; }
.sponsors-track:hover { animation-play-state: paused; }

.sponsor-item {
    display: inline-block; margin: 0 40px; vertical-align: middle; filter: grayscale(100%) brightness(0.7) opacity(0.7);
    transition: all 0.4s ease;
}
.sponsor-item img { max-height: 65px; object-fit: contain; }
.sponsor-item:hover { filter: grayscale(0%) brightness(1) opacity(1); transform: translateY(-5px) scale(1.1); }
.sponsor-main img { max-height: 90px !important; }

@keyframes scrollSponsors { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes lineExpand { to { width: 150px; } }

/* --- 8. FAB Reporte --- */
.btn-report {
    position: fixed; bottom: 25px; right: 25px; z-index: 1000;
    border-radius: 50px; padding: 12px 25px; font-weight: bold; background: #C1121F; border: none; color: white;
    box-shadow: 0 5px 20px rgba(193, 18, 31, 0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-report:hover { transform: scale(1.08) translateY(-5px); background: #E63946; color: white; }

/* Botón Gestionar Cookies Flotante */
.btn-manage-cookies {
    position: fixed; bottom: 25px; left: 25px; z-index: 1000;
    background: rgba(20,20,20,0.8); border: 1px solid rgba(255,255,255,0.2); color: #aaa;
    border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; backdrop-filter: blur(5px);
}
.btn-manage-cookies:hover { background: var(--color-dorado); color: #000; border-color: var(--color-dorado); transform: rotate(90deg); }

/* --- 9. BANNER COOKIES --- */
#cookieConsent {
    position: fixed; bottom: -150px; left: 0; width: 100%;
    background-color: rgba(10, 10, 10, 0.98); border-top: 2px solid var(--color-dorado);
    color: #fff; padding: 20px; z-index: 1050; transition: bottom 0.5s ease-in-out; box-shadow: 0 -10px 30px rgba(0,0,0,0.9);
}
#cookieConsent.show { bottom: 0; }

/* --- 10. ESTILOS FOOTER MEJORADO --- */
.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.footer-link:hover { color: var(--color-dorado); border-bottom-color: var(--color-dorado); }
.footer-icon { color: var(--color-dorado); margin-right: 8px; }

.kasta-credit {
    background: rgba(212, 175, 55, 0.05);
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.kasta-brand { font-family: 'Oswald', sans-serif; color: var(--color-dorado); letter-spacing: 1px; text-decoration: none; transition: color 0.3s; }
.kasta-brand:hover { color: #fff; text-shadow: 0 0 10px var(--color-dorado); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; padding: 0 15px;}
    .social-proof-bar .row > div { margin-bottom: 15px; }
    .sponsor-item img { max-height: 45px; }
    .btn-report span { display: none; }
    .btn-report { padding: 15px; border-radius: 50%; bottom: 20px; right: 20px; }
    .btn-manage-cookies { bottom: 20px; left: 20px; }
}