/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Menú */
nav {
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: bold;
    color: #ffffff;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
    background-color: #ff1e00;
    color: #ffffff;
    border-radius: 5px;
}

/* Página Index */
.hero {
    background-color: #ff1e00;
    text-align: center;
    padding: 50px 20px;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .btn {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #ffd700;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

section {
    padding: 20px;
}

h2 {
    color: #ffffff;
}

p {
    line-height: 1.5;
}

img {
    max-width: 100%;
}

/*Video index*/
.video-estilo {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); /* Sombra elegante */
    border-radius: 20px;                     /* Bordes redondeados */
    border: 3px solid #ffffff;               /* Borde rojo F1 */
    background: #fff;                        /* Fondo blanco */
    transition: transform 0.3s;
    width: 100%;
    max-width: 1000px; /* Limita el ancho en pantallas grandes */
    height: auto;
    display: block;
    margin: 0 auto;
}

/*.video-estilo:hover {
    transform: scale(1.02);                   Efecto al pasar el mouse 
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}*/
/* Responsive para móviles */
@media (max-width: 600px) {
    .video-estilo {
        max-width: 100%;
        border-radius: 10px;
    }
}

/* Noticias */
#news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

.noticia {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(255, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.noticia:hover {
    transform: scale(1.05);
}

.noticia img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 4px solid #ff1e00;
}

.noticia h3 {
    font-size: 18px;
    padding: 15px;
    color: #ffd700;
}

.noticia p {
    font-size: 14px;
    padding: 0 15px 15px;
    color: #ccc;
}

.noticia a {
    display: block;
    background-color: #ff1e00;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
}

.noticia a:hover {
    background-color: #d90000;
}

/* Sección En Vivo */
#en-vivo {
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    background-color: #181818;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 30, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contador de cuenta regresiva */
#contador {
    font-size: 1.5em;
    background: linear-gradient(45deg, #ff1e00, #800000);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.countdown {
    font-size: 2.2em;
    font-weight: bold;
    color: #fff;
}

/* Estilos para el video */
#stream video {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    border: 3px solid #ff1e00;
    box-shadow: 0 0 15px rgba(255, 30, 0, 0.9);
}

/*Calendario de temporadas*/
.calendario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 por fila */
    gap: 32px;
    justify-items: center;
    align-items: stretch;
    padding: 40px 0;
}

.calendario-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(255, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
    padding: 10px;
}

.calendario-grid a:hover {
    transform: scale(1.05);
    background: #ff1e00;
}

.calendario-grid img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.calendario-grid span {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
}

.carrera-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(255, 30, 0, 0.15);
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
    padding: 18px 10px 14px 10px;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    min-height: 320px;
}

.carrera-item:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(255, 30, 0, 0.25);
    background: #ff1e00;
}

.carrera-item img {
    width: 100%;
    max-width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

.carrera-info {
    text-align: center;
    margin-top: 8px;
}

.carrera-fecha {
    display: block;
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 4px;
    font-weight: bold;
}

.carrera-nombre {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Responsive para móviles */
@media (max-width: 1100px) {
    .calendario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .calendario-grid {
        grid-template-columns: 1fr;
    }
    .carrera-item {
        max-width: 95vw;
    }
}