/* Estilos CSS para el encabezado */
#miCarousel {
    max-width: 1900px;     /* ancho */
    height: 700px;       /* alto */
    margin: auto;        /* centrar */
}

#miCarousel .carousel-inner,
#miCarousel .carousel-item,
#miCarousel img {
    height: 100%;
}

#miCarousel img {
    object-fit: cover;  /* mantiene proporción y recorta */
}

@media (max-width: 768px) {
    #miCarousel, #miCarousel img {
        height: 250px;
    }
}

header {
  background-color: #ffffff;
  color: #140a0a;
  text-align: center;
  display: flex;
  align-items: center;
}

.head{
  
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
header h1 {
  margin: 0;
  font-size: 24px;
}

h1 {
  text-align: left;
}
#navId {
 background-color: #ffffff;
}

header nav {
  margin-top: 5px;
  flex-wrap: wrap;
}

header nav ul {
  list-style-type: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

header nav ul li {
  margin: 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  margin-left: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #0a0909;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 0px solid #0a0909;
  transition: all 0.3s ease;
}

header nav ul li a:hover {
  background-color: #0a0909;
  color: #ffffff;
}
.menu{
  display: flex;
  justify-content: space-between;
}

/*Estilos para todo el cuerpo y que afectar al estado del footer*/
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  background-color: #fdfdfd;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
  background-size: cover;
}
main {
  margin-bottom: 150px;
}
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f2f2f2;
  text-align: center;
  padding: 10px 0;
}

/* Estilos para la imagen del logo */
img{
  width:150px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.logo{
  width:75px;
  height: auto;
  display: block;
  margin: 0 80px;
}
/* Estilos para los patrocinadores y redes sociales*/
.sociales-y-patrocinadores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.patrocinadores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* Estilos para los logos de los patrocinadores */
.patrocinador {
  max-width: 100px;
  margin-right: 10px;
  border: 1px solid #0e0909;
  transition: transform 0.3s ease;
}

.h4 {
  font-size: 5px;
}

/* Efecto al pasar el mouse */
.patrocinador:hover {
  transform: scale(1.1);
}

/* Estilos para la sección de Últimas Noticias */
.latest-news {
  margin-top: 50px;
}

.latest-news h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.news-cards {
  display: flex;
  flex-wrap: wrap;
}

/* Estilos para las tarjetas de noticias */
.cards {
  width: calc(33.33% - 20px);
  margin: 8px;
  padding: 8px;
  display: flex;
  width: 410px;
  height: 100px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.cards h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.cards p {
  font-size: 14px;
  color: #666;
}

.info-left {
  flex: 1;
  padding: 20px;
  border-right: 1px solid #ccc;

}

.image-right {
  flex: 1;
}