/* Estilos generales */
html, body {
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    height: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
}

ul {
    margin-top: 0;
}

:root{
  --rojo:#e10600;      /* tu rojo F1 */
  --crema:#f7f3e9;     /* si lo usas de fondo */
}


/* Estilos de articulo centrado */
.centered-content {
    /*width: 800px;*/
    width: 90%;
    max-width: 800px;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.centered-content h2 {
    font-family: 'Montserrat', sans-serif;
    /* font-family: Arial, sans-serif; */
    font-size: 2em; /* Ajusta el tamaño de la fuente */
    margin: 30px 0 20px; /* Agrega un margen arriba (30px) y abajo (10px) */
    color: #333; /* Color del texto, puedes cambiarlo a tu preferencia */
    border: none;
}

.centered-content p {
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em; /* Ajusta el tamaño de la fuente, puedes ajustar el valor */
    line-height: 1.6; /* Aumenta la altura de línea para mejor legibilidad */
    word-spacing: 0.1em; /* Aumenta el espacio entre palabras, puedes ajustar el valor */
    color: #555; /* Color del texto, puedes cambiarlo a tu preferencia */
    margin: 20px 0
}

.centered-content .enlace{
    text-decoration: none;
    color: #007BFF;
}

.centered-content .enlace:hover {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #007BFF;
}
.centered-content .enlace:hover::after {
    width: 100%;
}

.centered-content .article-start h1{
    font-family: 'Montserrat', sans-serif;
    font-size: 2.75em;
    margin-bottom: 20px;
    margin-top: 5px;
    /* color: #333; */
    color: black;
}

.centered-content .article-start .article-meta{
    display: flex;
    align-items: center;
    justify-content: start; /* Alinea los elementos al inicio */
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #777;
}

.centered-content .article-start  .article-meta .category {
    font-weight: bold;
    font-size: 1.75em;
    margin-top: 0;
    margin-bottom: 2.5px;
}

.centered-content .article-start  .article-meta .date {
    font-style: italic;
    font-size: 1.25em;
    margin-bottom: 2.5px;
}

.centered-content img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 960px;
}

.centered-content table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid rgb(200,200,200);
    letter-spacing: 1px;
    text-align: left;
    font-size: 0.8rem;
    table-layout: auto;
}

.centered-content td, th {
    border: 1px solid rgb(190,190,190);
    padding: 10px 20px;
    text-align: left;
    word-wrap: break-word;
}

.centered-content th {
    background-color: rgb(235, 235, 235);
    text-align: left;
}

.redbull{
    background-color: #223971;
    color: white;
}

.mclaren{
    background-color: #FF8000;
}

.ferrari{
    background-color: red;
}

.mercedes{
    background-color: #03BFB5;
}

.astonmartin {
    background-color: #00665E;
    color: white;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px; /* ajusta según tu diseño */
}

.image-container img {
    width: 100%;
    display: block;
}

.image-container .watermark-logo {
    position: absolute;  
    bottom: 20px;        
    right: 20px;      
    width: 120px;       /* tamaño fijo que no ocupe toda la imagen */
    height: auto;        
    pointer-events: none;
    z-index: 10;       
}

/* TABLA DE RESULTADOS*/
.results-session table {
    width: 100%;
    border-collapse: separate; /* Necesario para permitir bordes redondeados */
    border-spacing: 0; /* Evita espacios entre celdas */
    border: 1px solid rgb(200,200,200);
    letter-spacing: 1px;
    text-align: left;
    font-size: 0.8rem;
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Para asegurar el borde redondeado */
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
}

.results-session table tr:first-child td {
    border-bottom: 1px solid rgb(200,200,200);
}

.results-session .nombre:nth-child(3) {
    width: 210px;
}
.results-session .nombre:nth-child(5) {
    width: 30px;
}
.results-session .puntos:nth-child(6) {
    width: 30px;
}

.results-session table tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

.results-session table tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

.results-session table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.results-session table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.results-session td {
    padding: 5px 15px;
    text-align: center;
    border: none;
    word-wrap: break-word;
}

.results-session .posicion{
    background-color: rgb(255,255,255);
    font-size: 1.2em;
}

.results-session .cambios{
    background-color: rgb(255,255,255);
    font-weight: bold;
}

.results-session .nombre{
    background-color: rgb(255,255,255);
    font-size: 1.2em;
}

.results-session .pais{
    background-color: rgb(255,255,255);
    width: 70px;
}

.results-session .pais img{
    width: 50%;
    border-width: 1px;
    border-radius: .1562rem
}

.results-session .equipo{
    background-color: rgb(255,255,255);
    width: 80px;
}

.results-session .equipo img{
    width: 50%;
}

/* Cabecera */
.header {
    background-color: #000; /* Cambia el color de fondo a negro */
    color: #fff;
    padding-top: 10px;
    padding-bottom: 1px;
    padding-left: 0;
    padding-right: 0;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Asegura que la cabecera esté sobre otros elementos */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
}

.header.hidden {
    transform: translateY(-100%); /* Mueve la cabecera hacia arriba fuera de la vista */
    opacity: 0; /* También establece la opacidad a 0 */
}

.transition-class {
    transform: translateY(0);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Barra de navegación */
.navbar {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 10px;
    background-color: black;
    width: 100%;
    z-index: 1000; /* Asegura que la cabecera esté por encima de otros elementos */
}

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px; /* Espacio entre el logo y la barra de navegación */
}

.navbar .logo img {
    height: 60px; /* Ajusta el tamaño del logo */
    width: auto; /* Mantén la proporción del logo */
    vertical-align: middle;
}

.navbar .nav-menu {
    list-style: none;
    display: flex; /* Cambia a disposición horizontal */
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navbar .nav-menu li {
    margin-right: 20px;
}

.navbar .nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.navbar .nav-menu a:hover {
    color: var(--rojo);
}

.navbar .nav-menu .dropdown {
    /*display: inline-block;*/
    position: relative;
}

/*grid-template-columns: repeat(2, auto); */
.navbar .nav-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 330px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    gap: 40px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.navbar .nav-menu .dropdown:hover .dropdown-content {
    display: none; /* Primero ocultamos todo */
}

.navbar .nav-menu .dropdown:hover .dropdown-content,
.navbar .nav-menu .dropdown .dropbtn:hover + .dropdown-content,
.navbar .nav-menu .dropdown-content:hover {
    display: flex; /* Se muestra solo si pasas el cursor sobre el botón o el menú desplegado */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.navbar .nav-menu .dropdown .dropdown-column {
    display: flex;
    flex-direction: column;
}

.navbar .nav-menu .dropdown .dropdown-column h3 {
    margin: 0;
    padding-bottom: 8px;
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.navbar .nav-menu .dropdown .dropdown-content a {
    color: black;
    padding: 5px 0;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.navbar .nav-menu .dropdown .dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--rojo);
}


/* Pie de página */
.footer {
    background-color: black;
    text-align: left;
    padding: 20px 50px;
    margin: 0;
    width: 100%;
    height: 250px;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer .footer-logo {
    width: auto;
    height: 50px;
    border: none;
}

.footer .footer-copyright {
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;

    font-size: 1.0em;
    color: grey;
}

.footer .footer-links  {
    display: flex;
    padding-left: 0;
    margin-left: 0;
    gap: 9px;

}
.footer .footer-links  li{
    list-style-type: none;
}

.footer .footer-links li a {
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;

    font-size: 1.0em;
    color: #fff;
    text-decoration: none;
}

.footer .footer-links li a:hover {
    color: red;
}

.footer .social-media{
    display: flex;
    flex-direction: row;
    gap:20px;
}

.footer .social-media img{
    height: 30px; /* Ajusta el tamaño del logo */
    width: auto; /* Mantén la proporción del logo */
}

/* Boton desplegable de horarios */
.btn-toggle-horarios {
  padding: 8px 16px;
  margin-bottom: 1%;
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-toggle-horarios:hover {
  background-color: #e0e0e0;
  border-color: var(--rojo);
  color: var(--rojo);
  font-weight: bold;
}

.btn-toggle-horarios.active {
  background-color: #dfefff;
  border-color: #8bb8ff;
  color: #004494;
  font-weight: bold;
}

/* Estilo para la lista de artículos */
.main-content {
    flex: 1;
    padding-top: 90px; /* Ajuste para no solapar con el header */
    box-sizing: border-box;
    display: flex; /* Añadir display flex */
    justify-content: center; /* Centrar horizontalmente */
    align-items: flex-start; /* Asegurar que el contenido comience desde la parte superior */
}

.articles-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 20px; /* Espacio entre las tarjetas */
    width: 80%; /* Para que ocupe todo el ancho del contenedor */
    max-width: 1200px; /* Ancho máximo para limitar la expansión */
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 120px;
}

.articles-list .layout-begining .title-container {
    width: 100%;
    max-width: 1200px; /* Igual al max-width de las tarjetas */
    margin-top: 5%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    justify-content: flex-start; /* Asegurar que el contenido se alinee al inicio */
    box-sizing: border-box; /* Asegurar que el padding se incluya en el ancho total */
    align-items: center;
}

.articles-list .title-next-event-container {
    width: 100%; /* Igual al ancho de las tarjetas */
    max-width: 1200px; /* Igual al max-width de las tarjetas */
    margin-left: auto;
    margin-top: 7%;
    display: flex;
    justify-content: flex-start; /* Asegurar que el contenido se alinee al inicio */
    box-sizing: border-box; /* Asegurar que el padding se incluya en el ancho total */
    align-items: center;
}

.articles-list .title-event-container {
    width: 100%; /* Igual al ancho de las tarjetas */
    max-width: 1200px; /* Igual al max-width de las tarjetas */
    margin-left: auto;
    margin-top: 7%;
    display: flex;
    justify-content: flex-start; /* Asegurar que el contenido se alinee al inicio */
    box-sizing: border-box; /* Asegurar que el padding se incluya en el ancho total */
    align-items: center;
}

.articles-list .main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: black;
    padding-bottom: 0; /* Espacio para la línea */
    margin: 0 20px 5px 0; /* Espacio inferior */
    text-align: left; /* Alinear el texto a la izquierda */
    /* width: 100%; */
    box-sizing: border-box;
}

.articles-list .main-title span {
    position: relative;
    display: inline-block;         /* la línea se ajusta al ancho del texto */
    padding-bottom: .4rem;         /* espacio para la línea */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.articles-list .main-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;                   /* largo de la línea */
    height: 3px;                   /* grosor */
    background: var(--rojo);
    border-radius: 2px;            /* puntas suaves */
}

.articles-list .event-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: black;
    padding-bottom: 0; /* Espacio para la línea */
    margin: 0 0 5px 0; /* Espacio inferior */
    text-align: left; /* Alinear el texto a la izquierda */
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 1%;
}

.articles-list .event-title span {
    position: relative;
    display: inline-block;         /* la línea se ajusta al ancho del texto */
    padding-bottom: .4rem;         /* espacio para la línea */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.articles-list .event-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;                   /* largo de la línea */
    height: 3px;                   /* grosor */
    background: var(--rojo);
    border-radius: 2px;            /* puntas suaves */
}

.articles-list .more-articles-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: black;
    padding-bottom: 0; /* Espacio para la línea */
    margin: 0 0 5px 0; /* Espacio inferior */
    text-align: left; /* Alinear el texto a la izquierda */
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 1%;
}

.articles-list .more-articles-title span {
    position: relative;
    display: inline-block;         /* la línea se ajusta al ancho del texto */
    padding-bottom: .4rem;         /* espacio para la línea */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.articles-list .more-articles-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;                   /* largo de la línea */
    height: 3px;                   /* grosor */
    background: var(--rojo);
    border-radius: 2px;            /* puntas suaves */
}

/* LAYOUT BEGINING */
.articles-list .principal-block .layout-begining{
    width: 80%;
    height: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
    gap: 0.1rem;
    padding: 0 1rem;
}

.articles-list .list-group {
    width: 80%;
    height: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
    gap: 0.1rem;
    padding: 0 1rem;
}


.content-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}


.main-content .articles-list .list-group-item{
    background-color: #f4f4f4; 
    border: none;
    padding-left: 2rem; 
    padding-right: 2rem; 
    padding-bottom: 0;
}

/* MAIN ARTICLE */
.articles-list .layout-begining .main-article{
    width: 70%;
    height: auto;
    gap: 0;
    margin: 0 auto;
    margin-right: 0;
    display: flex; /* Utiliza flexbox para alinear los elementos */
    flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
    justify-content: space-between;
}

.articles-list .layout-begining .main-article .article-card{
    display: block;
    width: 100%;
    height: auto;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

.articles-list .layout-begining .main-article .article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.articles-list .layout-begining .main-article .article-card img {
    display: block;
    width: 100%;
    height: 400px;
}

.articles-list .layout-begining .main-article .article-card .article-content {
    padding: 15px;
    display: block;
    box-sizing: border-box;
    flex-grow: 1;
}

.articles-list .layout-begining .main-article .article-card h2 {
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.0em;
    margin: 0 0 20px 0; /* Margen alrededor del texto */
    border: none; /* Elimina la línea debajo del h2 */
    color: #333;
}

.articles-list .layout-begining .main-article .article-card .article-meta {
    display: flex;
    justify-content: start; /* Alinea los elementos al inicio */
    gap: 30px; /* Espacio entre la categoría y la fecha */
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #777;
}

.articles-list .layout-begining .main-article .article-card .article-meta .category {
    font-weight: bold;
    font-size: 1.25em;
    color: red;
}

.articles-list .layout-begining .main-article  .article-card .article-meta .date {
    font-style: italic;
    font-size: 1.0em;
}

.articles-list .layout-begining .main-article  .article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%; /* Para que el enlace ocupe todo el espacio de la tarjeta */
}

/* COLUMNS ARTICLES */
.articles-list .layout-begining .column-articles{
    width: 30%;
    height: auto; /* Fijamos el alto de la tarjeta */
    display: flex; /* Utiliza flexbox para alinear los elementos */
    flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
    justify-content: space-between;
    gap: 0.5rem;
}

.articles-list .layout-begining .column-articles .first-row{
    position: relative;
}

.articles-list .layout-begining .column-articles .second-row{
    position: relative;
}

.articles-list .layout-begining .column-articles .article-card{
    display: flex; /* Utiliza flexbox para alinear los elementos */
    flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
    width: 100%;
    height: auto;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 10px;
    flex-grow: 1;
}

.articles-list .layout-begining .column-articles .article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.articles-list .layout-begining .column-articles .article-card img {
    display: block;
    width: 100%;
    height: auto;
}

.articles-list .layout-begining .column-articles .article-card .article-content {
    padding: 15px;
    display: block;
    box-sizing: border-box;
    flex-grow: 1;
}

.articles-list .layout-begining .column-articles .article-card h2 {
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    margin: 0 0 10px 0; /* Margen alrededor del texto */
    border: none; /* Elimina la línea debajo del h2 */
    color: #333;
}

.articles-list .layout-begining .column-articles .article-card .article-meta {
    display: flex;
    justify-content: start; /* Alinea los elementos al inicio */
    gap: 30px; /* Espacio entre la categoría y la fecha */
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    color: #777;
}

.articles-list .layout-begining .column-articles .article-card .article-meta .category {
    font-weight: bold;
    font-size: 1.1em;
    color: red;
}

.articles-list .layout-begining .column-articles  .article-card .article-meta .date {
    font-style: italic;
    font-size: 0.85em;
}

.articles-list .layout-begining .column-articles  .article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%; /* Para que el enlace ocupe todo el espacio de la tarjeta */
}

/* Content-container-tables*/
.articles-list .layout-begining .content-container-tables .article-card {
    width: 100%;
}

/* NORMAL ARTICLECARD*/
.article-card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 250px; /* Fijamos el alto de la tarjeta */
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0 auto;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-card img {
    width: 40%; /* La imagen ocupará el 40% del ancho de la tarjeta */
    height: auto;/* La imagen ocupará el 100% del alto de la tarjeta */
    object-fit: cover
}

.article-card .article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    flex: 1; /* Para que el contenido ocupe el espacio restante */
    overflow: hidden; /* Oculta el contenido que se desborda */
}

.article-card h2 {
    font-family: 'Montserrat', sans-serif;
    /* font-family: Arial, sans-serif; */
    font-size: 2.0em;
    margin: 0 0 10px 0; /* Margen alrededor del texto */
    border: none; /* Elimina la línea debajo del h2 */
    color: #333;
}

.article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre la categoría y la fecha */
    justify-content: start; /* Alinea los elementos al inicio */
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #777;
}

.article-card .article-meta .category {
    font-weight: bold;
    font-size: 1.25em;
    color: red;
}

.article-card .article-meta .date {
    font-style: italic;
    font-size: 1.0em;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%; /* Para que el enlace ocupe todo el espacio de la tarjeta */
}

/* Calendar */
.calendar{
    width: 80%;
    max-width: 1200px;
    margin: 120px auto 0;
    margin-bottom: 50px;
}

.calendar .title-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 0; /* Espacio entre el título y las tarjetas */
    margin-top: 20px; /* Espacio superior para que no sea tapado por el header */
    margin-left: 50px;
    display: flex;
    justify-content: flex-start; /* Asegurar que el contenido se alinee al inicio */
    /*padding-left: calc(50% - 550px);*/
}

.calendar .title-container .main-title {
    /* font-family: Arial, sans-serif; */
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: black;
    padding-bottom: 0; /* Espacio para la línea */
    margin: 0 0 5px 0; /* Espacio inferior */
    text-align: left; /* Alinear el texto a la izquierda */
    width: auto; /* Ajustar el ancho para el título */
}

.calendar .title-container .main-title span {
    position: relative;
    display: inline-block;         /* la línea se ajusta al ancho del texto */
    padding-bottom: .4rem;         /* espacio para la línea */
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.calendar .title-container .main-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;                   /* largo de la línea */
    height: 3px;                   /* grosor */
    background: var(--rojo);
    border-radius: 2px;            /* puntas suaves */
}

.calendar .calendar-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-right: 50px;
    margin-left: 50px;
    padding-top: 15px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.calendar .calendar-row .calendar-item {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    max-width: 350px;
    padding-bottom: 0;
    padding-top: 0;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow:hidden;
    background-color: white;
}

.calendar .calendar-row .calendar-item .image-container {
    width: 100%;
    background-color: #f6f5f2; 
    background-size: cover; /* Asegura que la bandera cubra todo el fondo */
    background-position: center; /* Centra la bandera */
    display: flex;
    justify-content: center;
    align-items: center;

}

.calendar .calendar-row .calendar-item .image-container img {
    width: 95%; 
    height: 197px; 
    margin: 2.5%;
}

.calendar .calendar-row .calendar-item .image-container-pretemporada {
    width: 100%;
    background-color: #f6f5f2; 
    background-size: cover; /* Asegura que la bandera cubra todo el fondo */
    background-position: center; /* Centra la bandera */
    display: flex;
    justify-content: center;
    align-items: center;
    /*border-bottom: 2px solid black;*/
}

.calendar .calendar-row .calendar-item .image-container-pretemporada img {
    width: 95%; 
    height: 197px; 
    margin: 2.5%;
}

.calendar .calendar-row .calendar-item h2 {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
    margin: 10px 0 2px;
}

.calendar .calendar-row .calendar-item p {
    text-align: left;
    font-size: 1em;
    color: grey;
    margin: 5px 0;
}

.calendar .calendar-row .calendar-item button {
    padding: 2%;
}

button.accordion-button:focus {
    outline: none !important; /* Elimina el borde azul */
    box-shadow: none !important; /* Elimina la sombra del foco */
    background-color: transparent;
}

.calendar .calendar-row .calendar-item span {
    font-size: 1.1em;
    color: black;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
}

.calendar .calendar-row .calendar-item .desplegable p{
    /* font-family: Arial, sans-serif; */
    font-family: 'Roboto', sans-serif;
    color: black;
    font-size: 1em;
}

/* Pasadas */
.calendar .calendar-row .calendar-item.past {
    background: #e0e0e0;
    color: #333;
    opacity: 0.8;
}
.calendar .calendar-row .calendar-item.past span {
    color: #777;
}
.calendar .calendar-row .calendar-item.past button {
    background-color: transparent;
}

/* Próxima */
.calendar .calendar-row .calendar-item.next {
    border: 2px solid #e10600;
    /* background: #fff5f5; */
    position: relative;
    color: #111;
}

.calendar .next-race .calendar-item.next {
    border: 2px solid #e10600;
    /* background: #fff5f5; */
    position: relative;
    color: #111;
}
.calendar .calendar-row .calendar-item.next button {
    background-color: transparent;
}
.calendar .next-race .calendar-item.next button {
    background-color: transparent;
}
.calendar .calendar-row .calendar-item.next::before {
    content: "Próxima carrera";
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e10600;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}
.calendar .next-race .calendar-item.next::before {
    content: "Próxima carrera";
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e10600;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
}

/* Siguiente carrera */
.calendar .next-race{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 70px;
    max-width: 1200px;
    margin-right: 50px;
    margin-left: 50px;
    padding-top: 10px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.calendar .next-race .calendar-item {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 350px;
    padding-bottom: 0;
    padding-top: 0;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow:hidden;
    background-color: white;
    flex: 0 0 auto;
}

.calendar .next-race .calendar-item .image-container {
    width: 100%;
    background-color: #f6f5f2; /* Cambia el color según tus necesidades */
    background-size: cover;
	background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid black;
}

.calendar .next-race .calendar-item img{
    width: 350px;
    height: 197px;
}

.calendar .next-race .calendar-item p {
    text-align: left;
    font-size: 1em;
    color: grey;
    margin: 5px 0;
}

.calendar .next-race .calendar-item h2 {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
    margin: 10px 0 3px;
}

.calendar .next-race .calendar-item p {
    text-align: left;
    font-size: 1em;
    color: grey;
    margin: 5px 0;
}

.calendar .next-race .calendar-item span {
    font-size: 1.1em;
    color: black;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
}

.calendar .next-race table {
    margin-left: 80px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.15rem;
    table-layout: auto;
    height: 315px;
    width: 465px;
}

.calendar .next-race tr {
    border-radius: 8px; /* Esquinas redondeadas para toda la fila */
    overflow: hidden;
}

.calendar .next-race td,
.calendar .next-race th {
    padding: 5px 20px; /* Reduce el espacio interno para ahorrar espacio */
    text-align: left;
    word-wrap: break-word;
    border: 1px solid #ddd; /* Mantiene los bordes entre celdas */
    border-left: none; /* Eliminar bordes verticales */
    border-right: none; /* Eliminar bordes verticales */
    border-top: 1px solid #ddd;/* Bordes horizontales superiores en negro */
    border-bottom: 1px solid #ddd;
}

.calendar .next-race th {
    background-color: rgb(235, 235, 235);
    text-align: left;
}

/* Esquinas redondeadas solo en la primera y última celda de la fila */
.calendar .next-race tr:first-child td,
.calendar .next-race tr:first-child th {
    border-top: 2px solid #ddd; /* Grosor del borde superior */
}

.calendar .next-race tr:last-child td,
.calendar .next-race tr:last-child th {
    border-bottom: 2px solid #ddd; /* Grosor del borde inferior */
}

.calendar .next-race tr:first-child td:first-child {
    border-top-left-radius: 8px;
}

.calendar .next-race tr:first-child td:last-child {
    border-top-right-radius: 8px;
}

.calendar .next-race tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.calendar .next-race tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.calendar .next-race td:first-child,
.calendar .next-race th:first-child {
    border-left: 2px solid #ddd; /* Borde izquierdo en negro */
}

.calendar .next-race td:last-child,
.calendar .next-race th:last-child {
    border-right: 2px solid #ddd; /* Borde derecho en negro */
}

.calendar .next-race th {
    background-color: rgb(235, 235, 235);
    text-align: left;
}

.calendar .next-race td:nth-child(3) > span {
    background-color: black;
    color: white;
    border-radius: 8px; /* Bordes redondeados */
    padding: 2px 6px; /* Reducir el tamaño del rectángulo */
    display: inline-block; /* Hace que el rectángulo se ajuste a su contenido */
    margin: 0 auto; /* Centrar el rectángulo dentro de la celda */
    text-align: center; /* Centrar el texto dentro del rectángulo */
}

/* Desplegable*/
.calendar .next-race a{
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; /* Elimina el subrayado */
    color: inherit; /* Mantiene el color original del texto */
}

.calendar .next-race a:hover{
    transform: scale(1.05); /* Aumenta ligeramente el tamaño */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Añade una sombra */
}

/* Estilo inicial */
.highlight {
    box-shadow: 0 0 25px rgba(128, 128, 128, 0.8);
    transition: box-shadow 1s;
}


/* Accordion*/
.accordion-button {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: center;
    padding: 0;
    justify-content: center; /* Centra la flecha horizontalmente */
    display: flex;
}

.accordion-button:focus {
    box-shadow: none;
}

button.accordion-button:not(.collapsed) {
    background-color: transparent;
}
.accordion-item .accordion-button .collapsed::after {
    transform: translateY(50%); /* Ajusta la flecha para que quede centrada */
}

.accordion-body {
    border: 1px solid #ddd; /* Borde para el contenido desplegable */
    border-top: none;       /* Elimina el borde superior */
    padding: 10px 0;
    text-align: left;
}

.accordion-collapse {
    width: 100%;
}

button.accordion-button.collapsed::after{
    align-items: center;
    background-color: transparent;
    color: white;
    margin-left: 0;
    margin-right: 0;
}

button.accordion-button::after{
    align-items: center;
    background-color: transparent;
    color: white;
    margin-left: 0;
    margin-right: 0;
}

/* Estilos tabla de clasificacion */
.mundial-pilotos{
    width: 100%;
    gap: 0;
    display: flex; /* Utiliza flexbox para alinear los elementos */
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    background-color: rgb(255,255,255);
}
.mundial-constructores{
    width: 100%;
    gap: 0;
    display: flex; /* Utiliza flexbox para alinear los elementos */
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    background-color: rgb(255,255,255);
}

.mundial-pilotos .winning-photo{
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 350px; /* Ajusta este valor según el tamaño de la imagen */
    vertical-align: top;
}

.mundial-constructores .winning-photo{
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px; /* Ajusta este valor según el tamaño de la imagen */
    vertical-align: top;
}

.mundial-pilotos .winning-photo .wining-marco{
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    /*background-color: blue;*/
    margin-top: 5px;
    margin-right: 5px;
    margin-left: 5px;
    margin-bottom: 15px;
}

.mundial-constructores .winning-photo .wining-marco{
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    /*background-color: blue;*/
    margin-top: 5px;
    margin-right: 5px;
    margin-left: 5px;
}

.mundial-pilotos .winning-photo .wining-marco img{
    width: 90%;
    height: auto;
    display: block;
    margin-top: 20px;
}

.mundial-constructores .winning-photo .wining-marco img{
    width: 90%;
    height: auto;
    display: block;
    margin-top: 20px;
}

.mundial-pilotos .winning-photo .wining-table{
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
}

.mundial-constructores .winning-photo .wining-table{
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
}

.mundial-pilotos .winning-photo .wining-table table{
    width: 100%;
    background-color: #f9f9f9;
}

.mundial-constructores .winning-photo .wining-table table{
    width: 100%;
    background-color: #f9f9f9;
}

/* Solo líneas horizontales */
.mundial-pilotos .winning-photo .wining-table td {
    border-bottom: 1px solid rgb(200,200,200);
    padding: 7px;
}

.mundial-constructores .winning-photo .wining-table td {
    border-bottom: 1px solid rgb(200,200,200);
    padding: 5px;
}

.titulo-stats{
    font-size: 1.1rem;
    font-weight: 500;
}
.text-stats{
    font-size: 1rem;
}

.mundial-pilotos .wining-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* Para alinear el texto a la izquierda */
    align-items: flex-start; /* Para centrar verticalmente el texto */
    padding: 55px; /* Ajusta el espacio alrededor del texto si es necesario */
    margin-top: 55%;
    margin-left: 2%;
    margin-bottom: 0;
    pointer-events: none; /* Asegura que el texto no bloquee la interacción con la imagen */
}

.mundial-pilotos .position {
    font-size: 3rem; /* Ajusta el tamaño según lo necesites */
    margin-left: 1%; /* Espaciado desde la izquierda */
    margin-right: 4%; /* Espaciado entre el número y el nombre */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-pilotos .driver-name {
    display: flex;
    color: gold;
    flex-direction: column;
}

.mundial-constructores .driver-name {
    display: flex;
    color: gold;
    flex-direction: column;
}

.mundial-pilotos .first-name {
    font-size: 1.5rem; /* Ajusta el tamaño según lo necesites */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-constructores .first-name {
    font-size: 1.5rem; /* Ajusta el tamaño según lo necesites */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-pilotos .last-name {
    font-size: 2rem; /* Ajusta el tamaño según lo necesites */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-constructores .last-name {
    font-size: 2rem; /* Ajusta el tamaño según lo necesites */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-constructores .wining-text-constructors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* Para alinear el texto a la izquierda */
    align-items: baseline; /* Para centrar verticalmente el texto */
    padding: 13%; /* Ajusta el espacio alrededor del texto si es necesario */
    margin-top: 65%;
    margin-left: 8%;
    margin-bottom: 0;
    pointer-events: none; /* Asegura que el texto no bloquee la interacción con la imagen */
}

.mundial-constructores .position-constructor {
    font-size: 3rem; /* Ajusta el tamaño según lo necesites */
    margin-left: 1%; /* Espaciado desde la izquierda */
    margin-right: 4%; /* Espaciado entre el número y el nombre */
    /*margin-left: 10px;
    margin-right: 15px; */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-constructores .constructor-name {
    font-size: 2.6rem; /* Ajusta el tamaño del nombre del constructor si es necesario */
    font-family: sans-serif;
    color: gold;
    text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mundial-pilotos table {
    width: 80%;
    border-collapse: separate; /* Necesario para permitir bordes redondeados */
    border-spacing: 0; /* Evita espacios entre celdas */
    border: 1px solid rgb(200,200,200);
    letter-spacing: 1px;
    text-align: left;
    font-size: 0.8rem;
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Para asegurar el borde redondeado */
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
}

.mundial-pilotos table thead tr {
  background-color: #444444;
  border-bottom: 1px solid rgb(200,200,200);
}

.mundial-pilotos table thead td,
.mundial-pilotos table thead th {
  background: transparent; /* importante: fondo solo en el tr */
  color: white;
  border: none !important;
  padding: 8px;
}

.mundial-pilotos table thead td:first-child {
  border-top-left-radius: 10px;
}
.mundial-pilotos table thead td:last-child {
  border-top-right-radius: 10px;
}
.mundial-pilotos table thead td {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.mundial-pilotos table tbody td {
    background-color: #f9f9f9;  
}
.mundial-pilotos .nombre:nth-child(3) {
    width: 210px;
}
.mundial-pilotos .nombre:nth-child(5) {
    width: 30px;
}
.mundial-pilotos .puntos:nth-child(6) {
    width: 30px;
}

.mundial-constructores table {
    width: 80%;
    border-collapse: separate; /* Necesario para permitir bordes redondeados */
    border-spacing: 0; /* Evita espacios entre celdas */
    border: 1px solid rgb(200,200,200);
    letter-spacing: 1px;
    text-align: left;
    font-size: 0.8rem;
    border-radius: 10px; /* Bordes redondeados */
    overflow: hidden; /* Para asegurar el borde redondeado */
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
}

.mundial-constructores table thead td {
  background-color: #444444;
  font-size: 1.0rem;
  color: white; /* texto visible sobre gris oscuro */
  border-bottom: 1px solid rgb(200,200,200);
  padding: 8px;
}
.mundial-constructores table thead td:first-child {
  border-top-left-radius: 10px;
}
.mundial-constructores table thead td:last-child {
  border-top-right-radius: 10px;
}
.mundial-constructores table thead td {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.mundial-constructores table tbody td {
    background-color: #f9f9f9;  
}



/* Bordes redondeados */
.mundial-pilotos table tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

.mundial-pilotos table tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

.mundial-pilotos table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.mundial-pilotos table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}


/* Estilo de las celdas */
.mundial-pilotos td {
    padding: 5px 10px;
    text-align: center;
    border: none;
    word-wrap: break-word;
}
.mundial-constructores td {
    padding: 5px 15px;
    text-align: center;
    border: none;
    word-wrap: break-word;
}
/* Clases de estilo de objeto*/
.posicion{
    font-weight: bold;
}

.mundial-constructores .posicion{
    font-weight: bold;
    font-size: 1.1rem;
}

.puntos{
    font-weight: bold;
}

.mundial-constructores .puntos{
    font-weight: bold;
    font-size: 1.1rem;
}

.mundial-constructores .nombre{
    font-size: 1.1rem;
}

.pais{
    background-color: rgb(255,255,255);
    width: 67px;
}

.pais img{
    width: 60%;
    border-width: 1px;
    border-radius: .1562rem
}

.equipo{
    background-color: rgb(255,255,255);
    width: 80px;
}
.equipo img{
    width: 60%;
}

/* Bloque estadísticas, desplegables y demás */
.graph-historic {
    padding-top: 30px;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.graph-historic img{
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 960px;
}

.wining-marco {
    background-color: #ff8000;
}

.clickable {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.fila-detalle td {
    background-color: #f9f9f9;
    padding: 5px;
    overflow-x: hidden;
    width: 100%; /* Modificar */
    table-layout: fixed; /* Modificar */
}

.detalle-contenedor {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.detalle-contenedor .winning-photo{
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 250px;
    vertical-align: top;
}
.detalle-estadisticas {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}

.bloque-estadisticas {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px 15px;
    background-color: #ffffff;      /* Blanco puro */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.bloque-estadisticas h2 {
    font-size: 1.0rem;
    font-weight: 700;
    text-align: left;
    margin-top: 0;
    margin-bottom: 10px;
}

.bloque-estadisticas table {
    width: 100%;
    border: 1px solid rgb(200, 200, 200); /* Primera línea horizontal */
    table-layout: fixed;          /* columnas no crecen por contenido */
    word-break: break-word;       /* parte palabras largas */
    border-collapse: collapse;
    outline: 1px solid rgb(200, 200, 200);
}

.bloque-estadisticas td {
    border-bottom: 1px solid rgb(200, 200, 200);
    padding: 8px;
    vertical-align: top;
    word-wrap: break-word;
}
.bloque-estadisticas tr:last-child td {
    border-bottom: none;
}


.detalle-contenedor .winning-photo .posicion-marco {
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    margin-top: 5px;
    margin-right: 5px;
    margin-left: 5px;
}

.grid-estadisticas .celda-grafica {
    grid-column: 1 / -1;   /* ocupa las 2 columnas completas */
    justify-content: center;
    align-items: center;
    padding: 0;
}

.grid-estadisticas .grafica .icono-globales-contenedor img {
    width: 100%;
    max-width: none;              /* que no ponga límite propio */
}
/* Este contiene solo la imagen debajo de la del piloto */
.icono-globales-contenedor {
    width: 100%;
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    background-color: rgb(40,38,37);
}

/* Envoltorio solo para imagen + bloque globales */
.bloque-globales-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 10px;
}
.fila-detalle > td {
    padding: 10px;  /* añade espacio interno a derecha e izquierda */
    box-sizing: border-box;
}
.grid-estadisticas {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* ya no uses minmax con 1fr */
    grid-template-rows: auto auto;
    gap: 10px 20px;                 /* row-gap / column-gap */
    width: 100%;
    /* margin: 10px; */
    align-items: start;
    inline-size: 100%;
    max-inline-size: 900px;        /* fija un ancho máximo estable (ajústalo) */
    box-sizing: border-box;
}

.fila-detalle > td {
    width: 100%;              /* se adapta a la tabla principal */
    max-width: 0;             /* fuerza al grid a no expandir el td */
    overflow: hidden;         /* evita que se desborde */
    box-sizing: border-box;
}

/* Opcional: estiliza cada celda */
.grid-estadisticas .celda {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0; 
    overflow: hidden;
}

.grid-estadisticas .celda > .bloque-estadisticas {
    width: 100%;  /* que se estire al ancho completo de la celda */
}

/* Controla tamaños */
.celda .winning-photo .wining-marco {
    border: 2px solid rgb(200,200,200);
    border-radius: 14px;
    /* background-color: blue; */
    /* margin: 0 20px; */
}

.celda .winning-photo .wining-marco img{
    height: auto;
    width: 100%;
    max-width: 234px;
    margin: 0;
    object-fit: contain;
}

.icono-global-grande {
    height: auto;
    /* max-width: 234px; */
    width: 100%;
    object-fit: contain;
    margin: 0;
    padding: 4px;
}

/* Bloque de Informacion */
.info-block {
    display: flex;
    flex-direction: column;   /* los hijos uno debajo del otro */
    align-items: flex-start;
    text-align: left;
}

.info-block h1 {
    font-weight: 700;
    font-size: 2.0rem;
}

.info-block h2 {
    font-weight: 300;
    font-size: 1.2rem;
}

.info-block p {
    font-size: 2.5rem;
    font-weight: 600;
}

.info-block .nacionalidad,
.info-block  .team {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 7px 0;
    padding: 0;
}
.info-block .nacionalidad p,
.info-block .team p {
    font-size: 1.1rem;
    font-weight: 200;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}
.info-block .nacionalidad img {
    height: auto;
    width: 100%;
    max-width: 45px;
    border-width: 1px;
    border-radius: .1562rem
}
.info-block .team img {
    height: auto;
    width: 100%;
    max-width: 40px;
}

/* Wining table title*/
.mundial-pilotos .winning-photo .wining-table .wining-table-title {
    padding: 12px;
    background-color: #444444;
    border: 2px  solid  #444444;
    border-radius: 10px;
}
.mundial-pilotos .winning-photo .wining-table .wining-table-title h2 {
    color: white;
}
/* Bloque estadisticas title */
.bloque-estadisticas .bloque-estadisticas-title {
    padding: 10px;
    background-color: #444444;
    border: 2px  solid  #444444;
    border-radius: 10px;
}

.bloque-estadisticas .bloque-estadisticas-title h2 {
    color: white;
    margin: 0;
}

.mundial-constructores table .bloque-estadisticas .bloque-estadisticas-title h2 {
    color: white;
    margin: 0;
    font-size: 0.8rem;
}

td.nombre[onclick="toggleDetalle(this)"]:hover {
    color: red;
    cursor: pointer;
}

/* Bootstrap scope*/
.bootstrap-scope .nav {
    display: flex;
    gap: 20px; /* Espacio entre elementos sin afectar la alineación */
    padding-bottom: 10px;
}

.bootstrap-scope .nav-link {
    font-size: 1.4rem;
    color: black !important;
    padding: 0;
    border-bottom: 3px solid transparent;
    font-weight: 450;
    transition: border-bottom 0.3s ease-in-out, color 0.3s ease-in-out;
}

.bootstrap-scope .nav-link::before {
    content: "➤";
    color: black;
    margin-right: 8px;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}
.bootstrap-scope .nav-link.nav-proximo-evento::before {
    content: none !important;
}

.bootstrap-scope .nav-link:hover::before {
    color: var(--rojo);
}

.bootstrap-scope .nav-link.current::before {
    content: "➤";
    color: var(--rojo);
}

.bootstrap-scope .nav-link.active::before {
    content: "➤";
    color: var(--rojo);
}

.bootstrap-scope .nav-link.current {
    color: black !important;
    border-bottom: 3px solid var(--rojo);
}

.bootstrap-scope .nav-link:hover {
    color: var(--rojo) !important;
}


/* Region in index */
.region {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Coloca los elementos en los extremos */
    align-items: flex-start; 
}

.region .calendar-item {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    max-width: 350px;
    padding-bottom: 0;
    padding-top: 0;
    margin: 0;
    border: 2px solid #ddd;;
    border-radius: 8px;
    overflow:hidden;
    background-color: white;
}

.region .calendar-item .image-container {
    width: 100%;
    background-color: #f6f5f2; 
    background-size: cover; /* Asegura que la bandera cubra todo el fondo */
    background-position: center; /* Centra la bandera */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid black;
}

.region .calendar-item .image-container img {
    width: 95%; 
    height: 197px; 
    margin: 2.5%;
}

.region .calendar-item h2 {
    text-align: center;
    font-weight: 600;
    font-size: 1.5em;
    margin: 10px 0 2px;
}

.region .calendar-item p {
    text-align: left;
    font-size: 1em;
    color: grey;
    margin: 5px 0;
}

.region .calendar-item span {
    font-size: 1.1em;
    color: black;
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
}

.region table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.16rem;
    table-layout: auto;
    height: 315px;
    width: 465px;
}

.region tr {
    border-radius: 8px; /* Esquinas redondeadas para toda la fila */
    overflow: hidden;
}

.region td,
.region th {
    padding: 5px 20px; /* Reduce el espacio interno para ahorrar espacio */
    text-align: left;
    word-wrap: break-word;
    border: 1px solid #ddd; /* Mantiene los bordes entre celdas */
    border-left: none; /* Eliminar bordes verticales */
    border-right: none; /* Eliminar bordes verticales */
    border-top: 1px solid #ddd; /* Bordes horizontales superiores en negro */
    border-bottom: 1px solid #ddd;
}

.region th {
    background-color: rgb(235, 235, 235);
    text-align: left;
}

/* Esquinas redondeadas solo en la primera y última celda de la fila */
.region tr:first-child td,
.region tr:first-child th {
    border-top: 2px solid #ddd; /* Grosor del borde superior */
}

.region tr:last-child td,
.region tr:last-child th {
    border-bottom: 2px solid #ddd; /* Grosor del borde inferior */
}

.region tr:first-child td:first-child {
    border-top-left-radius: 8px;
}

.region tr:first-child td:last-child {
    border-top-right-radius: 8px;
}

.region tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.region tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.region td:first-child,
.region th:first-child {
    border-left: 2px solid #ddd; /* Borde izquierdo en negro */
}

.region td:last-child,
.region th:last-child {
    border-right: 2px solid #ddd; /* Borde derecho en negro */
}

.region th {
    background-color: rgb(235, 235, 235);
    text-align: left;
}

.region td:nth-child(3) > span {
    background-color: black;
    color: white;
    border-radius: 8px; /* Bordes redondeados */
    padding: 2px 6px; /* Reducir el tamaño del rectángulo */
    display: inline-block; /* Hace que el rectángulo se ajuste a su contenido */
    margin: 0 auto; /* Centrar el rectángulo dentro de la celda */
    text-align: center; /* Centrar el texto dentro del rectángulo */
}

.counter-container {
    flex: 1; /* Ocupar espacio proporcionalmente */
    display: flex;
    gap: 5px;
    flex-wrap: wrap; /* Permitir que los elementos se ajusten automáticamente */
    margin-left: 5%;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px; /* Tamaño fijo para pantallas pequeñas */
    height: 95px;
    background-color: #000; /* Fondo negro */
    border: 2px solid #444; /* Borde gris oscuro */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Sombra */
}

.time-box strong {
    font-size: 1.5rem; /* Ajustado para pantallas pequeñas */
    color: #fff; /* Números en blanco */
}

.time-label {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #aaa; /* Etiquetas en gris claro */
    text-transform: uppercase; /* Texto en mayúsculas */
} 

.hidden-table {
    display: none;   
}

/* Media queries para pantallas pequeñas */
@media (max-width: 768px) {
    /* General */
    .main-content {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
    }

    /* Header tamaño de letra nav-menu */
    .navbar .nav-menu a {
        font-size: 0.8em;
    }

    /* ARTICLE CARD and index */
    .articles-list {
        width: 100%; /* Asegura que ocupe todo el ancho del contenedor */
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        gap: 2px
    }

    ul {
        padding-left: 0;
        margin-left: 0;
        margin-bottom: 0;
        margin-top: 0;
    }

    .articles-list .title-container {
        width: 100%; /* Ancho casi completo */
        padding-left: 0; /* Alinear el título con las tarjetas */
        margin-left: 3%;
        margin-top: 10%;
        margin-bottom: 14px;
        text-align: left;
        padding-top: 1px; /* rompe colapso de margen */
    }

    .articles-list .layout-begining .title-container {
        width: 96%; /* Ancho casi completo */
        padding-left: 0; /* Alinear el título con las tarjetas */
        margin-left: auto;
        margin-right: auto;
        margin-top: 10%;
        margin-bottom: 10px;
        text-align: left;
        padding-top: 1px; /* rompe colapso de margen */
        gap: 5px;
    }

    .articles-list .title-next-event-container {
        margin-left: 3%
    }

    .articles-list .main-title {
        font-size: 1.5em; /* Tamaño de fuente más pequeño para el título principal */
        text-align: left;
        width: 100%;
        padding-left: 0; /* Remover padding */
        margin-right: 0;
    }

    .articles-list .event-title {
        font-size: 1.5em; /* Tamaño de fuente más pequeño para el título principal */
        text-align: left;
        width: 100%;
        padding-left: 0; /* Remover padding */
    }

    .articles-list .more-articles-title {
        font-size: 1.5em; /* Tamaño de fuente más pequeño para el título principal */
        text-align: left;
        width: 100%;
        padding-left: 0; /* Remover padding */
    }

    .article-card {
        flex-direction: column;
        width: 100%;
        height: auto; 
        /* margin: 0 auto; */
    }

    .article-card .article-content h2 {
        font-size: 1em; /* Tamaño de fuente ajustado para pantallas pequeñas */
    }

    .article-card .article-meta {
        font-size: 0.7em; /* Tamaño de fuente ajustado para pantallas pequeñas */
    }

    /* SECCIONES PRINCIPALES*/
    .articles-list .principal-block .layout-begining{
        width: 100%;
        height: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
        gap: 5px;
        padding: 0;
    }

    .articles-list .layout-begining .content-container {
        display: block;
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }

    .principal-block{
        padding: 0 0.5rem;
    }

    .articles-list .layout-begining .content-container .main-article{
        width: 100%;
        height: auto;
        gap: 0;
        margin-left: 0;
        display: flex; /* Utiliza flexbox para alinear los elementos */
        flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
        justify-content: space-between;
    }

    .articles-list .layout-begining .content-container .main-article .article-card {
        flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
        width: 95%;
        height: auto;
        margin: 2% auto;
    }

    .articles-list .layout-begining .content-container .main-article .article-card img{
        width: 100%;
        height: auto;
    }

    .articles-list .layout-begining .content-container .main-article .article-card .article-content h2{
        font-size: 1.5em;
    }

    .articles-list .layout-begining .content-container .main-article .article-card .article-meta{
        font-size: 0.8em;
    }

    .articles-list .layout-begining .content-container .column-articles{
        width: 100%; /* Asegura que ocupe todo el ancho del contenedor */
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        gap: 2px;
    }

    .articles-list .layout-begining .content-container .column-articles .article-card {
        width: 95%;
        height: auto;
        margin: 1% auto; /* Margen uniforme a la izquierda y derecha */
        display: flex;
        flex-direction: row;
        flex-grow: 0;
        overflow: hidden;
    }

    .articles-list .layout-begining .content-container .column-articles .article-card img {
        display: flex;
        flex-direction: row;
        width: 40%;
        height: auto;
    }

    .articles-list .layout-begining .content-container .column-articles .article-card h2 {
        font-size: 1.0em;
    }

    .articles-list .layout-begining .content-container .column-articles .article-card .article-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        flex: 1;
        overflow: hidden;
        width: 60%;
        height: auto;
    }

    .articles-list .layout-begining .content-container .column-articles .article-card a {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: row;
        width: 100%; /* Para que el enlace ocupe todo el espacio de la tarjeta */
    }

    .articles-list .list-group{ 
        width: 100%;
    }

    .main-content .articles-list .list-group-item {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    /* ARTICULOS */
    .centered-content {
        width: 95%; /* Ancho completo */
    }

    .centered-content h2 {
        /* font-family: Arial, sans-serif; */
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2em; /* Ajusta el tamaño de la fuente */
        margin: 30px 0 20px; /* Agrega un margen arriba (30px) y abajo (10px) */
        color: #333; /* Color del texto, puedes cambiarlo a tu preferencia */
        border: none;
    }

    .centered-content p {
        /* font-family: Arial, sans-serif; */
        font-family: 'Roboto', sans-serif;
        font-size: 0.9em; /* Ajusta el tamaño de la fuente, puedes ajustar el valor */
        line-height: 1.6; /* Aumenta la altura de línea para mejor legibilidad */
        word-spacing: 0.1em; /* Aumenta el espacio entre palabras, puedes ajustar el valor */
        color: #555; /* Color del texto, puedes cambiarlo a tu preferencia */
        margin: 20px 0
    }

    .centered-content .article-start h1{
        font-family: 'Montserrat', sans-serif;
        font-size: 1.5em; /* Ajusta el tamaño de la fuente */
    }

    .centered-content .article-start .article-meta .category {
        font-size: 1.2em; /* Reduce el tamaño de fuente para pantallas pequeñas */
    }

    .centered-content .article-start .article-meta .date {
        font-size: 0.9em; /* Reduce el tamaño de fuente para pantallas pequeñas */
    }

    .centered-content img {
        width: 100%; /* Imagen ocupa todo el ancho del contenedor */
    }

    .centered-content table {
        width: 100%;
        border-collapse: collapse;
        border: 2px solid rgb(200,200,200);
        letter-spacing: 1px;
        font-size: 0.4rem;
        table-layout: auto;
    }

    .centered-content td, th {
        border: 1px solid rgb(190,190,190);
        padding: 5px 10px;
        text-align: left;
        word-wrap: break-word;
    }

    .centered-content th {
        background-color: rgb(235,235,235);
        text-align: left;
    }

    .redbull{
        background-color: #223971;
        color: white;
    }

    .mclaren{
        background-color: #FF8000;
    }

    .ferrari{
        background-color: red;
    }

    .mercedes{
        background-color: #03BFB5;
    }

    .astonmartin {
        background-color: #00665E;
        color: white;
    }

    .image-container .watermark-logo {
        width: 80px;
        bottom: 4%;
        right: 3%;
    }

    /* TABLA DE RESULTADOS*/
    .results-session table {
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid rgb(200,200,200);
        letter-spacing: 1px;
        text-align: left;
        font-size: 0.38rem;
        border-radius: 10px;
        overflow: hidden;
    }

    .results-session table tr:first-child td {
        border-bottom: 1px solid rgb(200,200,200);
    }

    .results-session table tr:first-child td:first-child {
        border-top-left-radius: 10px;
    }

    .results-session table tr:first-child td:last-child {
        border-top-right-radius: 10px;
    }

    .results-session table tr:last-child td:first-child {
        border-bottom-left-radius: 10px;
    }

    .results-session table tr:last-child td:last-child {
        border-bottom-right-radius: 10px;
    }

    .results-session td {
        padding: 5px 10px;
        text-align: center;
        border: none;
        word-wrap: break-word;
    }

    .results-session .pais{
        background-color: rgb(255,255,255);
        width: 40px;
    }

    .results-session .nombre{
        font-size: 0.5rem;
    }

    .results-session .cambios{
        font-size: 0.55rem;
    }


    .results-session .pais img{
        width: 100%;
        border-width: 1px;
        border-radius: .1562rem
    }

    .results-session .equipo{
        background-color: rgb(255,255,255);
        width: 60px;
    }

    .results-session .equipo img{
        width: 70%;
    }

    /* FOOTER */
    .footer .footer-copyright p{
        font-size: 0.9em;
        color: grey
    }

    .footer .footer-links li a {
        /* font-family: Arial, sans-serif; */
        font-family: 'Montserrat', sans-serif;
        font-size: 0.9em;
        color: #fff;
        text-decoration: none;
    }

    /* CALENDAR */
    .calendar {
        width: 100%;
        margin-top: 120px;
        padding-bottom: 20px;
    }

    .calendar .title-container{
        padding-bottom: 1%;
        margin-left: 6%;
    }
    .calendar .title-container .main-title{
        font-size: 1.5em;
        padding-left: 5px;
    }

    .calendar .calendar-row {
        margin-left: 7%;
        margin-right: 7%;
        padding-top: 7px;
        justify-content: normal;
    }

    .calendar .calendar-row .accordion{
        align-items: center;
    }
    .calendar .calendar-row .calendar-item {
        margin-bottom: 20px;
        /*width: 90%;*/
        
    }
    .calendar .calendar-row .calendar-item img {
        width: calc(100% - 30px);
        margin: 10px 5px; /* Aumentar la separación entre items */
    }

    .calendar-item h2 {
        font-size: 1.3em;
    }
    .calendar-item p, .calendar-item span {
        font-size: 0.85em;
    }

    .calendar .calendar-row .calendar-item .image-container-pretemporada img{
        width: 95%;
        height: auto;
        margin: 2.5%;
    }

    /* Next Race */
    .calendar .next-race{
        margin-left: 7%;
        margin-right: 7%;
        padding-top: 5px;
    }
    .calendar .next-race .calendar-item {
        align-items: center;
        width: 100%;
        height: auto;
    }
    .calendar .next-race .calendar-item img{
        margin: 10px 5px;
    }
    .calendar .next-race table {
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
        font-size: 0.78rem;
        width: 85%;
        height: auto;
    }

    /* CLASIFICACION*/
    .mundial-pilotos{
        width: 96%;
        gap: 0;
        margin-top: 2%;
        margin-left: 2%;
        margin-right: 2%;
        flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
        justify-content: space-between;
    }
    .mundial-constructores{
        width: 96%;
        gap: 0;
        margin-top: 2%;
        margin-left: 2%;
        margin-right: 2%;
        flex-direction: column; /* Asegura que los elementos dentro del contenedor estén en columna */
        justify-content: space-between;
    }
    .mundial-pilotos .winning-photo{
        width: 100%;
        max-width: none;
        height: auto;
        gap: 0;
        margin-left: 0;
        flex-direction: column;
        display: flex; /* Utiliza flexbox para alinear los elementos */
    }
    .mundial-constructores .winning-photo{
        width: 100%;
        height: auto;
        gap: 0;
        margin-left: 0;
        flex-direction: column;
        display: flex; /* Utiliza flexbox para alinear los elementos */
    }

    .mundial-pilotos .winning-photo .wining-marco {
        margin-left: 3%;
        margin-right: 3%;
        margin-top: 2%;
    }
    .mundial-constructores .winning-photo .wining-marco {
        margin-left: 3%;
        margin-right: 3%;
        margin-top: 2%;
    }

    .mundial-pilotos .winning-photo .wining-table table{
        width: 96%;
        height: auto;
        gap: 0;
        margin-left: 2%;
        margin-right: 2%;
        margin-top: 3%;
    }
    .mundial-constructores .winning-photo .wining-table table{
        width: 96%;
        height: auto;
        gap: 0;
        margin-left: 2%;
        margin-right: 2%;
        margin-top: 3%;
    }

    .mundial-pilotos table {
        width: 96%;
        text-align: left;
        font-size: 0.5rem;
        margin-left: 2%;
        margin-right: 2%;
        margin-top: 3%;
        margin-bottom: 2%;
    }
    .mundial-constructores table {
        width: 94%;
        text-align: left;
        font-size: 0.5rem;
        margin-left: 3%;
        margin-right: 3%;
        margin-top: 3%;
        margin-bottom: 3%;
    }

    .mundial-pilotos td {
        padding: 3px 10px;
    }
    .mundial-constructores td {
        padding: 3px 10px;
    }
    .equipo{
        width: 50px;
    }
    .pais{
        width: 40px;
    }
    .mundial-pilotos .posicion:nth-child(1) {
        width: 20px;
    }
    .mundial-pilotos .nombre:nth-child(3) {
        width: 110px;
    }
    .mundial-pilotos .nombre:nth-child(5) {
        width: 20px;
    }
    .mundial-pilotos .puntos:nth-child(6) {
        width: 20px;
    }
    .mundial-constructores .puntos{
        font-size: 1rem;
    }
    .mundial-pilotos .puntos{
        font-size: 0.55rem;
    }

    .mundial-constructores .nombre{
        font-size: 1rem;
    }
    .mundial-pilotos .nombre{
        font-size: 0.55rem;
    }

    .mundial-constructores .posicion{
        font-size: 1rem;
    }
    .mundial-pilotos .posicion{
        font-size: 0.55rem;
    }

    .mundial-pilotos .wining-text{
        margin-top: 59%;
        padding: 10% 20%;
    }

    .mundial-pilotos .wining-text .position{
        margin-right: 3%;
        font-size: 3.2rem;
        color: gold;
    }

    .mundial-pilotos .first-name {
        margin-bottom: 0;
        font-size: 1.4rem;
        color: gold;
    }
    .mundial-pilotos .last-name {
        font-size: 1.8rem;
        color: gold;
    }

    .mundial-constructores .wining-text-constructors {
        margin-top: 59%;
    }

    .mundial-constructores .position-constructor {
        margin-right: 10px;
        font-family: sans-serif;
        text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    }
    .mundial-constructores .constructor-name{
        color: gold;
        font-size: 2.8rem;
        font-family: sans-serif;
        text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 1px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    }
    .bootstrap-scope .nav-link {
        font-size: 1.0rem;
    }

    .bootstrap-scope .nav {
        margin-left: 3%;
        padding-bottom: 5px;
    }

    /* Region and more */
    .layout-begining .region {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 95%;
        height: auto;
        margin: 1% auto; /* Margen uniforme a la izquierda y derecha */
    }
    .layout-begining .region > * {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;            /* evita estiramientos raros */
    }

    .layout-begining .region .calendar-item {
        margin: 0;
    }
    .counter-container {
        gap: 5px; /* Reducir el espacio entre cajas en pantallas pequeñas */
        margin: 4% 10%;
        align-items: center;
    }

    .time-box {
        width: 70px; /* Tamaño más pequeño para pantallas móviles */
        height: 85px;
    }

    .time-box strong {
        font-size: 1.2rem; /* Reducir tamaño de los números */
    }

    .time-label {
        font-size: 0.7rem; /* Reducir tamaño del texto */
    }

    .region table {
        margin-right: 0;
        margin-top: 20px;
        font-size: 0.82em;
        width: 85%;
        height: auto;
    }

    /* Bloque de estadísticas y desplegable */
    .grid-estadisticas {
        gap: 7px;
    }
    .mundial-pilotos .winning-photo .wining-table .wining-table-title {
        width: 96%;
        margin-left: 2%;
        margin-right: 2%;
    }

    .info-block h1 {
        font-size: 1.3rem;
    }

    .info-block h2 {
        font-size: 0.8rem;
    }

    .info-block p {
        font-size: 1.7rem;
    }

    .info-block .nacionalidad img {
        max-width: 35px;
    }
    .info-block .team img {
        max-width: 30px;
    }
    .info-block .nacionalidad p,
    .info-block .team p {
        font-size: 1.0rem;
    }
    .bloque-estadisticas {
        padding: 9px;
    }
    .bloque-estadisticas table {
        margin-left: 0;
        margin-right: 0;
    }
    .bloque-estadisticas td {
        padding: 8px 5px;
    }
    .bloque-estadisticas h2 {
        font-size: 0.8rem;
    }
    .celda .bloque-estadisticas .bloque-estadisticas-title {
        padding: 7px;
    }
}
