:root {
  --sdh-ink: #15181c;
  --sdh-safety: #ffb800;
  --sdh-safety-hover: #e6a600;
  --sdh-paper: #ffffff;
  --sdh-soft: #f5f6f7;
  --sdh-muted: #5d636b;
  --sdh-turquoise: #14aeb5;
  --sdh-focus: #087f8c;
  --sdh-radius: 8px;
  --sdh-shadow: 0 8px 24px rgba(21, 24, 28, .09);
  --sdh-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sdh-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

body,
button,
input,
select,
textarea,
#header .menu,
.sdh-top-bar {
  font-family: var(--sdh-font-body);
}

body.home {
  background: var(--sdh-soft) !important;
  color: var(--sdh-ink);
}

/* Barra superior */
.sdh-top-bar {
  position: relative;
  z-index: 101;
  margin: 0;
  background: var(--sdh-ink);
  color: #f2f3f4;
  font-size: 12px;
  line-height: 1.4;
}

.sdh-top-bar p { margin: 0; }
.sdh-top-bar-inner { min-height: 38px; padding-block: 7px; }
.sdh-top-bar-slogan { color: #fff; }
.sdh-top-bar-slogan svg { color: var(--sdh-safety); }
.sdh-top-bar-contact a,
.sdh-top-bar-location { min-height: 24px; color: #f2f3f4; }
.sdh-top-bar-contact a:hover { color: var(--sdh-safety); }

/* Header Blocksy: se conservan sus controles y su lógica */
#header {
  position: relative;
  z-index: 100;
}

#header [data-row="middle"] {
  background: rgba(255, 255, 255, .98) !important;
  border-top: 0 !important;
  border-bottom: 1px solid #e6e8ea;
  box-shadow: 0 5px 18px rgba(21, 24, 28, .07) !important;
}

#header [data-sticky*="yes"],
#header [data-sticky="shrink"] {
  backdrop-filter: saturate(150%) blur(10px);
}

#header .ct-container { gap: clamp(16px, 2.2vw, 36px); }
#header .site-logo-container { min-height: 44px; }
#header .site-logo-container img { max-width: 285px; max-height: 66px !important; }

#header .menu > li > .ct-menu-link {
  min-height: 48px;
  padding-inline: clamp(10px, 1.15vw, 18px);
  color: var(--sdh-ink) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}

#header .menu > li > .ct-menu-link:hover,
#header .menu > li.current-menu-item > .ct-menu-link,
#header .menu > li.current-menu-ancestor > .ct-menu-link,
#header .menu > li:focus-within > .ct-menu-link {
  color: #a86f00 !important;
}

#header .menu > li > .ct-menu-link::before { background: var(--sdh-safety) !important; }

#header .ct-header-search,
#header .ct-account-item,
#header .ct-cart-item,
#header .ct-header-trigger {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  color: var(--sdh-ink) !important;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

#header .ct-header-search:hover,
#header .ct-account-item:hover,
#header .ct-cart-item:hover,
#header .ct-header-trigger:hover { background: var(--sdh-soft); color: #8c6200 !important; }
#header [class*="ct-header"] svg { width: 21px; height: 21px; }

#header .ct-dynamic-count-cart,
#header .ct-cart-count,
#header .cart-count {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 700 10px/1 var(--sdh-font-body);
}

#header .sdh-header-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px !important;
  border: 2px solid var(--sdh-safety) !important;
  border-radius: var(--sdh-radius) !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font-weight: 800;
  box-shadow: none;
}

#header .sdh-header-cta:hover { background: var(--sdh-safety-hover) !important; border-color: var(--sdh-safety-hover) !important; }
#header .sdh-header-cta:active { transform: translateY(1px); }

/* Productos: cerrado por defecto; Blocksy controla hover/clic/teclado/toque */
#header-menu-1 .menu-item-27 > .sub-menu {
  width: min(720px, calc(100vw - 32px)) !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 2px 12px;
  padding: 16px !important;
  border: 1px solid #e5e7e9;
  border-top: 3px solid var(--sdh-safety);
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: var(--sdh-shadow);
}

#header-menu-1 .menu-item-27:not(:hover):not(:focus-within):not(.ct-active) > .sub-menu {
  pointer-events: none;
}

#header-menu-1 .menu-item-27 .sub-menu a {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #343940 !important;
  font-size: 13px;
  font-weight: 600;
}

#header-menu-1 .menu-item-27 .sub-menu a:hover,
#header-menu-1 .menu-item-27 .sub-menu a:focus-visible { background: #fff7df; color: var(--sdh-ink) !important; }
#header-menu-1 .menu-item-27 .sub-menu .sdh-mega-icon { width: 34px; height: 34px; flex-basis: 34px; }
#header-menu-1 .menu-item-27 .sub-menu li.sdh-mega-cta { grid-column: 1 / -1; }
#header-menu-1 .menu-item-27 .sub-menu li.sdh-mega-cta > a { color: #8c6200 !important; }

/* Dropdown "Más" (items que no caben en el header, colapsados por Blocksy priority+):
   sin esto hereda el fondo/texto oscuro por defecto del tema y queda ilegible (texto negro
   sobre fondo negro). Mismo tratamiento de marca que el mega-menú de Productos. */
#header-menu-1 .more-items-container .sub-menu {
  min-width: 180px;
  padding: 8px !important;
  border: 1px solid #e5e7e9;
  border-top: 3px solid var(--sdh-safety);
  border-radius: 0 0 10px 10px;
  background: #fff !important;
  box-shadow: var(--sdh-shadow);
}
#header-menu-1 .more-items-container .sub-menu a {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #343940 !important;
  font-size: 13px;
  font-weight: 600;
}
#header-menu-1 .more-items-container .sub-menu a:hover,
#header-menu-1 .more-items-container .sub-menu a:focus-visible {
  background: #fff7df;
  color: var(--sdh-ink) !important;
}

/* Hero: composición fiel al mockup, aislada a la portada. */
body.home .elementor-element-secHero01 {
  overflow: hidden;
  padding: clamp(40px, 3.5vw, 52px) 0 clamp(30px, 2.8vw, 40px) !important;
  background-color: #fbfcfc !important;
  background-image:
    linear-gradient(112deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 50%, rgba(245,246,247,.88) 100%),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.home .elementor-element-secHero01 > .elementor-container {
  display: flex;
  flex-wrap: nowrap !important;
  width: min(1220px, calc(100% - 40px));
  max-width: 1220px !important;
  min-width: 0;
  margin-inline: auto;
  gap: clamp(24px, 2.4vw, 36px);
  align-items: center;
}

body.home .elementor-element-secHero01 .sdh-hero-left {
  width: 46% !important;
  min-width: 0;
}

body.home .elementor-element-secHero01 .sdh-hero-right {
  width: 54% !important;
  min-width: 0;
}
body.home .elementor-element-secHero01 .sdh-hero-right > .elementor-widget-wrap {
  align-content: flex-start !important;
  align-items: flex-start !important;
}

body.home .sdh-hero-badge {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 5px;
  background: var(--sdh-safety);
  color: var(--sdh-ink);
  font: 800 11px/1.2 var(--sdh-font-body);
  letter-spacing: .035em;
}

body.home .elementor-element-wHeroBadge { margin-bottom: 18px !important; }

body.home .elementor-element-wHeroH1,
body.home .elementor-element-wHeroH2,
body.home .elementor-element-wHeroTx { text-align: left !important; }

body.home .elementor-element-wHeroH1 .elementor-heading-title,
body.home .elementor-element-wHeroH2 .elementor-heading-title {
  max-width: 530px;
  margin: 0;
  color: var(--sdh-ink) !important;
  font-family: var(--sdh-font-body) !important;
  font-size: clamp(48px, 3.8vw, 56px) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  text-transform: none !important;
}

body.home .elementor-element-wHeroH1 { margin-bottom: 2px !important; }
body.home .elementor-element-wHeroH2 { margin: 0 0 18px !important; }
body.home .elementor-element-wHeroH2 .elementor-heading-title { color: #c98900 !important; }
body.home .elementor-element-wHeroTx { margin: 0 0 24px !important; }
body.home .elementor-element-wHeroTx p {
  max-width: 480px !important;
  margin: 0 !important;
  color: var(--sdh-muted) !important;
  font: 400 clamp(15px, 1.05vw, 16px)/1.58 var(--sdh-font-body);
}

body.home .elementor-element-secHeroBtns {
  margin: 0 0 24px !important;
  padding: 0 !important;
}
body.home .elementor-element-secHeroBtns > .elementor-container { gap: 12px; }
body.home .elementor-element-secHeroBtns .elementor-column { width: auto !important; }
body.home .elementor-element-secHeroBtns .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid var(--sdh-ink) !important;
  border-radius: var(--sdh-radius) !important;
  background: #fff !important;
  color: var(--sdh-ink) !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  text-transform: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
body.home .elementor-element-wBtnTienda .elementor-button {
  border-color: var(--sdh-safety) !important;
  background: var(--sdh-safety) !important;
}
body.home .elementor-element-secHeroBtns .elementor-button:hover { background: var(--sdh-ink) !important; color: #fff !important; }
body.home .elementor-element-wBtnTienda .elementor-button:hover { border-color: var(--sdh-safety-hover) !important; background: var(--sdh-safety-hover) !important; color: var(--sdh-ink) !important; }
body.home .elementor-element-secHeroBtns .elementor-button:active { transform: translateY(1px); }

body.home .elementor-element-wHeroImg {
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 16px 34px rgba(21,24,28,.14);
}
body.home .elementor-element-wHeroImg img {
  display: block;
  width: 100% !important;
  height: clamp(360px, 28vw, 400px) !important;
  object-fit: cover;
  object-position: 50% 50%;
}
body.home .elementor-element-wHeroImg::before,
body.home .elementor-element-wHeroImg::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}
body.home .elementor-element-wHeroImg::before {
  top: 0;
  right: 0;
  width: 72%;
  height: 5px;
  background: var(--sdh-turquoise);
}
body.home .elementor-element-wHeroImg::after {
  right: 0;
  bottom: 0;
  left: 5%;
  height: 13px;
  background: repeating-linear-gradient(135deg, var(--sdh-safety) 0 14px, var(--sdh-ink) 14px 28px);
}

body.home .sdh-hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 550px;
  min-height: 82px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid #e7e9eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(21,24,28,.055);
}
body.home .sdh-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: none;
  padding: 0 12px;
}
body.home .sdh-hero-trust-item:first-child { padding-left: 4px; }
body.home .sdh-hero-trust-item + .sdh-hero-trust-item { border-left: 1px solid #e2e4e6; }
body.home .sdh-hero-trust-ic {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fff4d2;
  color: #956700;
}
body.home .sdh-hero-trust-ic svg { width: 17px; height: 17px; }
body.home .sdh-hero-trust-tx strong { display: block; color: var(--sdh-ink); font: 700 11px/1.25 var(--sdh-font-body); }
body.home .sdh-hero-trust-tx span { display: block; margin-top: 3px; color: var(--sdh-muted); font: 400 10px/1.35 var(--sdh-font-body); }

body.home .sdh-hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
body.home .sdh-hero-social-label {
  color: var(--sdh-muted);
  font: 700 11px/1 var(--sdh-font-body);
  text-transform: uppercase;
  letter-spacing: .06em;
}
body.home .sdh-hero-social-ic {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.home .sdh-hero-social-ic svg { width: 34px; height: 34px; border-radius: 50%; }
body.home .sdh-hero-social-ic:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(21,24,28,.18); }
body.home .sdh-hero-social-ic:hover svg { border-radius: 50%; }

/* Focus consistente */
#header a:focus-visible,
#header button:focus-visible,
.sdh-top-bar a:focus-visible,
.elementor-element-secHero01 a:focus-visible {
  outline: 3px solid var(--sdh-focus) !important;
  outline-offset: 3px;
  border-radius: 5px;
}

@media (max-width: 1180px) {
  #header .menu > li > .ct-menu-link { padding-inline: 9px; }
  #header .site-logo-container img { max-width: 230px; }
  #header .sdh-header-cta { padding-inline: 14px !important; }
}

@media (max-width: 1024px) {
  #header [data-device="mobile"] [data-row="middle"] { min-height: 72px; }
  #header [data-device="mobile"] [data-column="end"] [data-items] { gap: 2px; }
  #header [data-device="mobile"] .site-logo-container img { max-width: min(220px, 46vw); max-height: 52px !important; }
  #offcanvas { font-family: var(--sdh-font-body); }
  #offcanvas .ct-panel-content { background: #fff; }
  #offcanvas .mobile-menu a { min-height: 48px; color: var(--sdh-ink); font-weight: 600; }
  #offcanvas .mobile-menu .sub-menu { background: var(--sdh-soft); }
}

@media (min-width: 992px) and (max-width: 1199px) {
  body.home .elementor-element-secHero01 > .elementor-container { width: min(1100px, calc(100% - 40px)); gap: 24px; }
  body.home .elementor-element-secHero01 .sdh-hero-left { width: 47% !important; }
  body.home .elementor-element-secHero01 .sdh-hero-right { width: 53% !important; }
  body.home .elementor-element-wHeroH1 .elementor-heading-title,
  body.home .elementor-element-wHeroH2 .elementor-heading-title { font-size: clamp(44px, 4.35vw, 50px) !important; }
  body.home .elementor-element-wHeroImg img { height: 360px !important; }
  body.home .sdh-hero-trust-item { padding-inline: 8px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  body.home .elementor-element-secHero01 { padding-block: 40px 32px !important; }
  body.home .elementor-element-secHero01 > .elementor-container { width: calc(100% - 36px); gap: 22px; }
  body.home .elementor-element-secHero01 .sdh-hero-left,
  body.home .elementor-element-secHero01 .sdh-hero-right { width: 50% !important; }
  body.home .elementor-element-wHeroH1 .elementor-heading-title,
  body.home .elementor-element-wHeroH2 .elementor-heading-title { font-size: clamp(37px, 4.8vw, 43px) !important; }
  body.home .elementor-element-wHeroTx p { font-size: 14px; }
  body.home .elementor-element-secHeroBtns .elementor-button { min-width: 128px; padding-inline: 14px; }
  body.home .elementor-element-wHeroImg { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
  body.home .elementor-element-wHeroImg img { height: 340px !important; }
  body.home .sdh-hero-trust { grid-template-columns: 1fr; min-height: 0; padding: 8px 12px; }
  body.home .sdh-hero-trust-item,
  body.home .sdh-hero-trust-item:first-child { min-height: 48px; padding: 6px 2px; }
  body.home .sdh-hero-trust-item + .sdh-hero-trust-item { border-top: 1px solid #e2e4e6; border-left: 0; }
}

@media (max-width: 767px) {
  .sdh-top-bar-contact { width: 100%; justify-content: center; }
  .sdh-top-bar-contact a[href^="mailto"], .sdh-top-bar-location { display: none; }
  body.home .elementor-element-secHero01 { padding-block: 36px 30px !important; }
  body.home .elementor-element-secHero01 > .elementor-container {
    flex-direction: column;
    width: calc(100% - 32px);
    gap: 28px;
  }
  body.home .elementor-element-secHero01 .sdh-hero-left,
  body.home .elementor-element-secHero01 .sdh-hero-right { width: 100% !important; }
  body.home .elementor-element-wHeroH1 .elementor-heading-title,
  body.home .elementor-element-wHeroH2 .elementor-heading-title {
    max-width: 520px;
    font-size: clamp(34px, 9.7vw, 42px) !important;
    line-height: 1.04 !important;
  }
  body.home .elementor-element-wHeroImg { border-radius: 10px; clip-path: none; }
  body.home .elementor-element-wHeroImg img { height: clamp(250px, 72vw, 360px) !important; }
  body.home .sdh-hero-trust { max-width: none; }
}

/* ========================================================================== */
/* Carrito y checkout: WooCommerce Blocks                                     */
/* ========================================================================== */

body.woocommerce-cart,
body.woocommerce-checkout {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.woocommerce-cart #main,
body.woocommerce-checkout #main {
  background:
    linear-gradient(180deg, #fff 0, #fff 220px, rgba(245,246,247,.96) 440px),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.woocommerce-cart #main > .ct-container-full,
body.woocommerce-checkout #main > .ct-container-full { padding-block: 0 76px; }

body.woocommerce-cart #main .hero-section,
body.woocommerce-checkout #main .hero-section {
  display: block !important;
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 0 26px;
  border-bottom: 1px solid #e2e5e7;
}

body.woocommerce-cart #main .page-title,
body.woocommerce-checkout #main .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(38px, 4.6vw, 58px)/1 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}

body.woocommerce-cart #main .page-title::before,
body.woocommerce-checkout #main .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
  transform: translateX(-50%);
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: 0 auto;
  padding-top: 34px;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout {
  margin: 0 !important;
  font-family: var(--sdh-font-body);
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main {
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid #e2e5e7;
  border-top: 4px solid var(--sdh-safety);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21,24,28,.065);
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 30px) !important;
  border: 0 !important;
  border-top: 4px solid var(--sdh-safety) !important;
  border-radius: 12px;
  background: var(--sdh-ink) !important;
  box-shadow: 0 10px 28px rgba(21,24,28,.16);
  color: #f3f4f5 !important;
}

body.woocommerce-cart .wc-block-cart__sidebar *,
body.woocommerce-checkout .wc-block-checkout__sidebar * { border-color: rgba(255,255,255,.16); }

body.woocommerce-cart .wc-block-cart__sidebar :is(h2,h3,strong,label,span,p),
body.woocommerce-checkout .wc-block-checkout__sidebar :is(h2,h3,strong,label,span,p) { color: inherit; }

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-price {
  color: var(--sdh-safety) !important;
  font-weight: 800;
}

.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title-text {
  color: var(--sdh-ink);
  font-family: var(--sdh-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}

body.woocommerce-cart .wc-block-cart-items th {
  color: var(--sdh-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  border: 1px solid #e3e6e8;
  border-radius: 8px;
  background: #fff;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name {
  color: var(--sdh-ink);
  font-weight: 700;
  text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-name:hover { color: #8c6200; }

body.woocommerce-cart .wc-block-cart-item__remove-link {
  color: #4d5359 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wc-block-components-quantity-selector {
  overflow: hidden;
  border: 1px solid #d5dadd !important;
  border-radius: 7px !important;
}

.wc-block-components-quantity-selector__button {
  min-width: 38px !important;
  min-height: 38px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  opacity: 1 !important;
}
.wc-block-components-quantity-selector__button:hover { background: var(--sdh-safety-hover) !important; }
.wc-block-components-quantity-selector__button svg { fill: var(--sdh-ink) !important; }

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-address-form select,
body.woocommerce-checkout .wc-block-components-textarea {
  min-height: 50px;
  border: 1px solid #d5dadd !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--sdh-ink) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.woocommerce-checkout .wc-block-components-address-form select:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus {
  outline: none !important;
  border-color: var(--sdh-safety) !important;
  box-shadow: 0 0 0 3px rgba(255,184,0,.18) !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  min-height: 52px !important;
  border: 2px solid var(--sdh-safety) !important;
  border-radius: 8px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font-weight: 800 !important;
  text-transform: none !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  border-color: var(--sdh-safety-hover) !important;
  background: var(--sdh-safety-hover) !important;
  color: var(--sdh-ink) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
body.woocommerce-cart .wc-block-cart-item__remove-link:focus-visible,
body.woocommerce-checkout .wc-block-components-button:focus-visible {
  outline: 3px solid var(--sdh-focus) !important;
  outline-offset: 3px;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title {
  margin: 10px 0 18px;
  color: var(--sdh-ink);
  font: 700 clamp(30px, 4vw, 44px)/1.1 var(--sdh-font-display);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { overflow: hidden; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 !important;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (min-width: 881px) {
  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-checkout .wc-block-checkout { gap: 28px !important; }
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    flex: 0 0 35% !important;
    width: 35% !important;
    max-width: 410px !important;
    margin: 0 !important;
  }
}

@media (max-width: 880px) {
  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-checkout .wc-block-checkout__main { width: 100% !important; }
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: none !important;
    margin-top: 18px !important;
  }
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.woocommerce-cart #main .hero-section,
  body.woocommerce-checkout #main .hero-section,
  body.woocommerce-cart .entry-content,
  body.woocommerce-checkout .entry-content { width: calc(100% - 32px); }
  body.woocommerce-cart #main .hero-section,
  body.woocommerce-checkout #main .hero-section { padding-block: 32px 22px; }
  body.woocommerce-cart .entry-content,
  body.woocommerce-checkout .entry-content { padding-top: 24px; }
  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar { padding: 20px 16px !important; }
  body.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 76px 1fr !important; }
  body.woocommerce-cart .wc-block-cart-item__image { width: 76px !important; }
  .wc-block-components-quantity-selector__button { min-width: 40px !important; min-height: 40px !important; }
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: 1fr;
  }
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
    padding-inline: 0 !important;
  }
}

@media (max-width: 420px) {
  #header [data-device="mobile"] .ct-header-account { display: none; }
  #header [data-device="mobile"] .site-logo-container img { max-width: 48vw; }
  body.home .elementor-element-secHeroBtns > .elementor-container { flex-direction: column; }
  body.home .elementor-element-secHeroBtns .elementor-column,
  body.home .elementor-element-secHeroBtns .elementor-widget,
  body.home .elementor-element-secHeroBtns .elementor-button { width: 100% !important; }
  body.home .sdh-hero-trust { grid-template-columns: 1fr; padding-block: 8px; }
  body.home .sdh-hero-trust-item,
  body.home .sdh-hero-trust-item:first-child { min-height: 52px; padding: 6px 4px; }
  body.home .sdh-hero-trust-item + .sdh-hero-trust-item { border-top: 1px solid #e2e4e6; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .elementor-invisible { visibility: visible !important; }
}

/* Cierre de la etapa 1: anula únicamente reglas heredadas con mayor especificidad. */
html body #header [data-row="middle"],
html body #header [data-row="bottom"] { background: #fff !important; background-color: #fff !important; }

/* ========================================================================== */
/* Etapa 2: presentación institucional debajo del hero                        */
/* ========================================================================== */

body.home .elementor-element-secCats01,
body.home .elementor-element-secFeat01,
body.home .elementor-element-secSale01 {
  display: none !important;
}
body.home #main,
body.home .site-main { padding-bottom: 0 !important; margin-bottom: 0 !important; }

body.home .elementor-element-secWhy01,
body.home .elementor-element-secBrands1,
body.home .elementor-element-secServ1,
body.home .elementor-element-secWhole1 {
  padding: 0 !important;
  background: transparent !important;
}

body.home .elementor-element-secWhy01 > .elementor-container,
body.home .elementor-element-secBrands1 > .elementor-container,
body.home .elementor-element-secServ1 > .elementor-container,
body.home .elementor-element-secWhole1 > .elementor-container {
  width: min(1320px, calc(100% - 40px));
  max-width: 1320px !important;
}

.sdh-section-kicker {
  margin: 0 0 8px;
  color: #9a6b00;
  font: 800 12px/1.3 var(--sdh-font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sdh-why-label h2,
.sdh-brands-label h2,
.sdh-serv-label h2 {
  margin: 0;
  color: var(--sdh-ink);
  font: 700 clamp(32px, 3.3vw, 46px)/1 var(--sdh-font-display);
  letter-spacing: -.02em;
  text-transform: none;
}

/* Por qué elegirnos */
body.home .elementor-element-secWhy01 { padding: clamp(64px, 7vw, 96px) 0 !important; background: var(--sdh-soft) !important; }
.sdh-why-bar { display: grid; grid-template-columns: minmax(190px, .7fr) 3fr; gap: 32px; align-items: stretch; }
.sdh-why-label { padding: 22px 8px 22px 0; }
.sdh-why-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sdh-why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #e6e8ea;
  border-radius: var(--sdh-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(21, 24, 28, .05);
}
.sdh-why-ic,
.sdh-serv-ic {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff4d2;
  color: #956700;
}
.sdh-why-ic svg,
.sdh-serv-ic svg { width: 23px; height: 23px; }
.sdh-why-item h3,
.sdh-serv-item h3 { margin: 0 0 6px; color: var(--sdh-ink); font: 700 15px/1.3 var(--sdh-font-body); }
.sdh-why-item p,
.sdh-serv-item p { margin: 0; color: var(--sdh-muted); font: 400 13px/1.55 var(--sdh-font-body); }

/* Marcas existentes: wordmarks textuales, sin logos inventados ni carrusel. */
body.home .elementor-element-secBrands1 { padding: clamp(54px, 6vw, 76px) 0 !important; background: #fff !important; }
.sdh-brands-bar { display: grid; grid-template-columns: minmax(260px, .9fr) 2.4fr; gap: 46px; align-items: center; padding: 0; }
.sdh-brands-label > p:last-child { max-width: 380px; margin: 13px 0 0; color: var(--sdh-muted); font-size: 14px; line-height: 1.6; }
.sdh-brands-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sdh-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e7e9eb;
  border-radius: 7px;
  background: #fff;
  color: #34383d;
  font: 800 13px/1.2 var(--sdh-font-body);
  letter-spacing: -.02em;
  text-align: center;
  text-transform: uppercase;
}

/* Franja de marcas del home. Los wordmarks son fallbacks reemplazables por IMG. */
body.home .elementor-element-secBrands1 {
  padding: 34px 0 !important;
  border-block: 1px solid #e7e9eb;
}
body.home .elementor-element-secBrands1 > .elementor-container {
  width: min(1320px, calc(100% - 40px));
  max-width: 1320px !important;
}
.home-brands {
  display: grid;
  grid-template-columns: clamp(210px, 19vw, 250px) minmax(0, 1fr);
  min-height: 98px;
  overflow: hidden;
  border: 1px solid #e3e6e8;
  border-radius: var(--sdh-radius);
  background: var(--sdh-paper);
  box-shadow: 0 5px 18px rgba(21,24,28,.045);
}
.home-brands__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px;
  border-right: 1px solid #e3e6e8;
  background: #fafbfb;
}
.home-brands__title,
.home-brands__subtitle { margin: 0; text-transform: uppercase; }
.home-brands__title {
  color: var(--sdh-ink);
  font: 800 13px/1.25 var(--sdh-font-body);
  letter-spacing: .055em;
}
.home-brands__subtitle {
  margin-top: 5px;
  color: #946700;
  font: 700 11px/1.3 var(--sdh-font-body);
  letter-spacing: .075em;
}
.home-brands__subtitle:empty { display: none; }
.home-brands__logos {
  display: grid;
  grid-template-columns: repeat(11, minmax(68px, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-brands__logo-item {
  display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-right: 1px solid #eef0f1;
  transition: background-color .18s ease;
}
.home-brands__logo-item:last-child { border-right: 0; }
.home-brands__logo-item:hover { background: #fff9e9; }
.home-brands__wordmark {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  color: #343a40;
  font: 800 clamp(11px, .82vw, 14px)/1 var(--sdh-font-body);
  letter-spacing: -.025em;
  text-align: center;
  white-space: nowrap;
}
.home-brands__wordmark b { color: #946700; font-weight: 800; }
.home-brands__wordmark small {
  display: block;
  margin-left: 3px;
  color: #6a7076;
  font-size: .54em;
  letter-spacing: .04em;
}
.home-brands__wordmark--3m { color: #c8202f; font-size: clamp(20px, 1.7vw, 27px); letter-spacing: -.09em; }
.home-brands__wordmark--kim { color: #1a6574; }
.home-brands__wordmark--maverick {
  flex-direction: column;
  gap: 3px;
  line-height: .9;
}
.home-brands__wordmark--maverick small {
  margin-left: 0;
  line-height: 1;
}
.home-brands__wordmark--steelpro {
  flex-direction: column;
  gap: 3px;
  line-height: .9;
}
.home-brands__wordmark--steelpro small {
  margin-left: 0;
  line-height: 1;
}
.home-brands__wordmark--croydon { font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.home-brands__wordmark--evacol { color: #287c46; font-size: clamp(15px, 1.15vw, 19px); text-transform: lowercase; }
.home-brands__wordmark--insafe { color: #1d6b78; letter-spacing: .04em; }
.home-brands__wordmark--latina { color: #925b16; font-family: Georgia, serif; font-style: italic; }
.home-brands__logo-image {
  display: block;
  width: 100%;
  max-width: 92px;
  height: 34px;
  border-radius: 4px;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .home-brands { grid-template-columns: 230px minmax(0, 1fr); }
  .home-brands__logos { grid-template-columns: repeat(6, minmax(90px, 1fr)); }
  .home-brands__logo-item { min-height: 72px; border-bottom: 1px solid #eef0f1; }
}

@media (max-width: 991px) {
  .home-brands { grid-template-columns: 1fr; }
  .home-brands__intro {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid #e3e6e8;
    text-align: center;
  }
  .home-brands__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-brands__wordmark { font-size: 13px; }
  .home-brands__wordmark--3m { font-size: 25px; }
  .home-brands__wordmark--evacol { font-size: 18px; }
}

@media (max-width: 767px) {
  body.home .elementor-element-secBrands1 { padding: 28px 0 !important; }
  body.home .elementor-element-secBrands1 > .elementor-container { width: calc(100% - 32px); }
  .home-brands__intro { padding: 18px 20px; text-align: left; }
  .home-brands__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-brands__logo-item { min-height: 68px; }
  .home-brands__logo-item:nth-child(2n) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-brands__logo-item { transition: none; }
}

/* Servicios */
body.home .elementor-element-secServ1 { padding: clamp(64px, 7vw, 92px) 0 !important; background: var(--sdh-soft) !important; }
.sdh-serv-bar { display: grid; grid-template-columns: minmax(210px, .7fr) 3fr; gap: 32px; align-items: stretch; padding: 0; }
.sdh-serv-label { padding: 22px 8px 22px 0; }
.sdh-serv-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sdh-serv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #e5e7e9;
  border-radius: var(--sdh-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(21, 24, 28, .05);
}

/* CTA */
body.home .elementor-element-secWhole1 {
  padding: clamp(42px, 5vw, 64px) 0 !important;
  background: var(--sdh-safety) !important;
  background-image: linear-gradient(120deg, #ffb800 0%, #ffc633 68%, #ffb800 100%) !important;
}
body.home .elementor-element-secWhole1 > .elementor-container > .elementor-column > .elementor-widget-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  grid-template-areas: "title buttons" "text buttons";
  column-gap: 46px;
  align-items: center;
}
body.home .elementor-element-wWholeH { grid-area: title; margin: 0 !important; }
body.home .elementor-element-wWholeTx { grid-area: text; margin: 7px 0 0 !important; }
body.home .elementor-element-secWholeBtns { grid-area: buttons; margin: 0 !important; }
body.home .elementor-element-wWholeH .elementor-heading-title {
  color: var(--sdh-ink) !important;
  font: 700 clamp(30px, 3vw, 42px)/1 var(--sdh-font-display) !important;
  text-align: left;
  text-transform: none;
}
body.home .elementor-element-wWholeTx p { margin: 0 !important; color: var(--sdh-ink) !important; text-align: left !important; font-size: 15px; }
body.home .elementor-element-secWholeBtns .elementor-container { display: flex; gap: 12px; }
body.home .elementor-element-secWholeBtns .elementor-column { width: 50% !important; }
body.home .elementor-element-secWholeBtns .elementor-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--sdh-ink) !important;
  border-radius: var(--sdh-radius) !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  text-transform: none;
}
body.home .elementor-element-wWholeBtn2 .elementor-button { background: transparent !important; color: var(--sdh-ink) !important; }
body.home .elementor-element-secWholeBtns .elementor-button:hover { background: #000 !important; color: #fff !important; }
body.home .elementor-element-secWholeBtns .elementor-button:active { transform: translateY(1px); }
body.home .elementor-element-secWholeBtns .elementor-button:focus-visible { outline: 3px solid var(--sdh-focus) !important; outline-offset: 3px; }

/* Footer */
#footer.ct-footer { background: var(--sdh-ink) !important; }
#footer [data-row="middle"] { padding-block: clamp(54px, 6vw, 78px); }
#footer [data-row="middle"] > .ct-container { align-items: start; gap: clamp(22px, 3vw, 48px); }
#footer .sdh-footer-logo { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 18px; }
#footer .sdh-footer-logo img { display: block; width: min(270px, 100%); height: auto; }
#footer .sdh-foot h2 {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0 0 7px;
  border-bottom: 3px solid var(--sdh-safety);
  color: #fff;
  font: 700 21px/1 var(--sdh-font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}
#footer .sdh-foot h2.sdh-foot-subtitle { margin-top: 26px; }
#footer .sdh-foot p,
#footer .sdh-foot address { margin: 0 0 12px; color: #bdc1c5; font: normal 400 13px/1.7 var(--sdh-font-body); }
#footer .sdh-foot-brand p { max-width: 390px; }
#footer .sdh-foot-links,
#footer .sdh-foot-contact,
#footer .sdh-foot-social { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
#footer .sdh-foot a { color: #d6d9dc; text-decoration: none; }
#footer .sdh-foot nav a { min-height: 28px; font-size: 13px; line-height: 1.5; }
#footer .sdh-foot a:hover { color: var(--sdh-safety); }
#footer .sdh-foot a:focus-visible { outline: 3px solid var(--sdh-safety); outline-offset: 3px; border-radius: 3px; }
#footer [data-row="bottom"] { border-top: 1px solid rgba(255,255,255,.12); }
#footer [data-row="bottom"] .ct-container { min-height: 70px; }

@media (max-width: 1180px) {
  .sdh-why-bar,
  .sdh-serv-bar { grid-template-columns: 1fr; }
  .sdh-why-label,
  .sdh-serv-label { padding: 0; }
  .sdh-brands-list { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
}

@media (max-width: 900px) {
  .sdh-why-items,
  .sdh-serv-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdh-brands-bar { grid-template-columns: 1fr; gap: 28px; }
  body.home .elementor-element-secWhole1 > .elementor-container > .elementor-column > .elementor-widget-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "text" "buttons";
    row-gap: 10px;
  }
  body.home .elementor-element-secWholeBtns { margin-top: 20px !important; }
}

@media (max-width: 600px) {
  body.home .elementor-element-secWhy01 > .elementor-container,
  body.home .elementor-element-secBrands1 > .elementor-container,
  body.home .elementor-element-secServ1 > .elementor-container,
  body.home .elementor-element-secWhole1 > .elementor-container { width: calc(100% - 32px); }
  .sdh-why-items,
  .sdh-serv-items { grid-template-columns: 1fr; }
  .sdh-why-item,
  .sdh-serv-item { padding: 20px 18px; }
  .sdh-brands-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .elementor-element-secWholeBtns .elementor-container { flex-direction: column; }
  body.home .elementor-element-secWholeBtns .elementor-column { width: 100% !important; }
  #footer [data-row="middle"] > .ct-container { gap: 38px; }
}

/* Sobrescribe la antigua versión flex de estas franjas guardada en Additional CSS. */
body.home .sdh-why-items,
body.home .sdh-serv-items {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
body.home .sdh-why-item,
body.home .sdh-serv-item { width: auto !important; max-width: none !important; }

/* Tablet horizontal: encabezado arriba y tarjetas 2 x 2, sin compresión. */
@media (min-width: 901px) and (max-width: 1180px) {
  body.home .sdh-why-bar,
  body.home .sdh-serv-bar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px;
  }
  body.home .sdh-why-items,
  body.home .sdh-serv-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }
  body.home .sdh-why-item,
  body.home .sdh-serv-item {
    min-height: 156px;
    height: 100%;
  }
}

@media (max-width: 900px) {
  body.home .sdh-why-items,
  body.home .sdh-serv-items { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 600px) {
  body.home .sdh-why-items,
  body.home .sdh-serv-items { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 420px) {
  html body #header [data-device="mobile"] div.ct-header-account { display: none !important; visibility: hidden !important; }
  html body #header [data-device="mobile"] .site-logo-container img { width: auto !important; max-width: 140px !important; }
  html body #header [data-device="mobile"] [data-column="end"] [data-items] { gap: 0 !important; }
  html body #header [data-device="mobile"] .ct-header-search,
  html body #header [data-device="mobile"] .ct-cart-item,
  html body #header [data-device="mobile"] .ct-header-trigger { min-width: 42px; width: 42px; }
  html body #header [data-device="mobile"] [data-row="middle"] .ct-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: 100% !important;
    padding-inline: 12px !important;
  }
}

/* ========================================================================== */
/* Catálogo WooCommerce: tienda, categorías, filtros y producto individual    */
/* ========================================================================== */

body.post-type-archive-product,
body.tax-product_cat,
body.single-product {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.post-type-archive-product #main,
body.tax-product_cat #main,
body.single-product #main {
  background: linear-gradient(180deg, #fff 0, var(--sdh-soft) 190px) !important;
}

body.post-type-archive-product #main > .ct-container,
body.tax-product_cat #main > .ct-container,
body.single-product .product-entry-wrapper,
body.single-product .woocommerce-tabs,
body.single-product section.related {
  width: min(1280px, calc(100% - 40px));
  max-width: 1280px !important;
  margin-inline: auto;
}

/* Controles y sidebar del catálogo */
body.post-type-archive-product #main > .ct-container,
body.tax-product_cat #main > .ct-container {
  padding-block: 48px 72px;
  gap: 36px;
}

body.post-type-archive-product #sidebar,
body.tax-product_cat #sidebar {
  align-self: flex-start;
  padding: 24px 20px;
  border: 1px solid #e3e6e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21,24,28,.065);
}

body.post-type-archive-product #sidebar h2,
body.post-type-archive-product #sidebar h3,
body.tax-product_cat #sidebar h2,
body.tax-product_cat #sidebar h3 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--sdh-safety);
  color: var(--sdh-ink);
  font: 700 22px/1.1 var(--sdh-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}

body.post-type-archive-product #sidebar .wc-block-product-categories-list,
body.tax-product_cat #sidebar .wc-block-product-categories-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

body.post-type-archive-product #sidebar .wc-block-product-categories-list-item,
body.tax-product_cat #sidebar .wc-block-product-categories-list-item {
  margin: 0;
  border-bottom: 1px solid #eceeef;
}

body.post-type-archive-product #sidebar .wc-block-product-categories-list-item a,
body.tax-product_cat #sidebar .wc-block-product-categories-list-item a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: #41464c;
  font: 500 14px/1.35 var(--sdh-font-body);
}

body.post-type-archive-product #sidebar .wc-block-product-categories-list-item a:hover,
body.tax-product_cat #sidebar .wc-block-product-categories-list-item a:hover,
body.post-type-archive-product #sidebar .current-cat > a,
body.tax-product_cat #sidebar .current-cat > a { color: #8c6200; padding-left: 5px; }

body.post-type-archive-product #sidebar .woocommerce-widget-layered-nav-list,
body.tax-product_cat #sidebar .woocommerce-widget-layered-nav-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

body.post-type-archive-product #sidebar .woocommerce-widget-layered-nav-list__item,
body.tax-product_cat #sidebar .woocommerce-widget-layered-nav-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid #eceeef;
  font: 500 14px/1.35 var(--sdh-font-body);
}

body.post-type-archive-product #sidebar .woocommerce-widget-layered-nav-list__item a,
body.tax-product_cat #sidebar .woocommerce-widget-layered-nav-list__item a {
  color: #41464c;
}

body.post-type-archive-product #sidebar .woocommerce-widget-layered-nav-list__item a:hover,
body.tax-product_cat #sidebar .woocommerce-widget-layered-nav-list__item a:hover,
body.post-type-archive-product #sidebar .woocommerce-widget-layered-nav-list__item--chosen a,
body.tax-product_cat #sidebar .woocommerce-widget-layered-nav-list__item--chosen a { color: #8c6200; }


.woocommerce .woocommerce-result-count {
  margin: 0;
  color: var(--sdh-muted);
  font: 700 12px/44px var(--sdh-font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.woocommerce .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce .woocommerce-ordering select {
  min-width: 240px;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid #dfe2e4;
  border-radius: 7px;
  background-color: #fff;
  color: #41464c;
  font: 500 14px/1 var(--sdh-font-body);
}
.woocommerce .woocommerce-ordering select:focus-visible {
  outline: 3px solid var(--sdh-focus);
  outline-offset: 2px;
  border-color: var(--sdh-focus);
}

/* Banner real de categoría */
.woocommerce .sdh-category-banner {
  margin: 0 0 28px;
  border: 1px solid #e2e4e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sdh-shadow);
}
.woocommerce .sdh-category-banner-img { width: 100%; max-height: 360px; object-fit: cover; }

/* Tarjetas de producto */
body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0 !important;
}

body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product {
  display: flex;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 14px 16px;
  flex-direction: column;
  border: 1px solid #e4e7e9 !important;
  border-radius: 10px;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(21,24,28,.045) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.post-type-archive-product .woocommerce ul.products li.product:hover,
body.tax-product_cat .woocommerce ul.products li.product:hover {
  border-color: rgba(255,184,0,.7);
  box-shadow: 0 10px 24px rgba(21,24,28,.095);
  transform: translateY(-3px);
}

body.post-type-archive-product .woocommerce ul.products li.product .ct-media-container,
body.tax-product_cat .woocommerce ul.products li.product .ct-media-container {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 16px;
  border-radius: 7px;
  background: var(--sdh-soft);
}

body.post-type-archive-product .woocommerce ul.products li.product img,
body.tax-product_cat .woocommerce ul.products li.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .22s ease;
}
body.post-type-archive-product .woocommerce ul.products li.product:hover img,
body.tax-product_cat .woocommerce ul.products li.product:hover img { transform: scale(1.025); }

body.post-type-archive-product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce-loop-product__title {
  min-height: 44px;
  margin: 0 0 8px !important;
  color: var(--sdh-ink) !important;
  font: 700 15px/1.4 var(--sdh-font-body) !important;
  text-align: left;
  text-transform: none !important;
}

body.post-type-archive-product .woocommerce-loop-product__title a,
body.tax-product_cat .woocommerce-loop-product__title a { color: inherit; }

body.post-type-archive-product .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price {
  margin: auto 0 14px;
  color: #8c6200 !important;
  font: 800 16px/1.35 var(--sdh-font-body);
  text-align: left;
}

body.post-type-archive-product .woocommerce ul.products li.product .button,
body.tax-product_cat .woocommerce ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px !important;
  border-radius: 7px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 12px/1.2 var(--sdh-font-body);
  letter-spacing: .02em;
  text-align: center;
}

body.post-type-archive-product .woocommerce ul.products li.product .button:hover,
body.tax-product_cat .woocommerce ul.products li.product .button:hover {
  background: var(--sdh-safety-hover) !important;
  color: var(--sdh-ink) !important;
}

.woocommerce span.onsale {
  top: 22px !important;
  left: 22px !important;
  min-width: auto;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 10px/1.8 var(--sdh-font-body);
}

/* Ficha individual */
body.single-product .ct-container-full[data-content="normal"] { padding-block: 38px 72px; }
body.single-product .hero-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 18px;
}
body.single-product .ct-breadcrumbs { color: var(--sdh-muted); font-size: 12px; }
body.single-product .ct-breadcrumbs a { color: #765500; }

body.single-product .product-entry-wrapper {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}

body.single-product .woocommerce-product-gallery,
body.single-product .summary.entry-summary {
  width: 100% !important;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21,24,28,.065);
}

body.single-product .woocommerce-product-gallery .ct-media-container {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--sdh-soft);
}
body.single-product .woocommerce-product-gallery img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

body.single-product .summary .product_title {
  margin: 0 0 12px;
  color: var(--sdh-ink);
  font: 800 clamp(30px, 3vw, 42px)/1.08 var(--sdh-font-body);
  letter-spacing: -.035em;
}
body.single-product .summary .price {
  margin: 0 0 22px;
  color: #8c6200 !important;
  font: 800 clamp(24px, 2.2vw, 32px)/1.2 var(--sdh-font-body);
}
body.single-product .woocommerce-product-details__short-description {
  padding: 18px 0;
  border-block: 1px solid #e5e7e9;
  color: var(--sdh-muted);
  font: 400 15px/1.65 var(--sdh-font-body);
}
body.single-product .stock { color: #3b6844 !important; font: 700 14px/1.4 var(--sdh-font-body); }
body.single-product form.cart { display: flex; gap: 12px; align-items: stretch; margin: 20px 0 0; }
body.single-product form.cart .quantity {
  display: flex;
  position: relative;
  align-items: center;
  min-width: 132px;
  min-height: 48px;
  border: 1px solid #d9dde0;
  border-radius: 7px;
  background: #fff;
}
body.single-product form.cart .quantity input,
body.single-product form.cart .quantity button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--sdh-ink); }
body.single-product form.cart .quantity input { width: 100%; min-height: 44px; padding-inline: 44px; border: 0; text-align: center; }
body.single-product .single_add_to_cart_button {
  min-height: 48px;
  padding-inline: 28px !important;
  border-radius: 7px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 13px/1.2 var(--sdh-font-body);
}
body.single-product .single_add_to_cart_button:hover { background: var(--sdh-safety-hover) !important; color: var(--sdh-ink) !important; }

body.single-product .sdh-product-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  min-height: 50px;
  border-radius: 8px;
  background: #25D366;
  color: #fff;
  font: 800 14px/1.2 var(--sdh-font-body);
  text-decoration: none;
}
body.single-product .sdh-product-whatsapp-cta:hover { background: #1ebe5b; color: #fff; }
body.single-product .sdh-product-whatsapp-cta svg { flex-shrink: 0; }

body.single-product .sdh-payment-trust {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e2e5e7;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
body.single-product .sdh-payment-trust-title {
  display: block;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7e9;
  color: var(--sdh-muted);
  font: 700 12px/1.2 var(--sdh-font-body);
  text-transform: uppercase;
  letter-spacing: .04em;
}
body.single-product .sdh-payment-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
body.single-product .sdh-payment-trust-logos img { height: 26px; width: auto; }
body.single-product .sdh-payment-trust-addi { height: 20px !important; }
body.single-product .sdh-payment-trust-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d9dde0;
  border-radius: 5px;
  color: var(--sdh-ink);
  font: 800 11px/1 var(--sdh-font-body);
  white-space: nowrap;
}

body.single-product .product_meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5e7e9; color: var(--sdh-muted); font-size: 12px; }

body.single-product .woocommerce-tabs {
  margin-top: 36px;
  padding: 24px clamp(20px, 3vw, 36px) 32px;
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21,24,28,.055);
}
body.single-product .woocommerce-tabs ul.tabs { margin-bottom: 24px !important; }
body.single-product .woocommerce-tabs ul.tabs li a { color: var(--sdh-muted) !important; font-family: var(--sdh-font-body); }
body.single-product .woocommerce-tabs ul.tabs li.active a { border-color: var(--sdh-safety) !important; color: var(--sdh-ink) !important; }
body.single-product .woocommerce-Tabs-panel h2,
body.single-product #reviews h2 { color: var(--sdh-ink); font: 700 28px/1.15 var(--sdh-font-display); }
body.single-product #reviews { color: var(--sdh-muted); }

.woocommerce a:focus-visible,
.woocommerce button:focus-visible,
.woocommerce input:focus-visible,
.woocommerce select:focus-visible {
  outline: 3px solid var(--sdh-focus) !important;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  body.post-type-archive-product .woocommerce ul.products,
  body.tax-product_cat .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
  body.post-type-archive-product #main > .ct-container,
  body.tax-product_cat #main > .ct-container { display: block; padding-top: 32px; }
  body.post-type-archive-product #sidebar,
  body.tax-product_cat #sidebar {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: min(360px, calc(100vw - 32px));
    max-height: 70vh;
    overflow: auto;
  }
  body.post-type-archive-product #sidebar.sdh-open,
  body.tax-product_cat #sidebar.sdh-open { display: block; }
  .sdh-filter-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    min-width: 190px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dfe2e4 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--sdh-ink) !important;
    font: 700 13px/1.2 var(--sdh-font-body);
  }
  body.single-product .product-entry-wrapper { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 767px) {
  body.post-type-archive-product #main > .ct-container,
  body.tax-product_cat #main > .ct-container,
  body.single-product .product-entry-wrapper,
  body.single-product .woocommerce-tabs,
  body.single-product section.related { width: calc(100% - 32px); }
  body.post-type-archive-product .woocommerce ul.products,
  body.tax-product_cat .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  body.single-product .product-entry-wrapper { grid-template-columns: 1fr; }
  body.single-product .summary .product_title { font-size: clamp(28px, 8vw, 36px); }
  .woocommerce .sdh-category-banner-img { min-height: 180px; object-fit: cover; }
}

@media (max-width: 520px) {
  body.post-type-archive-product .sdh-shop-controls,
  body.tax-product_cat .sdh-shop-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: stretch !important;
    gap: 10px;
    width: 100%;
  }
  body.post-type-archive-product .sdh-shop-controls .sdh-filter-toggle,
  body.tax-product_cat .sdh-shop-controls .sdh-filter-toggle {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding-inline: 12px;
    white-space: nowrap;
  }
  body.post-type-archive-product .sdh-shop-controls form.woocommerce-ordering,
  body.tax-product_cat .sdh-shop-controls form.woocommerce-ordering {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body.post-type-archive-product .sdh-shop-controls form.woocommerce-ordering select,
  body.tax-product_cat .sdh-shop-controls form.woocommerce-ordering select {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    background-position: center !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
    cursor: pointer;
  }
  body.post-type-archive-product .sdh-shop-controls form.woocommerce-ordering .ct-sort-icon,
  body.tax-product_cat .sdh-shop-controls form.woocommerce-ordering .ct-sort-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  body.post-type-archive-product .sdh-shop-controls form.woocommerce-ordering select option,
  body.tax-product_cat .sdh-shop-controls form.woocommerce-ordering select option {
    color: var(--sdh-ink);
    font-size: 14px;
  }
  body.post-type-archive-product .woocommerce ul.products,
  body.tax-product_cat .woocommerce ul.products { grid-template-columns: 1fr; }
  body.post-type-archive-product .woocommerce ul.products li.product,
  body.tax-product_cat .woocommerce ul.products li.product { padding: 14px; }
  body.single-product form.cart { flex-direction: column; }
  body.single-product form.cart .quantity,
  body.single-product .single_add_to_cart_button { width: 100%; }
}

/* ========================================================================== */
/* Página Ofertas: conserva el shortcode dinámico de WooCommerce              */
/* ========================================================================== */

body.page-id-23 {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.page-id-23 #main {
  background: linear-gradient(180deg, #fff 0, var(--sdh-soft) 250px) !important;
}

body.page-id-23 #main > .ct-container-full { padding-block: 0 72px; }

html body.page-id-23 #main .hero-section {
  display: none !important;
}

html body.page-id-23 #main .ct-breadcrumbs {
  margin-bottom: 12px;
  color: var(--sdh-muted);
  font: 500 12px/1.4 var(--sdh-font-body);
}
html body.page-id-23 #main .ct-breadcrumbs a { color: #765500; }

html body.page-id-23 #main .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(38px, 4.5vw, 56px)/1 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}
html body.page-id-23 #main .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
}

body.page-id-23 .entry-content {
  width: min(1280px, calc(100% - 40px));
  max-width: 1280px !important;
  margin: 0 auto;
  padding-top: 34px;
}

body.page-id-23 .entry-content > .woocommerce { max-width: none !important; }

body.page-id-23 .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
  padding: 0;
}

body.page-id-23 .woocommerce ul.products li.product {
  display: flex;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 16px 16px 18px;
  flex-direction: column;
  border: 1px solid #e3e6e8 !important;
  border-radius: 11px;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(21,24,28,.055) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.page-id-23 .woocommerce ul.products li.product:hover {
  border-color: rgba(255,184,0,.75) !important;
  box-shadow: 0 12px 28px rgba(21,24,28,.11) !important;
  transform: translateY(-3px);
}

body.page-id-23 .woocommerce ul.products li.product .ct-media-container {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 18px;
  border-radius: 8px;
  background: var(--sdh-soft);
}

body.page-id-23 .woocommerce ul.products li.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .22s ease;
}
body.page-id-23 .woocommerce ul.products li.product:hover img { transform: scale(1.025); }

body.page-id-23 .woocommerce-loop-product__title {
  min-height: 46px;
  margin: 0 0 10px !important;
  color: var(--sdh-ink) !important;
  font: 750 17px/1.35 var(--sdh-font-body) !important;
  text-align: left;
  text-transform: none !important;
}
body.page-id-23 .woocommerce-loop-product__title a { color: inherit; }

body.page-id-23 .woocommerce ul.products li.product .price {
  display: flex;
  min-height: 28px;
  margin: auto 0 16px;
  align-items: baseline;
  gap: 8px;
  color: #8c6200 !important;
  font: 800 18px/1.3 var(--sdh-font-body);
  text-align: left;
}
body.page-id-23 .woocommerce ul.products li.product .price del {
  order: 2;
  color: #7a7f84;
  font-size: 12px;
  font-weight: 500;
  opacity: .9;
}
body.page-id-23 .woocommerce ul.products li.product .price ins {
  order: 1;
  color: #8c6200;
  text-decoration: none;
}

body.page-id-23 .woocommerce ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px !important;
  border-radius: 7px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 13px/1.2 var(--sdh-font-body);
}
body.page-id-23 .woocommerce ul.products li.product .button:hover {
  background: var(--sdh-safety-hover) !important;
  color: var(--sdh-ink) !important;
}

body.page-id-23 .woocommerce span.onsale {
  top: 28px !important;
  left: 28px !important;
  z-index: 3;
  min-height: 29px;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 10px/1.9 var(--sdh-font-body);
}

@media (max-width: 900px) {
  body.page-id-23 .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body.page-id-23 .hero-section,
  body.page-id-23 .entry-content { width: calc(100% - 32px); }
  body.page-id-23 .hero-section { padding-block: 32px 22px; }
  body.page-id-23 .entry-content { padding-top: 24px; }
  body.page-id-23 .woocommerce ul.products { grid-template-columns: 1fr; gap: 16px; }
  body.page-id-23 .woocommerce ul.products li.product .ct-media-container { aspect-ratio: 1; }
}

/* ========================================================================== */
/* Página Quiénes somos: contenido institucional real                         */
/* ========================================================================== */

body.page-id-24 {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.page-id-24 #main {
  background:
    linear-gradient(180deg, #fff 0, #fff 210px, rgba(245,246,247,.94) 430px),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.page-id-24 #main > .ct-container-full { padding-block: 0 72px; }

html body.page-id-24 #main .hero-section {
  display: block !important;
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 0 26px;
  border-bottom: 1px solid #e2e5e7;
}

html body.page-id-24 #main .ct-breadcrumbs {
  margin-bottom: 12px;
  color: var(--sdh-muted);
  font: 500 12px/1.4 var(--sdh-font-body);
}
html body.page-id-24 #main .ct-breadcrumbs a { color: #765500; }

html body.page-id-24 #main .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(38px, 4.6vw, 58px)/1 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}
html body.page-id-24 #main .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
}

body.page-id-24 .entry-content {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: 0 auto;
  padding-top: 34px;
}

body.page-id-24 .sdh-qs-lead {
  max-width: 900px;
  margin: 0 auto 38px;
  color: #3e444a;
  font: 500 clamp(17px, 1.55vw, 20px)/1.7 var(--sdh-font-body);
  text-align: center;
}
body.page-id-24 .sdh-qs-lead strong { color: var(--sdh-ink); font-weight: 800; }

body.page-id-24 .sdh-qs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 22px;
}

body.page-id-24 .sdh-qs-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: 28px 30px;
  border: 1px solid #e2e5e7;
  border-left: 5px solid var(--sdh-safety);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(21,24,28,.06);
}
body.page-id-24 .sdh-qs-grid .sdh-qs-card { min-height: 190px; margin-bottom: 0; }

body.page-id-24 .sdh-qs-card::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 92px;
  height: 92px;
  border: 16px solid rgba(255,184,0,.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.page-id-24 .sdh-qs-card h2 {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--sdh-safety);
  color: var(--sdh-ink);
  font: 700 clamp(24px, 2.4vw, 31px)/1 var(--sdh-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}

body.page-id-24 .sdh-qs-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--sdh-muted);
  font: 400 15px/1.72 var(--sdh-font-body);
}

body.page-id-24 .sdh-qs-wide {
  display: grid;
  min-height: 138px;
  grid-template-columns: minmax(230px, .65fr) minmax(0, 2fr);
  column-gap: 34px;
  align-items: center;
}
body.page-id-24 .sdh-qs-wide h2 { margin-bottom: 0; }

body.page-id-24 .sdh-qs-cta {
  margin-top: 30px;
  padding: 34px clamp(22px, 4vw, 48px);
  border: 1px solid #e0a500;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--sdh-safety), #ffc83d);
  box-shadow: 0 10px 26px rgba(140,98,0,.16);
  text-align: center;
}
body.page-id-24 .sdh-qs-cta p {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
body.page-id-24 .sdh-qs-cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  margin: 0;
  padding: 10px 22px !important;
  border: 2px solid var(--sdh-ink) !important;
  border-radius: 7px !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  text-decoration: none;
}
body.page-id-24 .sdh-qs-cta .sdh-btn-outline { background: transparent !important; color: var(--sdh-ink) !important; }
body.page-id-24 .sdh-qs-cta .button:hover { background: #000 !important; color: #fff !important; }
body.page-id-24 .sdh-qs-cta .button:active { transform: translateY(1px); }
body.page-id-24 .sdh-qs-cta .button:focus-visible {
  outline: 3px solid var(--sdh-focus) !important;
  outline-offset: 3px;
}
/* Botón WhatsApp: fondo negro; en hover el borde se vuelve verde #61CE70 */
body.page-id-24 .sdh-qs-cta .button[href*="wa.me"] {
  border: 2px solid var(--sdh-ink) !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
}
body.page-id-24 .sdh-qs-cta .button[href*="wa.me"]:hover {
  background: var(--sdh-ink) !important;
  color: #fff !important;
  border-color: #61CE70 !important;
}

@media (max-width: 767px) {
  html body.page-id-24 #main .hero-section,
  body.page-id-24 .entry-content { width: calc(100% - 32px); }
  html body.page-id-24 #main .hero-section { padding-block: 34px 22px; }
  body.page-id-24 .entry-content { padding-top: 26px; }
  body.page-id-24 .sdh-qs-lead { margin-bottom: 28px; text-align: left; }
  body.page-id-24 .sdh-qs-grid { grid-template-columns: 1fr; gap: 16px; }
  body.page-id-24 .sdh-qs-grid .sdh-qs-card { min-height: 0; }
  body.page-id-24 .sdh-qs-card { margin-bottom: 16px; padding: 23px 21px; }
  body.page-id-24 .sdh-qs-wide { display: block; min-height: 0; }
  body.page-id-24 .sdh-qs-wide h2 { margin-bottom: 15px; }
  body.page-id-24 .sdh-qs-cta { margin-top: 22px; padding: 24px 18px; }
  body.page-id-24 .sdh-qs-cta p { flex-direction: column; }
  body.page-id-24 .sdh-qs-cta .button { width: 100%; min-width: 0; }
}

/* Página Maquila: mismo patrón visual que Quiénes somos (page-id-24)          */
/* ========================================================================== */

body.page-id-1828 {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.page-id-1828 #main {
  background:
    linear-gradient(180deg, #fff 0, #fff 210px, rgba(245,246,247,.94) 430px),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.page-id-1828 #main > .ct-container-full { padding-block: 0 72px; }

html body.page-id-1828 #main .hero-section {
  display: block !important;
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 0 26px;
  border-bottom: 1px solid #e2e5e7;
}

html body.page-id-1828 #main .ct-breadcrumbs {
  margin-bottom: 12px;
  color: var(--sdh-muted);
  font: 500 12px/1.4 var(--sdh-font-body);
}
html body.page-id-1828 #main .ct-breadcrumbs a { color: #765500; }

html body.page-id-1828 #main .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(38px, 4.6vw, 58px)/1 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}
html body.page-id-1828 #main .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
}

body.page-id-1828 .entry-content {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: 0 auto;
  padding-top: 34px;
}

body.page-id-1828 .sdh-qs-lead {
  max-width: 900px;
  margin: 0 auto 38px;
  color: #3e444a;
  font: 500 clamp(17px, 1.55vw, 20px)/1.7 var(--sdh-font-body);
  text-align: center;
}
body.page-id-1828 .sdh-qs-lead strong { color: var(--sdh-ink); font-weight: 800; }

body.page-id-1828 .sdh-qs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 22px;
}

body.page-id-1828 .sdh-qs-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: 28px 30px;
  border: 1px solid #e2e5e7;
  border-left: 5px solid var(--sdh-safety);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(21,24,28,.06);
}
body.page-id-1828 .sdh-qs-grid .sdh-qs-card { min-height: 190px; margin-bottom: 0; }

body.page-id-1828 .sdh-qs-card::after {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 92px;
  height: 92px;
  border: 16px solid rgba(255,184,0,.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body.page-id-1828 .sdh-qs-card h2 {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--sdh-safety);
  color: var(--sdh-ink);
  font: 700 clamp(24px, 2.4vw, 31px)/1 var(--sdh-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}

body.page-id-1828 .sdh-qs-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--sdh-muted);
  font: 400 15px/1.72 var(--sdh-font-body);
}

body.page-id-1828 .sdh-qs-wide {
  display: grid;
  min-height: 138px;
  grid-template-columns: minmax(230px, .65fr) minmax(0, 2fr);
  column-gap: 34px;
  align-items: center;
}
body.page-id-1828 .sdh-qs-wide h2 { margin-bottom: 0; }

body.page-id-1828 .sdh-qs-cta {
  margin-top: 30px;
  padding: 34px clamp(22px, 4vw, 48px);
  border: 1px solid #e0a500;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--sdh-safety), #ffc83d);
  box-shadow: 0 10px 26px rgba(140,98,0,.16);
  text-align: center;
}
body.page-id-1828 .sdh-qs-cta p {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
body.page-id-1828 .sdh-qs-cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  margin: 0;
  padding: 10px 22px !important;
  border: 2px solid var(--sdh-ink) !important;
  border-radius: 7px !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  text-decoration: none;
}
body.page-id-1828 .sdh-qs-cta .sdh-btn-outline { background: transparent !important; color: var(--sdh-ink) !important; }
body.page-id-1828 .sdh-qs-cta .button:hover { background: #000 !important; color: #fff !important; }
body.page-id-1828 .sdh-qs-cta .button:active { transform: translateY(1px); }
body.page-id-1828 .sdh-qs-cta .button:focus-visible {
  outline: 3px solid var(--sdh-focus) !important;
  outline-offset: 3px;
}
/* Botón WhatsApp: fondo negro; en hover el borde se vuelve verde #61CE70 */
body.page-id-1828 .sdh-qs-cta .button[href*="wa.me"] {
  border: 2px solid var(--sdh-ink) !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
}
body.page-id-1828 .sdh-qs-cta .button[href*="wa.me"]:hover {
  background: var(--sdh-ink) !important;
  color: #fff !important;
  border-color: #61CE70 !important;
}

@media (max-width: 767px) {
  html body.page-id-1828 #main .hero-section,
  body.page-id-1828 .entry-content { width: calc(100% - 32px); }
  html body.page-id-1828 #main .hero-section { padding-block: 34px 22px; }
  body.page-id-1828 .entry-content { padding-top: 26px; }
  body.page-id-1828 .sdh-qs-lead { margin-bottom: 28px; text-align: left; }
  body.page-id-1828 .sdh-qs-grid { grid-template-columns: 1fr; gap: 16px; }
  body.page-id-1828 .sdh-qs-grid .sdh-qs-card { min-height: 0; }
  body.page-id-1828 .sdh-qs-card { margin-bottom: 16px; padding: 23px 21px; }
  body.page-id-1828 .sdh-qs-wide { display: block; min-height: 0; }
  body.page-id-1828 .sdh-qs-wide h2 { margin-bottom: 15px; }
  body.page-id-1828 .sdh-qs-cta { margin-top: 22px; padding: 24px 18px; }
  body.page-id-1828 .sdh-qs-cta p { flex-direction: column; }
  body.page-id-1828 .sdh-qs-cta .button { width: 100%; min-width: 0; }
}

/* ========================================================================== */
/* Página Contacto: formulario CF7 + datos, alineada a la Etapa 1             */
/* ========================================================================== */

body.page-id-25 {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.page-id-25 #main {
  background:
    linear-gradient(180deg, #fff 0, #fff 210px, rgba(245,246,247,.94) 430px),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.page-id-25 #main > .ct-container-full { padding-block: 0 72px; }

/* Título centrado con subrayado ámbar (igual que Quiénes somos) */
html body.page-id-25 #main .hero-section {
  display: block !important;
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 0 26px;
  border-bottom: 1px solid #e2e5e7;
}
html body.page-id-25 #main .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(38px, 4.6vw, 58px)/1 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}
html body.page-id-25 #main .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
}

body.page-id-25 .entry-content {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: 0 auto;
  padding-top: 30px;
}
body.page-id-25 .entry-content > p:first-child {
  max-width: 860px;
  margin: 0 auto 30px;
  color: #3e444a;
  font: 500 clamp(16px, 1.4vw, 18px)/1.6 var(--sdh-font-body);
  text-align: center;
}

/* Layout: formulario (izq) + datos (der) */
body.page-id-25 .sdh-contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: 24px;
  margin-top: 0;
  align-items: start;
}

body.page-id-25 .sdh-contact-form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 24, 28, .065);
}
body.page-id-25 .sdh-contact-info {
  padding: clamp(24px, 3vw, 34px);
  border: 0;
  border-radius: 12px;
  background: var(--sdh-ink);
  box-shadow: 0 8px 24px rgba(21, 24, 28, .12);
  color: #d6d9dc;
}

body.page-id-25 .sdh-contact-form h3,
body.page-id-25 .sdh-contact-info h3 {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--sdh-safety);
  font: 700 clamp(22px, 2.2vw, 26px)/1 var(--sdh-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
body.page-id-25 .sdh-contact-form h3 { color: var(--sdh-ink); }
body.page-id-25 .sdh-contact-info h3 { color: #fff; }

body.page-id-25 .sdh-contact-list { margin: 0 0 22px; padding: 0; list-style: none; }
body.page-id-25 .sdh-contact-list li { margin: 0 0 16px; color: #c4c8cc; font: 400 14px/1.6 var(--sdh-font-body); }
body.page-id-25 .sdh-contact-list strong { color: #fff; font-weight: 700; }
body.page-id-25 .sdh-contact-info a { color: var(--sdh-safety); text-decoration: none; }
body.page-id-25 .sdh-contact-info a:hover { color: #ffce5c; text-decoration: underline; }

/* Formulario CF7 */
body.page-id-25 .wpcf7 .sdh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.page-id-25 .wpcf7 label {
  display: block;
  margin-bottom: 16px;
  color: var(--sdh-ink);
  font: 600 13px/1.4 var(--sdh-font-body);
}
body.page-id-25 .wpcf7 input[type=text],
body.page-id-25 .wpcf7 input[type=email],
body.page-id-25 .wpcf7 input[type=tel],
body.page-id-25 .wpcf7 select,
body.page-id-25 .wpcf7 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d9dde0;
  border-radius: 8px;
  background-color: #fff;
  color: var(--sdh-ink);
  font: 400 15px/1.4 var(--sdh-font-body);
}
body.page-id-25 .wpcf7 select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 48px;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315181c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  cursor: pointer;
}
body.page-id-25 .wpcf7 input:focus,
body.page-id-25 .wpcf7 select:focus,
body.page-id-25 .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--sdh-safety);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, .18);
}
body.page-id-25 .wpcf7 input[type=submit] {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 30px !important;
  border: 2px solid var(--sdh-safety) !important;
  border-radius: 8px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  text-transform: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
body.page-id-25 .wpcf7 input[type=submit]:hover {
  background: var(--sdh-safety-hover) !important;
  border-color: var(--sdh-safety-hover) !important;
}

/* Botón WhatsApp: mismo estilo que Quiénes somos (negro; borde verde en hover) */
body.page-id-25 .sdh-contact-info .button[href*="wa.me"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 22px !important;
  border: 2px solid rgba(255, 255, 255, .28) !important;
  border-radius: 8px !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  text-decoration: none;
}
body.page-id-25 .sdh-contact-info .button[href*="wa.me"]:hover {
  background: var(--sdh-ink) !important;
  border-color: #61CE70 !important;
  color: #fff !important;
}

body.page-id-25 .wpcf7 a:focus-visible,
body.page-id-25 .wpcf7 input:focus-visible,
body.page-id-25 .wpcf7 select:focus-visible,
body.page-id-25 .wpcf7 textarea:focus-visible,
body.page-id-25 .sdh-contact-info a:focus-visible {
  outline: 3px solid var(--sdh-focus) !important;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  body.page-id-25 .sdh-contact-wrap { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 767px) {
  html body.page-id-25 #main .hero-section,
  body.page-id-25 .entry-content { width: calc(100% - 32px); }
  html body.page-id-25 #main .hero-section { padding-block: 34px 22px; }
  body.page-id-25 .entry-content { padding-top: 24px; }
  body.page-id-25 .wpcf7 .sdh-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ========================================================================== */
/* Páginas legales (Privacidad id 3, Devoluciones id 12): alineadas a Etapa 1 */
/* ========================================================================== */

body.page-id-3,
body.page-id-12 {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.page-id-3 #main,
body.page-id-12 #main {
  background:
    linear-gradient(180deg, #fff 0, #fff 210px, rgba(245,246,247,.94) 430px),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.page-id-3 #main > .ct-container-full,
body.page-id-12 #main > .ct-container-full { padding-block: 0 72px; }

html body.page-id-3 #main .hero-section,
html body.page-id-12 #main .hero-section {
  display: block !important;
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 0 26px;
  border-bottom: 1px solid #e2e5e7;
}

html body.page-id-3 #main .ct-breadcrumbs,
html body.page-id-12 #main .ct-breadcrumbs {
  margin-bottom: 12px;
  color: var(--sdh-muted);
  font: 500 12px/1.4 var(--sdh-font-body);
}
html body.page-id-3 #main .ct-breadcrumbs a,
html body.page-id-12 #main .ct-breadcrumbs a { color: #765500; }

html body.page-id-3 #main .page-title,
html body.page-id-12 #main .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(34px, 4vw, 50px)/1 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}
html body.page-id-3 #main .page-title::before,
html body.page-id-12 #main .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
}

body.page-id-3 .entry-content,
body.page-id-12 .entry-content {
  width: min(860px, calc(100% - 40px));
  max-width: 860px !important;
  margin: 0 auto;
  padding: 38px clamp(24px, 4vw, 56px) 46px;
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(21,24,28,.06);
  color: #3e444a;
  font: 400 15.5px/1.75 var(--sdh-font-body);
  transform: translateY(-30px);
}

body.page-id-3 .entry-content h1,
body.page-id-3 .entry-content h2,
body.page-id-12 .entry-content h1,
body.page-id-12 .entry-content h2 {
  margin: 34px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--sdh-safety);
  color: var(--sdh-ink);
  font: 700 clamp(19px, 1.9vw, 23px)/1.25 var(--sdh-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
body.page-id-3 .entry-content > :first-child,
body.page-id-12 .entry-content > :first-child { margin-top: 0; }

body.page-id-3 .entry-content h3,
body.page-id-12 .entry-content h3 {
  margin: 24px 0 10px;
  color: var(--sdh-ink);
  font: 700 16px/1.4 var(--sdh-font-body);
}

body.page-id-3 .entry-content p,
body.page-id-12 .entry-content p { margin: 0 0 16px; }

body.page-id-3 .entry-content ul,
body.page-id-3 .entry-content ol,
body.page-id-12 .entry-content ul,
body.page-id-12 .entry-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
body.page-id-3 .entry-content li,
body.page-id-12 .entry-content li { margin: 0 0 8px; }

body.page-id-3 .entry-content a,
body.page-id-12 .entry-content a {
  color: #8c6200;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.page-id-3 .entry-content a:hover,
body.page-id-12 .entry-content a:hover { color: #5d4200; }

body.page-id-3 .entry-content a:focus-visible,
body.page-id-12 .entry-content a:focus-visible {
  outline: 3px solid var(--sdh-focus);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  html body.page-id-3 #main .hero-section,
  html body.page-id-12 #main .hero-section,
  body.page-id-3 .entry-content,
  body.page-id-12 .entry-content { width: calc(100% - 32px); }
  html body.page-id-3 #main .hero-section,
  html body.page-id-12 #main .hero-section { padding-block: 34px 22px; }
  body.page-id-3 .entry-content,
  body.page-id-12 .entry-content {
    padding: 26px 20px 34px;
    transform: none;
    margin-top: 18px;
  }
}

/* ========================================================================== */
/* Búsqueda (?s=), 404 y Mi cuenta: alineados a Etapa 1                       */
/* Búsqueda y 404 no son "páginas" (sin body.page-id-N) y Mi cuenta nunca se  */
/* cubrió, así que los tres caían al diseño viejo de Blocksy con fondo cian.  */
/* ========================================================================== */

body.search,
body.error404,
body.page-id-11 {
  background: var(--sdh-soft) !important;
  background-image: none !important;
  color: var(--sdh-ink);
}

body.search #main,
body.error404 #main,
body.page-id-11 #main {
  background:
    linear-gradient(180deg, #fff 0, #fff 210px, rgba(245,246,247,.94) 430px),
    repeating-linear-gradient(135deg, rgba(21,24,28,.018) 0 1px, transparent 1px 26px) !important;
}

body.search #main > .ct-container,
body.error404 #main > .ct-container,
body.page-id-11 #main > .ct-container-full { padding-block: 0 72px; }

/* --- Encabezado: mismo tratamiento que las páginas legales --- */
html body.search .hero-section,
html body.error404 .hero-section,
html body.page-id-11 .hero-section {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 0 26px;
  border-bottom: 1px solid #e2e5e7;
}

html body.search .page-title,
html body.error404 .page-title,
html body.page-id-11 .page-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: var(--sdh-ink);
  font: 800 clamp(30px, 3.4vw, 44px)/1.08 var(--sdh-font-body);
  letter-spacing: -.045em;
  text-align: center !important;
  text-transform: none;
}
html body.search .page-title::before,
html body.error404 .page-title::before,
html body.page-id-11 .page-title::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 4px;
  background: var(--sdh-safety);
  content: "";
}

html body.search .page-description,
html body.error404 .page-description {
  max-width: 60ch;
  margin: 18px auto 0;
  color: var(--sdh-muted);
  font: 400 15px/1.65 var(--sdh-font-body);
  text-align: center;
}

/* --- Buscador (pantalla sin resultados y 404) --- */
body.search .ct-no-results .entry-content,
body.error404 .ct-no-results .entry-content { padding-top: 26px; }

body.search .ct-search-form,
body.error404 .ct-search-form {
  max-width: 560px;
  margin: 0 auto;
}
body.search .ct-search-form-inner,
body.error404 .ct-search-form-inner {
  overflow: hidden;
  border: 1px solid #d8dbde;
  border-radius: var(--sdh-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(21, 24, 28, .05);
}
body.search .ct-search-form input[type="search"],
body.search .ct-search-form input[type="text"],
body.error404 .ct-search-form input[type="search"],
body.error404 .ct-search-form input[type="text"] {
  border: 0;
  background: transparent;
  color: var(--sdh-ink);
  font: 400 15px/1.4 var(--sdh-font-body);
}
body.search .ct-search-form-inner:focus-within,
body.error404 .ct-search-form-inner:focus-within {
  border-color: var(--sdh-focus);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, .16);
}
body.search .ct-search-form button,
body.error404 .ct-search-form button {
  background: var(--sdh-safety);
  color: var(--sdh-ink);
  transition: background .18s ease;
}
body.search .ct-search-form button:hover,
body.error404 .ct-search-form button:hover { background: var(--sdh-safety-hover); }

/* --- Rejilla de resultados --- */
body.search .entries {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin: 34px auto 0;
  gap: 20px;
}

body.search .entry-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid #e6e8ea;
  border-radius: var(--sdh-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(21, 24, 28, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.search .entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sdh-shadow);
}

/* Etiqueta de categoría, como los kickers del resto del sitio */
body.search .entry-card .meta-categories a {
  color: #9a6b00;
  font: 800 11px/1.3 var(--sdh-font-body);
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
body.search .entry-card .meta-categories a:hover { color: #765500; }

body.search .entry-card .entry-title {
  margin: 8px 0 14px;
  font: 700 20px/1.25 var(--sdh-font-display);
  letter-spacing: -.005em;
}
body.search .entry-card .entry-title a {
  color: var(--sdh-ink);
  text-decoration: none;
}
body.search .entry-card .entry-title a:hover { color: #8c6200; }

body.search .entry-card .ct-media-container img {
  border-radius: 6px;
  background: #f3f4f5;
}

body.search .entry-card .entry-excerpt p {
  margin: 0;
  color: var(--sdh-muted);
  font: 400 14px/1.65 var(--sdh-font-body);
}

/* Autor y fecha no aportan nada en una búsqueda de productos */
body.search .entry-card .meta-author,
body.search .entry-card .meta-date { display: none; }

@media (max-width: 767px) {
  html body.search .hero-section { width: calc(100% - 32px); padding: 34px 0 22px; }
  body.search .entries { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  body.search .entry-card { transition: none; }
  body.search .entry-card:hover { transform: none; }
}

/* ========================================================================== */
/* 404: cifra grande + botones que inyecta sdh-404.php                        */
/* ========================================================================== */

html body.error404 .hero-section .entry-header { position: relative; padding-top: 96px; }

/* "404" en grande detrás del título, como marca de agua */
html body.error404 .hero-section .entry-header::before {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sdh-safety);
  font: 800 92px/1 var(--sdh-font-display);
  letter-spacing: -.03em;
  opacity: .9;
  content: "404";
  pointer-events: none;
}

body.error404 .sdh-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
body.error404 .sdh-404-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 10px 22px !important;
  border: 2px solid var(--sdh-ink) !important;
  border-radius: 7px !important;
  background: var(--sdh-ink) !important;
  color: #fff !important;
  font: 800 13px/1.2 var(--sdh-font-body);
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}
body.error404 .sdh-404-actions .sdh-404-shop {
  background: transparent !important;
  color: var(--sdh-ink) !important;
}
body.error404 .sdh-404-actions .button:hover { background: #000 !important; color: #fff !important; }
body.error404 .sdh-404-actions .sdh-404-shop:hover { background: var(--sdh-ink) !important; }
body.error404 .sdh-404-actions .button:active { transform: translateY(1px); }
body.error404 .sdh-404-actions .button:focus-visible {
  outline: 3px solid var(--sdh-focus);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  html body.error404 .hero-section .entry-header { padding-top: 74px; }
  html body.error404 .hero-section .entry-header::before { font-size: 68px; }
  body.error404 .sdh-404-actions .button { width: 100%; }
}

/* ========================================================================== */
/* Mi cuenta (id 11): login y panel del cliente                               */
/* ========================================================================== */

body.page-id-11 .entry-content {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: 0 auto;
  padding-top: 34px;
}

/* --- Sin sesión: el formulario de acceso como tarjeta blanca --- */
body.page-id-11 .woocommerce .woocommerce-form-login,
body.page-id-11 .woocommerce .u-column1,
body.page-id-11 .woocommerce .u-column2 {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 24, 28, .065);
}

body.page-id-11 .woocommerce h2 {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--sdh-safety);
  color: var(--sdh-ink);
  font: 700 clamp(20px, 2vw, 24px)/1 var(--sdh-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}

body.page-id-11 .woocommerce label {
  display: block;
  margin-bottom: 4px;
  color: var(--sdh-ink);
  font: 600 13px/1.4 var(--sdh-font-body);
}

body.page-id-11 .woocommerce input[type=text],
body.page-id-11 .woocommerce input[type=email],
body.page-id-11 .woocommerce input[type=tel],
body.page-id-11 .woocommerce input[type=password],
body.page-id-11 .woocommerce select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d9dde0;
  border-radius: 8px;
  background-color: #fff;
  color: var(--sdh-ink);
  font: 400 15px/1.4 var(--sdh-font-body);
}
body.page-id-11 .woocommerce input:focus,
body.page-id-11 .woocommerce select:focus {
  outline: none;
  border-color: var(--sdh-safety);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, .18);
}

body.page-id-11 .woocommerce .button,
body.page-id-11 .woocommerce button[type=submit] {
  min-height: 48px;
  padding: 12px 26px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--sdh-safety) !important;
  color: var(--sdh-ink) !important;
  font: 800 13px/1.2 var(--sdh-font-body) !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .18s ease;
}
body.page-id-11 .woocommerce .button:hover,
body.page-id-11 .woocommerce button[type=submit]:hover { background: var(--sdh-safety-hover) !important; }

body.page-id-11 .woocommerce .lost_password a,
body.page-id-11 .woocommerce a { color: #8c6200; }

/* --- Con sesión: navegación lateral + contenido --- */
body.page-id-11 .woocommerce-MyAccount-navigation {
  padding: 18px;
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 24, 28, .065);
}
body.page-id-11 .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-id-11 .woocommerce-MyAccount-navigation li { margin: 0; }
body.page-id-11 .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--sdh-muted);
  font: 600 14px/1.3 var(--sdh-font-body);
  text-decoration: none;
}
body.page-id-11 .woocommerce-MyAccount-navigation li a:hover {
  background: #fff4d2;
  color: #8c6200;
}
body.page-id-11 .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--sdh-safety);
  color: var(--sdh-ink);
  font-weight: 800;
}

body.page-id-11 .woocommerce-MyAccount-content {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #e2e5e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 24, 28, .065);
  color: var(--sdh-ink);
  font: 400 15px/1.65 var(--sdh-font-body);
}
body.page-id-11 .woocommerce-MyAccount-content table.woocommerce-orders-table {
  font: 400 14px/1.5 var(--sdh-font-body);
}

@media (max-width: 767px) {
  body.page-id-11 .entry-content { width: calc(100% - 32px); }
}

/* El encabezado "Acceder" iba pegado a la izquierda con la tarjeta centrada */
body.page-id-11 .woocommerce.ct-woo-unauthorized { text-align: center; }
body.page-id-11 .woocommerce.ct-woo-unauthorized form,
body.page-id-11 .woocommerce.ct-woo-unauthorized .u-column1,
body.page-id-11 .woocommerce.ct-woo-unauthorized .u-column2 { text-align: left; }

/* Aviso "cotizar descuento por volumen + envío gratis" debajo del precio, ficha de producto */
body.single-product .sdh-bulk-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 18px;
}
body.single-product .sdh-bulk-notice-quote {
  color: var(--sdh-focus);
  font: 700 14px/1.3 var(--sdh-font-body);
  text-decoration: underline;
}
body.single-product .sdh-bulk-notice-quote:hover { color: var(--sdh-safety-hover); }
body.single-product .sdh-bulk-notice-shipping {
  color: var(--sdh-muted);
  font: 600 13px/1.3 var(--sdh-font-body);
}
