/* === ESTILOS BASE === */
.superbody-fr4-testi {
  margin: 0;
  font-family: 'Alexandria', sans-serif;
  background-color: #FFB43A;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

/* Ola animada */
.wave-wrapper-orangesummerjoy {
  position: absolute;
  top: -38px;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 1;
  line-height: 0;
}

.wave-orangesummerjoy {
  position: relative;
  width: 200%;
  height: 120px;
  animation: moveWave 10s linear infinite;
}

.wave-orangesummerjoy path {
  fill: white;
}

@keyframes moveWave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === PRIMERA SECCIÓN === */
.body-summerjoy-parte1 {
  font-family: 'Alexandria', sans-serif;
  background-color: #FFB43A;
  color: white;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.image-container img {
  width: 500px;
  max-width: 100%;
  z-index: 3;
  margin-left: -20px;
}

.text-container {
  max-width: 600px;
  margin-left: 20px;
  text-align: left;
}

.text-container h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.2;
  margin-bottom: 0px;
}

.yellow-text {
  color: white;
  font-weight: bold;
  display: inline-block;
  margin-left: 100px;
}

.pink-box {
  display: inline-block;
  background-color: #f72585;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  transform: rotate(-3deg);
  margin-top: 10px;
  margin-left: 80px;
  white-space: nowrap;
  z-index: 1;
}

.text-container p {
  font-family: 'Visby Round CF', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  margin-left: 80px;
  text-align: justify;
}

/* === CARRUSEL Y COMENTARIOS === */
.body-fr4-testi-parte2 {
  margin: 0;
  padding: 0;
  color: white;
  min-height: auto;
  height: auto;
  background-color: #FFB43A;
}

.carrusel-wrapper-testi-fr4 {
  position: relative;
  height: auto;
  overflow: hidden;
  width: 100%;
  margin: 20px 0 100px 0;
}

.carrusel-container-testi-fr4 {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.video-testi-fr4 {
  min-width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}



.video-testi-fr4 iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 1280px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.arrow-button-testi-fr4 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: #000;
  border: none;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.arrow-button-testi-fr4:hover {
  background: rgba(255, 255, 255, 1);
}

.arrow-left-testi-fr4 {
  left: 20px;
}

.arrow-right-testi-fr4 {
  right: 20px;
}



/* === VECTORES === */
.vec10 {
  top: 15%;
  left: 0%;
  max-width: 200px;
}

.vec11 {
  top: 40%;
  left: 5%;
  max-width: 70px;
}

.vec12 {
  top: 5%;
  left: 80%;
  max-width: 100px;
}

.vec13 {
  top: 50%;
  left: 93%;
  max-width: 100px;
}

/* === MEDIA QUERIES === */

/* 480px portrait */
@media (max-width: 480px) and (orientation: portrait) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .image-container img {
    width: 100%;
    max-width: 280px;
    margin-left: 0;
  }

  .text-container {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }

  .yellow-text,
  .pink-box {
    margin-left: 0;
    font-size: 1.5rem;
  }

  .text-container h1 {
    font-size: 2rem;
  }

  .pink-box {
    transform: none;
  }

  .text-container p {
    font-size: 0.85rem;
    margin-left: 0;
    text-align: center;
  }

  
  .video-testi-fr4 iframe {
    height: 200px;
  }

  /* Ajusta el padding general para que no haya espacio innecesario */
  .superbody-fr4-testi {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .carrusel-wrapper-testi-fr4 {

    margin: -237px 0 -151px 0;
  }
}




/* 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    gap: 30px;
  }

  .image-container img {
    width: 90%;
    margin-left: 0;
  }

  .text-container {
    margin-left: 0;
    text-align: center;
    max-width: 100%;
  }

  .text-container h1 {
    font-size: 2.5rem;
  }

  .yellow-text,
  .pink-box {
    margin-left: 0;
    font-size: 2rem;
  }

  .text-container p {
    margin-left: 0;
    font-size: 1rem;
    text-align: center;
  }

  

  .video-testi-fr4 iframe {
    height: 250px;
  }

  .arrow-button-testi-fr4 {
    padding: 10px;
    font-size: 20px;
  }

  .carrusel-wrapper-testi-fr4 {

    margin: -270px 0 -220px 0;
  }

  .video-testi-fr4 iframe {
    height: 360px;
    width: 80%;
  }
}

@media (min-width: 481px) and (max-width: 768px)  and (orientation: landscape) {
.carrusel-wrapper-testi-fr4 {

    margin: -10px 0 100px 0;
  }

}

/* 912px */
@media (min-width: 769px) and (max-width: 912px) {
  .text-container h1 {
    font-size: 3rem;
  }

  .pink-box {
    font-size: 2.5rem;
  }

  .yellow-text {
    font-size: 2.5rem;
  }

 

  .video-testi-fr4 iframe {
    height: 300px;
  }

  .carrusel-wrapper-testi-fr4 {

    margin: -20px 0 100px 0;
  }
  .video-testi-fr4 iframe {
    height: 360px;
    width: 80%;
  }
}

/* 1024px landscape */
@media (min-width: 913px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .text-container h1 {
    font-size: 3rem;
  }



  .video-testi-fr4 iframe {
    height: 360px;
    width: 80%;
  }
}

/* 1024px portrait */
@media (min-width: 913px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-container {
    flex-direction: column;
  }


  .video-testi-fr4 iframe {
    height: 280px;
  }
}

/* min-width: 1440px */
@media (min-width: 1440px) {
  .hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }

 
  .text-container h1 {
    font-size: 4rem;
  }

  .text-container p {
    font-size: 1.1rem;
  }

  .video-testi-fr4 iframe {
    width: 70%;
    height: 400px;
  }

  
.carrusel-wrapper-testi-fr4 {
  
  margin: -150px 0 100px 0;
  height: auto;
}
}