/*=============== HERO SECTION ===============*/
/* (Copia aquí tus estilos de .hero-section, .hero-video-background, etc.) */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 80, 150, 0.26);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
  color: var(--white-color);
}

.hero-content .TitleHome,
.hero-content .TitleNosotros {
  font-size: var(--biggest-font-size);
  margin-bottom: 0.5rem;
  font-weight: var(--font-bold, 700);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Si TitleNosotros tiene línea animada, debe estar fuera de hero-content genérico si TitleHome no la tiene */
.hero-content .TitleNosotros {
  position: relative;
  padding-bottom: 15px;
  display: inline-block;
}

.hero-content .TitleNosotros::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 4px;
  background-color: var(--first-color);
  transform: translateX(-50%);
  animation: drawLine 0.8s 0.5s ease-out forwards;
}

@keyframes drawLine {
  0% {
    width: 0;
  }
  100% {
    width: 96%;
  }
}

.hero-content p {
  font-size: var(--h2-font-size);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/*=============== SECCIONES COMUNES ===============*/
.about-us,
.why-join-us {
  overflow-x: hidden;
}

/*=============== ABOUT US SECTION (Mobile First) =============== */
/* (Copia aquí el CSS de .about-us con sus media queries que te proporcioné anteriormente) */
.about-us {
  padding: 40px 0;
  background-color: var(--section-bg-color, var(--body-bg-color));
}

.about-us__title.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--title-color);
  margin-bottom: 30px;
  font-weight: var(--font-semi-bold, 600);
  position: relative;
  padding-bottom: 10px;
}

.about-us__title.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--first-color);
  margin: 8px auto 0;
}

.about-us__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.about-us__image-wrapper {
  width: 100%;
  max-width: 360px;
}

.about-us__image {
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: block;
}

.about-us__text-content {
  width: 100%;
  color: var(--text-color);
  text-align: left;
}

.about-us__text-content > p:first-of-type {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.about-us__points {
  margin-top: 20px;
}

.about-us__point-item {
  margin-bottom: 20px;
}

.about-us__point-item h3 {
  font-size: 1.1rem;
  color: var(--title-color);
  margin-bottom: 6px;
  font-weight: var(--font-semi-bold, 600);
}

.about-us__point-item h3 strong {
  color: var(--first-color);
  font-weight: inherit;
}

.about-us__point-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .about-us {
    padding: 50px 0;
  }

  .about-us__title.section-title {
    margin-bottom: 35px;
  }

  .about-us__content {
    flex-direction: row;
    align-items: center;
    gap: 35px;
  }

  .about-us__image-wrapper {
    flex: 0 0 40%;
    max-width: 380px;
    width: auto;
  }

  .about-us__text-content {
    flex: 1 1 auto;
    width: auto;
  }

  .about-us__text-content > p:first-of-type {
    font-size: 1.05rem;
  }

  .about-us__point-item h3 {
    font-size: 1.2rem;
  }

  .about-us__point-item p {
    font-size: 0.95rem;
  }
}

@media (min-width: 992px) {
  .about-us {
    padding: 60px 0;
  }

  .about-us__title.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    padding-bottom: 15px;
  }

  .about-us__title.section-title::after {
    width: 100px;
    margin: 10px auto 0;
  }

  .about-us__content {
    gap: 40px;
  }

  .about-us__image-wrapper {
    flex-basis: 40%;
    max-width: 450px;
  }

  .about-us__text-content > p:first-of-type {
    font-size: 1.1rem;
  }

  .about-us__point-item h3 {
    font-size: 1.3rem;
  }

  .about-us__point-item p {
    font-size: 1rem;
  }
}

/*=============== WHY JOIN US SECTION (Mobile First) ===============*/
/* (Copia aquí el CSS de .why-join-us con sus media queries que te proporcioné anteriormente) */
.why-join-us {
  padding: 40px 0;
  background-color: var(--section-bg-color, var(--body-bg-color));
  color: var(--text-color);
}

.why-join-us__title.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--title-color);
  margin-bottom: 40px;
  font-weight: var(--font-semi-bold, 600);
  position: relative;
  padding-bottom: 10px;
}

.why-join-us__title.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--first-color);
  margin: 8px auto 0;
}

.why-join-us__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.benefit-item {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 9px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .benefit-item {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-theme .benefit-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.benefit-item__icon-wrapper {
  margin-bottom: 15px;
}

.benefit-item__icon-wrapper i {
  font-size: 2.5rem;
  color: var(--first-color);
  background-color: rgba(var(--first-color-rgb), 0.1);
  padding: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.benefit-item__stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: var(--font-bold, 700);
  color: var(--title-color);
  margin-bottom: 5px;
}

.benefit-item__title {
  font-size: 1.2rem;
  font-weight: var(--font-semi-bold, 600);
  color: var(--title-color);
  margin-bottom: 8px;
}

.benefit-item__description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .why-join-us {
    padding: 50px 0;
  }

  .why-join-us__benefits-grid {
    gap: 25px;
  }

  .benefit-item {
    padding: 25px;
  }

  .benefit-item__icon-wrapper i {
    font-size: 2.8rem;
    width: 65px;
    height: 65px;
    padding: 14px;
  }

  .benefit-item__stat-number {
    font-size: 1.9rem;
  }

  .benefit-item__title {
    font-size: 1.3rem;
  }
}
@media (min-width: 992px) {
  .why-join-us {
    padding: 60px 0;
  }

  .why-join-us__title.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    padding-bottom: 15px;
  }

  .why-join-us__title.section-title::after {
    width: 100px;
    margin: 10px auto 0;
  }

  .why-join-us__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .benefit-item {
    padding: 30px;
  }

  .benefit-item__icon-wrapper i {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    padding: 15px;
  }

  .benefit-item__stat-number {
    font-size: 2rem;
  }

  .benefit-item__title {
    font-size: 1.4rem;
  }

  .benefit-item__description {
    font-size: 0.95rem;
  }
}

/*=============== SCROLL TO TOP BUTTON ===============*/
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 0.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-fixed);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background-color 0.3s ease;
}

.scroll-to-top i {
  font-size: 1.5rem;
}

.scroll-to-top:hover {
  background-color: var(--second-color);
}

.scroll-to-top.show-scroll {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- ANIMACIONES DE APARICIÓN EN SCROLL --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones específicas para .about-us, adaptadas por breakpoint */
.about-us__image-wrapper.animate-on-scroll {
  transform: translateX(0) translateY(20px);
}

.about-us__text-content.animate-on-scroll {
  transform: translateX(0) translateY(20px);
  transition-delay: 0.1s;
}

/* Delays para los benefit-items */
.why-join-us__benefits-grid .benefit-item.animate-on-scroll:nth-child(1) {
  transition-delay: 0.05s;
}

.why-join-us__benefits-grid .benefit-item.animate-on-scroll:nth-child(2) {
  transition-delay: 0.15s;
}

.why-join-us__benefits-grid .benefit-item.animate-on-scroll:nth-child(3) {
  transition-delay: 0.25s;
}

@media (min-width: 768px) {
  /* Ajustes de animación para Tablet */
  .animate-on-scroll {
    transform: translateY(40px);
  }

  .about-us__image-wrapper.animate-on-scroll {
    transform: translateX(-30px) translateY(20px);
  }

  .about-us__text-content.animate-on-scroll {
    transform: translateX(30px) translateY(20px);
    transition-delay: 0.15s;
  }
}
@media (min-width: 992px) {
  /* Ajustes de animación para Desktop */
  .about-us__image-wrapper.animate-on-scroll {
    transform: translateX(-50px) translateY(20px);
  }

  .about-us__text-content.animate-on-scroll {
    transform: translateX(50px) translateY(20px);
    transition-delay: 0.15s;
  }

  .why-join-us__benefits-grid .benefit-item.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
  }

  .why-join-us__benefits-grid .benefit-item.animate-on-scroll:nth-child(2) {
    transition-delay: 0.25s;
  }
  
  .why-join-us__benefits-grid .benefit-item.animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
  }
}