/* ============================================= */
/*  css/acerca.css – Estilo WOW Mejorado para Acerca de */
/*  100% coherente con index, admisiones, directorio, prácticas y servicio */
/*  Con animaciones más sutiles y bonitas para un look más elegante      */
/*  Mejoras: Diseño refinado con transiciones más fluidas, mayor contraste, separación optimizada en imágenes */
/* ============================================= */

.acerca-section {
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f5f0 100%);
  min-height: 100vh; 
}

.container {
  max-width: 1200px;
  margin: -100px auto;
  text-align: center;
}

.intro-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.acerca-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.acerca-block {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(96,13,24,0.06);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(30px);
}

.acerca-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(96,13,24,0.12);
}

.block-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.icon {
  font-size: 2rem;
  color: #b8911f;
  margin-right: 15px;
  transition: transform 0.4s ease;
}

.acerca-block:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.acerca-block h3 {
  color: #600d18;
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
}

.acerca-block h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #b8911f, #d4a82a);
  margin: 10px 0 0;
  transition: width 0.4s ease;
}

.acerca-block:hover h3::after {
  width: 120px;
}

.acerca-block p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

.equipo-list {
  list-style: none;
  padding-left: 0;
  margin: 25px 0 0;
}

.equipo-list .list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 12px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.equipo-list .list-item:hover {
  background: #f0e9e0;
  transform: translateX(0) scale(1.02);
}

.bullet-icon {
  font-size: 1.2rem;
  color: #600d18;
  margin-right: 12px;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.list-item:hover .bullet-icon {
  color: #b8911f;
}

/* Contenedor para imágenes institucionales - Mejora con mayor separación y diseño refinado */
.institucional-images {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
}

.institucional-images img {
  max-width: 150px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
}

.institucional-images img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Grid para sistemas - Optimizado para 2 columnas en desktop */
.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.sistema-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(96,13,24,0.12);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.sistema-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(96,13,24,0.22);
}

.card-header {
  background: linear-gradient(135deg, #600d18, #8b1125);
  color: #b8911f;
  padding: 25px 20px;
  font-size: 3rem;
  text-align: center;
}

.card-header i {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.card-body {
  padding: 25px 20px;
}

.card-body h4 {
  color: #600d18;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.card-body p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Animación fade-in sutil al cargar - Mejorada con easing más suave */
.fade-in {
  animation: fadeInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation para bloques y items */
.acerca-content .acerca-block:nth-child(1) { animation-delay: 0.4s; }
.acerca-content .acerca-block:nth-child(2) { animation-delay: 0.6s; }

.equipo-list .list-item:nth-child(1) { animation: slideInLeft 0.8s ease forwards 1.0s; }
.equipo-list .list-item:nth-child(2) { animation: slideInLeft 0.8s ease forwards 1.1s; }
.equipo-list .list-item:nth-child(3) { animation: slideInLeft 0.8s ease forwards 1.2s; }
.equipo-list .list-item:nth-child(4) { animation: slideInLeft 0.8s ease forwards 1.3s; }
.equipo-list .list-item:nth-child(5) { animation: slideInLeft 0.8s ease forwards 1.4s; }
.equipo-list .list-item:nth-child(6) { animation: slideInLeft 0.8s ease forwards 1.5s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sistemas-grid .sistema-card:nth-child(1) { animation-delay: 0.8s; }
.sistemas-grid .sistema-card:nth-child(2) { animation-delay: 1.0s; }
.sistemas-grid .sistema-card:nth-child(3) { animation-delay: 1.2s; }
.sistemas-grid .sistema-card:nth-child(4) { animation-delay: 1.4s; }

/* Responsive - Ajustes para mobile y ultra-wide */
@media (max-width: 767px) {
  .sistemas-grid { grid-template-columns: 1fr; }
  .acerca-section { padding: 80px 15px 60px; }
  .acerca-block { padding: 25px; border-radius: 16px; }
  .block-header { flex-direction: column; align-items: flex-start; }
  .icon { margin-bottom: 10px; }
  .acerca-block h3 { font-size: 1.4rem; }
  .acerca-block p, .equipo-list .list-item, .card-body p { font-size: 1rem; }
  .card-header { font-size: 2.5rem; padding: 20px; }
  .institucional-images { flex-direction: column; gap: 30px; }
  .institucional-images img { max-width: 120px; }
}

@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  .sistemas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  /* Forzamos que se vea el menú aunque sea una sola opción */
  .nav-list {
    display: flex !important;
    justify-content: center;
    background: transparent;
  }

  /* El <li> y el <a> usan exactamente el estilo del menú principal */
  .nav-list > li > a {
    background: #b8911f;           /* mismo fondo dorado */
    color: white !important;       /* mismo texto blanco */
    padding: 18px 40px;            /* mismo padding que en PC */
    font-weight: 600;
    transition: all 0.3s ease;
  }

  /* Hover exactamente igual que en PC */
  .nav-list > li:hover > a,
  .nav-list > li > a:active {
    background: #600d18;
    color: #b8911f !important;
  }

  /* Ocultamos el botón hamburguesa porque no lo necesitamos */
  .menu-toggle { 
    display: none !important; 
  }
}