.qtc-lo,
.qtc-lo * {
  box-sizing: border-box;
}

.qtc-lo {
  --qtc-lo-black: #07090d;
  --qtc-lo-ink: #11141a;
  --qtc-lo-muted: #666b75;
  --qtc-lo-surface: #f4f6f2;
  --qtc-lo-border: #e1e4df;
  --qtc-lo-accent: #84bd00;
  --qtc-lo-accent-soft: #eef8d6;
  width: 100%;
  margin: 30px auto;
  color: var(--qtc-lo-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.qtc-lo a {
  text-decoration: none !important;
}

.qtc-lo button,
.qtc-lo a {
  -webkit-tap-highlight-color: transparent;
}

.qtc-lo__shell {
  display: grid;
  grid-template-columns: minmax(360px, 38%) minmax(0, 62%);
  width: min(1460px, 100%);
  min-height: 570px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #0b0d0f;
  border-radius: 30px;
  background: var(--qtc-lo-surface);
  box-shadow: 0 24px 58px rgba(8, 11, 14, .15);
}

/* =========================
   BLOQUE PROMOCIONAL
   ========================= */
.qtc-lo__promo {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(230px, 1fr) auto;
  overflow: hidden;
  background: #080a0d;
  color: #fff;
}

/* La imagen configurada es ahora el elemento principal del panel. */
.qtc-lo__campaign-media {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(132,189,0,.22), transparent 34%),
    linear-gradient(145deg, #15191b 0%, #050607 76%);
}

.qtc-lo__campaign-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,7,10,.04) 54%, rgba(5,7,10,.62) 100%),
    linear-gradient(90deg, rgba(5,7,10,.18), transparent 40%);
}

.qtc-lo__campaign-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
}

.qtc-lo__campaign-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 270px;
  place-items: center;
}

.qtc-lo__campaign-fallback svg {
  width: 84px;
  height: 84px;
  fill: var(--qtc-lo-accent);
  filter: drop-shadow(0 18px 28px rgba(132,189,0,.22));
}

.qtc-lo__limited-pill {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(8,10,13,.74);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.qtc-lo__bell {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transform-origin: 50% 8%;
  filter: drop-shadow(0 0 7px rgba(132,189,0,.38));
  animation: qtc-lo-bell-loop 1.35s ease-in-out infinite;
}

@keyframes qtc-lo-bell-loop {
  0%   { transform: rotate(-8deg) translateY(0); }
  25%  { transform: rotate(8deg) translateY(-1px); }
  50%  { transform: rotate(-7deg) translateY(0); }
  75%  { transform: rotate(7deg) translateY(-1px); }
  100% { transform: rotate(-8deg) translateY(0); }
}

.qtc-lo__promo-body {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 14px;
  padding: 20px 24px 23px;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 0 0, rgba(132,189,0,.12), transparent 36%),
    #080a0d;
}

.qtc-lo__offer-text {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* Contador moderno: sin cajas blancas ni volumen excesivo. */
.qtc-lo__urgency {
  width: 100%;
  padding: 13px 15px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.qtc-lo__urgency-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qtc-lo__pulse-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--qtc-lo-accent);
  box-shadow: 0 0 0 0 rgba(132,189,0,.55);
  animation: qtc-lo-pulse 1.7s ease-out infinite;
}

@keyframes qtc-lo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(132,189,0,.52); }
  75%  { box-shadow: 0 0 0 7px rgba(132,189,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(132,189,0,0); }
}

.qtc-lo__countdown {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qtc-lo__time-unit {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 3px 9px 2px;
  text-align: center;
}

.qtc-lo__time-unit:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 0;
  width: 1px;
  height: 72%;
  background: rgba(255,255,255,.13);
}

.qtc-lo__time-unit strong {
  display: block;
  color: #fff;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 860;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.035em;
}

.qtc-lo__time-unit small {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .10em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* =========================
   PRODUCTOS
   ========================= */
.qtc-lo__products {
  min-width: 0;
  padding: 27px 26px 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(132,189,0,.075), transparent 28%),
    var(--qtc-lo-surface);
}

.qtc-lo__products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 42px 18px;
}

.qtc-lo__products-kicker {
  display: block;
  margin-bottom: 6px;
  color: #6f9f00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.qtc-lo__products-head h3 {
  max-width: 620px;
  margin: 0;
  color: #12151a;
  font-size: clamp(24px, 2vw, 33px);
  font-weight: 870;
  line-height: 1.06;
  letter-spacing: -.038em;
}

.qtc-lo__stock-note {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dfe5d9;
  border-radius: 999px;
  background: #fff;
  color: #41474f;
  font-size: 12px;
  font-weight: 780;
}

.qtc-lo__stock-note > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qtc-lo-accent);
  box-shadow: 0 0 0 5px rgba(132,189,0,.13);
}

.qtc-lo__carousel {
  position: relative;
  min-width: 0;
}

.qtc-lo__viewport {
  min-width: 0;
  overflow-x: auto;
  padding: 8px 43px 21px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.qtc-lo__viewport::-webkit-scrollbar {
  display: none;
}

.qtc-lo__viewport:focus-visible {
  outline: 3px solid var(--qtc-lo-accent);
  outline-offset: 4px;
  border-radius: 18px;
}

.qtc-lo__track {
  display: grid;
  grid-auto-columns: minmax(230px, calc((100% - 32px) / 3));
  grid-auto-flow: column;
  gap: 16px;
}

.qtc-lo__card {
  display: grid;
  min-width: 0;
  min-height: 418px;
  grid-template-rows: 194px 1fr;
  overflow: hidden;
  border: 1px solid var(--qtc-lo-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(21,31,43,.065);
  scroll-snap-align: start;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.qtc-lo__card:hover {
  transform: translateY(-5px);
  border-color: #c9d3bd;
  box-shadow: 0 18px 36px rgba(21,31,43,.13);
}

.qtc-lo__image-link {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f7f8f5);
}

.qtc-lo__image {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.qtc-lo__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.qtc-lo__card:hover .qtc-lo__image img {
  transform: scale(1.045);
}

.qtc-lo__discount {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--qtc-lo-accent);
  box-shadow: 0 8px 18px rgba(132,189,0,.24);
  color: #090b0d;
  font-size: 12px;
  font-weight: 900;
}

.qtc-lo__card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px;
}

.qtc-lo__card h4 {
  display: -webkit-box;
  min-height: 49px;
  margin: 0 0 13px;
  overflow: hidden;
  color: #2f3540;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.qtc-lo__card h4 a {
  color: inherit;
}

.qtc-lo__price {
  min-height: 48px;
  margin-bottom: 15px;
  color: #111318;
  font-size: 18px;
  font-weight: 870;
  line-height: 1.35;
}

.qtc-lo__price del {
  display: block;
  color: #8a9099;
  font-size: 12px;
  font-weight: 500;
}

.qtc-lo__price ins {
  text-decoration: none;
}

.qtc-lo__buy {
  display: flex !important;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  margin-top: auto !important;
  padding: 11px 14px !important;
  border: 1px solid #080a0e !important;
  border-radius: 11px !important;
  background: #080a0e !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center;
  transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

.qtc-lo__buy:hover,
.qtc-lo__buy:focus-visible {
  background: var(--qtc-lo-accent) !important;
  color: #080a0e !important;
  transform: translateY(-1px);
}

.qtc-lo__arrow {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute;
  z-index: 8;
  top: 48%;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dce1e7 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 8px 22px rgba(18,25,36,.15) !important;
  color: #111318 !important;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

.qtc-lo__arrow:hover,
.qtc-lo__arrow:focus-visible {
  border-color: #080a0e !important;
  background: #080a0e !important;
  color: #fff !important;
}

.qtc-lo__arrow:active {
  transform: translateY(-50%) scale(.94);
}

.qtc-lo__arrow:disabled {
  cursor: default;
  opacity: .35;
}

.qtc-lo__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.qtc-lo__arrow--prev {
  left: 3px;
}

.qtc-lo__arrow--next {
  right: 3px;
}

.qtc-lo__progress {
  width: calc(100% - 86px);
  height: 4px;
  margin: 8px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe4dc;
}

.qtc-lo__progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--qtc-lo-accent), #090b0f);
  transform-origin: left center;
  transition: width .25s ease;
}

.qtc-lo__live-expired,
.qtc-lo__expired-message {
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #dde2e8;
  border-radius: 20px;
  background: #f6f8fa;
  color: #22262e;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.qtc-lo.is-expired .qtc-lo__shell {
  display: none;
}

@media (max-width: 1160px) {
  .qtc-lo__shell {
    grid-template-columns: minmax(340px, 40%) minmax(0, 60%);
  }

  .qtc-lo__track {
    grid-auto-columns: minmax(235px, calc((100% - 16px) / 2));
  }

  .qtc-lo__products-head {
    margin-right: 40px;
    margin-left: 40px;
  }

  .qtc-lo__stock-note {
    display: none;
  }
}

@media (max-width: 800px) {
  .qtc-lo {
    margin: 18px auto;
  }

  .qtc-lo__shell {
    display: block;
    min-height: 0;
    border-radius: 22px;
  }

  .qtc-lo__promo {
    display: grid;
    grid-template-rows: auto auto;
    padding: 0;
  }

  .qtc-lo__campaign-media,
  .qtc-lo__campaign-image,
  .qtc-lo__campaign-fallback {
    min-height: 190px;
  }

  .qtc-lo__limited-pill {
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .qtc-lo__bell {
    font-size: 15px;
  }

  .qtc-lo__promo-body {
    gap: 11px;
    padding: 15px 16px 17px;
  }

  .qtc-lo__offer-text {
    font-size: 15px;
    line-height: 1.25;
  }

  .qtc-lo__urgency {
    padding: 10px 9px 9px;
    border-radius: 13px;
  }

  .qtc-lo__urgency-title {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .qtc-lo__time-unit {
    padding: 2px 5px;
  }

  .qtc-lo__time-unit strong {
    font-size: 23px;
  }

  .qtc-lo__time-unit small {
    font-size: 7px;
  }

  .qtc-lo__products {
    padding: 21px 0 18px;
  }

  .qtc-lo__products-head {
    align-items: center;
    margin: 0 20px 14px;
  }

  .qtc-lo__products-kicker {
    font-size: 9px;
  }

  .qtc-lo__products-head h3 {
    font-size: 22px;
  }

  .qtc-lo__viewport {
    padding: 7px 47px 17px;
    scroll-padding-left: 47px;
  }

  .qtc-lo__track {
    grid-auto-columns: minmax(235px, 78vw);
    gap: 13px;
  }

  .qtc-lo__card {
    min-height: 398px;
    grid-template-rows: 184px 1fr;
    border-radius: 18px;
  }

  .qtc-lo__arrow {
    top: 48%;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: 2px solid #fff !important;
    background: #07090d !important;
    color: #fff !important;
  }

  .qtc-lo__arrow:hover,
  .qtc-lo__arrow:focus-visible {
    border-color: #07090d !important;
    background: #fff !important;
    color: #07090d !important;
  }

  .qtc-lo__arrow--prev {
    left: 8px;
  }

  .qtc-lo__arrow--next {
    right: 8px;
  }

  .qtc-lo__progress {
    width: calc(100% - 94px);
  }
}

@media (max-width: 410px) {
  .qtc-lo__campaign-media,
  .qtc-lo__campaign-image,
  .qtc-lo__campaign-fallback {
    min-height: 160px;
  }

  .qtc-lo__promo-body {
    padding: 13px 14px 15px;
  }

  .qtc-lo__offer-text {
    font-size: 14px;
  }

  .qtc-lo__time-unit strong {
    font-size: 20px;
  }

  .qtc-lo__viewport {
    padding-right: 42px;
    padding-left: 42px;
  }

  .qtc-lo__track {
    grid-auto-columns: minmax(225px, 80vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qtc-lo *,
  .qtc-lo *::before,
  .qtc-lo *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
