/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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);
}

header .logo img {
  height: 100px;
  width: auto;
  display: block;
  filter: none;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0;
}

header nav a {
  color: #002c80;
  text-decoration: none;
  font-size: 22px;
  transition: 0.3s;
}

header nav a:hover {
  opacity: 0.7;
}

header nav a.activo {
  border-bottom: 3px solid #002c80;
  padding-bottom: 5px;
  background-color: transparent;
  border-radius: 0;
}

header nav a.contacto {
  color: #fff;
  background-color: #002c80;
  padding: 8px 16px;
  border-radius: 20px;
}

/* ================= SECCIÓN MISION ================= */
.seccion-mision {
  position: relative;
  width: 100%;
  text-align: center;
}

.seccion-mision .imagen-mision {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.seccion-mision .imagen-mision img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= TEXTO DE MISION Y VISION ================= */
.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;
}

/* ================= 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;
}

/* ================= CARRUSEL ================= */
.valores-carousel {
  position: relative;
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.valores-wrapper {
  overflow: hidden;
  width: 100%;
}

.fila-valores {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease-in-out;
  gap: 0;
}

.valor {
  flex: 0 0 20%;  /* 5 íconos en escritorio */
  max-width: 20%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.valor h3 {
  font-size: 14px;
  font-weight: bold;
}

.valor .icono {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.valor .icono img {
  width: 50px;
  height: 50px;
  filter: invert(1);
}

/* Colores alternados */
.fila-valores .valor:nth-child(odd) .icono {
  background-color: #6091cc;
}
.fila-valores .valor:nth-child(even) .icono {
  background-color: #3054a0;
}

/* Iconos */
.icono img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

/* Flechas */
.flecha {
  background: none;
  border: none;
  font-size: 40px;
  color: #002c80;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s, opacity 0.2s;
}

.flecha:hover {
  transform: scale(1.2);
  opacity: 0.7;
}

/* WhatsApp fijo */
.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 ================= */

/* Tablets: 3 íconos */
@media (max-width: 1024px) {
  .valor {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

/* Celulares: navbar vertical, sección misión con zoom y carrusel ajustado */
@media (max-width: 768px) {
  /* Navbar vertical */
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
    align-items: center;
  }

  header .logo img {
    height: 80px;
  }
/* Ajustes sección valores en móvil */
.seccion-valores h2 {
    font-size: 26px;   /* 👈 AQUÍ se bajó el tamaño del título */
}

.seccion-valores .subtitulo-valores {
    font-size: 14px;   /* 👈 AQUÍ se bajó el tamaño del subtítulo */
    margin-bottom: 25px;
}

  header nav ul {
    flex-direction: column; /* <- vertical */
    gap: 10px;              /* espacio entre links */
    width: 100%;
    align-items: center;
  }

  header nav ul li {
    width: 100%;
    text-align: center;
  }

  header nav a {
    font-size: 16px;
    display: block;          /* que cada link ocupe todo el ancho */
    padding: 8px 0;
  }

  header nav a.contacto {
    font-size: 14px;
    padding: 6px 12px;
  }

  /* Sección Misión con zoom */
  .seccion-mision {
    height: 375px; /* ocupa toda la pantalla del móvil */
    background-image: url('../images/nosotros25.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Ocultar <img> original de la misión */
  .seccion-mision .imagen-mision {
    display: none;
  }

  /* Carrusel móvil */
  .valor {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .valor .icono {
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
  }

  .valor .icono img {
    width: 32px;
    height: 32px;
  }

  .valor h3 {
    font-size: 11px;
  }

  .flecha {
    font-size: 22px;
    padding: 3px;
  }
}
