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

body {
  min-height: 100vh;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

}

h2 {
  font-family: Merriweather, Courier, monospace;
  font-size: 4rem;
  margin-bottom: 5%;
}

h3 {
  font-family: Roboto, "Courier New";
}

h4 {
  font-family: Roboto, "Courier New";
  font-size: 2rem;
}

p {
  font-family: Montserrat;
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.la-historia-main p {
  margin-top: 1rem;
}

figure {
  display: flex;
  height: 100%;
  justify-content: flex-start;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 27;
}

.navbar-logo a {
  font-family: Merriweather;
  font-size: 1.8rem;
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.navbar-links a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
}




.la-historia {
  margin-top: 5%;
  width: 95%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7%;
  overflow: hidden;
   background-color: #06372B;
  border-radius: 20px;
 
}

.la-historia-imagen-seccion {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
 
}

.la-historia-imagen {
  width: 90%;
  object-fit: fill;
  height: 100%;
  border-top-right-radius: 0;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 0;
}

.la-historia-contenido {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: justify;
  padding-right: 80px;
  padding-top: 40px;

  color: #ffffff;
}

.la-historia-main {
  width: 100%;
}


.mvv-seccion-header h2 {
  font-size: 2.5rem;
}

.mision-vision-valores {
  margin-top: 5%;
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: center;
 
  gap: 5%;
  margin-bottom: 7%;
}

.mvv-seccion {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.mvv-seccion-header {
  display: flex;
  justify-content: center;
  width: 100%; 
}

.mvv-seccion-main {
  width: 100%;
  height: 20rem;
  text-align: center;
}

.valores-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.valores-bold {
  font-weight: bold;
}


.nuestro-equipo {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 5rem;
  background-color: #e9e9e9;
  padding: 5%;
  border-radius: 20px;
}

.equipo-contenedor-principal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  width: 100%;
}

.equipo-contenedor {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem;
  border-radius: 20px;
  
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  
  /* Esta sombra suave da la primera sensación de profundidad */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  
  /* Preparamos la animación */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent; 
  

}

.equipo-contenedor:hover {
  /* Eleva la tarjeta hacia arriba */
  transform: translateY(-15px); 
  
  /* La sombra se vuelve más oscura y amplia para simular que está más lejos del fondo */
  box-shadow: 0 20px 40px rgba(4, 170, 109, 0.15); 
  
  /* Opcional: Un borde sutil con tu verde de Zapiens */
  border: 1px solid #04aa6d; 
}

.equipo-contenedor-central {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem;
  border-radius: 20px;   
  background-color:#04aa6d;
  color: #ffffff;


  /* Esta sombra suave da la primera sensación de profundidad */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  
  /* Preparamos la animación */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent; 
  
}

.equipo-contenedor-central span{
  color: #000000;
  
}

.equipo-contenedor-central:hover span{
  color: #04aa6d;
  
}

.equipo-contenedor-central:hover {
  /* Eleva la tarjeta hacia arriba */
  transform: translateY(-15px); 
  
  /* La sombra se vuelve más oscura y amplia para simular que está más lejos del fondo */
  box-shadow: 0 20px 40px rgba(4, 170, 109, 0.15); 
  
  /* Opcional: Un borde sutil con tu verde de Zapiens */
  border: 1px solid #04aa6d; 
  background-color: #ffffff;
  color:#000000 ;
}


.miembro-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.equipo-contenedor:hover .miembro-img {
  transform: scale(1.02);
}

.miembro-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  
}

.miembro-cargo{
  height: 20px;
  margin-bottom: 10px;
  font-family: Montserrat;
  color: #04aa6d;
}

.miembro-nombre {
  height: 20px;
  margin-bottom: 10px;
}


.miembro-bio {
  flex-grow: 1;
  height: 160px;
  margin-bottom: 20px;
}

.miembro-redes-sociales {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.miembro-redes-sociales ul {
  list-style: none;
  display: flex;
}

.miembro-redes-sociales li {
  text-decoration: none;
  margin: 1rem;
}


.footer {
  width: 100%;
  display: flex;
  align-content: center;
  justify-content: center;
}


/* 1. Tablets y Pantallas Medianas (Laptops pequeñas) */
@media (max-width: 1024px) {
  h2 { font-size: 3rem; } /* Reducimos un poco el tamaño de los títulos principales */
  
  .equipo-contenedor, 
  .equipo-contenedor-central {
    width: 45%; /* Pasamos de 3 columnas a 2 para que no se apriete el texto */
  }

  .la-historia {
    height: auto; /* Dejamos que el contenido dicte la altura */
    padding: 2rem 0;
  }
}

/* 2. Móviles (Celulares) */
@media (max-width: 768px) {
  body { width: 95%; } /* Aprovechamos más espacio en las orillas */

  h2 { font-size: 2.5rem; }
  h4 { font-size: 1.5rem; }
  p { font-size: 1.1rem; }

  /* La Historia: Pasamos la imagen arriba y el texto abajo */
  .la-historia {
    flex-direction: column; /* Apilamos verticalmente[cite: 8] */
    height: auto;
    width: 100%;
  }

  .la-historia-imagen-seccion, 
  .la-historia-contenido {
    width: 100%; /* Ocupan todo el ancho disponible[cite: 8] */
    padding: 20px;
  }

  .la-historia-imagen {
    width: 100%;
    border-radius: 20px 20px 0 0; /* Ajustamos las esquinas para la nueva posición[cite: 8] */
  }

  /* Misión, Visión y Valores: De fila a columna */
  .mision-vision-valores {
    flex-direction: column; 
    width: 100%;
    gap: 2rem;
  }

  .mvv-seccion {
    width: 100%; /* Cada sección ocupa su propio renglón[cite: 8] */
  }

  .mvv-seccion-main {
    height: auto; /* Evitamos alturas fijas que corten el texto[cite: 8] */
    padding-bottom: 2rem;
  }

  /* El Equipo: Una sola columna para que las fotos luzcan */
  .equipo-contenedor, 
  .equipo-contenedor-central {
    width: 90%; /* Tarjetas casi a pantalla completa[cite: 8] */
  }

  .miembro-img {
    height: 300px; /* Reducimos un poco la altura de la foto en móvil[cite: 8] */
  }

  .miembro-bio {
    height: auto; /* Muy importante para que no se encime el texto corto o largo[cite: 8] */
    min-height: 120px;
  }
}