/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;  /* evita scroll horizontal */
}

/* Estilos específicos para la página "Nosotros" */
body {
  font-family: 'Arial', sans-serif;
  color: #000;
  background-color: #fff;
  line-height: 1.5;
}

/* Header y Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;           /* permite varias filas si no cabe */
  justify-content: center;   /* centrado */
  gap: 30px;                 /* espacio más natural */
  padding: 0;
}

nav a {
  color: #002c80;
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

nav a.activo {
  border-bottom: 3px solid #002c80;
  padding-bottom: 5px;
}

.contacto {
  color: #fff;
  background-color: #002c80;
  padding: 8px 16px;
  border-radius: 20px;
}

/* Secciones de Misión y Visión */
.seccion-mision {
  position: relative;
  width: 100%;
  text-align: center;
}

.seccion-mision .imagen-mision {
  width: 100%;
  height: auto;              /* 🔹 evita que se aplaste */
  max-height: 90vh;          /* 🔹 ocupa hasta el 90% de la altura de la pantalla */
  object-fit: cover;         /* 🔹 mantiene proporción y rellena */
  display: block;
  margin: 0 auto;
}

.seccion-mision .imagen-mision img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* rellena el espacio sin deformarse */
}



/* Texto de Misión y Visión */
.seccion-mision .texto-mision,
.seccion-vision .texto-vision {
  max-width: 350px;
  line-height: 1.6;
  text-align: justify;
}

.seccion-mision h2,
.seccion-vision h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Sección "Quiénes Somos" */
.seccion-quienes-somos {
  position: relative;
  background-color: #002c80;
  color: #fff;
  text-align: center;
  padding: 40px;
  border-radius: 0px;
  max-width: none;
}

/* Sección de Valores */
.seccion-valores {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
  color: #000;
}

.seccion-valores h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.seccion-valores .subtitulo-valores {
  max-width: 600px;
  margin: 0 auto 40px;
}

.fila-valores {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.valor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.valor .icono {
  width: 80px;
  height: 80px;
  background-color: #201c4c;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.valor .icono img {
  width: 50px;
  height: 50px;
  filter: invert(1);
}

.valor h3 {
  font-size: 14px;
  font-weight: bold;
}
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.whatsapp-icon img {
  width: 100%;
  height: 100%;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .logo img {
    height: 80px;
  }

  nav ul {
    gap: 15px;              /* menos espacio entre links */
  }

  nav a {
    font-size: 16px;        /* texto más pequeño */
  }

  .contacto {
    font-size: 14px;
    padding: 6px 12px;
  }

  .seccion-mision .imagen-mision img {
    max-height: 250px;      /* más baja en móvil */
  }

  .fila-valores {
    justify-content: center;
  }
}
