/* ============ HogarPlus — minimalista y elegante ============ */
:root {
  --hp-bg: #FAFAF7;
  --hp-ink: #1B1A17;
  --hp-muted: #6F6B62;
  --hp-line: #E8E5DD;
  --hp-accent: #2F5D46;
  --hp-accent-dark: #22452F;
  --hp-card: #F1F0EA;
  --hp-r: 18px;
  --hp-ease: cubic-bezier(.22, .61, .21, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--hp-bg) !important;
  color: var(--hp-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wp-block-site-title, .wp-block-post-title {
  font-family: Fraunces, Georgia, serif !important;
  font-weight: 540;
  letter-spacing: -0.015em;
  color: var(--hp-ink);
}

a { color: inherit; }
::selection { background: var(--hp-accent); color: #fff; }

/* ---------- Barra superior ---------- */
.hp-bar {
  position: relative;
  z-index: 85;
  background: var(--hp-accent-dark);
  color: #DCE8DE;
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1.4;
}
.hp-bar strong { color: #fff; font-weight: 600; }
.hp-bar-sep { opacity: .45; margin-right: 8px; }
@media (max-width: 680px) { .hp-bar-extra { display: none; } }

/* ---------- Cabecera fija y translúcida ---------- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--hp-bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--hp-ease), background .35s var(--hp-ease);
}
body.hp-scrolled header.wp-block-template-part {
  border-bottom-color: var(--hp-line);
  background: color-mix(in srgb, var(--hp-bg) 92%, transparent);
}
.wp-block-site-title a {
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
}
.wp-block-navigation a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--hp-muted);
  transition: color .3s;
}
.wp-block-navigation a:hover { color: var(--hp-ink); }
.wp-block-navigation a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--hp-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--hp-ease);
}
.wp-block-navigation a:hover::after { transform: scaleX(1); transform-origin: left; }
.wp-block-navigation li:has(> a[href*="finalizar-encargo"]) { display: none; }

/* Ocultar el pie del tema: usamos el de HogarPlus */
footer.wp-block-template-part { display: none; }
body.hp-home .wp-block-post-title { display: none; }

/* ---------- Animaciones ---------- */
@keyframes hpUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
[data-hp] {
  opacity: 0;
  animation: hpUp .95s var(--hp-ease) forwards;
}
.hp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--hp-ease), transform .85s var(--hp-ease);
}
.hp-reveal.hp-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-hp], .hp-reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Botones ---------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: transform .35s var(--hp-ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
  border: 1px solid transparent;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-solid { background: var(--hp-ink); color: #fff !important; }
.hp-btn-solid:hover { background: var(--hp-accent); box-shadow: 0 14px 30px -14px rgba(47, 93, 70, .55); }
.hp-btn-ghost { border-color: var(--hp-line); color: var(--hp-ink) !important; background: transparent; }
.hp-btn-ghost:hover { border-color: var(--hp-ink); }

/* ---------- Portada ---------- */
.hp-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) 24px clamp(50px, 8vh, 90px);
}
.hp-kicker {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--hp-accent);
  font-weight: 600;
  margin: 0;
}
.hp-hero h1 {
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 1.03;
  margin: 20px 0 24px;
  max-width: 15ch;
}
.hp-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--hp-muted);
  line-height: 1.65;
  max-width: 54ch;
  margin: 0;
}
.hp-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }

/* ---------- Secciones ---------- */
.hp-sec { max-width: 1140px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) 24px; }
.hp-sec-head { margin-bottom: 42px; }
.hp-sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 0; }
.hp-more { text-align: center; margin-top: 44px; }

/* ---------- Pasos ---------- */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--hp-line);
  padding-top: 48px;
}
.hp-step .hp-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 46px;
  color: var(--hp-accent);
  font-weight: 400;
  line-height: 1;
}
.hp-step h3 { font-size: 20px; margin: 16px 0 8px; }
.hp-step p { color: var(--hp-muted); line-height: 1.6; font-size: 15px; margin: 0; }

/* ---------- Banda de visita ---------- */
.hp-visit {
  background: var(--hp-accent-dark);
  color: #F4F6F2;
  border-radius: 26px;
  padding: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}
.hp-visit h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 14px; }
.hp-visit .hp-kicker { color: #A9C8B6; }
.hp-visit p { color: #C9D6CC; line-height: 1.65; margin: 0; }
.hp-visit-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hp-visit .hp-btn-solid { background: #fff; color: var(--hp-accent-dark) !important; }
.hp-visit .hp-btn-solid:hover { background: var(--hp-bg); box-shadow: none; }
.hp-visit .hp-btn-ghost { border-color: rgba(255,255,255,.3); color: #fff !important; }
.hp-visit .hp-btn-ghost:hover { border-color: #fff; }
@media (max-width: 760px) { .hp-visit { grid-template-columns: 1fr; } }

/* ---------- Rejilla de productos ---------- */
.woocommerce ul.products, ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 30px 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
  float: none !important;
}
ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--hp-r);
  background: var(--hp-card);
  margin-bottom: 16px !important;
  transition: transform .7s var(--hp-ease), box-shadow .6s var(--hp-ease);
}
ul.products li.product:hover img {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 24px 44px -24px rgba(27, 26, 23, .3);
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: Inter, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  margin: 0 0 4px !important;
  color: var(--hp-ink);
}
ul.products li.product .price {
  color: var(--hp-muted) !important;
  font-size: 15px !important;
  font-weight: 500;
  display: block;
  margin-bottom: 12px !important;
}
ul.products li.product .price .woocommerce-Price-amount { color: var(--hp-ink); }
ul.products li.product .button {
  background: var(--hp-ink) !important;
  border: 1px solid var(--hp-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 11px 24px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--hp-ease), box-shadow .35s;
}
ul.products li.product .button:hover {
  background: var(--hp-accent) !important;
  border-color: var(--hp-accent) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(47, 93, 70, .6);
}
li.product { position: relative; }
.hp-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #fff;
  color: var(--hp-accent-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 6px 13px;
  box-shadow: 0 8px 20px -10px rgba(27, 26, 23, .4);
  pointer-events: none;
}

/* ---------- Lista de beneficios en producto ---------- */
.hp-usp {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  background: #fff;
}
.hp-usp li {
  position: relative;
  padding-left: 26px;
  margin: 9px 0;
  color: var(--hp-ink);
  font-size: 14.5px;
  line-height: 1.5;
}
.hp-usp li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hp-accent);
  font-weight: 700;
}
.hp-usp strong { color: var(--hp-accent-dark); }

/* ---------- Franja de confianza ---------- */
.hp-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.hp-trust-item {
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  padding: 20px 22px;
  font-size: 14px;
  color: var(--hp-muted);
  line-height: 1.55;
  transition: transform .4s var(--hp-ease), box-shadow .4s var(--hp-ease);
}
.hp-trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(27, 26, 23, .25);
}
.hp-trust-item strong {
  display: block;
  color: var(--hp-ink);
  font-size: 15px;
  margin-bottom: 5px;
}
.hp-trust-item strong em {
  font-style: normal;
  color: var(--hp-accent);
}
.woocommerce-result-count, .woocommerce-ordering select { color: var(--hp-muted); font-size: 13px; }

/* ---------- Botones de WooCommerce y bloques ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce .button,
.wc-block-components-button, .wp-block-button__link {
  border-radius: 999px !important;
  font-weight: 500 !important;
}
.wc-block-components-button:not(.outlined) {
  background: var(--hp-ink) !important;
  color: #fff !important;
}
.wc-block-components-button:not(.outlined):hover { background: var(--hp-accent) !important; }

/* ---------- Producto individual ---------- */
.woocommerce div.product div.images img { border-radius: var(--hp-r); }
.woocommerce div.product .product_title { font-size: clamp(28px, 3vw, 38px); }
.woocommerce div.product p.price { color: var(--hp-ink) !important; font-size: 22px; font-weight: 600; }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--hp-ink) !important;
  color: #fff !important;
  padding: 15px 34px !important;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--hp-accent) !important; }
p.stock.available-on-backorder {
  color: var(--hp-accent) !important;
  background: color-mix(in srgb, var(--hp-accent) 9%, transparent);
  display: inline-block;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13.5px;
}

/* ---------- Pie HogarPlus ---------- */
.hp-footer {
  border-top: 1px solid var(--hp-line);
  margin-top: clamp(50px, 9vh, 100px);
  padding: 64px 24px 36px;
  background: var(--hp-bg);
}
.hp-foot-grid {
  max-width: 1140px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 700px) { .hp-foot-grid { grid-template-columns: 1fr; } }
.hp-foot-brand { font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.hp-foot-about p { color: var(--hp-muted); line-height: 1.65; font-size: 14.5px; max-width: 34ch; margin: 0; }
.hp-foot-col h4 {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hp-muted);
  margin: 4px 0 16px;
  font-weight: 600;
  font-family: Inter, sans-serif;
}
.hp-foot-col a {
  display: block;
  color: var(--hp-ink);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 10px;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.hp-foot-col a:hover { border-bottom-color: var(--hp-ink); }
.hp-foot-base {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--hp-line);
  color: var(--hp-muted);
  font-size: 13px;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.hp-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #22452F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px -12px rgba(34, 69, 47, .55);
  transition: transform .35s var(--hp-ease), background .3s;
}
.hp-wa:hover { transform: translateY(-4px) scale(1.05); background: var(--hp-accent); color: #fff; }
