/* ============================================================
   Blots — Home moderna   [blocksy-child/assets/home.css]
   Estilos de la portada (front-page.php). Prefijo bh- (blots home)
   para no chocar con el tema/plugins. Mobile-first y responsive.
   ============================================================ */

.blots-home {
  --bh-red:      #c42327;
  --bh-red-d:    #a51d20;
  --bh-maroon-1: #a00000;
  --bh-maroon-2: #5e0000;
  --bh-ink:      #14161c;
  --bh-muted:    #5f6672;
  --bh-line:     #ececf0;
  --bh-bg:       #faf7f5;
  --bh-bg-2:     #ffffff;
  --bh-navy:     #121a2e;
  --bh-radius:   18px;
  --bh-shadow:   0 14px 34px rgba(17, 24, 39, .10);

  background: var(--bh-bg);
  color: var(--bh-ink);
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, sans-serif;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* Mismo contenedor que Blocksy (.ct-container = 1290px) para alinear
   hero/secciones con el header y el footer. */
.bh-wrap { width: min(1290px, 100% - 40px); margin-inline: auto; }

.bh-section { padding: clamp(48px, 7vw, 88px) 0; }

/* ---- Encabezados de sección ---- */
.bh-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); }
.bh-head__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bh-head__sub { margin: 0; color: var(--bh-muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }

/* ---- Botones ---- */
.bh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.bh-btn--solid { background: var(--bh-red); color: #fff; box-shadow: 0 10px 22px rgba(196, 35, 39, .28); }
.bh-btn--solid:hover { background: var(--bh-red-d); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(196, 35, 39, .34); color: #fff; }
.bh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.bh-btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); color: #fff; }

/* El botón fantasma nace para el hero (fondo oscuro). Sobre las secciones
   claras el texto blanco quedaba invisible: allí se invierte a tinta. */
.bh-brands .bh-btn--ghost,
.bh-stores .bh-btn--ghost,
.bh-benefits .bh-btn--ghost {
  color: var(--blots-red, #c42327);
  border-color: rgba(196, 35, 39, .45);
}
.bh-brands .bh-btn--ghost:hover,
.bh-stores .bh-btn--ghost:hover,
.bh-benefits .bh-btn--ghost:hover {
  background: var(--blots-red, #c42327);
  border-color: transparent;
  color: #fff;
}
.bh-btn--lg { padding: 18px 34px; font-size: 18px; }

/* ============================ HERO ============================ */
.bh-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 70% 30%, var(--bh-maroon-1) 0%, var(--bh-maroon-2) 75%);
}
.bh-hero__bg {
  position: absolute;
  /* Alinear el borde derecho de la imagen al contenedor (1290px), no al viewport */
  right: max(20px, calc((100% - 1290px) / 2));
  bottom: 0; z-index: 0;
  height: 100%; width: auto; max-width: 48%;
  object-fit: contain; object-position: right bottom; pointer-events: none;
}
.bh-hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: clamp(440px, 46vw, 580px); }
.bh-hero__content { max-width: 560px; color: #fff; padding: clamp(44px, 6vw, 80px) 0; }
.bh-hero__eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 7px 14px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.bh-hero__title {
  margin: 0 0 18px; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em;
  font-size: clamp(32px, 5vw, 56px); text-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}
.bh-hero__subtitle { margin: 0 0 28px; font-size: clamp(16px, 1.9vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .92); max-width: 30em; }
.bh-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ========================= TRUST BAR ========================= */
.bh-trust { background: var(--bh-navy); color: #fff; }
.bh-trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 16px 0; }
.bh-trust__item { font-size: 14px; font-weight: 600; letter-spacing: .01em; opacity: .95; }
.bh-trust__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bh-red); }

/* ======================= CÓMO FUNCIONA ======================= */
.bh-how { background: var(--bh-bg-2); }
.bh-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: step;
}
.bh-step {
  position: relative; background: var(--bh-bg); border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius); padding: 30px 26px; text-align: center;
}
.bh-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bh-maroon-1), var(--bh-red));
  color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 8px 20px rgba(196, 35, 39, .28);
}
.bh-step__title { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.bh-step__text { margin: 0; color: var(--bh-muted); font-size: 15px; line-height: 1.6; }

/* ========================== MARCAS ========================== */
.bh-brands { background: var(--bh-bg); scroll-margin-top: 90px; }
.bh-brandgrid { margin-top: 4px; }

/* ===================== OFERTAS (HOT) ===================== */
/*
 * La sección va sobre fondo claro para que las tarjetas, que traen su propio
 * borde y sombra desde el plugin, no compitan con el hero.
 */
.bh-hot { background: #fff; scroll-margin-top: 90px; }
.bh-hot .cathub-hot-grid { margin-top: 4px; }

/* =============== ¿VENDÉS CON NOSOTROS? (B2B) =============== */
.bh-partner { background: var(--bh-bg); padding: clamp(44px, 6vw, 80px) 0; }
.bh-partner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(22px, 3vw, 44px); flex-wrap: wrap;
  background: radial-gradient(140% 160% at 15% 20%, #1b2440 0%, var(--bh-navy) 70%);
  color: #fff; border-radius: 22px; padding: clamp(32px, 4.5vw, 52px);
  border: 1px solid rgba(255, 255, 255, .06);
}
.bh-partner__text { max-width: 640px; }
.bh-partner__eyebrow { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.bh-partner__title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.bh-partner__sub { margin: 0; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 1.6; }

/* ========================= BENEFICIOS ========================= */
.bh-benefits { background: var(--bh-bg-2); }
.bh-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bh-benefit { background: var(--bh-bg); border: 1px solid var(--bh-line); border-radius: var(--bh-radius); padding: 28px 24px; }
.bh-benefit__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px;
  background: #fdecec; color: var(--bh-red);
}
.bh-benefit__icon svg { width: 26px; height: 26px; }
.bh-benefit__title { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.bh-benefit__text { margin: 0; color: var(--bh-muted); font-size: 15px; line-height: 1.6; }

/* ========================= CTA FINAL ========================= */
.bh-cta { background: radial-gradient(120% 160% at 50% 0%, var(--bh-maroon-1) 0%, var(--bh-maroon-2) 80%); color: #fff; }
.bh-cta__inner { text-align: center; padding: clamp(52px, 8vw, 96px) 0; }
.bh-cta__title { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.bh-cta__sub { margin: 0 auto 28px; max-width: 36em; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.bh-cta .bh-btn--solid { background: #fff; color: var(--bh-red); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.bh-cta .bh-btn--solid:hover { background: #fff; color: var(--bh-red-d); }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 980px) {
  .bh-steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .bh-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .bh-partner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 781px) {
  /* Hero: la imagen del banner se oculta (igual que el diseño original) */
  .bh-hero__bg { display: none; }
  .bh-hero__inner { min-height: 0; }
  .bh-hero__content { max-width: 100%; text-align: center; margin-inline: auto; padding: clamp(48px, 12vw, 72px) 0; }
  .bh-hero__subtitle { margin-inline: auto; }
  .bh-hero__cta { justify-content: center; }
}

@media (max-width: 560px) {
  .bh-benefits__grid { grid-template-columns: 1fr; }
  .bh-btn { width: 100%; }
  .bh-hero__cta .bh-btn { width: 100%; }
}

/* ============================================================
 * TIENDAS ALIADAS (grilla paralela a Marcas)
 * ============================================================ */
.bh-stores { background: var(--bh-surface, #fff); scroll-margin-top: 90px; }
.bh-storegrid{
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.bh-store-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bh-store-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, .16);
  border-color: #f0c9ca;
}
.bh-store-card:focus-visible{
  outline: 3px solid var(--bh-red, #c42327);
  outline-offset: 3px;
}
.bh-store-card__media{
  aspect-ratio: 16 / 10;
  background: #faf7f5;
  display: grid;
  place-items: center;
  padding: 18px;
  border-bottom: 1px solid #f1f1f4;
}
.bh-store-card__img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.bh-store-card__placeholder{ color: #c9ccd4; }
.bh-store-card__placeholder svg{ width: 46px; height: 46px; }
.bh-store-card__body{ padding: 16px 18px; }
.bh-store-card__title{
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #14161c;
}
.bh-store-card__count{
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Botón "Ver todas las marcas/tiendas" bajo cada grilla de la home */
.bh-more{
  display:flex;
  justify-content:center;
  margin-top:26px;
}
.bh-more .bh-btn{ min-width:240px; text-align:center; }
