html {
  scroll-behavior: smooth;
}

.hero {
  width: 100%;
  min-height: 450px;
  position: relative;
  top: 0;
  left: 0;
  filter: hue-rotate(235deg) saturate(100%) brightness(60%);
}

.layer-2 {
  -webkit-animation: parallax_fg linear 30s infinite both;
  animation: parallax_fg linear 30s infinite both;
  background: url(../img/hero-animate/2-mod.png) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 145px;
}

.layer-3 {
  -webkit-animation: parallax_fg linear 55s infinite both;
  animation: parallax_fg linear 55s infinite both;
  background: url(../img/hero-animate/3.png) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 158px;
}

.layer-4 {
  -webkit-animation: parallax_fg linear 75s infinite both;
  animation: parallax_fg linear 75s infinite both;
  background: url(../img/hero-animate/4.png) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 468px;
}

.layer-5 {
  -webkit-animation: parallax_fg linear 95s infinite both;
  animation: parallax_fg linear 95s infinite both;
  background: url(../img/hero-animate/5.png) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 311px;
}

.layer-6 {
  -webkit-animation: parallax_fg linear 120s infinite both;
  animation: parallax_fg linear 120s infinite both;
  background: url(../img/hero-animate/6.png) 0 100% repeat-x;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 222px;
}

.bike-1,
.bike-2,
.flag {
  background: url(../img/hero-animate/people2.png) 0 100% no-repeat;
  z-index: 1;
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 75px;
}

.bike-2 {
  background: url(../img/hero-animate/people.png) 0 100% no-repeat;
  background-size: auto 95px;
}

.flag {
  background: url(../img/hero-animate/flag.png) 0 100% no-repeat;
  background-size: auto 145px;
}

/* .bike-1 {
    -webkit-animation: parallax_bike linear 10s infinite both;
    animation: parallax_bike linear 10s infinite both;
}

.bike-2 {
    -webkit-animation: parallax_bike linear 15s infinite both;
    animation: parallax_bike linear 15s infinite both;
} */

.bike-1 {
  -webkit-animation: parallax_fg linear 40s infinite both;
  animation: parallax_fg linear 40s infinite both;
}

.bike-2 {
  -webkit-animation: parallax_bike linear 30s infinite both;
  animation: parallax_bike linear 30s infinite both;
}

.flag {
  -webkit-animation: parallax_bike linear 32s infinite both;
  animation: parallax_bike linear 32s infinite both;
}

@-webkit-keyframes parallax_fg {
  0% {
    background-position: 2765px 100%;
  }

  100% {
    background-position: 550px 100%;
  }
}

@keyframes parallax_fg {
  0% {
    background-position: 2765px 100%;
  }

  100% {
    background-position: 550px 100%;
  }
}

/* @-webkit-keyframes parallax_bike {
    0% {
        background-position: -300px 100%;
    }

    100% {
        background-position: 2000px 100%;
    }
}

@keyframes parallax_bike {
    0% {
        background-position: -300px 100%;
    }

    100% {
        background-position: 2000px 100%;
    }
} */

@-webkit-keyframes parallax_bike {
  0% {
    background-position: 1765px 100%;
  }

  100% {
    background-position: -100px 100%;
  }
}

@keyframes parallax_bike {
  0% {
    background-position: 1765px 100%;
  }

  100% {
    background-position: -100px 100%;
  }
}

.humedo .hero {
  filter: hue-rotate(235deg) saturate(100%) brightness(60%);
}
.semihumedo .hero {
  filter: hue-rotate(215deg) saturate(100%) brightness(60%);
}
.seco .hero {
  filter: hue-rotate(195deg) saturate(100%) brightness(60%);
}
.nublado .hero {
  filter: hue-rotate(340deg) saturate(50%) brightness(60%);
}
.manglares .hero {
  filter: hue-rotate(320deg) saturate(100%) brightness(60%);
}
.pinar .hero {
  filter: hue-rotate(190deg) saturate(100%) brightness(60%);
}

.overlay-section {
  background-color: #110d07;
}

.figure {
  opacity: 0.4;
  transition: all 0.4s ease-in-out;
}

/* QUIZ */

.screen {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.screen.active {
  display: block;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 15px;
}

.progress-bar-bg {
  background-color: #47474752;
  height: 10px;
  border-radius: 5px;
  flex-grow: 1;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #20b982, #20b982);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

.progress-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
  white-space: nowrap;
}

.question-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.options-list {
  list-style: none;
  gap: 12px;
  margin-bottom: 25px;
}

.option-btn {
  border: 2px solid #e0ebd4;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  outline: none;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.option-btn.correct {
  background-color: #20b982 !important;
  border-color: #20b982 !important;
  color: white !important;
}

.option-btn.incorrect {
  background-color: #c62828 !important;
  border-color: #c62828 !important;
  color: white !important;
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.feedback-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.explanation-box {
  align-items: center;
  background-color: #47474752;
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  animation: slideDown 0.3s ease forwards;
  display: none;
}

.explanation-box h4 {
  margin-bottom: 5px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.explanation-box p {
  font-size: 1rem;
  line-height: 1.5;
  color: white;
}

.action-btn {
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.3);
}

.action-btn:active {
  transform: translateY(0);
}

.results-container {
  text-align: center;
}

.result-badge {
  font-size: 4.5rem;
  margin-bottom: 15px;
  animation: bounce 1s ease infinite alternate;
}

.result-title {
  margin-bottom: 10px;
}

.result-score {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@media (max-width: 480px) {
  .quiz-container {
    padding: 25px 20px;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .option-btn {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
}

.flourish-loader{
    min-height:350px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:15px;
}

.spinner{
    width:42px;
    height:42px;
    border:4px solid rgba(0,0,0,.15);
    border-top-color:#16a34a;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}
