/* Home (page 184) — CPE-004 v2 "armonizada" (2026-07-16, OK de Fabio).
   Estructura/paleta/layout = réplica medida en DOM del vivo (1920 + 390).
   TIPOGRAFÍA = escala nueva coherente (el vivo mezclaba 18/19.2/20/25/28/33/35/40
   sin jerarquía; breakpoints invertidos del kit en móvil). Decisión registrada en log.md.
   Escala: H1 42/28 · H2 32/24 · card/icon 18 · body 19/17 · lh 1.2/1.55.
   !important en tipografía disputada: mientras Elementor siga activo su kit CSS
   (.elementor-kit-10 h2 33px) y Woo pisan estas clases. Tras el swap no compite nadie. */

.cpe-main { --cpe-content: 1140px; }
.cpe-band, .cpe-band * { box-sizing: border-box; }

.cpe-band { width: 100%; }
.cpe-band > .wp-block-html { display: block; }

/* wrapper de contenido centrado por banda */
.cpe-band__h2, .cpe-icons, .cpe-cta, .cpe-split, .cpe-pl,
.cpe-band--soluciones > .wp-block-html {
  max-width: var(--cpe-content);
  margin-left: auto;
  margin-right: auto;
}

.cpe-band__h2 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  color: #000 !important;
  margin: 0 0 30px;
}
.cpe-band__h2--center { text-align: center; }

/* ================= HERO ================= */
.cpe-hero {
  background:
    linear-gradient(rgba(44, 36, 100, .60), rgba(44, 36, 100, .60)),
    url("https://cpe-online.eu/wp-content/uploads/2025/07/fondo-principal.webp") center/cover no-repeat;
}
.cpe-hero__inner {
  max-width: 1380px;
  margin: 0 auto;
  min-height: 756px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.cpe-hero__text {
  color: #fff;
  padding: 40px 40px 40px 10px;
}
.cpe-hero__h1 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 700 !important;
  font-size: 42px !important;
  line-height: 1.15 !important;
  color: #fff !important;
  margin: 0 0 18px;
}
.cpe-hero__h1sub {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 14px;
  opacity: .92;
}
.cpe-hero__lead {
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 30px;
  max-width: 560px;
}
/* panel rojo con el coche encima */
.cpe-hero__panel {
  align-self: stretch;
  background: #B4242C;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cpe-hero__car {
  width: 501px;
  max-width: 100%;
  height: auto;
  /* desborda a la izquierda como en el vivo */
  margin-left: -80px;
}

/* ================= BOTÓN ================= */
/* selector con clase de anchor (a.cpe-btn) para ganar a los estilos globales/Woo
   que colorean <a> con el color primario del tema. */
.cpe-band a.cpe-btn {
  display: inline-flex;
  align-items: center;
  background: #AC242C;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 20px;
  transition: background .15s;
}
.cpe-band a.cpe-btn:hover { background: #B4242C; color: #fff; }
.cpe-band a.cpe-btn--outline {
  background: transparent;
  color: #B4242C;
  border: 2px solid #B4242C;
  padding: 13px 28px;
}
.cpe-band a.cpe-btn--outline:hover { background: #B4242C; color: #fff; }
.cpe-band a.cpe-btn svg { fill: currentColor; }

/* ============ BANDAS INTRO (H2 + 5 iconos) ============ */
.cpe-band--grey { background: #F2F2F2; }
.cpe-band--white { background: #fff; }
.cpe-band--intro { padding: 70px 20px; }

.cpe-icons {
  display: flex;
  justify-content: center;
  gap: 0;
}
.cpe-icon {
  flex: 1 1 0;
  max-width: 228px;
  text-align: center;
  padding: 0 10px;
}
.cpe-icon img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto 18px; display: block; }
.cpe-icon__t {
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #000 !important;
  margin: 0;
}

/* ============ GRIDS WOO (categorías / destacados) ============
   Look de tarjeta del vivo (blanca redondeada / transparente) sobre el markup
   nativo de [product_categories] y [products]. Se reutiliza en CPE-005. */
.cpe-band--woo { padding: 44px 20px 60px; }
.cpe-band--featured-head { padding: 60px 20px 24px; }
.cpe-band--cats-grid { padding-top: 40px; }

.cpe-band--woo .woocommerce { max-width: var(--cpe-content); margin: 0 auto; }
.cpe-band--woo ul.products {
  display: grid;
  gap: 30px;
  max-width: var(--cpe-content);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.cpe-band--woo ul.products::before,
.cpe-band--woo ul.products::after { content: none !important; display: none !important; }
.cpe-band--woo ul.products li.product,
.cpe-band--woo ul.products li.product-category {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 0;
  list-style: none;
}
.cpe-band--woo ul.products li a { text-decoration: none; }

/* --- Categorías: tarjeta blanca redondeada (6 col) --- */
.cpe-band--cats-grid ul.products { grid-template-columns: repeat(6, 1fr); }
.cpe-band--cats-grid li.product-category {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  overflow: hidden;
  text-align: center;
}
.cpe-band--cats-grid li.product-category > a { display: block; }
.cpe-band--cats-grid li.product-category img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  margin: 0;
  display: block;
}
.cpe-band--cats-grid .woocommerce-loop-category__title {
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: center;
  padding: 14px 12px;
  margin: 0;
  line-height: 1.3 !important;
}
.cpe-band--cats-grid .woocommerce-loop-category__title .count { display: none; }

/* --- Destacados: tarjeta transparente (4 col) --- */
.cpe-band--featured-grid ul.products { grid-template-columns: repeat(4, 1fr); }
.cpe-band--featured-grid li.product { background: transparent; text-align: center; }
.cpe-band--featured-grid li.product > a img,
.cpe-band--featured-grid li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 14px;
  display: block;
}
.cpe-band--featured-grid .woocommerce-loop-product__title {
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: center;
  padding: 0 0 12px;
  margin: 0;
  line-height: 1.3 !important;
}
.cpe-band--featured-grid li.product .price,
.cpe-band--featured-grid li.product .star-rating { display: none; }  /* modo catálogo YITH */
.cpe-band--featured-grid li.product .button,
.cpe-band--featured-grid li.product a.added_to_cart,
.cpe-band--featured-grid li.product a.product_type_simple {
  display: inline-block;
  background: #AC242C;
  color: #fff !important;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 26px;
  border-radius: 20px;
  text-decoration: none;
}
.cpe-band--featured-grid li.product .button:hover { background: #B4242C; }

/* ================= CTA (banda morada) ================= */
.cpe-band--purple { background: #2C2464; }
.cpe-band--cta { padding: 70px 20px; }
.cpe-cta { text-align: center; }
.cpe-cta__h2 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 600 !important;
  font-size: 32px !important;
  line-height: 1.25 !important;
  color: #fff !important;
  margin: 0 0 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ SPLIT (consumibles, texto+imagen sobre morado) ============ */
.cpe-band--split { padding: 70px 20px; }
.cpe-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cpe-split__h2 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  color: #fff !important;
  margin: 0 0 26px;
}
.cpe-split__media { display: flex; justify-content: center; }
.cpe-split__media img {
  width: 383px;
  max-width: 100%;
  height: auto;
  border-radius: 30px;              /* medido en el vivo (30px + borde blanco) */
  border: 3px solid #fff;
}

/* bullets con punto medio, texto blanco o negro según banda */
.cpe-bullets { list-style: none; margin: 0; padding: 0; }
.cpe-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-family: Montserrat, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
}
.cpe-bullets li::before { content: "●"; position: absolute; left: 0; font-size: 11px; top: 8px; }
.cpe-band--split .cpe-bullets li { color: #fff; }

/* ============ PRIVATE LABEL (propuesta) ============ */
.cpe-band--pl { padding: 70px 20px; }
.cpe-pl { text-align: center; }
.cpe-pl__lead {
  max-width: 780px;
  margin: 0 auto 30px;
  font-size: 19px;
  line-height: 1.55;
  color: #414141;
}

/* ============ SOLUCIONES (banda gris) ============ */
.cpe-band--soluciones { padding: 70px 20px; }
.cpe-band--soluciones .cpe-band__h2 { margin-bottom: 24px; }
.cpe-soluc__lead, .cpe-soluc__close {
  max-width: var(--cpe-content);
  margin: 0 auto 18px;
  font-size: 19px;
  line-height: 1.55;
  color: #000;
}
.cpe-band--soluciones .cpe-bullets { max-width: var(--cpe-content); margin: 0 auto 18px; }
.cpe-band--soluciones .cpe-bullets li { color: #000; }

/* ===================== MÓVIL (≤767px) =====================
   Layout del vivo (destacados 1 col full-bleed, split apilado, iconos 2 col)
   con la escala nueva: H1 28 · H2 24 · body 17. Se corrige a propósito el quirk
   de breakpoints invertidos del kit (28/40px en móvil > desktop). */
@media (max-width: 767px) {
  .cpe-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 56px 20px 16px;
    text-align: center;
  }
  .cpe-hero__text { padding: 0; order: 1; }
  .cpe-hero__h1 { font-size: 28px !important; }
  .cpe-hero__h1sub { font-size: 18px; }
  .cpe-hero__lead { font-size: 17px; margin-left: auto; margin-right: auto; }
  .cpe-hero__panel { order: 2; background: transparent; margin-top: 56px; }
  .cpe-hero__car { margin-left: 0; width: 252px; }
  .cpe-band a.cpe-btn { margin: 0 auto; }

  .cpe-band__h2, .cpe-cta__h2, .cpe-split__h2,
  .cpe-band--soluciones .cpe-band__h2 { font-size: 24px !important; }

  .cpe-band--intro, .cpe-band--cta, .cpe-band--pl { padding: 48px 20px; }

  .cpe-icons { flex-wrap: wrap; gap: 30px 0; }
  .cpe-icon { flex: 0 0 50%; max-width: none; }
  .cpe-icon img { width: 54px; height: 54px; }

  /* --- Grids Woo --- */
  .cpe-band--woo ul.products { gap: 14px; }
  .cpe-band--cats-grid { padding: 30px 20px 44px; }
  .cpe-band--cats-grid ul.products { grid-template-columns: repeat(2, 1fr); }

  /* Destacados: 1 columna FULL-BLEED (layout del vivo) */
  .cpe-band--featured-head { padding: 48px 0 20px; }
  .cpe-band--featured-grid { padding: 0 0 48px; }
  .cpe-band--featured-grid ul.products {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cpe-band--featured-grid li.product img {
    border-radius: 0;               /* full-bleed sin esquinas */
    margin-bottom: 14px;
  }
  .cpe-band--featured-grid .woocommerce-loop-product__title {
    font-size: 18px !important;
    padding: 0 20px 12px;
  }
  .cpe-band--featured-grid li.product .button { font-size: 16px; padding: 12px 26px; }

  /* --- Split consumibles (escala corregida) --- */
  .cpe-band--split { padding: 48px 20px; }
  .cpe-split { grid-template-columns: 1fr; gap: 36px; }
  .cpe-split__h2 { text-align: left; }
  .cpe-split__media { order: 2; }
  .cpe-band--split .cpe-bullets li { font-size: 17px; margin-bottom: 14px; }

  /* --- Soluciones (con aire lateral, no full-bleed pegado) --- */
  .cpe-band--soluciones { padding: 48px 20px; }
  .cpe-soluc__lead, .cpe-soluc__close { font-size: 17px; }
  .cpe-band--soluciones .cpe-bullets li { font-size: 17px; margin-bottom: 12px; }
  .cpe-bullets li { font-size: 17px; }
}
