.prueba-section {
  font-family: 'Alexandria', sans-serif;
  position: relative;
  background: #fff;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  /* antes: 0 0 */
  overflow: hidden;
}

.prueba-card {
  position: relative;
  border-radius: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prueba-card-body {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  /*padding: 0 40px 40px 40px;*/
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  max-width: 900px;
  /* Ajusta este valor según el ancho de tus tabs */
  box-sizing: border-box;
  margin-bottom: 40px;
}

.prueba-tabs {

  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  margin: 20px auto;
  padding: 0;
  background: #fff;
  z-index: 2;
  box-shadow: none;
  border-bottom: 2px solid #eee;
  max-width: 900px;
  /* Igual que el body */
  box-sizing: border-box;
  min-width: 200px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid #eee;
  position: relative;
  z-index: 1;
}

.prueba-tab {
  font-family: 'Visby Round CF', Arial, sans-serif;
  font-weight: 900;
  font-size: 18.15px;
  line-height: 19.85px;
  letter-spacing: 0px;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  min-width: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin: 0;
  border-right: 1px solid #eee;
  position: relative;
  z-index: 1;
  cursor: pointer;
  white-space: normal;
  width: 150px;
  min-height: 60px;
  box-sizing: border-box;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;

}

.prueba-tab:last-child {
  border-right: none;
}

.prueba-tab:first-child {
  border-radius: 24px 0 0 0;
}

.prueba-tab:last-child {
  border-radius: 0 24px 0 0;
}

.prueba-tab-active {
  background: #ff3ba7;
  color: #fff;
  z-index: 2;
}

.prueba-tab-active2 {
  background: #e6d6de;
  color: #ff3ba7;
  z-index: 2;
}

.prueba-tab-yellow {
  background: #fff86a;
  color: #ff3ba7;
}

.prueba-tab-yellow2 {
  background: #e5e5cf;
  color: #bdb300;
}

.prueba-tab-cyan {
  background: #2ed2e6;
  color: #231942;
}

.prueba-tab-cyan2 {
  background: #cae5e9;
  color: #00d4f0;
}

.prueba-tab-purple {
  background: #c1c1df;
  color: #a259e6;
}

.prueba-tab-purple2 {
  background: #d9d9e6;
  color: #7504df;
}

.prueba-star {
  color: #2ed2e6;
  font-size: 2.2rem;
  font-family: inherit;
  font-weight: bold;
  position: absolute;
  right: 30px;
  top: 30px;
  animation: star-bounce 2.5s infinite alternate;
}


.div-titulo-etapapreoperacional {
  text-align: center;
}

.div-titulo-etapapreoperacional h1 {
  font-size: 43.46px;
  margin: 0;
  font-weight: 900;
  padding: 0;
}

.div-titulo-etapapreoperacional h1 .etapa {
  color: #0a002f;
  /* Color azul oscuro */
}

.div-titulo-etapapreoperacional h1 .preoperacional {
  color: #ff2ebf;
  /* Color rosa fuerte */
}

.div-titulo-etapapreoperacional p {
  margin-top: 0.5em;
  font-size: 16px;
  color: #0a002f;
  font-weight: 700;
}



/* Carrusel de videos */


.body-videos-testi {
  margin: 0;
  font-family: Arial, sans-serif;

  display: flex;
  justify-content: center;
  align-items: center;
  /* Centrado vertical */
  min-height: 70vh;
  /* Ocupa toda la altura */
  padding: 20px 10px;
}

.carousel-wrapper-testi {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* Centra el contenedor */
  display: flex;
  justify-content: center;
  /* Centra el contenido dentro */
}

.carousel-container-testi {
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  width: fit-content;
  /* Ajusta el ancho al contenido */
  margin: 0 auto;
}

.carousel-testi {
  display: flex;
  gap: 16px;
}

.video-item-testi {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  transition: all 0.4s ease;
  opacity: 0.6;
  transform: scale(0.9);
  cursor: pointer;
}

.video-item-testi.active {
  width: clamp(400px, 45vw, 700px);
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.video-item-testi iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Botones */
.nav-button-testi {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.nav-button-testi:hover {
  background: rgba(0, 0, 0, 0.6);
}

.prev-testi {
  left: 0;
}

.next-testi {
  right: 0;
}

/* Ocultar scrollbars */
.carousel-container-testi::-webkit-scrollbar {
  display: none;
}

.carousel-container-testi {
  -ms-overflow-style: none;
  scrollbar-width: none;
}



/* butttton*/

.div-btn-body-testi2 {
  margin: 0;
  padding: 0;
  font-family: 'Alexandria', sans-serif;
  display: flex;
  justify-content: center;
  /* centra horizontalmente */
}


.btn-test2 {
  background-color: #ff2893;
  /* color rosa */
  color: white;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  /* bordes redondeados */
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  margin-top: 10px;
}



/* === BREAKPOINT 1: Móviles pequeños (hasta 480px, portrait) === */
@media (max-width: 480px) and (orientation: portrait) {
  .div-titulo-etapapreoperacional h1 {
    font-size: 24px;
  }

  .div-titulo-etapapreoperacional p {
    font-size: 14px;
  }

  .prueba-tab {
    width: 100%;
    font-size: 14px;
    min-height: 50px;
  }

  .prueba-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .video-item-testi.active {
    width: 100%;
  }

  .prueba-card-body {
    padding: 10px;
  }

  .prueba-star {
    font-size: 1.5rem;
    right: 15px;
    top: 15px;
  }


  .carousel-wrapper-testi {
    max-width: 40%;
    width: auto;
  }

  .prueba-tab:last-child {
    border-radius: 0%;
  }

  .btn-test2 {
    width: 50%;
    font-size: 14px;
    padding: 12px 20px;
  }

  .body-videos-testi {
    min-height: 20vh;

  }
}

/* === BREAKPOINT 2: Tablets y móviles grandes (hasta 768px) === */
@media (min-width:481px) and (max-width: 768px) {
  .div-titulo-etapapreoperacional h1 {
    font-size: 32px;
  }

  .div-titulo-etapapreoperacional p {
    font-size: 15px;
  }

  .prueba-tab {
    font-size: 16px;
    min-height: 55px;
  }

  .video-item-testi.active {
    width: 85vw;
  }

  .prueba-card-body {
    padding: 15px;
  }

  .nav-button-testi {
    font-size: 24px;
    padding: 8px;
  }

  .carousel-wrapper-testi {
    max-width: 60%;
    width: auto;
  }

  .body-videos-testi {
    min-height: 40vh;
  }
}

/* === BREAKPOINT 3: Tablets y pantallas medianas (hasta 912px) === */
@media (min-width: 769px) and (max-width: 912px) {
  .prueba-tab {
    font-size: 16px;
  }

  .prueba-card-body {
    padding: 10px;
  }

  .video-item-testi.active {
    width: 80vw;
  }

  .carousel-wrapper-testi {
    max-width: 60%;
    width: auto;
  }
  .body-videos-testi {
    min-height: 40vh;
  }
}

/* === BREAKPOINT 4: Pantallas normales (hasta 1024px) === */
@media (min-width: 913px) and (max-width: 1024px) {
  .video-item-testi.active {
    width: 70vw;
  }

  .carousel-wrapper-testi {
    max-width: 95%;
  }

  .prueba-card {
    padding: 0 10px;
  }

  .div-titulo-etapapreoperacional h1 {
    font-size: 36px;
  }

   .carousel-wrapper-testi {
    max-width: 65%;
    width: auto;
  }
  .body-videos-testi {
    min-height: 40vh;
  }
}

/* === BREAKPOINT 5: Pantallas grandes (desde 1440px) === */
@media (min-width: 1440px) {
  .prueba-card-body {
    max-width: 1100px;
  }

  .carousel-wrapper-testi {
    max-width: 1300px;
  }

  .video-item-testi.active {
    width: 600px;
  }

  .div-titulo-etapapreoperacional h1 {
    font-size: 48px;
  }
}

/* === BREAKPOINT 6: 1024px landscape === */
@media (max-width: 1024px) and (orientation: landscape) {
  .video-item-testi.active {
    width: 75vw;
  }

  .prueba-tab {
    font-size: 16px;
  }
}

/* === BREAKPOINT 7: 1024px portrait === */
@media (max-width: 1024px) and (orientation: portrait) {
  .video-item-testi.active {
    width: 90vw;
  }

  .prueba-tab {
    font-size: 16px;
  }
}

/* === BREAKPOINT 8: 480px portrait (repetido, pero específico para orientación) === */
@media (max-width: 480px) and (orientation: portrait) {
  .prueba-tab {
    font-size: 13px;
    padding: 10px;
  }

  .div-btn-body-testi2 {
    flex-direction: column;
    align-items: center;
  }

  .btn-test2 {
    width: 100%;
  }
}