/* ===== HERO DE FORMACIÓN ===== */
.formacion-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #072727, #041313 80%);
  color: white;
  padding: 7rem 2rem;
}

/* Fondo de cuadrícula animada */
.formacion-hero .tech-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* === EFECTO DE ENTRADA === */
.formacion-hero .container-lg {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === TEXTO PRINCIPAL === */
.formacion-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0,255,229,0.25);
  animation: titleFloat 5s ease-in-out infinite;
}

.formacion-hero h1 span {
  color: #00ffe5;
  text-shadow: 0 0 10px #00ffe5, 0 0 20px #00bfa6, 0 0 40px rgba(0,255,229,0.3);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px #00ffe5, 0 0 20px #00bfa6; }
  50% { text-shadow: 0 0 25px #00ffe5, 0 0 40px #00bfa6; }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === SUBTEXTO === */
.formacion-hero .lead {
  color: #b9f1f1;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpText 1.8s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeUpText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BOTONES === */
.formacion-hero .btn-codaini {
  background-color: #00ffe5;
  border: none;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  box-shadow: 0 0 20px rgba(0,255,229,0.25);
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  animation: fadeUpButton 1.8s ease-out forwards;
  animation-delay: 0.8s;
}

.formacion-hero .btn-codaini:hover {
  background-color: #00d4c5;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,229,0.4);
}

@keyframes fadeUpButton {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PROGRAMAS ===== */
.formacion-programas {
  background: #fff;
  color: #0b2b2b;
  padding: 5rem 2rem;
}

.formacion-programas .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #083c38;
  margin-bottom: 2rem;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.program-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.08);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,255,229,0.25);
}

/* ===== CTA ===== */
.formacion-cta {
  background: linear-gradient(180deg, #0f2a2a, #061818);
  color: white;
  padding: 5rem 2rem;
}

.formacion-cta h2 {
  font-size: 2rem;
  color: #00ffe5;
  text-shadow: 0 0 10px rgba(0,255,229,0.3);
  margin-bottom: 1rem;
}

.formacion-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.formacion-cta .btn-codaini {
  background-color: #00ffe5;
  border: none;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  transition: all 0.3s ease;
}

.formacion-cta .btn-codaini:hover {
  background-color: #00cfc0;
  box-shadow: 0 0 25px rgba(0,255,229,0.35);
  transform: scale(1.05);
}
