/* Reset básico */
.barra-verde-top {
  background-color: #7db520;
  padding: 5px 20px;
}

.correo-top {
  color: white;
  text-align: right;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: white;
}

header {
  background-color: white;
  color: black;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  max-width: 100%;
  height: auto;
  width: 200px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
/* Estilo general para el submenu */
nav ul ul {
  display: none;
  position: absolute;
  background-color: #fff;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Mostrar submenu con animación */
nav ul li:hover > ul {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Posición relativa para el li padre */
nav ul li {
  position: relative;
}

/* Enlaces del submenu */
nav ul ul li a {
  display: block;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 18px;
  color: #0a4423;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-left: 4px solid transparent;
}

/* Hover en enlaces submenu */
nav ul ul li a:hover {
  background-color: #7db520;
  color: white;
  border-left: 4px solid #4a7c14;
  padding-left: 16px; /* Para que se note el borde al hacer hover */
  cursor: pointer;
}

/* Opcional: indicador de que el item tiene submenu (flecha) */
nav ul li > a::after {
  font-size: 12px;
  margin-left: 6px;
}
/* Solo flecha para li que tenga submenu */
nav ul li.has-submenu > a::after {
  content: ' ▼';
  font-size: 12px;
  margin-left: 6px;
  color: #7db520;
}

nav a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
}
nav a:hover {
  color: #7db520;
}

.imagen-portada {
  width: 100%;
  overflow: hidden;
}

.imagen-portada img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px; /* opcional, para que no sea excesivamente alta */
  object-fit: cover;
}

.titulo {
  text-align: center;
  font-size: 2rem;
  margin: 40px 0;
  color: #86af33; /* Puedes ajustar según el diseño */
}

.equipos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background-color: white;
}

.equipo-card {
  position: relative;
  width: 250px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.equipo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.equipo-card:hover img {
  transform: scale(1.05);
}

.equipo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.equipo-overlay h2 {
  font-size: 20px;
  margin-bottom: 15px;
}
.equipo-overlay h3 {
  font-size: 15px;
  margin-bottom: 15px;
}

.equipo-overlay a {
  text-decoration: none;
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.equipo-overlay a:hover {
  background-color: white;
  color: black;
}

.por-que-mx-seccion {
  position: relative; /* Necesario para posicionar la imagen afuera del cuadro */
  padding: 60px 20px;
  overflow: visible;
}

.titulo-por-que {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 20px;
  color: #000;
  text-transform: uppercase;
}

.ancho-completo {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(to right, #147b37, #4CAF50);
  padding: 60px 40px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.contenido-verde {
  max-width: 600px;
  color: white;
  z-index: 2;
  position: relative;
}

.contenido-verde p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* IMAGEN FUERA DEL CUADRO */
.imagen-superpuesta-externa {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 400px;
  z-index: 3;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .ancho-completo {
    padding: 40px 20px;
  }

  .contenido-verde {
    max-width: 100%;
  }

  .imagen-superpuesta-externa {
    width: 120px;
    top: 10px;
    right: 20px;
  }
}


.distingue {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background-color: white;
  padding: 40px 20px;
  gap: 20px;
}

.distingue .imagen {
  flex: 1 1 40%;
  min-width: 200px;
}

.distingue .imagen img {
  width: 100%;
  height: auto;
  max-width: 500px;      /* Tamaño máximo más pequeño */
  max-height: 450px;     /* Opcional, para limitar la altura */
  object-fit: contain;   /* Evita que se recorte la imagen */
  border-radius: 8px;
  display: block;
}


.distingue .contenido {
  flex: 1 1 50%;
  min-width: 300px;
  line-height: 2.2; /* Aumenta separación entre líneas en todo el contenido */
}

.distingue h2 {
  font-size: 28px;
  color: #2a7830;
  margin-bottom: 20px;
}

.distingue ul {
  list-style: disc inside;
  color: #333;
  line-height: 2.2;
  padding-left: 0;
}


.footer {
  background-color: #101820;
  color: white;
  padding: 40px 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 200px; /* mínimo 200px por columna */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  width: 120px;
  height: auto;
}

.footer-titulo {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.footer-redes a img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    padding: 5px 15px;
    gap: 5px;
    position: relative;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    font-size: 20px;
    display: block;
    width: 80%;
    padding: 5px 0;
  }
}