/* style-part2.css - Sections: Hero, Winners, Salas, Publicity */

/* --- Hero Carousel --- */
.hero-section { position: relative; overflow: hidden; }
.hero-carousel-container { position: relative; height: 500px; width: 100%; overflow: hidden; }
.hero-carousel { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

.hero-slide {
min-width: 100%;
height: 100%;
background-size: cover;
background-position: center;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.hero-slide::before {
content: ''; position: absolute; inset: 0;
background: linear-gradient(to bottom, rgba(5,5,16,0.3), rgba(5,5,16,0.9));
}

.slide-content {
position: relative; z-index: 10; text-align: center; max-width: 800px; padding: 20px;
animation: fadeInUp 0.8s ease-out;
}

.badge-promo {
background: var(--accent); 
color: black; 
font-weight: 900; 
padding: 4px 12px; 
border-radius: 20px;
font-size: 0.8rem; 
letter-spacing: 1px; 
display: inline-block; 
margin-bottom: 1rem;
}

.slide-title {
font-size: 3.5rem; font-weight: 900; margin: 10px 0; line-height: 1.1;
text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
@media(max-width: 768px) { .slide-title { font-size: 2.5rem; } }

.slide-desc { font-size: 1.2rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; }

.carousel-arrow {
position: absolute; top: 50%; transform: translateY(-50%);
background: rgba(0,0,0,0.5); color: white; border: none;
width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 20;
backdrop-filter: blur(5px); transition: all 0.3s;
}
.carousel-arrow:hover { background: var(--accent); color: black; }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* --- Winners Ticker --- */
.winners-ticker {
background: linear-gradient(90deg, #7e22cf 0%, #3b82f6 100%);
height: 85px; 
overflow: hidden; 
position: relative;
box-shadow: 0 0 20px rgba(126, 34, 207, 0.5);
/* Máscara para suavizar los bordes (fade in/out) */
mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.winners-track {
display: flex; 
gap: 2rem; 
width: max-content; /* IMPORTANTE: Que ocupe lo que necesite */
/* Velocidad: 60s (Lento) - Cambia a 40s si lo quieres más rápido */
animation: scrollRight 33s linear infinite; 
will-change: transform;
}

/* Animación hacia la DERECHA */
@keyframes scrollRight {
0% {
    /* Empezamos desplazados a la izquierda (mostrando los clones) */
    transform: translateX(-33.33%); 
}
100% {
    /* Terminamos en el inicio (0), creando la ilusión de movimiento a la derecha */
    transform: translateX(0%); 
}
}

.winner-item {
display: flex; 
align-items: center; 
background: rgba(0,0,0,0.3);
padding: 5px 15px; 
border-radius: 50px; 
border: 1px solid rgba(255,255,255,0.2);

/* Evita que se rompa el texto */
white-space: nowrap; 
backdrop-filter: blur(5px);
}

.winner-avatar img { 
width: 30px; height: 30px; 
border-radius: 50%; 
border: 2px solid var(--accent); 
margin-right: 10px; 
}
.winner-name { font-weight: 900; font-size: 0.8rem; color: white; margin-right: 5px; }
.winner-desc { font-size: 0.7rem; color: #cbd5e1; margin-right: 10px; }
.winner-prize { color: var(--accent); font-weight: 900; }

/* --- Sala Cards (3D Hover) --- */
.sala-card {
background: #0f0f1a; border-radius: 1.5rem; overflow: hidden;
border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s, box-shadow 0.3s;
position: relative;
}
.sala-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(126, 34, 207, 0.2);
border-color: rgba(126, 34, 207, 0.4);
}
.sala-image { height: 220px; background-size: cover; background-position: center; position: relative; }
.sala-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #0f0f1a, transparent); }
.sala-badge {
position: absolute; top: 1rem; right: 1rem; padding: 0.4rem 1rem;
border-radius: 2rem; font-weight: 900; font-size: 0.7rem; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.badge-gold { background: var(--accent); color: black; }
.badge-blue { background: var(--neon-blue); color: white; }
.badge-purple { background: var(--neon-purple); color: white; }
.sala-content { padding: 1.5rem; }

/* --- Publicity Carousel --- */
.publicity-carousel { overflow: hidden; width: 100%; white-space: nowrap; position: relative; }
.publicity-track { display: inline-flex; animation: scrollPub 40s linear infinite; }
.pub-item {
width: 300px; height: 300px; margin-right: 20px; border-radius: 1rem;
background-size: cover; background-position: center; cursor: pointer;
transition: transform 0.3s; border: 2px solid rgba(255,255,255,0.1);
}
.pub-item:hover { transform: scale(1.05); border-color: var(--accent); }
@keyframes scrollPub { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }