/* ===== PÁGINA FORMACIONES - ESTILO SAAS ULTRA MODERNO ===== */

/* ===== HERO FORMACIONES ===== */
.hero-formacion {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: 10rem 1.5rem 12rem;
  position: relative;
  overflow: hidden;
}

.hero-formacion::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.hero-formacion::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  bottom: -15%;
  left: -5%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(3deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-formacion .hero-inner {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 6rem;
  position: relative;
  z-index: 1;
}

.hero-formacion .hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 1;
  margin-bottom: 2rem;
  color: var(--color-white2);
  letter-spacing: -2px;
  font-weight: 900;
  animation: fadeInUp 1s ease backwards;
}

.hero-formacion .hero-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-white2);
  opacity: 0.95;
  margin-bottom: 3rem;
  max-width: 600px;
  font-weight: 400;
  animation: fadeInUp 1s ease backwards 0.2s;
}

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

.hero-formacion .hero-image {
  position: relative;
  animation: fadeInUp 1s ease backwards 0.4s;
}

.hero-formacion .hero-image::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(60px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-formacion .hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-formacion .hero-image img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== SECCIÓN TODAS LAS FORMACIONES ===== */
/* ===== SECCIÓN TODAS LAS FORMACIONES ===== */
.formaciones-todas {
  padding: 12rem 1.5rem 10rem;
  background: var(--color-white2);
  position: relative;
}

.formaciones-todas::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(40, 225, 218, 0.03) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--color-text);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  font-weight: 900;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 100px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text);
  opacity: 0.8;
  max-width: 700px;
  margin: 2.5rem auto 5rem;
  line-height: 1.8;
  font-weight: 400;
}

/* ===== BUSCADOR DE FORMACIONES ===== */
.formaciones-search-wrapper {
  max-width: 800px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 10;
}

.formaciones-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-white2);
  border: 2px solid rgba(40, 225, 218, 0.2);
  border-radius: 999px;
  padding: 1rem 2.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.formaciones-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(40, 225, 218, 0.15);
  transform: translateY(-2px);
}

.formaciones-search i.fa-search {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-right: 1.2rem;
}

.formaciones-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 500;
}

.formaciones-search input::placeholder {
  color: var(--color-text);
  opacity: 0.5;
}

.formaciones-search .clear-search {
  background: rgba(40, 225, 218, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-primary);
  margin-left: 1rem;
}

.formaciones-search .clear-search:hover {
  background: var(--color-primary);
  color: var(--color-white2);
  transform: rotate(90deg);
}

.formaciones-count {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.7;
  font-weight: 500;
}

.formaciones-count span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== CAROUSEL WRAPPER - MUESTRA SOLO 2 CARDS ===== */
.formaciones-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 100px;
}

.formaciones-carousel {
  overflow: hidden;
  position: relative;
}

.formaciones-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

/* ===== BOTONES DE NAVEGACIÓN MEJORADOS ===== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(40, 225, 218, 0.2);
  background: var(--color-white2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  font-size: 1.4rem;
}

.carousel-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-white2);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 20px 45px rgba(40, 225, 218, 0.35);
}

.carousel-btn:active:not(.disabled) {
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* ===== INDICADORES MEJORADOS ===== */
.carousel-indicators {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 4rem;
}

.indicator {
  width: 50px;
  height: 6px;
  background: rgba(40, 225, 218, 0.2);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.indicator.active {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  width: 80px;
  box-shadow: 0 4px 15px rgba(40, 225, 218, 0.3);
}

.indicator:hover:not(.active) {
  background: rgba(40, 225, 218, 0.4);
  transform: scale(1.1);
}

/* ===== CARDS DE FORMACIÓN MEJORADAS ===== */
.formacion-item {
  background: linear-gradient(135deg, var(--color-white2) 0%, #f8fafc 100%);
  border-radius: 32px;
  padding: 4rem 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(40, 225, 218, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.formacion-item::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.04;
  transition: all 0.6s ease;
}

.formacion-item:hover::before {
  top: -70px;
  right: -70px;
  opacity: 0.08;
  transform: scale(1.2);
}

.formacion-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

/* ===== NÚMERO DE FORMACIÓN MEJORADO ===== */
.formacion-numero {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-white2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  font-family: var(--font-display);
  box-shadow: 0 8px 20px rgba(40, 225, 218, 0.4);
  z-index: 10;
  transition: all 0.3s ease;
}

.formacion-item:hover .formacion-numero {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(40, 225, 218, 0.5);
}

.formacion-item h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 1.8rem;
  margin-top: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1.2rem;
}

.formacion-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.formacion-item:hover h3::after {
  width: 120px;
}

.formacion-item p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  font-weight: 450;
  flex: 1;
}

.formacion-item p strong {
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  margin-top: 1rem;
}

.formacion-item .btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  align-self: flex-start;
}

.formacion-item .btn-main::after {
  content: '→';
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.formacion-item:hover .btn-main::after {
  transform: translateX(6px);
}

/* ===== MENSAJE SIN RESULTADOS ===== */
.no-results {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.no-results i {
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.25;
  margin-bottom: 2rem;
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.no-results p {
  font-size: 1.15rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* ===== ESTADO OCULTO PARA BÚSQUEDA ===== */
.formacion-item.hidden {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
  .formaciones-carousel-wrapper {
    padding: 0 90px;
  }
}

@media (max-width: 1200px) {
  .formaciones-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .formaciones-carousel-wrapper {
    padding: 0 80px;
  }

  .carousel-btn {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
}

@media (max-width: 968px) {
  .formaciones-todas {
    padding: 8rem 1.5rem 6rem;
  }

  .formaciones-carousel-wrapper {
    padding: 0 70px;
  }

  .carousel-btn {
    width: 55px;
    height: 55px;
    font-size: 1.1rem;
  }

  .formaciones-search-wrapper {
    margin-bottom: 4rem;
  }

  .formacion-item {
    padding: 3rem 2.5rem;
    min-height: 450px;
  }
}

@media (max-width: 640px) {
  .formaciones-todas {
    padding: 6rem 1rem 4rem;
  }

  .formaciones-carousel-wrapper {
    padding: 0 60px;
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .formaciones-search {
    padding: 0.8rem 1.8rem;
  }

  .formaciones-search input {
    font-size: 1rem;
  }

  .carousel-indicators {
    margin-top: 3rem;
    gap: 0.7rem;
  }

  .indicator {
    width: 35px;
  }

  .indicator.active {
    width: 60px;
  }

  .formacion-item {
    padding: 2.5rem 2rem;
    min-height: auto;
  }

  .formacion-item h3 {
    font-size: 1.6rem;
  }

  .formacion-numero {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* ===== LISTA DE FORMACIONES ===== */
.formaciones-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: auto;
  position: relative;
  z-index: 1;
}

.formacion-item {
  background: linear-gradient(135deg, var(--color-white2) 0%, #f8fafc 100%);
  border-radius: 32px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(40, 225, 218, 0.15);
  position: relative;
  overflow: hidden;
}

.formacion-item::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.05;
  transition: all 0.5s ease;
}

.formacion-item:hover::before {
  top: -80px;
  right: -80px;
  opacity: 0.08;
}

.formacion-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.12);
  border-color: var(--color-secondary);
}

.formacion-item.f:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}
.formacion-item h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1rem;
}

.formacion-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.formacion-item.f h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
 background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.formacion-item:hover h3::after {
  width: 100px;
}

.formacion-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 2rem;
  font-weight: 450;
}

.formacion-item p strong {
  color: var(--color-orange);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-top: 1rem;
}

.formacion-item .btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.formacion-item .btn-main::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.formacion-item .btn-main.f {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.formacion-item .btn-main.f::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.formacion-item:hover .btn-main::after {
  transform: translateX(5px);
}

/* ===== SECCIÓN PRÓXIMAS FORMACIONES ===== */
.formaciones-proximas {
  padding: 10rem 1.5rem;
  background: linear-gradient(135deg, #fafbfc 0%, var(--color-bg) 100%);
  position: relative;
}

.formaciones-proximas::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  pointer-events: none;
}

/* Badge para fechas destacadas */
.formacion-item .fecha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-sans);
  color: var(--color-white2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  animation: pulse-badge 2s ease-in-out infinite;
}

/* ===== CTA FORMACIONES ===== */
.cta-formaciones {
  padding: 8rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-formaciones::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -50%;
  left: -10%;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.cta-formaciones::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  bottom: -40%;
  right: -5%;
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

.cta-formaciones h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--color-white2);
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.cta-formaciones p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-white2);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-buttons .btn-main {
  background: var(--color-white2);
  color: var(--color-primary);
  border: 2px solid var(--color-white2);
}

.cta-buttons .btn-main:hover {
  background: transparent;
  color: var(--color-white2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: var(--color-white2);
  border: 2px solid var(--color-white2);
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons .btn-secondary:hover {
  background: var(--color-white2);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ===== VARIANTES DE FORMACIÓN (PREMIUM/DESTACADA) ===== */
.formacion-item.premium {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 25px 70px rgba(245, 158, 11, 0.15);
}

.formacion-item.premium::before {
  background: var(--color-secondary);
}

.formacion-item.premium:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 100px rgba(245, 158, 11, 0.25);
  border-color: var(--color-orange);
}

.formacion-item.premium .badge-premium {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-orange) 100%);
  color: var(--color-white2);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-formacion {
    padding: 6rem 1.5rem 8rem;
  }

  .hero-formacion .hero-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero-formacion .hero-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-formacion .hero-image img {
    margin: 0 auto;
  }

  .formaciones-todas,
  .formaciones-proximas {
    padding: 6rem 1.5rem;
  }

  .formaciones-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-formaciones {
    padding: 5rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-main,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .formacion-item {
    padding: 2.5rem 2rem;
  }

  .formacion-item h3 {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }
}