/* Carruseles editoriales: una sola fila, sin dependencias externas. */
body#index .tvc-product-carousel {
  --tvc-carousel-columns: 5;
  --tvc-carousel-gap: 1rem;
  position: relative;
}

body#index .tvc-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  min-height: 2.35rem;
  margin: 0.95rem 0 0;
}

body#index .tvc-carousel-controls::before {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: 0.14;
}

body#index .tvc-carousel-stage {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
  gap: 0.55rem;
  align-items: center;
}

body#index .tvc-carousel-arrow {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--tvc-showcase-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--tvc-showcase-ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

body#index .tvc-carousel-view-all {
  --tvc-view-all-color: #7a5900;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 2.25rem;
  padding: 0 0 0 0.85rem;
  border: 1px solid var(--tvc-view-all-color);
  border-radius: 999px;
  background: transparent;
  color: var(--tvc-view-all-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body#index .tvc-carousel-view-all span {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-left: 1px solid var(--tvc-view-all-color);
  border-radius: 50%;
  font-size: 1rem;
}

body#index .tvc-manual-products.is-dark .tvc-carousel-view-all {
  --tvc-view-all-color: var(--tvc-showcase-yellow);
}

body#index .tvc-carousel-view-all:hover,
body#index .tvc-carousel-view-all:focus-visible {
  background: var(--tvc-view-all-color);
  color: #fff;
}

body#index .tvc-carousel-arrow,
body#index .is-dark .tvc-carousel-arrow {
  border-color: #7a5900;
  color: #7a5900;
}

body#index .tvc-manual-products.is-dark .tvc-carousel-arrow {
  border-color: var(--tvc-showcase-yellow);
  color: var(--tvc-showcase-yellow);
}

body#index .is-dark .tvc-carousel-arrow {
  border-color: #fff;
  color: #fff;
}

body#index .tvc-carousel-arrow:hover:not(:disabled),
body#index .tvc-carousel-arrow:focus-visible:not(:disabled) {
  border-color: var(--tvc-showcase-yellow);
  background: var(--tvc-showcase-yellow);
  color: var(--tvc-showcase-ink);
}

body#index .tvc-carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

body#index .tvc-manual-products-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: var(--tvc-carousel-gap) !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 0.35rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body#index .tvc-manual-products-grid::-webkit-scrollbar {
  display: none;
}

body#index .tvc-manual-products-grid > .tvc-manual-product {
  flex: 0 0 calc(
    (100% - (var(--tvc-carousel-columns) - 1) * var(--tvc-carousel-gap))
    / var(--tvc-carousel-columns)
  );
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  body#index .tvc-product-carousel {
    --tvc-carousel-columns: 3;
    --tvc-carousel-gap: 0.85rem;
  }

  body#index .tvc-carousel-stage .tvc-carousel-arrow {
    display: none;
  }

  body#index .tvc-carousel-stage {
    display: block;
  }

  body#index .tvc-product-carousel:not(.is-static)::before {
    content: "Desliza para ver más";
    display: block;
    margin: -0.15rem 0 0.55rem;
    color: #706f68;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
  }

  body#index .tvc-manual-products.is-dark .tvc-product-carousel:not(.is-static)::before {
    color: rgba(255, 255, 255, 0.72);
  }

  body#index .tvc-manual-products-grid {
    touch-action: pan-x pan-y;
  }
}

@media (max-width: 767px) {
  body#index .tvc-product-carousel {
    --tvc-carousel-gap: 0.7rem;
  }

  body#index .tvc-manual-products-grid > .tvc-manual-product {
    width: auto !important;
    max-width: none !important;
    flex-basis: min(78vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body#index .tvc-manual-products-grid {
    scroll-behavior: auto;
  }
}

/* 2026-08-02: respetar los controles de encuadre configurados en el modulo. */
body#index .tvc-campaign-card,
body#index .tvc-campaign-card-1,
body#index .tvc-campaign-card-2,
body#index .tvc-campaign-card-3 {
  background-position: var(--tvc-campaign-position, 50% 50%) !important;
}

body#index .tvc-campaign-card:hover {
  background-position: var(--tvc-campaign-position, 50% 50%) !important;
}

/* 1.2.2: imagenes, sombreado y estados interactivos del mosaico. */
body#index .tvc-campaign-card,
body#index .tvc-campaign-card-1,
body#index .tvc-campaign-card-2,
body#index .tvc-campaign-card-3 {
  background-image: var(--tvc-campaign-image, none) !important;
  background-position: var(--tvc-campaign-position, 50% 50%) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease !important;
}

body#index .tvc-campaign-card::before {
  position: absolute !important;
  z-index: 1 !important;
  inset: 0 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: linear-gradient(100deg, rgba(9, 10, 8, .72), rgba(9, 10, 8, .38) 48%, rgba(9, 10, 8, .06)) !important;
  content: "" !important;
  opacity: var(--tvc-campaign-shade, 0);
  pointer-events: none;
  transition: opacity .24s ease;
}

body#index .tvc-campaign-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 211, 44, .68);
  background-position: var(--tvc-campaign-position, 50% 50%) !important;
  box-shadow: 0 18px 34px rgba(17, 19, 15, .18);
}

body#index .tvc-campaign-cta b {
  display: inline-block;
  transition: transform .2s ease;
}

body#index .tvc-campaign-card:hover .tvc-campaign-cta b,
body#index .tvc-campaign-card-link:focus-visible .tvc-campaign-cta b {
  transform: translateX(.32rem);
}

body#index .tvc-manual-product,
body#index .tvc-benefits-grid > div {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body#index .tvc-manual-product:hover,
body#index .tvc-benefits-grid > div:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 211, 44, .62);
  box-shadow: 0 14px 28px rgba(17, 19, 15, .12);
}

@media (prefers-reduced-motion: reduce) {
  body#index .tvc-campaign-card,
  body#index .tvc-campaign-cta b,
  body#index .tvc-manual-product,
  body#index .tvc-benefits-grid > div {
    transition: none !important;
  }

  body#index .tvc-campaign-card:hover,
  body#index .tvc-manual-product:hover,
  body#index .tvc-benefits-grid > div:hover {
    transform: none;
  }
}

/* 1.2.3: legibilidad permanente del texto, independiente del sombreado general. */
body#index .tvc-campaign-card-1 .tvc-campaign-content,
body#index .tvc-campaign-card-2 .tvc-campaign-content {
  isolation: isolate;
}

body#index .tvc-campaign-card-1 .tvc-campaign-content::before,
body#index .tvc-campaign-card-2 .tvc-campaign-content::before {
  position: absolute;
  z-index: -1;
  inset: -1rem -2.4rem -1.15rem -1.3rem;
  border-radius: 0 18px 18px 0;
  content: "";
  pointer-events: none;
}

body#index .tvc-campaign-card-1 .tvc-campaign-content::before {
  background: linear-gradient(
    90deg,
    rgba(8, 10, 8, .86) 0%,
    rgba(8, 10, 8, .68) 48%,
    rgba(8, 10, 8, .28) 78%,
    rgba(8, 10, 8, 0) 100%
  );
}

body#index .tvc-campaign-card-1 .tvc-campaign-content {
  text-shadow:
    0 2px 2px rgba(0, 0, 0, .98),
    0 5px 16px rgba(0, 0, 0, .82),
    0 0 28px rgba(0, 0, 0, .56);
}

body#index .tvc-campaign-card-2 .tvc-campaign-content::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, .94) 0%,
    rgba(255, 255, 255, .78) 52%,
    rgba(255, 255, 255, .30) 80%,
    rgba(255, 255, 255, 0) 100%
  );
}

body#index .tvc-campaign-card-2 .tvc-campaign-content {
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 1),
    0 3px 12px rgba(255, 255, 255, .92);
}

@media (max-width: 767px) {
  body#index .tvc-campaign-card-1 .tvc-campaign-content::before,
  body#index .tvc-campaign-card-2 .tvc-campaign-content::before {
    inset: -.85rem -1.25rem -1rem -1rem;
  }
}
