/* BLOQUE AZUL */
.bloque-azul {
  position: relative;
  background-color: #1d2d44;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
  z-index: 0;
}

.bloque-azul h2,
.bloque-azul p {
  position: relative;
  z-index: 1;
}

.bloque-azul h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.bloque-azul p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #f1f1f1;
}

.bloque-azul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/amigos.jfif');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

/* Misión y Visión */
.mision-vision {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.contenedor-recuadros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.recuadro {
  position: relative;
  flex: 1 1 300px;
  max-width: 500px;
  min-height: 350px;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(216, 184, 6, 0.7);
  cursor: default;
  overflow: hidden;
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.3s ease;
  color: white;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(40px);
}

.recuadro.visible {
  opacity: 1;
  transform: translateY(0);
}

.recuadro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 1rem;
  z-index: 0;
}

.recuadro h3,
.recuadro p {
  position: relative;
  z-index: 1;
}

.recuadro h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  font-weight: bold;
}

.recuadro p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* Efecto hover */
.recuadro:hover {
  box-shadow: 0 8px 25px rgba(216, 184, 6, 0.9);
  transform: translateY(-5px);
}

/* Sección de valores */
.valores {
  padding: 4rem 2rem;
  background-color: #f5f8fa;
  text-align: center;
}

.valores .contenedor {
  max-width: 800px;
  margin: 0 auto;
}

.valores h3 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 1rem;
}

.valores p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2rem;
}

.valores-img {
  width: 100%;
  max-width: 700px;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.valores-img:hover {
  transform: scale(1.03);
}

/* Mapa mundial */
.mapa-mundial {
  background-color: #f4f4f4;
  padding: 4rem 2rem;
  text-align: center;
}

.mapa-mundial h3 {
  font-size: 2rem;
  color: #1d2d44;
  margin-bottom: 1rem;
}

.mapa-mundial p {
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

#mapa {
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tooltip Leaflet */
.leaflet-tooltip.tooltip-personalizada {
  background-color: transparent !important;
  color: #000;
  font-weight: 700;
  border: none !important;
  box-shadow: none !important;
  font-size: 14px;
  padding: 0;
  text-shadow: 1px 1px 1px #fff;
}

/* RESPONSIVO */
/* Tablets */
@media (max-width: 1024px) {
  .bloque-azul {
    padding: 3rem 1.5rem;
  }

  .bloque-azul h2 {
    font-size: 1.8rem;
  }

  .bloque-azul p {
    font-size: 1rem;
  }

  .recuadro {
    max-width: 400px;
  }

  .valores h3 {
    font-size: 1.8rem;
  }

  .valores p {
    font-size: 1rem;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .contenedor-recuadros {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .recuadro {
    flex: 1 1 auto;      /* Se adapta al contenido */
    max-width: 90%;
    min-height: auto;
    padding: 2rem;
    margin: 0.5rem 0;
    overflow: visible;   /* Mostrar texto completo */
  }

  .recuadro h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .recuadro p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .valores {
    padding: 3rem 1rem;
  }

  .valores-img {
    max-width: 100%;
    height: auto;
  }

  .bloque-azul h2 {
    font-size: 1.5rem;
  }

  .bloque-azul p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #mapa {
    height: 300px;
    max-width: 100%;
  }
}
