h1, h2, h3 {
  text-align: center;
  color: #4CAF50;
  margin-top: 1.5rem;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #466b48;
  color: #fff;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.navLogo {
  width: 75px;
  height: auto;
}

nav ul {
  display: flex;
  flex-grow: 1;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 4px;
  background-color: #4CAF50;
  border-radius: 2px;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
  transform: translateX(-50%);
}

nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

.navIcons {
  display: flex;
  gap: 15px;
}

.navIcon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease-in-out;
}

.navIcon:hover {
  transform: scale(1.1);
}

.photoBanner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.home {
  margin: 10%;
}

.history, .team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.historyText, .teamText {
  flex: 1;
  padding: 20px;
}

.historyText h2, .teamText h2, .teamText h3 {
  text-align: left;
}

.historyText p, .teamText p {
  text-align: justify;
}

.historyImage, .teamImage {
  flex: 1;
  display: flex;
  justify-content: center;
}

.historyImage img, .teamPhoto {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.news {
  text-align: center;
}

.newsContent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-left: 10%;
  margin-right: 10%;
}

.newsImage {
  width: 30%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.newsImage img {
  width: 100%;
  height: auto;
}

.linkForm {
  text-align: center;
  background-color: #4CAF50; /* Fondo verde */
  color: #fff; /* Letras blancas */
  padding: 1rem; /* Espaciado interno */
  border-radius: 5px; /* Bordes redondeados */
  display: inline-block; /* Para que el contenedor se ajuste al contenido */
  margin: 1rem 0; /* Margen superior e inferior */
}

.linkForm a {
  color: #fff; /* Letras blancas */
  text-decoration: none; /* Sin subrayado */
}

.linkForm a:hover {
  text-decoration: underline; /* Subrayado al pasar el ratón */
}

.linkForm h1 {
  color: #fff;
}

.imageLinks {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 95%;
}
.imageLinks a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 320px;
  transition: transform 0.2s ease;
}
.imageLinks a:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.imageLinkItem {
  width: 100%;
  height: 280px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.imageLinks span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  background: #fff;
  color: #333;
  font-weight: bold;
}
.imageHint {
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.5rem;
  font-weight: bold;
}

.textInfo{
  text-align: center;
  margin: 0 auto;
  padding: 1rem;
  color:#4CAF50;
}
footer {
  width: 100%;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}


.sponsorsImage {
  object-fit: contain;
  margin: 2px;
  vertical-align: middle;
}


.sponsor-grande {
  width: 450px;
  height: 250px;
}

.sponsor-mediano {
  width: 300px;
  height: 150px;
}

.sponsor-pequeno {
  width: 100px;
  height: 50px;
}

.sponsor-muypequeno {
  width: 75px;
  height: 50px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
  
  .history, .team {
    flex-direction: column;
    text-align: center;
  }
  
  .historyText, .teamText {
    text-align: center;
    padding: 0;
  }
  
  .historyImage, .teamImage {
    order: -1;
  }

  .newsContent {
    flex-direction: column;
  }

  .newsImage {
    width: 100%;
  }

  .linkForm {
    width: 100%;
  }
}

.activityButton {
  display: inline-block;
  background-color: #4CAF50;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.activityButton:hover {
  background-color: #388E3C;
}
.activity {
  margin-bottom: 2rem;
  text-align: center;
}
