/* =========================================================
   TUCHOK — PRODUCTS CATALOG
========================================================= */

.products-catalog {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 95px 0 0;
  background: #F3F3F1;
  color: #222222;
}

.products-catalog-container {
  width: min(100% - 60px, 1260px);
  margin: 0 auto;
}

/* HEADER */

.products-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  max-width: 920px;
  margin: 0 auto 90px;
}

.products-catalog-intro {
  max-width: 590px;
}

.products-catalog-intro h2 {
  margin: 0 0 22px;
  font-family: "Dexa Pro Expanded", Arial, sans-serif;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.products-catalog-intro h2 span,
.products-catalog-intro h2 strong {
  display: block;
}

.products-catalog-intro h2 span {
  font-weight: 400;
}

.products-catalog-intro h2 strong {
  font-weight: 800;
}

.products-catalog-intro p {
  margin: 0;
  font-family: "Dexa Pro Expanded", Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.7;
  text-align: justify;
  hyphens: none;
}

.products-catalog-symbol {
  flex: 0 0 auto;
  width: clamp(140px, 14vw, 240px);
  height: auto;
  color: #FFB400;
}

/* GRID */

.products-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: end;
}

/* CARD */

.product-display {
  position: relative;
  min-width: 0;
}

.product-display-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

/* FOTO */

.product-display-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  width: 100%;
  height: 320px;

  pointer-events: none;
}

.product-display-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: contain;
  object-position: center bottom;

  transform: scale(1);
  transform-origin: center bottom;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* BANANA CENTRAL MÁS GRANDE */

.product-banana .product-display-photo {
  height: 375px;
}

.product-banana .product-display-image {
  transform: scale(1.18);
}

/* NOMBRE SOBRE EL PRODUCTO */

.product-display-name {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 180px;
  max-width: calc(100% - 40px);

  padding: 12px 18px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-display-name h3 {
  margin: 0;
  font-family: "Dexa Pro Expanded", Arial, sans-serif;
  font-size: clamp(18px, 1.4vw, 25px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: #222222;
}

/* HOVER */

@media (hover: hover) {
  .product-display:hover .product-display-image {
    transform: scale(1.08);
  }

  .product-banana:hover .product-display-image {
    transform: scale(1.26);
  }
}

/* TABLET */

@media (max-width: 1024px) {
  .products-catalog-header {
    gap: 45px;
    margin-bottom: 70px;
  }

  .products-catalog-grid {
    gap: 16px;
  }

  .product-display-stage {
    min-height: 360px;
  }

  .product-display-photo {
    height: 245px;
    bottom: 0;
  }

  .product-banana .product-display-photo {
    height: 290px;
  }

  .product-display-name {
    bottom: 14px;
    min-width: 150px;
    padding: 10px 14px;
  }
}

/* MOBILE — UNO POR UNO */

@media (max-width: 767px) {
  .products-catalog {
    padding-top: 65px;
  }

  .products-catalog-container {
    width: calc(100% - 24px);
  }

  .products-catalog-header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 120px;
  }

  .products-catalog-intro {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  .products-catalog-intro h2 {
    font-size: 31px;
  }

  .products-catalog-intro p {
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
  }

  .products-catalog-symbol {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: 128px;
    height: auto;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    align-self: initial;
  }

  .products-catalog-grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 8px;
    padding-bottom: 10px;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .products-catalog-grid::-webkit-scrollbar {
    display: none;
  }

  .product-display {
    display: flex;
    align-items: flex-end;
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 0 6px;
  }

  .product-display-stage {
    min-height: 405px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .product-display-photo {
    height: 255px;
    bottom: 0;
  }

  .product-banana .product-display-photo {
    height: 300px;
  }

  .product-banana .product-display-image {
    transform: scale(1.18);
  }

  .product-display-name {
    bottom: 10px;
    min-width: 150px;
    max-width: calc(100% - 50px);
    padding: 11px 16px;
  }

  .products-catalog-carousel {
    padding-bottom: 0;
  }

  .product-display-name h3 {
    font-size: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .product-display-image {
    transition: none;
  }
}

/* ==========================================
   TUCHOK — PRODUCTS MOBILE CAROUSEL
========================================== */

.products-catalog-carousel {
  position: relative;
  width: 100%;
}

/* En escritorio conservamos los tres productos */

.products-carousel-controls {
  display: none;
}

/* MÓVIL */

@media (max-width: 767px) {

  .products-catalog-grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-catalog-grid::-webkit-scrollbar {
    display: none;
  }

  .product-display {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .products-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    padding: 18px 0 28px;
  }

  /* FLECHAS */

  .products-carousel-arrow {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;
    padding: 0;

    border: 1px solid rgba(25, 25, 25, 0.14);
    border-radius: 50%;

    background: #FFFFFF;
    color: #191919;

    cursor: pointer;

    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  .products-carousel-arrow svg {
    display: block;
  }

  .products-carousel-arrow:active {
    transform: scale(0.94);
    background: #FFC100;
    border-color: #FFC100;
  }

  /* DOTS */

  .products-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 64px;
  }

  .products-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #BFC0BC;
    cursor: pointer;

    transition:
      width 0.3s ease,
      background 0.3s ease;
  }

  .products-carousel-dot.is-active {
    width: 27px;
    background: #FFC100;
  }
}

/* ACCESIBILIDAD */

.products-carousel-arrow:focus-visible,
.products-carousel-dot:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .products-catalog-grid {
    scroll-behavior: auto;
  }

  .products-carousel-arrow,
  .products-carousel-dot {
    transition: none;
  }
}

/* ========================================
   PRODUCTS — CORRECCIÓN SLIDER MÓVIL
======================================== */

@media (max-width: 767px) {

  .products-catalog-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .products-catalog-grid {
    display: flex;
    align-items: flex-end;

    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .products-catalog-grid::-webkit-scrollbar {
    display: none;
  }

  /* Cada producto ocupa exactamente
     el ancho visible del slider */

  .products-catalog-grid .product-display {
    position: relative;
    display: block;

    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    scroll-snap-align: start;
  }

  .product-display-stage {
    position: relative;
    width: 100%;
    height: 390px;
    min-height: 390px;

    display: block;
    overflow: visible;
  }

  /* La fotografía permanece visible
     y anclada al borde inferior */

  .product-display-photo,
  .product-banana .product-display-photo {
    position: absolute;
    z-index: 2;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 330px;

    transform: none;
    margin: 0;
  }

  .product-display-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: contain;
    object-position: center bottom;
  }

  .product-banana .product-display-image {
    transform: scale(1.08);
    transform-origin: center bottom;
  }

  /* Nombre centrado sobre la fotografía */

  .product-display-name {
    position: absolute;
    z-index: 3;

    left: 50%;
    bottom: 14px;

    transform: translateX(-50%);

    width: max-content;
    max-width: calc(100% - 36px);
    min-width: 150px;
  }

  /* Controles debajo del producto */

  .products-carousel-controls {
    position: relative;
    z-index: 4;
    padding: 18px 0 24px;
  }
}

/* ========================================
   PRODUCTS — ELIMINAR ESPACIO INFERIOR
   SOLO MÓVIL
======================================== */

@media (max-width: 767px) {

  /* El catálogo termina después de los controles */
  .products-catalog {
    padding-bottom: 0;
  }

  .products-catalog-container {
    padding-bottom: 0;
  }

  .products-catalog-carousel {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* Eliminar espacio adicional del carrusel */
  .products-catalog-grid {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* La foto llega hasta el borde inferior
     de su área */
  .product-display-stage {
    height: 390px;
    min-height: 390px;
  }

  .product-display-photo,
  .product-banana .product-display-photo {
    bottom: 0;
  }

  /* Acercar las flechas a la fotografía */
  .products-carousel-controls {
    margin: 0;
    padding: 10px 0 12px;
  }

  /* Evitar espacio después del slider */
  .products-catalog-grid .product-display {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
