/* === FRAME 2 – ESTILOS BASE === */
.body-frame2-eligecurso {
  color: white;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

.section-fr2-ec {
  background-color: #47D5DF;
  padding: 0px 20px 40px;
  position: relative;
  margin-top: 140px;
  z-index: 2;
}

.banner-fr2-ec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.main-text-fr2-ec {
  background-color: #FFA726;
  color: white;
  font-size: 48px;
  font-weight: bold;
  padding: 10px 30px;
  transform: rotate(-2deg);
  margin-bottom: 10px;
  z-index: 2;
}

.sub-text-fr2-ec {
  background-color: #FFF45C;
  color: #FF1493;
  font-size: 24px;
  font-weight: bold;
  padding: 5px 20px;
  transform: rotate(1deg);
  z-index: 3;
}

.video-container-fr2-ec {
  position: relative;
  padding-bottom: 30.25%; /* relación de aspecto del video */
  height: 0;
  overflow: hidden;
  max-width: 60%;
  background: #ccc;
  border-radius: 10px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: -70px;
  z-index: 1;
}

.video-container-fr2-ec iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.text-content-fr2-ec {
   font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 20px auto;
  font-size: 21px;
  line-height: 1.6;
  color: white;
  text-align: justify;
}

/* === Ola animada === */
.wave-wrapper-fr2-ec {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 3;
  background: transparent;
  line-height: 0;
}

.ocean-top-ec {
  height: 150px;
}

.wave-fr2-ec {
  position: relative;
  top: 0;
  width: 200%;
  height: 150px;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 174.47 46.34' xmlns='http://www.w3.org/2000/svg'><path fill='%2347D5DF' d='M0,11.38c0,0,21.13,11.40,43.62,11.38C66.10,22.76,107.97,0.03,130.51,0c22.54-0.03,43.96,11.38,43.96,11.38v34.96H0V11.38z'/></svg>");
  background-repeat: repeat-x;
  background-size: 500px auto;
  animation: moveWave 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  z-index: 3;
}

@keyframes moveWave {
  0% {
    background-position-x: -500px;
  }
  100% {
    background-position-x: 0%;
  }
}

/* =====================================================
   🧩 MEDIA QUERIES RESPONSIVAS
===================================================== */

/* === 1440px en adelante (pantallas grandes) === */
@media (min-width: 1440px) {
  .main-text-fr2-ec {
    font-size: 60px;
    padding: 15px 40px;
  }
  .sub-text-fr2-ec {
    font-size: 28px;
  }
  .text-content-fr2-ec {
    font-size: 25px;
  }
  .video-container-fr2-ec {
    max-width: 50%;
  }
}

/* === 1024px (pantallas medianas o tablets landscape) === */
@media (max-width: 1024px) {
  .main-text-fr2-ec {
    font-size: 42px;
  }
  .sub-text-fr2-ec {
    font-size: 22px;
  }
  .video-container-fr2-ec {
    max-width: 70%;
    margin-top: -50px;
  }
  .text-content-fr2-ec {
    font-size: 21px;
  }
}

/* === 912px (tablets grandes) === */
@media (max-width: 912px) {
  .main-text-fr2-ec {
    font-size: 38px;
  }
  .sub-text-fr2-ec {
    font-size: 20px;
  }
  .video-container-fr2-ec {
    max-width: 80%;
    padding-bottom: 45%;
  }
  .text-content-fr2-ec {
    font-size: 20px;
  }
}

/* === 768px (tablets vertical) === */
@media (max-width: 768px) {
  .main-text-fr2-ec {
    font-size: 32px;
  }
  .sub-text-fr2-ec {
    font-size: 18px;
  }
  .video-container-fr2-ec {
    max-width: 90%;
    padding-bottom: 50%;
  }
  .text-content-fr2-ec {
    font-size: 18px;
    padding: 0 10px;
  }
}



/* === 480px (móviles pequeños) === */
@media (max-width: 480px) {
  .wave-wrapper-fr2-ec{
    margin-top: 25px;
  }
  .main-text-fr2-ec {
    font-size: 26px;
    padding: 8px 20px;
  }
  .sub-text-fr2-ec {
    font-size: 16px;
  }
  .video-container-fr2-ec {
    max-width: 100%;
    padding-bottom: 60%;
    margin-top: -30px;
  }
  .text-content-fr2-ec {
    font-size: 16px;
    text-align: left;
  }
}

@media (max-width: 400px) {
.wave-wrapper-fr2-ec{
    margin-top: 10px;
  }
}

/* === ORIENTACIÓN LANDSCAPE (máx 1024px) === */
@media (max-width: 1024px) and (orientation: landscape) {
  .main-text-fr2-ec {
    font-size: 34px;
  }
  .video-container-fr2-ec {
    max-width: 70%;
    padding-bottom: 40%;
  }
}

/* === ORIENTACIÓN PORTRAIT (máx 1024px) === */
@media (max-width: 1024px) and (orientation: portrait) {
  .main-text-fr2-ec {
    font-size: 36px;
  }
  .video-container-fr2-ec {
    max-width: 85%;
    padding-bottom: 50%;
  }
}

/* === ORIENTACIÓN PORTRAIT (máx 480px) === */
@media (max-width: 480px) and (orientation: portrait) {
  .main-text-fr2-ec {
    font-size: 24px;
  }
  .sub-text-fr2-ec {
    font-size: 15px;
  }
  .video-container-fr2-ec {
    max-width: 100%;
    padding-bottom: 65%;
  }
  .text-content-fr2-ec {
    font-size: 15px;
  }
}










