body {
  background-color: #00643F;
  /* Verde suave */
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  /* Asegurar que el body ocupe al menos toda la altura de la pantalla */
  min-height: 100vh;
}


.head-section {
  display: block; /* o simplemente no definir display flex */
  text-align: center; /* centra horizontalmente el contenido en línea */
  padding: 20px;
}

.head,
.logo {
  margin-bottom: 20px; /* espacio entre imágenes */
}

.head img,
.logo img {
  max-height: 350px;
  max-width: 200%;
  height: auto;
  display: inline-block; /* para que respete text-align center */
}


.logo-HA {
  display: block;          /* o inline-block, pero no ambos */
  width: 35%;
  margin: 0 auto;          /* centra el bloque horizontalmente */
  text-align: center;      /* centra texto o imágenes dentro */
   margin-bottom: 20px; /* espacio entre imágenes */
}

.familia {
  display: block;          /* o inline-block, pero no ambos */
  width: 50%;
  margin: 0 auto;          /* centra el bloque horizontalmente */
  text-align: center;      /* centra texto o imágenes dentro */
   margin-bottom: 20px; /* espacio entre imágenes */
}

.inscripciones {
   margin-bottom: 20px; /* espacio entre imágenes */
  display: block;          /* o inline-block, pero no ambos */
  width: 50%;
  margin: 0 auto;          /* centra el bloque horizontalmente */
  text-align: center;      /* centra texto o imágenes dentro */
}


.contenedor-imagenes {
  display: flex;
  justify-content: space-between; /* separa ambos elementos */
  align-items: center;
  width: 100%;
}

.fechas {
  width: 20%;
  display: flex;
  justify-content: flex-start; /* imagen a la izquierda */
  align-items: center;
}

.vector1 {
  width: 30%;
  display: flex;
  justify-content: flex-end; /* imagen a la derecha */
  align-items: center;
}

.four-section {
  display: flex;
  flex-direction: column;
  width: 100vw;
  overflow-x: hidden;  /* 💥 esto evita el deslizamiento lateral */
  padding: 0;
  margin: 0;
  gap: 10px;
  box-sizing: border-box;
}

.fila {
  width: 100%;
  margin: 0;
  padding: 0;
}

.derecha {
  text-align: right;
}

.izquierda {
  text-align: left;
}

.centro {
  text-align: center;
}

/* Imágenes controladas y sin desbordarse */
.four-section img {
  width: 30vw;
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
}

.Contacto img {
  max-width: 80%;
  height: auto;
  max-height: 200px;
}

.over-section {
  background-image: url("images/imagen1.svg");
  background-size: cover;      /* O prueba contain si no quieres recortes */
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 0;
}

.four-section {
  background-image: url("images/imagen2.svg");
  background-size: cover;      /* O prueba contain si no quieres recortes */
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 0;
}


.Iconos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
}

.Iconos a img {
  width: 200px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Iconos a img:hover {
  transform: scale(1.2);
}

.Logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  width: 100%;
}

.Logo img {
  max-width: 80%;
  height: auto;
}

/* Media queries para responsive */
@media (max-width: 768px) {
  .main-section {
    background-image: url('images/imagen_1_mobile.svg');
    /* Opcional: imagen diferente para móviles */
    min-height: 90vh;
    padding: 10px;
  }

  .Iconos a img {
    width: 150px;
  }

  .Map {
    width: 95%;
    padding-bottom: 50%;
    /* Más alto en móviles */
  }
}

@media (max-width: 480px) {
  .main-section {
    min-height: 85vh;
  }

  .Iconos {
    gap: 15px;
  }

  .Iconos a img {
    width: 120px;
  }
}