/* =========================================
   FORMACIÓN (scoped) — no toca el resto
   Requiere: <section id="formacion" class="section section--formacion"> ... </section>
========================================= */

/* Importante: esta sección gestiona su propio padding */
.section--formacion.section{
  padding-left: 0;
  padding-right: 0;
}

/* Bloques principales */
.section--formacion .main-block{
  width: 100%;
  padding: 80px 40px;
}

.section--formacion .block-white{ background: #ffffff; }
.section--formacion .block-gray{ background: #97928d; }

/* Sección de contenido */
.section--formacion .content-section{
  max-width: 1200px;
  margin: 0 auto 100px auto;
  display: flex;
  gap: 60px;
  align-items: flex-end;
}

.section--formacion .content-section:last-child{ margin-bottom: 0; }

/* Texto e imágenes ocupan 50% cada uno */
.section--formacion .text-content,
.section--formacion .images-container{
  flex: 1;
}

.section--formacion .text-content p{
  text-align: justify;
}

/* Invertir orden para secciones con imágenes a la izquierda */
.section--formacion .content-section.reverse{
  align-items: flex-end;
  text-align: right;
}

/* Contenido de texto */
.section--formacion .text-content{
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* OJO: section-title no lo usas ahora, pero lo dejo por compatibilidad */
.section--formacion .section-title{
  font-family: 'League Spartan', sans-serif;
  font-size: 4.2rem;
  font-weight: 700;
  color: #97928d;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section--formacion .block-gray .content-section:first-child .section-title{
  width: 100%;
  margin-left: 0;
}

.section--formacion .block-gray .section-title{ color: #ffffff; }

.section--formacion .section-subtitle{
  font-family: 'League Spartan', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  color: #575656;
  margin-bottom: 8px;
  text-align: left;
  line-height: 1;
  hyphens: auto;
}

.section--formacion .block-gray .section-subtitle{ color: #f0f0f0; }

.section--formacion .text-content p{
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;
}

.section--formacion .block-gray .text-content p{ color: #ffffff; }

/* Resultado */
.section--formacion .resultado{
  color: #575656;
  font-weight: bold;
}
.section--formacion .block-gray .resultado{
  color: #ffffff;
}

/* Botón de contacto */
.section--formacion .contact-btn{
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  padding: 10px 28px;
  background: transparent;
  border: 2px solid #222;
  color: #222;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 10px;
  align-self: center;
}

.section--formacion .contact-btn:hover{
  background: #222;
  color: #fff;
}

.section--formacion .block-gray .contact-btn{
  border-color: #ffffff;
  color: #ffffff;
}

.section--formacion .block-gray .contact-btn:hover{
  background: #ffffff;
  color: #97928d;
}

/* Contenedor de imágenes */
.section--formacion .images-container{
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.section--formacion .image-circle{
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.section--formacion .image-circle:hover{
  transform: scale(1.05);
}

.section--formacion .image-circle img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título por bloque (el que sí estás usando: .block-title) */
.section--formacion .block-title{
  max-width: 1200px;
  margin: 0 auto 40px;
  font-family: 'League Spartan', sans-serif;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

/* Colores por bloque */
.section--formacion .block-gray .block-title{ color: #fff; }
.section--formacion .block-white .block-title{ color: #97928d; }

/* Responsive del block-title */
@media (max-width: 1100px){
  .section--formacion .block-title{
    white-space: normal;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
}

/* ===== WAVES DECOR (3 por bloque) ===== */
.section--formacion .with-waves{
  position: relative;
  overflow: hidden;
}

.section--formacion .wave{
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: clamp(650px, 70vw, 1400px);
  opacity: 0.14;
  transform-origin: center;
}

/* contenido encima */
.section--formacion .with-waves > *:not(.wave){
  position: relative;
  z-index: 1;
}

.section--formacion .wave-1{
  top: -5%;
  right: -5%;
  transform: rotate(12deg) scale(1.12);
}

.section--formacion .wave-2{
  top: 32%;
  left: -8%;
  transform: rotate(60deg) scale(1.18);
  opacity: 0.10;
}

.section--formacion .wave-3{
  bottom: 8%;
  right: -10%;
  transform: rotate(140deg) scaleX(-1) scale(1.25);
  opacity: 0.08;
}

/* tono por bloque */
.section--formacion .block-gray .wave{
  filter: none;
  opacity: 0.16;
}

.section--formacion .block-white .wave{
  filter: brightness(0.55);
  opacity: 0.08;
}

/* Responsive principal */
@media (max-width: 968px){
  .section--formacion .content-section{
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
  }

  .section--formacion .content-section.reverse .text-content{
    align-items: flex-end !important;
    text-align: right !important;
  }

  .section--formacion .section-title{ font-size: 1.8rem; }
  .section--formacion .section-subtitle{ font-size: 1.2rem; }

  .section--formacion .images-container{ gap: 20px; }

  .section--formacion .image-circle{
    width: 150px;
    height: 150px;
  }

  .section--formacion .wave{
    width: 900px;
    opacity: 0.06;
  }
  .section--formacion .block-gray .wave{ opacity: 0.10; }
  .section--formacion .wave-2{ left: -55%; }
  .section--formacion .wave-3{ right: -60%; }
}

@media (max-width: 640px){
  .section--formacion .main-block{
    padding: 60px 20px;
  }

  .section--formacion .content-section{
    margin-bottom: 60px;
  }

  .section--formacion .section-title{ font-size: 1.6rem; }
  .section--formacion .section-subtitle{ font-size: 1.1rem; }

  .section--formacion .text-content p{ font-size: 0.9rem; }

  .section--formacion .images-container{ gap: 15px; }

  .section--formacion .image-circle{
    width: 130px;
    height: 130px;
  }

  .section--formacion .contact-btn{
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}
@media (max-width: 640px){
  .section--formacion .main-block{
    padding-left: 52px;
    padding-right: 32px;
  }
}