/* ============================================================================
   HOME — HERO 3 columnas (2026-10-07) · templates/_partials/home/home-hero.tpl
   Banda oscura a sangre completa (misma paleta que .cat-hero y el antiguo panel
   de cliente); contenido en la caja común --ml-max/--ml-gutter (overrides.css).
   ============================================================================ */
.mlh {
  --mlh-h: clamp(440px, 27vw, 520px);           /* alto de la fila en escritorio */
  --mlh-gap: 16px;
  --mlh-radius: 6px;                            /* esquinas discretas (4-6px), como la ficha de producto */
  --mlh-accent: #ffdd00;
  --mlh-light-text: #fff;
  --ml-center-gradient: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  --ml-center-gradient-light: linear-gradient(135deg, #f1f1f1 0%, #c0cad4 100%);

  position: relative;
  /* sale del .container-fluid (padding 12px) → fondo a sangre completa */
  margin: 0 calc(-1 * var(--bs-gutter-x, 1.5rem) / 2);
  padding-block: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
  background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
  color: #fff;
  overflow: hidden;
}
.mlh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:#ffffff;
   
  pointer-events: none;
}
.mlh *, .mlh *::before, .mlh *::after { box-sizing: border-box; }
.mlh a { text-decoration: none; }
.mlh__inner {
  position: relative;
  max-width: var(--ml-max, 1860px);
  margin-inline: auto;
  padding-inline: var(--ml-gutter, 16px);
}

/* ---- Rejilla ---- */
.mlh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--mlh-gap);
}
.mlh__center { display: none; }
@media (min-width: 1200px) {
  .mlh__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
  .mlh__grid > .mlh-show, .mlh__grid > .mlh__side { height: var(--mlh-h); }  /* más específico que la base de .mlh-show */
}
@media (min-width: 1600px) {
  .mlh__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .mlh__center {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--mlh-gap);
    height: var(--mlh-h);
  }
}

/* ============================ SLIDESHOW ============================ */
.mlh-show {
  position: relative;
  height: clamp(340px, 46vw, 480px);
  border-radius: var(--mlh-radius);
  overflow: hidden;
  background: #0f1724;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}
.mlh-show__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.mlh-show__track::-webkit-scrollbar { display: none; }
.mlh-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff !important;
  overflow: hidden;
}
.mlh-slide__media, .mlh-slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mlh-slide__media img {
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mlh-slide:hover .mlh-slide__media img { transform: scale(1.03); }
.mlh-slide__media--carril img { object-position: 50% 60%; }
.mlh-slide__media--fan img { object-position: 50% 22%; }
.mlh-slide__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 28, 0.78) 0%, rgba(10, 16, 28, 0.35) 45%, rgba(10, 16, 28, 0) 70%),
    linear-gradient(180deg, rgba(10, 16, 28, 0) 45%, rgba(10, 16, 28, 0.55) 100%);
}
.mlh-slide__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: clamp(16px, 1.6vw, 26px) clamp(18px, 2vw, 30px) 0;
}
.mlh-tag {
  background: #0b1f4d;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 5px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1.2;
}
.mlh-tag--new { background: #2f8f4e; }
.mlh-tag--top { background: var(--mlh-accent); color: #101215; }
.mlh-tag--sale { background: #e83a3a; }
.mlh-slide__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  padding: 0 clamp(18px, 2vw, 30px) clamp(40px, 3.4vw, 52px);  /* deja sitio a los puntos */
}
.mlh-slide__title {
  font-size: clamp(1.6rem, 1.05rem + 1.35vw, 2.4rem);
  text-shadow: 0px 0px 4px rgba(0,0,0,0.3); font-weight: 200;
  letter-spacing: -0.3px;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}
.mlh-slide__title strong { color: #ffb300; font-weight: 400; }
.mlh-slide__desc {
  font-size: clamp(0.82rem, 0.76rem + 0.2vw, 0.95rem);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.mlh-slide__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
}
.mlh-slide__price {
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.8rem);
  font-weight:400;
  letter-spacing: -0.3px;
  color: #fff;
}
.mlh-slide__price s { font-size: 0.5em; font-weight: 600; opacity: 0.7; margin-left: 4px; }
.mlh-slide__price--from { display: inline-flex; flex-direction: column; line-height: 1.05; }
.mlh-slide__price--from small { font-size: 12px; font-weight: 600; letter-spacing: 0.3px; color: rgba(255, 255, 255, 0.85); }
.mlh-slide__trust { font-size: 12px; color: rgba(255, 255, 255, 0.9); }
.mlh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 5px;
  background: var(--mlh-accent);
  color: #101215 !important;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mlh-slide:hover .mlh-cta, .mlh-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(255, 221, 0, 0.7);
}

/* Flechas y puntos */
.mlh-show__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 36, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.mlh-show:hover .mlh-show__arrow, .mlh-show__arrow:focus-visible { opacity: 1; }
.mlh-show__arrow:hover { background: rgba(15, 23, 36, 0.7); }
.mlh-show__arrow svg { width: 22px; height: 22px; }
.mlh-show__arrow--prev { left: 12px; }
.mlh-show__arrow--next { right: 12px; }
@media (hover: none) { .mlh-show__arrow { opacity: 1; } }
.mlh-show__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.mlh-show__dot {
  pointer-events: auto;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.mlh-show__dot.is-active { width: 28px; background: var(--mlh-accent); }

/* ============================ CENTRO: OFERTAS / OUTLET ============================ */
.mlh-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(18px, 1.4vw, 26px);
  border-radius: var(--mlh-radius);
  overflow: hidden;
  color: #fff !important;
  background: var(--ml-center-gradient, --ml-center-gradient-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);   /* 2026-10-09: sin fondo propio → sombra para destacarlas */
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mlh-promo:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.3); }
/* 2026-10-09: sin degradado propio; heredan el fondo de la banda del hero */
/* Etiqueta OFERTAS / OUTLET: mismo estilo que .mlh-tag del banner rotatorio */
.mlh-promo__k {
  display: inline-block;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--mlh-light-text);
}
.mlh-promo--ofertas .mlh-promo__k { background: #e83a3a; color: #fff; }
.mlh-promo--outlet .mlh-promo__k { background: #ffdd00; color: #101215; }
.mlh-promo__t { font-size: clamp(1.2rem, 0.85rem + 0.55vw, 1.55rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.2px; }
.mlh-promo__d { font-size: 0.82rem; font-weight: 300; color: rgba(255, 255, 255, 0.85); max-width: 26ch; }
.mlh-promo__c { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--mlh-light-text); }
.mlh-promo__ico {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 46%;
  max-width: 170px;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ============================ DERECHA ============================ */
.mlh__side { min-width: 0; }

/* ---- Banner PRO (sin sesión) ---- */
.mlh-pro {
  position: relative;
  height: 100%;
  border-radius: var(--mlh-radius);
  overflow: hidden;
  background: #0b1f4d;
  display: flex;
  align-items: flex-end;
}
.mlh-pro__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 60% 30%;
}
.mlh-pro__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 22, 52, 0.15) 0%, rgba(9, 22, 52, 0.78) 42%, rgba(9, 22, 52, 0.96) 100%);
}
.mlh-pro__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 1.4vw, 26px);
  width: 100%;
}
.mlh-pro__kicker { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--mlh-accent); }
.mlh-pro__title { margin: 0; font-size: clamp(1.1rem, 0.85rem + 0.45vw, 1.35rem); font-weight: 400; line-height: 1.15; color: #fff !important; }
.mlh-pro__list {
  list-style: none;
  margin: 2px 0 6px !important;
  padding: 0 !important;
  display: grid;
  gap: 7px;
}
.mlh-pro__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}
.mlh-pro__list li::before { content: none !important; display: none !important; }
.mlh-pro__list svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--mlh-accent); }
.mlh-pro__cta { align-self: flex-start; }
.mlh-pro__social { font-size: 12px; color: rgba(255, 255, 255, 0.7); }

/* ---- Panel de cliente (con sesión): salida del módulo customerhero re-maquetada ----
   10/11/2026: el fondo del hero pasó a blanco → saludo, flechas y barra móvil en tonos oscuros (antes blanco/amarillo) */
.mlh-cust {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.mlh-cust__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mlh-cust__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #5b6472;
  font: inherit;
  cursor: default;
  text-align: left;
}
.mlh-cust__hello { font-size: clamp(1.05rem, 0.9rem + 0.3vw, 1.25rem); font-weight: 300; color: #5b6472; }
.mlh-cust__hello strong { color: #1d2a55; font-weight: 600; }
.mlh-cust__chev { display: none; width: 22px; height: 22px; transition: transform 0.25s ease; }
.mlh-cust__nav { display: flex; gap: 8px; }
.mlh-cust__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dfe3ea;
  background: #fff;
  color: #1d2a55;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.mlh-cust__arrow:hover { background: #f2f4f8; border-color: #c9cfd9; }
.mlh-cust__arrow:disabled { opacity: 0.3; cursor: default; }
.mlh-cust__arrow svg { width: 20px; height: 20px; }
.mlh-cust__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---- Panel de cliente: override del tema de customerhero.tpl (.mlc) ----
   Lenguaje de la ficha de producto: blanco, bordes finos, radios 4-6px, pesos ligeros. */
.mlc { --mlc-line: #e6e8ec; --mlc-soft: #f5f6f8; --mlc-ink: #1a2332; --mlc-mute: #6b7280; --mlc-navy: #1f3a6e;
  flex: 1; min-height: 0; display: flex; flex-direction: column; color: var(--mlc-ink); }
.mlc__track {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.mlc__track::-webkit-scrollbar { display: none; }
.mlc-card {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--mlc-line);
  border-radius: var(--mlh-radius);
  overflow: hidden;
}
.mlc-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--mlc-line);
}
.mlc-card__ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: var(--mlc-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.mlc-card__title { margin: 0; font-size: 0.95rem; font-weight: 500 !important; color: var(--mlc-ink) !important; letter-spacing: 0; }
.mlc-card__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #d5d9e0 transparent;
}
.mlc-card__link {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid var(--mlc-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mlc-navy) !important;
}
.mlc-card__link:hover { background: var(--mlc-soft); }
.mlc-empty { margin: 0; padding: 18px 12px; font-size: 0.82rem; color: #8a93a2; text-align: center; }
.mlc-sub {
  margin: 12px 10px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mlc-mute);
}

/* Filas de producto: las de la plantilla (.mlc-row) y las que pinta el JS del
   módulo (vistos recientemente / más comprados) comparten aspecto */
.mlc-row, .mlc .product-mini-item, .mlc .purchased-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--mlc-ink) !important;
  transition: background-color 0.15s ease;
}
.mlc-row:hover, .mlc .product-mini-item:hover, .mlc .purchased-item:hover { background: var(--mlc-soft); }
.mlc-row__img, .mlc .product-mini-img, .mlc .purchased-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 4px;
}
.mlc-row__info, .mlc .product-mini-info, .mlc .purchased-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mlc-row__name, .mlc .product-mini-name, .mlc .purchased-item-name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--mlc-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mlc-row__price, .mlc .product-mini-price, .mlc .purchased-item-price { font-size: 0.85rem; font-weight: 600; color: var(--mlc-navy); }
.mlc .purchased-item-attributes { font-size: 0.72rem; color: var(--mlc-mute); }
.mlc .purchased-item-details { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mlc .purchased-item-stats { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--mlc-mute); }
.mlc .purchased-item-stats svg { width: 12px; height: 12px; }
.mlc .purchased-item-badge {
  justify-self: start;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--mlc-soft);
  color: var(--mlc-mute);
}
.mlc .purchased-item-badge.top-product { background: #fff6cc; color: #8a6d00; }
.mlc .purchased-item { position: relative; }
.mlc .purchased-item > .purchased-item-badge { position: absolute; top: 6px; right: 8px; }
.mlc .vertical-scroll-controls { display: none !important; }
.mlc .hero-card-description { margin: 0; padding: 18px 12px; font-size: 0.82rem; color: #8a93a2; text-align: center; }

/* Contadores (carritos guardados / favoritos) */
.mlc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; }
.mlc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #eef0f3;
  border-radius: 4px;
  color: var(--mlc-ink) !important;
  transition: border-color 0.15s ease;
}
.mlc-stat:hover { border-color: #c9cfd8; }
.mlc-stat__num { font-size: 1.35rem; font-weight: 400; line-height: 1.1; color: var(--mlc-ink); }
.mlc-stat__label { font-size: 0.7rem; letter-spacing: 0.4px; color: var(--mlc-mute); }

/* Categorías */
.mlc-cats { display: flex; flex-direction: column; }
.mlc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  border-bottom: 1px solid #f0f1f4;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--mlc-ink) !important;
}
.mlc-cat:last-child { border-bottom: 0; }
.mlc-cat svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #9aa1ad; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease, stroke 0.15s ease; }
.mlc-cat:hover { color: var(--mlc-navy) !important; }
.mlc-cat:hover svg { stroke: var(--mlc-navy); transform: translateX(2px); }

/* ============================ < 1200: una columna ============================ */
@media (max-width: 1199px) {
  /* Panel de cliente a lo ancho: varias tarjetas visibles a la vez */
  .mlc__track { height: 380px; flex: none; }
  .mlc-card { flex: 0 0 min(100%, 340px); }

  /* PRO en horizontal: foto a la izquierda, contenido a la derecha */
  .mlh-pro { height: auto; align-items: stretch; }
  .mlh-pro__media { right: auto; width: 34%; }
  .mlh-pro__scrim { background: linear-gradient(90deg, rgba(9, 22, 52, 0) 0%, rgba(9, 22, 52, 0.85) 30%, #091634 38%); }
  .mlh-pro__body { margin-left: 30%; width: 70%; }
  .mlh-pro__list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ============================ < 768: móvil ============================ */
@media (max-width: 767px) {
  .mlh { padding-block: 12px; }
  .mlh__grid { gap: 12px; }
  .mlh-show { height: clamp(380px, 112vw, 480px); }
  .mlh-slide__title { font-size: 1.6rem; }
  .mlh-show__arrow { display: none; }   /* swipe + puntos */

  /* PRO compacto (CRO): poca altura, beneficios en una fila deslizable */
  .mlh-pro__media { width: 28%; }
  .mlh-pro__scrim { background: linear-gradient(90deg, rgba(9, 22, 52, 0) 0%, rgba(9, 22, 52, 0.9) 22%, #091634 30%); }
  .mlh-pro__body { margin-left: 22%; width: 78%; gap: 8px; padding: 14px 14px 14px 16px; }
  .mlh-pro__title { font-size: 1.05rem; }
  .mlh-pro__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 !important;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .mlh-pro__list::-webkit-scrollbar { display: none; }
  .mlh-pro__list li {
    flex: none;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
  }
  .mlh-pro__list svg { width: 12px; height: 12px; margin: 0; }
  .mlh-pro__cta { padding: 9px 16px; font-size: 0.82rem; }
  .mlh-pro__social { display: none; }

  /* Cliente PLEGADO: solo "Hola, X" + chevron; se despliega al tocar */
  .mlh-cust { gap: 0; }
  .mlh-cust__bar {
    padding: 12px 16px;
    border-radius: var(--mlh-radius);
    background: #fff;
    border: 1px solid #e3e6eb;
  }
  .mlh-cust__toggle { flex: 1; justify-content: space-between; cursor: pointer; }
  .mlh-cust__chev { display: block; }
  .mlh-cust.is-open .mlh-cust__chev { transform: rotate(180deg); }
  .mlh-cust__nav { display: none; }
  .mlh-cust:not(.is-open) .mlh-cust__body { display: none; }
  .mlh-cust.is-open .mlh-cust__body { margin-top: 12px; }
  .mlc__track { height: 360px; }
  .mlc-card { flex: 0 0 calc(100% - 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .mlh *, .mlh *::before, .mlh *::after { transition: none !important; }
  .mlh-show__track, .mlc__track { scroll-behavior: auto; }
}

/* ---- Tarjetas centrales: copy arriba; Ofertas con producto destacado (2026-10-09) ---- */
.mlh-promo { justify-content: flex-start; }
.mlh-promo__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mlh-promo__cover:focus-visible { outline: 2px solid var(--mlh-accent); outline-offset: -4px; }
.mlh-promo > span:not(.mlh-promo__prod) { position: relative; z-index: 0; max-width: 56%; pointer-events: none; }
.mlh-promo__prod {
  position: absolute;
  z-index: 2;                      /* por encima de la cubierta: el botón va al producto */
  top: clamp(14px, 1.1vw, 20px);
  right: clamp(14px, 1.1vw, 20px);
  bottom: clamp(14px, 1.1vw, 20px);
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;           /* la imagen deja pasar el clic a la cubierta (categoría) */
}
.mlh-promo__img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s ease;
}
/*.mlh-promo:hover .mlh-promo__img { transform: scale(1.0); }*/
.mlh-promo__buy {
  pointer-events: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--mlh-accent);
  color: #101215 !important;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mlh-promo__buy strong { font-weight: 700; }
.mlh-promo__buy s { font-size: 0.85em; font-weight: 400; opacity: 0.65; }
.mlh-promo__buy:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(255, 221, 0, 0.7); }

/* 2026-10-09: fotos de producto de Ofertas/Outlet un 15% más pequeñas, ancladas abajo
   (junto al botón Comprar). `scale` es independiente de `transform` → el zoom del hover sigue. */
.mlh-promo__img { scale: 0.85; transform-origin: 50% 100%; }

/* 2026-10-19: CTA de las diapositivas y botón Comprar de Ofertas/Outlet → píldora blanca
   (como el «Comprar» de Categorías destacadas). El CTA del bloque PRO sigue en amarillo.
   Puntos de navegación en blanco. */
.mlh-slide .mlh-cta,
.mlh-promo__buy {
  border-radius: 999px;
  background: #fff;
  color: #1a2332 !important;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.45);
}
.mlh-slide .mlh-cta { padding: 11px 22px; }
.mlh-promo__buy { padding: 8px 16px; }
.mlh-slide:hover .mlh-cta, .mlh-slide .mlh-cta:hover,
.mlh-promo__buy:hover {
  background: #eef1f5;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.55);
}
.mlh-show__dot { background: rgba(255, 255, 255, 0.5); }
.mlh-show__dot.is-active { background: #fff; }

/* ============ Home móvil: imágenes y carruseles de borde a borde; el texto conserva el margen (10/11/2026) ============
   calc(50% - 50vw) saca el bloque hasta los bordes de la ventana sea cual sea el padding del padre.
   Los carruseles se ensanchan igual pero mantienen el margen dentro (padding + scroll-padding): la 1.ª tarjeta
   queda alineada con el texto y el resto sale por ambos lados. El recorte horizontal lo pone home-medida.css. */
@media (max-width: 767px) {
  /* Hero pegado a la cabecera: fuera el padding superior de .mlh y los 10 px del .header-nav vacío de header-mobile.tpl
     (su margin-bottom atravesaba el header). Banner PRO y destacadas siguen como bloque con margen (decisión del usuario). */
  body#index #header .header-nav { margin-bottom: 0; }
  body#index .mlh { padding-top: 0; }
  body#index .mlh-show {
    width: 100vw; max-width: none;
    margin-inline: calc(50% - 50vw);
    border-radius: 0; box-shadow: none;
  }
  body#index .mlproj__list,
  body#index .mlmed__track,
  body#index .mlreviews-home .ml-rvh__track,
  body#index .mlblog-row {
    margin-inline: calc(50% - 50vw) !important;      /* !important: custom.css pone ul,ol{margin:0;padding:0 !important} */
    padding-inline: var(--ml-gutter, 16px) !important;
    scroll-padding-inline: var(--ml-gutter, 16px);
  }
}

/* ============ 11/11/2026: colores de CTA y etiquetas del hero ============
   Comprar (diapositivas y Ofertas/Outlet) en amarillo marca; CTA PRO en gris claro (como el del preheader);
   etiquetas OFERTAS y OUTLET iguales: rótulo translúcido con borde, no compiten con los botones. */
.mlh .mlh-slide .mlh-cta,
.mlh .mlh-promo__buy {
  background: #ffdd00;
  color: #111 !important;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.45);
}
.mlh .mlh-slide:hover .mlh-cta, .mlh .mlh-slide .mlh-cta:hover,
.mlh .mlh-promo__buy:hover {
  background: #ffe84d;
  box-shadow: 0 10px 20px -10px rgba(255, 221, 0, 0.6);
}
.mlh .mlh-pro__cta { background: #e6e9ee; color: #111 !important; }
.mlh .mlh-pro__cta:hover { background: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); }
.mlh .mlh-promo--ofertas .mlh-promo__k,
.mlh .mlh-promo--outlet .mlh-promo__k {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 11/11/2026: banner PRO en escritorio (vertical, ≥1200): degradado más corto que empieza en el borde
   superior del logo. Va en el bloque de texto (no en toda la tarjeta), así sigue al contenido aunque cambie de alto. */
@media (min-width: 1200px) {
  .mlh .mlh-pro__scrim { display: none; }
  .mlh .mlh-pro__body {
    background: linear-gradient(180deg, rgba(9, 22, 52, 0) 0%, rgba(9, 22, 52, 0.78) 22%, rgba(9, 22, 52, 0.96) 100%);
  }
}

/* 11/11/2026: etiquetas OFERTAS y OUTLET con el borde en su color de siempre (rojo / amarillo); el resto igual */
.mlh .mlh-promo--ofertas .mlh-promo__k { border-color: #e83a3a; }
.mlh .mlh-promo--outlet .mlh-promo__k { border-color: #ffdd00; }

/* 11/11/2026: CTA del banner PRO en gris #c7c7c7, texto #111 */
.mlh .mlh-pro__cta { background: #c7c7c7; color: #111 !important; }
.mlh .mlh-pro__cta:hover { background: #b3b3b3; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); }

/* 13/11/2026: producto recortado sobre la foto de estancia (campana DOB y panel PRS60); sustituye al estilo en línea */
.mlh-slide__prod {
  position: absolute;
  right: clamp(16px, 4vw, 50px);
  top: 50%;
  width: clamp(150px, 24vw, 300px);
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}
.mlh-slide__media--panel img { object-position: 50% 15%; }
@media (max-width: 767px) {
  .mlh-slide__prod { top: 34%; right: 50%; width: min(52vw, 220px); transform: translate(50%, -50%); }
}

/* 13/11/2026: el panel superpuesto, más grande (la imagen es apaisada) */
.mlh-slide__prod--panel { width: clamp(220px, 34vw, 440px); }
@media (max-width: 767px) { .mlh-slide__prod--panel { width: min(74vw, 320px); } }

/* 19/11/2026: banner PRO en móvil sin foto de fondo (ni degradado) y con el contenido al borde izquierdo:
   más ancho para el título y la tira de ventajas */
@media (max-width: 767px) {
  .mlh .mlh-pro__media,
  .mlh .mlh-pro__scrim { display: none; }
  .mlh .mlh-pro__body { margin-left: 0; width: 100%; padding: 16px; }
}

/* 20/11/2026 (Álvaro) · Slider principal: se oscurece solo la zona del texto (abajo a la izquierda) y no media foto,
   para que la imagen luzca más. Banner PRO: título más pequeño y botón en el verde del logo PRO en vez de gris. */
.mlh .mlh-slide__scrim {
  background: radial-gradient(115% 95% at 0% 100%, rgba(10, 16, 28, 0.78) 0%, rgba(10, 16, 28, 0.5) 32%, rgba(10, 16, 28, 0.12) 56%, rgba(10, 16, 28, 0) 70%) !important;
}

.mlh .mlh-pro__title { font-size: clamp(0.98rem, 0.82rem + 0.3vw, 1.12rem); }
.mlh .mlh-pro__cta { background: #c9d232; color: #111 !important; }
.mlh .mlh-pro__cta:hover { background: #d6de4a; color: #111 !important; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); }

/* Texto corto del botón PRO solo en móvil */
.mlh .mlh-pro__cta-s { display: none; }

/* 20/11/2026 (Álvaro) · Banner PRO en móvil: tarjeta (como antes, no a ancho completo), botón arriba a la derecha con
   «Quiero ser PRO», logo algo más grande, las tres ventajas en lista vertical y letra más pequeña. */
@media (max-width: 767px) {
  .mlh .mlh-pro__body { position: relative; gap: 12px; padding: 16px; }
  .mlh .mlh-pro__kicker { min-height: 32px; display: flex; align-items: center; }
  .mlh .mlh-pro__logo { height: 32px; width: auto; }
  .mlh .mlh-pro__title { font-size: 0.9rem; }
  .mlh .mlh-pro__list {
    display: flex; flex-direction: column; gap: 2px; overflow: visible;
    -webkit-mask-image: none; mask-image: none;
  }
  .mlh .mlh-pro__list li { font-size: 0.72rem; padding: 0; background: none; border-radius: 0; white-space: normal; }
  .mlh .mlh-pro__cta { position: absolute; top: 16px; right: 16px; margin: 0; padding: 7px 12px; font-size: 0.74rem; }
  .mlh .mlh-pro__cta-l { display: none; }
  .mlh .mlh-pro__cta-s { display: inline; }
  .mlh .mlh-slide__scrim {
    background: linear-gradient(to top, rgba(10, 16, 28, 0.78) 0%, rgba(10, 16, 28, 0.5) 22%, rgba(10, 16, 28, 0.12) 36%, rgba(10, 16, 28, 0) 55%) !important;
  }
  .mlh-slide__title {
    text-shadow: 0px 0px 4px rgba(0,0,0,0.7) !important;
  }
}

/* 23/11/2026: en móvil, del banner PRO a «Categorías destacadas» el mismo hueco que del hero al PRO (12 px, el padding
   inferior de .mlh): fuera los 2rem superiores que custom.css (≤ 599) da a .categorieshome-wrapper */
@media (max-width: 599px) {
  body#index .categorieshome-wrapper { padding-top: 0 !important; }
}

/* 23/11/2026: tags del hero en píldora (banner rotatorio y OFERTAS/OUTLET) y botón PRO también */
.mlh .mlh-tag, .mlh .mlh-promo__k, .mlh .mlh-pro__cta { border-radius: 100vw; }

/* 24/11/2026 (Álvaro) · Botones y palabra destacada del hero, más sobrios como el resto de la web.
   Palabra destacada: negrita en blanco. Comprar: transparente por defecto; variantes por URL ?cta=… */
.mlh .mlh-slide__title strong { color: #fff; font-weight: 400; }
.mlh .mlh-slide .mlh-cta,
.mlh .mlh-promo__buy { background: #fff; color: #1d2a55 !important; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.45); }
.mlh .mlh-slide:hover .mlh-cta, .mlh .mlh-slide .mlh-cta:hover,
.mlh .mlh-promo__buy:hover { background: #eef1f7; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.mlh[data-cta="azul"] .mlh-slide .mlh-cta,
.mlh[data-cta="azul"] .mlh-promo__buy { background: #3750a3; color: #fff !important; }
.mlh[data-cta="azul"] .mlh-slide:hover .mlh-cta, .mlh[data-cta="azul"] .mlh-slide .mlh-cta:hover,
.mlh[data-cta="azul"] .mlh-promo__buy:hover { background: #4a63b8; }
.mlh[data-cta="transparente"] .mlh-slide .mlh-cta,
.mlh[data-cta="transparente"] .mlh-promo__buy { background: rgba(255, 255, 255, 0.14); color: #fff !important; box-shadow: inset 0 0 0 1px #fff; }
.mlh[data-cta="transparente"] .mlh-slide:hover .mlh-cta, .mlh[data-cta="transparente"] .mlh-slide .mlh-cta:hover,
.mlh[data-cta="transparente"] .mlh-promo__buy:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px #fff; }
.mlh[data-cta="amarillo"] .mlh-slide .mlh-cta,
.mlh[data-cta="amarillo"] .mlh-promo__buy { background: #ffdd00; color: #111 !important; }
.mlh[data-cta="amarillo"] .mlh-slide:hover .mlh-cta, .mlh[data-cta="amarillo"] .mlh-slide .mlh-cta:hover,
.mlh[data-cta="amarillo"] .mlh-promo__buy:hover { background: #ffe84d; }

/* 30/11/2026 (Álvaro) · Foto del banner PRO: técnico ante el cuadro (masterpro-tecnico-3.webp, en $mlh_img_pro del tpl).
   Técnico a la derecha sobre muro claro: en escritorio (tarjeta vertical) se ancla arriba a la derecha; en 768–1199 (foto en
   el 34 % izquierdo) se amplía y se voltea para que salga el técnico mirando al texto y no el muro. Móvil sin foto. */
.mlh .mlh-pro__media { background-position: 100% 15%; }
@media (max-width: 1199px) {
  .mlh .mlh-pro__media { background-size: 170% auto; transform: scaleX(-1); }
}

/* 02/12/2026 · Banner PRO: rótulo «Ventajas exclusivas para profesionales» en versalitas pequeñas con filete
   inferior degradado (estilo del 25/11 que había desaparecido). Va al final para ganar a las reglas anteriores. */
.mlh .mlh-pro__title {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%) 1;
}
@media (max-width: 767px) {
  .mlh .mlh-pro__title { font-size: 0.65rem; padding-bottom: 5px; }
}

/* 03/12/2026 · Banner PRO: el logo Masterled PRO pasa a la esquina inferior derecha (a la altura del botón).
   04/12/2026: solo desde 768 px; en móvil vuelve a su sitio original (arriba, reglas del 20/11). */
@media (min-width: 768px) {
  .mlh .mlh-pro__kicker {
    position: absolute;
    right: clamp(18px, 1.4vw, 26px);
    bottom: clamp(18px, 1.4vw, 26px);
    margin: 0;
    line-height: 0;
  }
  .mlh .mlh-pro__logo { height: 34px; width: auto; }
}

/* 04/12/2026 (Luis) · Escritorio: el degradado del texto del banner PRO empieza 60 px más arriba */
@media (min-width: 1200px) {
  .mlh .mlh-pro__body { padding-top: 60px; }
}
