/* ============================================ */
/* 🟩 SECCIÓN HERO MISIÓN Y VISIÓN             */
/* ============================================ */

.mision-vision-hero {
  background: linear-gradient(135deg, #f0f4f8, #e6eef5);
  padding: 120px 20px 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

/* Título oculto pero accesible para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Contenedor de columnas */
.mision-vision-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================ */
/* 📦 COLUMNAS DE MISIÓN Y VISIÓN              */
/* ============================================ */

.mision-column,
.vision-column {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 40px 30px;
  flex: 1 1 300px;
  max-width: 500px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
  color: #333;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Efecto hover mejorado */
.mision-column:hover,
.vision-column:hover,
.mision-column:focus-within,
.vision-column:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
  background-color: #fafbfc;
}

/* Efecto de brillo sutil en hover */
.mision-column::before,
.vision-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.mision-column:hover::before,
.vision-column:hover::before {
  left: 100%;
}

/* ============================================ */
/* 🎯 ICONOS CIRCULARES CON EFECTO             */
/* ============================================ */

.icon-top {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mision-column:hover .icon-top,
.vision-column:hover .icon-top,
.mision-column:focus-within .icon-top,
.vision-column:focus-within .icon-top {
  background: linear-gradient(135deg, #08306b, #0a427c);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(8, 48, 107, 0.3);
}

.icon-top img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.mision-column:hover .icon-top img,
.vision-column:hover .icon-top img,
.mision-column:focus-within .icon-top img,
.vision-column:focus-within .icon-top img {
  filter: brightness(0) invert(1); /* Icono blanco */
}

/* ============================================ */
/* 📝 TÍTULOS Y TEXTO                          */
/* ============================================ */

.mision-column h2,
.vision-column h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #08306b;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

/* Línea decorativa debajo del título */
.mision-column h2::after,
.vision-column h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

/* Párrafos */
.mision-column p,
.vision-column p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 25px;
  color: #555;
  flex-grow: 1;
}

/* ============================================ */
/* 🖼️ IMÁGENES DEBAJO DEL TEXTO                */
/* ============================================ */

.mision-column img.mision-img,
.vision-column img.vision-img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
  cursor: pointer;
}

.mision-column img.mision-img:hover,
.vision-column img.vision-img:hover,
.mision-column img.mision-img:focus,
.vision-column img.vision-img:focus {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05) contrast(1.05);
  outline: 3px solid #FFD700;
  outline-offset: 3px;
}

/* ============================================ */
/* 🎯 SECCIÓN DE VALORES              */
/* ============================================ */


.valores-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.valores-section h2 {
  font-size: 2.5rem;
  color: #08306b;
  margin-bottom: 50px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.valores-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #08306b);
  border-radius: 2px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.valor-item {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: default;
}

.valor-item:hover,
.valor-item:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.valor-icon {
  width: 100%;
  height: 150px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.valor-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.valor-item:hover .valor-icon,
.valor-item:focus-within .valor-icon {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.valor-item:hover .valor-icon img,
.valor-item:focus-within .valor-icon img {
  transform: scale(1.1);
}

.valor-item h3 {
  font-size: 1.5rem;
  color: #08306b;
  margin-bottom: 10px;
  font-weight: 600;
}

.valor-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .valor-icon {
    height: 120px;
  }
}

/* ============================================ */
/* 📱 DISEÑO RESPONSIVO                        */
/* ============================================ */

@media (max-width: 900px) {
  .mision-vision-hero {
    padding: 100px 20px 40px 20px;
    min-height: auto;
  }

  .mision-vision-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .mision-column,
  .vision-column {
    max-width: 90%;
    padding: 30px 25px;
  }

  .mision-column h2,
  .vision-column h2 {
    font-size: 1.8rem;
  }

  .mision-column p,
  .vision-column p {
    font-size: 1rem;
    text-align: left;
  }

  .icon-top {
    width: 70px;
    height: 70px;
  }

  .valores-section {
    padding: 40px 15px;
  }

  .valores-section h2 {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .valores-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .valor-item {
    padding: 25px 15px;
  }
}

@media (max-width: 600px) {
  .mision-vision-hero {
    padding: 90px 15px 30px 15px;
  }

  .mision-column,
  .vision-column {
    max-width: 95%;
    padding: 25px 20px;
    border-radius: 12px;
  }

  .mision-column h2,
  .vision-column h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .mision-column p,
  .vision-column p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .icon-top {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .valores-section h2 {
    font-size: 1.7rem;
  }

  .valor-icon {
    font-size: 2.5rem;
  }

  .valor-item h3 {
    font-size: 1.3rem;
  }

  .valor-item p {
    font-size: 0.95rem;
  }
}

/* ============================================ */
/* ♿ MEJORAS DE ACCESIBILIDAD                 */
/* ============================================ */

/* Focus visible para navegación por teclado */
.mision-column:focus-within,
.vision-column:focus-within,
.valor-item:focus-within {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}

/* Mejorar contraste de texto en modo alto contraste */
@media (prefers-contrast: high) {
  .mision-column p,
  .vision-column p,
  .valor-item p {
    color: #000;
  }

  .mision-column h2,
  .vision-column h2,
  .valores-section h2,
  .valor-item h3 {
    color: #000;
  }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .mision-column,
  .vision-column,
  .valor-item,
  .icon-top,
  .icon-top img,
  .mision-img,
  .vision-img,
  .valor-icon {
    transition: none;
  }

  .mision-column::before,
  .vision-column::before {
    display: none;
  }
}

/* ============================================ */
/* 🎨 ANIMACIONES DE ENTRADA (Opcional)        */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animación solo si el usuario no ha desactivado las animaciones */
@media (prefers-reduced-motion: no-preference) {
  .mision-column,
  .vision-column {
    animation: fadeInUp 0.6s ease-out;
  }

  .vision-column {
    animation-delay: 0.2s;
  }

  .valor-item {
    animation: fadeInUp 0.5s ease-out;
  }

  .valor-item:nth-child(1) { animation-delay: 0.1s; }
  .valor-item:nth-child(2) { animation-delay: 0.2s; }
  .valor-item:nth-child(3) { animation-delay: 0.3s; }
  .valor-item:nth-child(4) { animation-delay: 0.4s; }
}