/* Overrides sobre el template Catawba. Se carga DESPUÉS de style.css y
   responsive.css para ganar el cascade. */

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Sticky mobile CTA */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.12);
  }
  body {
    padding-bottom: 64px !important;
  }
}

.sticky-mobile-cta__book {
  flex: 1;
  background: var(--bs-primary, #5f27ff);
  color: #fff !important;
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sticky-mobile-cta__book:hover,
.sticky-mobile-cta__book:focus {
  color: #fff !important;
  text-decoration: none;
}

.sticky-mobile-cta__wa {
  background: #25d366;
  color: #fff !important;
  padding: 16px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sticky-mobile-cta__wa:hover,
.sticky-mobile-cta__wa:focus {
  color: #fff !important;
  text-decoration: none;
}

/* Elementos decorativos del template (cohete, globo, emoji, chat WA)
   dependen del JS de parallax del template para posicionarse. Sin ese JS
   se ven enormes y tapan el contenido. Los ocultamos en todo el sitio. */
.element-group {
  display: none !important;
}

/* Imágenes responsivas — en desktop dejamos que las imágenes del
   parallax sobresalgan del contenedor (parte del efecto). En mobile
   sí las limitamos para no romper viewport. */
.parallax-wrap {
  position: relative;
}
.about-block img,
.portfolio-thumb img {
  max-width: 100%;
  height: auto;
}

@media only screen and (max-width: 767px) {
  .parallax-wrap {
    max-width: 100%;
    overflow: hidden;
  }
  .parallax-wrap img,
  .frontpage-banner-section img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Overrides mobile — vencemos al template style-three */
@media only screen and (max-width: 767px) {
  /* Font sizes hero — palabras largas en español no rompen bien */
  .frontpage-banner-section.frontpage-banner-style-three .hero-title,
  .frontpage-banner-section.frontpage-banner-style-three h1.hero-title {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .frontpage-banner-section.frontpage-banner-style-three .hero-desc {
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  .frontpage-banner-section.frontpage-banner-style-three .hero-desc p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* Container/row/col fix - eliminar negative margins */
  .frontpage-banner-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .frontpage-banner-section .container,
  .frontpage-banner-section .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .frontpage-banner-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .frontpage-banner-section [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
