html {
  scroll-behavior: smooth;
}

.single-product div.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
}

.single-product div.product .summary.entry-summary,
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products,
.single-product div.product .upsells.products {
  display: none !important;
}

.fal-layout {
  color: #161616;
  --fal-shadow: 0 10px 35px rgba(0,0,0,.08);
  --fal-content-width: 820px;
  --fal-wide-width: 1100px;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: clip;
  background: var(--fal-activity-color);
}

.single-product .site,
.single-product .site-content,
.single-product .content,
.single-product .entry-content,
.single-product .kubio-front-page,
.single-product .kubio-page-content {
  overflow-x: clip;
}

.fal-container {
  width: min(var(--fal-wide-width), calc(100% - 32px));
  margin: 0 auto;
}

.fal-narrow,
.fal-booking-container,
.fal-video-wrap,
.fal-gallery-main,
.fal-gallery-strip {
  width: min(var(--fal-content-width), calc(100% - 32px));
  margin: 0 auto;
}

.fal-story-block {
  background: var(--fal-activity-color);
  padding: 34px 0 0;
  width: 100%;
}

.fal-intro,
.fal-long-description,
.fal-cta-section {
  text-align: center;
}

.fal-short-description,
.fal-content {
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.7;
}

.fal-short-description,
.fal-long-description,
.fal-price,
.fal-meta-item,
.fal-meta-label,
.fal-meta-value {
  color: var(--fal-activity-text);
}

.fal-booking-section,
.fal-related-section {
  background: #fff;
}


.fal-short-description p:last-child,
.fal-content p:last-child {
  margin-bottom: 0;
}

.fal-price-meta {
  margin-top: 26px;
}

.fal-price {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.fal-price ins,
.fal-price .amount,
.fal-price bdi,
.fal-price del {
  color: inherit;
  text-decoration: none;
}

.fal-meta-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.fal-meta-item {
  font-size: .98rem;
  letter-spacing: .04em;
}

.fal-meta-label {
  font-weight: 800;
}

.fal-cta-wrap {
  margin-top: 28px;
  text-align: center;
}

.fal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s ease, opacity .2s ease;
  box-shadow: var(--fal-shadow);
}

.fal-button:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.fal-button-light {
  background: #f36c00 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow:
    0 4px 6px rgba(243, 108, 0, 0.25),
    0 10px 28px rgba(243, 108, 0, 0.35),
    0 2px 0px rgba(0,0,0,0.18) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fal-button-light:hover {
  background: #e05e00 !important;
  box-shadow:
    0 6px 10px rgba(243, 108, 0, 0.3),
    0 18px 40px rgba(243, 108, 0, 0.4),
    0 2px 0px rgba(0,0,0,0.2) !important;
  transform: translateY(-2px) !important;
  opacity: 1 !important;
}

.fal-video-section {
  padding: 36px 0 20px;
}

.fal-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
}

.fal-video-wrap iframe,
.fal-video-wrap video,
.fal-video-wrap > * {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.fal-long-description {
  padding: 22px 0 0;
}

.fal-cta-section {
  padding: 28px 0 40px;
}

.fal-gallery-section {
  background: var(--fal-activity-color);
  color: var(--fal-activity-text);
  padding: 0 0 40px;
  width: 100%;
}

.fal-gallery-main {
  background: transparent;
}

.fal-gallery-main img {
  width: 100%;
  height: clamp(280px, 55vw, 680px);
  object-fit: cover;
  display: block;
}

.fal-gallery-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  scrollbar-width: none;
  background: transparent;
  font-size: 0;
  line-height: 0;
}

.fal-gallery-strip::-webkit-scrollbar {
  display: none;
}

.fal-gallery-thumb {
  flex: 1 0 clamp(92px, 25vw, 220px);
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: .95;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 0;
  outline: 0 !important;
}

.fal-gallery-thumb.is-active {
  opacity: 1;
}

.fal-gallery-thumb img {
  width: 100%;
  height: clamp(88px, 22vw, 170px);
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.fal-booking-section {
  background: #fff;
  padding: 48px 0 24px;
}

.fal-section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.1;
  margin: 0 0 26px;
  font-weight: 800;
  letter-spacing: .03em;
}

.fal-booking-form {
  margin: 0;
}

.fal-booking-form .single_add_to_cart_button,
.fal-booking-form .quantity,
.fal-booking-form .qty {
  display: none !important;
}

.fal-booking-fallback {
  padding: 18px;
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 14px;
  text-align: center;
}

.fal-related-section {
  padding: 24px 0 60px;
  background: #fff;
}

.fal-related-grid,
.fal-related-section ul.products {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fal-related-grid::before,
.fal-related-grid::after,
.fal-related-grid li::before,
.fal-related-grid li::after {
  display: none !important;
  content: none !important;
}

.fal-related-card,
.fal-related-section li.product {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

.fal-related-card a,
.fal-related-section li.product a {
  text-decoration: none;
  display: block;
}

.fal-related-image,
.fal-related-card img,
.fal-related-section li.product img {
  display: block;
  width: 100%;
}

.fal-related-card img,
.fal-related-section li.product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 !important;
}

.fal-related-card .woocommerce-loop-product__title,
.fal-related-section li.product .woocommerce-loop-product__title {
  font-size: .95rem;
  line-height: 1.35;
  padding: 12px 14px 2px;
  color: #111;
  text-align: center;
}

.fal-related-card .price,
.fal-related-section li.product .price {
  display: block;
  padding: 0 14px 16px;
  color: #e36317;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .fal-related-grid,
  .fal-related-section ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fal-layout {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .fal-container,
  .fal-narrow,
  .fal-booking-container,
  .fal-video-wrap,
  .fal-gallery-main,
  .fal-gallery-strip {
    width: calc(100% - 24px);
  }

  .fal-story-block {
    padding-top: 28px;
  }

  .fal-video-section {
    padding-top: 28px;
  }

  .fal-gallery-main img {
    height: 320px;
  }

  .fal-related-grid,
  .fal-related-section ul.products {
    gap: 14px;
  }
}


/* Kubio hero handoff */
.single-product .wp-block-kubio-section__outer.style-p7Z7tbZgOg-outer,
.single-product .wp-block-kubio-section.style-p7Z7tbZgOg {
  padding-top: 0 !important;
}

.single-product #hero + .wp-block-kubio-section .wp-block-kubio-section__outer,
.single-product #hero + .wp-block-kubio-section.wp-block-kubio-section__outer,
.single-product #hero .wp-block-kubio-section__outer.style-p7Z7tbZgOg-outer {
  padding-top: 0 !important;
}

.single-product .h-separator[label="SmallWaves"],
.single-product .h-separator.h-separator--bottom[label="SmallWaves"] {
  color: var(--fal-activity-color) !important;
  fill: var(--fal-activity-color) !important;
  background: transparent !important;
}

.single-product .h-separator[label="SmallWaves"] svg,
.single-product .h-separator.h-separator--bottom[label="SmallWaves"] svg,
.single-product .h-separator[label="SmallWaves"] path,
.single-product .h-separator.h-separator--bottom[label="SmallWaves"] path {
  fill: var(--fal-activity-color) !important;
}

.fal-top-bridge {
  display: block;
  width: 100%;
  background: var(--fal-activity-color);
  height: clamp(32px, 7vw, 90px);
}

@media (max-width: 767px) {
  .fal-top-bridge {
    height: clamp(24px, 10vw, 56px);
  }
}


/* =============================================
   FAL Animations — Zoom on hover
   ============================================= */

/* Wrapper creado por JS para contener el overflow del zoom */
.fal-zoom-wrap {
  display: block;
  overflow: hidden;
  line-height: 0;
  width: 100%;
}

.fal-zoom-wrap img {
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.fal-zoom-wrap:hover img {
  transform: scale(1.06);
}

/* Galería principal — zoom más sutil */
.fal-gallery-main .fal-zoom-wrap:hover img {
  transform: scale(1.03);
}

/* =============================================
   Respeta preferencias de movimiento reducido
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .fal-zoom-wrap img {
    transition: none !important;
  }
  .fal-zoom-wrap:hover img {
    transform: none !important;
  }
  /* Las animaciones de scroll también se deshabilitan */
  .fal-intro,
  .fal-short-description,
  .fal-long-description,
  .fal-price-meta,
  .fal-cta-wrap,
  .fal-gallery-main,
  .fal-gallery-strip,
  .fal-booking-section,
  .fal-section-title,
  .fal-related-section,
  .fal-related-card,
  .fal-related-section li.product {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
