/* =========================================
   HOME PAGE STYLES (MATCH HEADER)
   ========================================= */

:root {
    --sp-cyan: #00E5FF;
    --sp-dark: #050505;
    --sp-glass: rgba(255, 255, 255, 0.05);
    --sp-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--sp-dark);
    color: white;
    font-family: 'regular', sans-serif; /* Tu fuente base */
}

/* --- 1. HERO SLIDER (RED BULL STYLE - CYAN VERSION) --- */
.rb-slider-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.rb-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1s ease;
    z-index: 1;
}
.rb-slide.active { opacity: 1; z-index: 2; }

.slide-bg {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.1); transition: transform 8s ease;
}
.rb-slide.active .slide-bg { transform: scale(1); }

/* Overlay Cinematográfico */
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--sp-dark) 10%, rgba(0,0,0,0.4) 100%);
}

.slide-content {
    position: absolute; bottom: 120px; left: 5%;
    max-width: 800px; z-index: 3;
}

.slide-tags {
    color: var(--sp-cyan); font-family: 'medium', sans-serif;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px;
    display: flex; align-items: center; gap: 10px; font-size: 0.9rem;
}

.slide-title {
    font-family: 'medium', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.95; margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-desc {
    font-family: 'light', sans-serif; font-size: 1.2rem;
    color: #ddd; max-width: 600px; margin-bottom: 35px;
}

/* Botones Actualizados */
.btn-cyan {
    background: var(--sp-cyan); color: black;
    padding: 15px 40px; border: none;
    font-family: 'medium', sans-serif; text-transform: uppercase;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-cyan:hover {
    background: white; transform: translateY(-5px); box-shadow: 0 0 20px var(--sp-cyan);
}

.btn-outline {
    background: transparent; color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 15px 40px; font-family: 'medium', sans-serif; text-transform: uppercase;
    transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
    margin-left: 15px;
}
.btn-outline:hover { border-color: var(--sp-cyan); color: var(--sp-cyan); }

/* Navegación Slider */
.slider-navigation {
    position: absolute; bottom: 40px; right: 5%; z-index: 10;
    display: flex; gap: 15px;
}
.nav-line {
    width: 40px; height: 3px; background: rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s;
}
.nav-line.active { background: var(--sp-cyan); width: 60px; box-shadow: 0 0 10px var(--sp-cyan); }


/* --- 2. SECCIÓN ROSTER (ATLETAS DESTACADOS) - NUEVO --- */
.roster-preview-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.sec-header {
    display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
    margin-bottom: 50px; padding: 0 5%;
}
.sec-title { font-family: 'medium'; font-size: 3rem; margin: 0; line-height: 1; text-transform: uppercase; color:#050505;}
.sec-subtitle { color: var(--sp-cyan); font-family: 'medium'; letter-spacing: 2px; display: block; margin-bottom: 10px; }

.roster-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; padding: 0 3%;
}

.athlete-card {
    position: relative; height: 450px; overflow: hidden;
    border-radius: 4px; cursor: pointer;
}
.athlete-bg {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
    filter: grayscale(100%); /* Efecto elegante B&N */
}
.athlete-card:hover .athlete-bg { filter: grayscale(0%); transform: scale(1.05); }

.athlete-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, black 0%, transparent 100%);
}
.athlete-name { font-family: 'medium'; font-size: 2rem; margin: 0; text-transform: uppercase; line-height: 0.9; }
.athlete-sport { color: var(--sp-cyan); font-size: 0.9rem; font-family: 'medium'; text-transform: uppercase; }


/* --- 3. SECCIÓN SKETCH ON (MEDIA) --- */
.sketchon-showcase {
    position: relative; height: 80vh; display: flex; align-items: center;
    overflow: hidden; border-top: 1px solid #222; border-bottom: 1px solid #222;
}
.video-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1;
}
.so-content {
    position: relative; z-index: 2; padding: 0 5%; max-width: 700px;
}
.play-big-btn {
    width: 80px; height: 80px; border-radius: 50%; border: 1px solid white;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    color: white; margin-bottom: 30px; transition: 0.3s; cursor: pointer;
    backdrop-filter: blur(5px);
}
.play-big-btn:hover { background: var(--sp-cyan); border-color: var(--sp-cyan); color: black; box-shadow: 0 0 30px var(--sp-cyan); }


/* --- 4. CALENDARIO / EVENTOS (GLASS STYLE) --- */

/* --- 4. SECCIÓN "EN EL RADAR" (HERO CON IMAGEN DE FONDO) --- */
.events-section {
    position: relative;
    /* Asegúrate de que la ruta de la imagen sea correcta */
    background: url('../images/radar_bg.jpg') no-repeat center center/cover;
    padding: 120px 0; /* Más espacio arriba y abajo para mayor impacto */
    background-attachment: fixed; /* EFECTO PARALLAX Opcional: la imagen se queda quieta al hacer scroll. Si no te gusta, borra esta línea. */
    background: #fff;
}

/* Capa oscura superpuesta para legibilidad */

/* Aseguramos que el contenido (texto y tarjetas) esté sobre la capa oscura */
.events-section .container-content {
    position: relative;
    z-index: 2;
}

/* --- 4. CALENDARIO / EVENTOS (ESTILO TARJETA CON FOTO) --- */
.events-section { 
    padding: 100px 5%; 
}

.view-all-link {
    color: #050505; border-bottom: 1px solid var(--sp-cyan); 
    text-decoration: none; font-family: 'medium'; 
    text-transform: uppercase; font-size: 0.9rem;
}

/* Contenedor de la Tarjeta */
.event-card-glass {
    border: 1px solid #222;
    border-radius: 8px; /* Bordes ligeramente redondeados */
    overflow: hidden; /* IMPORTANTE: Para que la imagen no se salga al hacer zoom */
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    display: flex; flex-direction: column; /* Apilar imagen sobre texto */
}

.event-card-glass:hover {
    transform: translateY(-8px);
    border-color: var(--sp-cyan);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15); /* Sombra Cyan suave */
}

/* Área de la Imagen (Mitad superior) */
.card-image-wrap {
    width: 100%;
    height: 200px; /* Altura fija para que todas sean iguales */
    position: relative;
    overflow: hidden;
}

.card-image-wrap img {
    width: 110%; height: auto;
    object-fit: cover; /* Recorta la imagen para llenar el espacio */
    transition: transform 0.5s ease;
}

/* Efecto Zoom al Hover */
.event-card-glass:hover .card-image-wrap img {
    transform: scale(1.1);
}

/* Etiqueta de Fecha (Flotando sobre la imagen) */
.date-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--sp-cyan); color: black;
    font-family: 'medium'; font-size: 0.8rem;
    padding: 6px 12px; text-transform: uppercase;
    z-index: 2; letter-spacing: 1px;
}

/* Área de Contenido (Mitad inferior) */
.card-content-box {
    padding: 25px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Ocupa el resto del espacio */
}

.event-title-gl {
    font-family: 'medium'; font-size: 1.4rem; 
    margin: 0 0 10px 0; line-height: 1.1; 
    text-transform: uppercase; color: #050505;
}

.event-meta {
    color: #888; font-size: 0.95rem; 
    font-family: 'light'; margin-bottom: 20px;
}

.card-action-link {
    color: var(--sp-cyan); font-family: 'medium';
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
    margin-top: auto; /* Empuja el botón al fondo */
    transition: 0.3s;
}

.event-card-glass:hover .card-action-link {
    gap: 12px; color: rgb(34, 34, 34);
}

@media (max-width: 425px) {
    .roster-grid {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
        gap: 10px; padding: 0 1%;
    }
}