/**
 * Hispadrive — bloque Marantec destacado en la home. v2 (editorial).
 */
.hd-hm {
  --hm-navy: var(--color-cta, #2b3181);
  --hm-heading: var(--color-heading, #444a9b);
  --hm-peach: var(--color-accent, #f8b793);
  --hm-orange: var(--color-accent-text, #c46a3c);
  --hm-line: var(--color-line, #ececf3);
  --hm-soft: var(--color-bg-alt, #f5f5f7);
  --hm-lilac: var(--color-soft, #e1e0f9);
  --hm-cream: #fbf5ef;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container, 1120px);
  margin: 48px auto 0;
  padding: 0;
  font-family: var(--font-sans);
}

.hd-hm *,
.hd-hm *::before,
.hd-hm *::after {
  box-sizing: border-box;
}

.hd-hm__inner {
  position: relative;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--hm-line);
  border-radius: 24px;
  background: #fff;
}

.hd-hm__inner::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hm-orange), var(--hm-peach));
  border-radius: 999px 999px 0 0;
}

/* ---------- Panel izquierdo (logo) ---------- */
.hd-hm__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(248, 183, 147, 0.25) 0, rgba(248, 183, 147, 0) 55%),
    var(--hm-cream);
  text-align: center;
}

.hd-hm__panel-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--hm-orange);
  border: 1px solid rgba(196, 106, 60, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hd-hm__logo {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
}

.hd-hm__panel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(196, 106, 60, 0.15);
}

.hd-hm__panel-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hd-hm__panel-stats > div + div {
  border-left: 1px solid rgba(196, 106, 60, 0.15);
}

.hd-hm__panel-stats b {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--hm-navy);
}

.hd-hm__panel-stats span {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted, #6b6d82);
}

/* ---------- Body derecho ---------- */
.hd-hm__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 16px 8px 8px;
}

.hd-hm__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--hm-orange);
}

.hd-hm__title {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--hm-heading);
}

.hd-hm__title em {
  font-style: normal;
  color: var(--hm-navy);
  background: linear-gradient(transparent 62%, rgba(248, 183, 147, 0.5) 62%);
  padding: 0 4px;
}

.hd-hm__lead {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
}

/* ---------- Chips ---------- */
.hd-hm__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.hd-hm .hd-hm__chips a {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--hm-heading);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.hd-hm .hd-hm__chips a:hover {
  border-color: var(--hm-navy);
  background: var(--hm-navy);
  color: #fff;
  text-decoration: none;
}

/* ---------- Botones ---------- */
.hd-hm__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.hd-hm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.hd-hm__btn svg {
  width: 18px;
  height: 18px;
}

.hd-hm__btn--primary {
  background: var(--hm-navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(43, 49, 129, 0.18);
}

.hd-hm__btn--primary:hover {
  color: #fff;
  background: #1f2468;
  transform: translateY(-1px);
  text-decoration: none;
}

.hd-hm__btn--text {
  padding: 0 8px;
  color: var(--hm-navy);
  background: transparent;
}

.hd-hm__btn--text:hover {
  color: var(--hm-orange);
  text-decoration: none;
}

.hd-hm__btn--text svg {
  transition: transform 0.15s ease;
}

.hd-hm__btn--text:hover svg {
  transform: translateX(3px);
}

/* ---------- Oculta el bloque antiguo de ps_brandlist en la home ---------- */
#index #search_filters_brands,
#index .ps_brandlist,
#index [class*="brandlist"],
#index .block.ps_brandlist,
#index section:has(> #search_filters_brands),
#index div:has(> #search_filters_brands),
#index aside:has(> #search_filters_brands) {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hd-hm__inner {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hd-hm__inner::before {
    left: 28px;
    right: 28px;
  }

  .hd-hm__body {
    padding: 0;
  }

  .hd-hm__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .hd-hm {
    margin: 24px auto 0;
  }

  .hd-hm__inner {
    padding: 22px;
    border-radius: 24px;
  }

  .hd-hm__inner::before {
    left: 22px;
    right: 22px;
  }

  .hd-hm__panel {
    padding: 28px 20px;
    gap: 18px;
  }

  .hd-hm__logo {
    max-width: 200px;
  }

  .hd-hm__title {
    font-size: 24px;
    letter-spacing: -0.4px;
  }

  .hd-hm__lead {
    font-size: 15px;
  }

  .hd-hm__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hd-hm__btn {
    width: 100%;
  }

  .hd-hm__btn--text {
    padding: 8px 0;
  }
}
