/* =========================
   MISIÓN (Nosotros)
========================= */
.mision {
  background: #fff;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 24px);
}

.mision-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

/* Texto */
.mision-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mision-content h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  text-align: left;
}

.mision-box {
  background-color: rgba(0, 208, 188, 0.2);
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  line-height: 1.65;
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
  box-sizing: border-box;

  /* Extender hacia el borde izquierdo */
  margin-left: -24px;
  padding-left: 24px;
}

.mision-box p {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
}

/* Imagen */
.mision-media {
  max-width: 420px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
}
.mision-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   VISIÓN (Nosotros)
========================= */
.vision {
  background: #fff;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 24px);
}

.vision-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

/* Imagen */
.vision-media {
  max-width: 420px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
}
.vision-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto */
.vision-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-content h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  text-align: right;

  /* Alinear al borde derecho como el box */
  margin-right: -24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.vision-box {
  background-color: rgba(0, 208, 188, .18);
  padding: clamp(20px, 3vw, 28px);
  border-radius: calc(var(--radius) * 2);
  line-height: 1.65;
  flex: 1;
  display: flex;
  align-items: center;

  /* Extender hacia el borde derecho */
  margin-right: -24px;
  padding-right: 24px;

  width: 100%;
  box-sizing: border-box;
}
.vision-box p {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
  text-align: left;
}

/* =========================
   RESPONSIVE (≤992px)
========================= */
@media (max-width: 992px) {
  /* Misión en columna */
  .mision-container {
    grid-template-columns: 1fr;
  }
  .mision-content { order: 1; }
  .mision-content h2 {
    order: -1;
    margin: 0 0 16px;
    text-align: left;
  }
  .mision-box {
    order: 0;
    margin-left: -16px;
    padding-left: 16px;
  }
  .mision-media {
    order: 2;
    max-width: 80%;
    margin: 0 auto;
    height: auto;
  }

  /* Visión en columna */
  .vision-container {
    grid-template-columns: 1fr;
  }
  .vision-content { order: 1; }
  .vision-content h2 {
    order: -1;
    margin-right: -16px;
    padding-right: 16px;
    text-align: right;
  }
  .vision-box {
    order: 0;
    margin-right: -16px;
    padding-right: 16px;
  }
  .vision-media {
    order: 2;
    max-width: 80%;
    margin: 0 auto;
    height: auto;
  }
}

/* =========================
   VALORES (Nosotros)
========================= */
.valores {
  background: #fff;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 24px);
  text-align: center;
}

.valores-container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.valores-head h2 {
  margin: 0 0 50px;
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.valores-sub {
  margin: 0 0 clamp(28px, 5vw, 48px);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: #2b4b58;
  line-height: 1.6;
}

.valores-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: clamp(18px, 3vw, 32px) clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  place-items: center;
}

.valor-item figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.valor-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.valor-item img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
}

.valor-item figcaption {
  font-size: 1rem;
  font-weight: 700;
  color: #0a3040;
}

/* Hover sutil en Misión y Visión */
.mision-box,
.vision-box {
  transition: transform .25s ease, box-shadow .25s ease;
}

.mision-box:hover,
.vision-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}


/* ====== Responsive ====== */
/* 4 por fila en laptops medianas */
@media (max-width: 1100px) {
  .valores-list { grid-template-columns: repeat(4, 1fr); }
}

/* 3 por fila en tablets */
@media (max-width: 900px) {
  .valores-list { grid-template-columns: repeat(3, 1fr); }
}

/* 2 por fila en móviles */
@media (max-width: 600px) {
  .valores-list { grid-template-columns: repeat(2, 1fr); }
  .valor-item img { width: 90px; height: 90px; }
  .valor-item figcaption { font-size: .95rem; }
}

