/* ==================== ESTILOS INFRAESTRUCTURA EDUCATIVA ==================== */

/* Hero Section */
.hero-infraestructura {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-infraestructura::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-infraestructura h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease;
}

.hero-infraestructura p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Content Section */
.seccion-contenido {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.contenido-principal {
  max-width: 1200px;
  margin: 0 auto;
}

.infraestructura-container {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Intro Section */
.intro-section {
  background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary);
}

.intro-section p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Componentes Section */
.componentes-section {
  margin-bottom: 4rem;
}

.componentes-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.componentes-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.componente-item {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.componente-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.componente-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
  transition: all 0.4s ease;
}

.componente-item:hover .componente-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.35);
}

.componente-icon svg {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  color: white;
  display: block;
}

.componente-content {
  flex: 1;
}

.componente-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.componente-content p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.componente-content .meta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary);
  border-radius: 0.5rem;
  font-size: 0.938rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.componente-content .meta strong {
  color: var(--primary-dark);
}

/* Proyectos Section */
.proyectos-section {
  margin-bottom: 4rem;
}

.proyectos-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.proyectos-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.proyecto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.proyecto-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.proyecto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.proyecto-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.proyecto-card p {
  font-size: 0.938rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.proyecto-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary);
}

/* Estilos específicos para diferentes estados */
.status-badge.en-construccion,
.status-badge.en-ejecucion {
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary);
}

.status-badge.en-planeacion {
  background: rgba(255, 193, 7, 0.1);
  color: #ff9800;
}

.status-badge.completado {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.progress {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* Beneficios Section */
.beneficios-section {
  margin-bottom: 4rem;
}

.beneficios-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.beneficios-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.beneficios-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.beneficios-list li {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.beneficios-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.beneficios-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Estándares Section */
.estándares-section {
  margin-bottom: 2rem;
}

.estándares-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.estándares-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.estándares-section > p {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.estándares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.estándar-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.estándar-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.estándar-item strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.estándar-item p {
  font-size: 0.938rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive */
@media (max-width: 992px) {
  .componente-item {
    flex-direction: column;
    text-align: center;
  }

  .componente-icon {
    margin: 0 auto;
  }

  .beneficios-list {
    grid-template-columns: 1fr;
  }

  .estándares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-infraestructura {
    padding: 4rem 0 3rem;
  }

  .hero-infraestructura h1 {
    font-size: 2.25rem;
  }

  .hero-infraestructura p {
    font-size: 1.125rem;
  }

  .infraestructura-container {
    padding: 2rem 1.5rem;
  }

  .componentes-section h2,
  .proyectos-section h2,
  .beneficios-section h2,
  .estándares-section h2 {
    font-size: 2rem;
  }

  .componente-item {
    padding: 1.5rem;
  }

  .componente-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
  }

  .componente-icon svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
  }

  .componente-content h3 {
    font-size: 1.25rem;
  }

  .proyecto-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .proyecto-card {
    padding: 1.5rem;
  }

  .beneficios-list {
    grid-template-columns: 1fr;
  }

  .estándares-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-infraestructura h1 {
    font-size: 1.875rem;
  }

  .componentes-section h2,
  .proyectos-section h2,
  .beneficios-section h2,
  .estándares-section h2 {
    font-size: 1.75rem;
  }

  .infraestructura-container {
    padding: 1.5rem 1rem;
  }

  .componente-item {
    padding: 1rem;
  }
}
