/*
Theme Name: Seguridad Profesional (Divi)
Theme URI: https://seguridadprofesional.es
Description: Child theme de Divi para Seguridad Profesional. TRASPLANTADO de dh-divi (DH Distribución)
             el 2026-07-16 y BIFURCADO desde entonces: a partir de aqui los dos temas DIVERGEN.
             No re-sincronizar con dhd sin revisar diferencia por diferencia.
Author: Seguridad Profesional
Template: Divi
Version: 1.0.0
Text Domain: dh-divi
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:        #0f5f9e;
  --red-700:    #0a4c81;
  --ink:        #1A1A1A;
  --black:      #1A1A1A;
  --black-soft: #111111;
  --white:      #FFFFFF;
  --gray-50:    #F8F8F8;
  --gray-100:   #F0F0F0;
  --gray-200:   #E2E2E2;
  --gray-300:   #C8C8C8;
  --gray-400:   #9A9A9A;
  --gray-500:   #6B6B6B;
  --gray-600:   #4A4A4A;
  --gray-700:   #333333;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --radius:     6px;
  --radius-sm:  4px;
  --shadow:     0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
  --container:  1280px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

/* ============================================================
   DIVI RESETS — neutralise Divi defaults that conflict
   ============================================================ */
#page-container { padding: 0 !important; }
#main-footer { display: none !important; }
#et-top-navigation,
#et_search_icon,
.et_pb_menu,
.et-fixed-header { display: none !important; }
/* Let Divi header render only on pages we don't override it */
#main-header { display: none !important; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-sans); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.dh-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.dh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; line-height: 1;
  cursor: pointer; border: 2px solid transparent;
  font-family: var(--font-sans); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.dh-btn-primary  { background: var(--red); color: var(--white); border-color: var(--red); }
.dh-btn-primary:hover  { background: var(--red-700); border-color: var(--red-700); color: var(--white); }
.dh-btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.dh-btn-outline:hover  { border-color: var(--white); color: var(--white); }
.dh-btn-dark     { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dh-btn-dark:hover     { background: #2a2a2a; color: var(--white); }
.dh-btn-lg { padding: 14px 28px; font-size: 15px; }
.dh-btn-sm { padding: 7px 14px; font-size: 13px; }

/* ============================================================
   HEADER
   ============================================================ */
#dh-header {
  background: var(--black);
  color: var(--white);
}

/* Utility bar */
.dh-utility-bar {
  background: var(--black-soft);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
  color: var(--gray-400);
}
.dh-utility-bar .dh-container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px;
}
.dh-ub-left  { display: flex; align-items: center; gap: 20px; }
.dh-ub-right { display: flex; align-items: center; gap: 18px; }
.dh-ub-right a { color: var(--gray-300); font-size: 12px; font-weight: 500; }
.dh-ub-right a:hover { color: var(--white); }
.dh-ub-left svg, .dh-ub-right svg { color: var(--red); flex-shrink: 0; }
.dh-pulse {
  display: inline-block; width: 7px; height: 7px;
  background: #2BD071; border-radius: 50%; margin-right: 6px;
  animation: dh-pulse 2s infinite;
}
@keyframes dh-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(43,208,113,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(43,208,113,0); }
}

/* Header main row */
.dh-header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 18px 0;
}

/* Logo */
.dh-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
}
.dh-logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.dh-logo-mark svg { width: 100%; height: 100%; display: block; }
.dh-logo-text { display: flex; flex-direction: column; line-height: 1; }
.dh-logo-text .lt-1 { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--white); }
.dh-logo-text .lt-2 { font-family: var(--font-mono); font-size: 10px; color: var(--gray-400); margin-top: 4px; letter-spacing: .15em; text-transform: uppercase; }

/* Search bar — fondo transparente para que el wrapper FiboSearch dark
   no deje ver el blanco del contenedor en el espacio sobrante a la derecha */
.dh-search {
  position: relative; display: flex;
  background: transparent; border-radius: var(--radius);
  overflow: visible; height: 44px;
}
.dh-search input[type="search"],
.dh-search input[type="text"] {
  border: 0; outline: 0; flex: 1;
  padding: 0 16px; font-size: 14px; color: var(--ink);
  background: var(--white); min-width: 0;
}
.dh-search .search-btn {
  background: var(--red); color: var(--white);
  padding: 0 22px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.dh-search .search-btn:hover { background: var(--red-700); }
.dh-search select.search-cat {
  border-right: 1px solid var(--gray-200);
  padding: 0 14px; font-size: 13px;
  color: var(--gray-700); background: var(--gray-50);
  border-top: 0; border-bottom: 0; border-left: 0;
  outline: 0; cursor: pointer;
}

/* Account / Cart icons */
.dh-header-actions { display: flex; align-items: center; gap: 8px; }
.dh-icon-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--white); font-size: 13px;
  position: relative; text-decoration: none; background: none; border: none; cursor: pointer;
}
.dh-icon-btn:hover { background: rgba(255,255,255,.06); color: var(--white); }
.dh-icon-btn .lbl { display: flex; flex-direction: column; line-height: 1.15; align-items: flex-start; }
.dh-icon-btn .lbl small { color: var(--gray-400); font-size: 11px; }
.dh-icon-btn .lbl strong { font-weight: 600; font-size: 13px; color: var(--white); }
.dh-cart-count {
  position: absolute; top: 4px; left: 22px;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
}

/* ============================================================
   NAV BAR (sticky)
   ============================================================ */
.dh-nav {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.admin-bar .dh-nav { top: 32px; }
.dh-nav-list {
  display: flex; align-items: stretch; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.dh-nav-item {
  padding: 14px 22px; font-size: 13.5px; font-weight: 500;
  color: var(--gray-300); display: flex; align-items: center; gap: 8px;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.dh-nav-item:hover { color: var(--white); }
.dh-nav-item.current-menu-item,
.dh-nav-item.current-menu-ancestor,
.dh-nav-item.current_page_item { color: var(--white); border-bottom-color: var(--red); }
.dh-nav-spacer { flex: 1; }
.dh-nav-trust {
  display: flex; align-items: center; gap: 20px;
  font-size: 12px; color: var(--gray-500); padding: 0 8px;
}
.dh-nav-trust span { display: inline-flex; gap: 6px; align-items: center; }

/* Burger (mobile) */
.dh-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.dh-hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.dh-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 96px;
}
.dh-hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--red); text-transform: uppercase; margin-bottom: 28px;
}
.dh-hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--red); }
.dh-hero h1 {
  font-size: 54px; line-height: 1.06; font-weight: 800;
  margin: 0 0 24px; letter-spacing: -.02em; color: var(--white);
}
.dh-hero h1 .accent { color: var(--red); }
.dh-hero .lede {
  font-size: 17px; color: var(--gray-300); margin: 0 0 36px;
  max-width: 540px; line-height: 1.55;
}
.dh-hero-ctas { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }

/* Stats row */
.dh-hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
}
.dh-hero-stat { border-right: 1px solid rgba(255,255,255,.08); padding-right: 16px; }
.dh-hero-stat:last-child { border-right: 0; }
.dh-hero-stat .num {
  font-family: var(--font-mono); font-size: 24px; font-weight: 600;
  color: var(--white); line-height: 1;
}
.dh-hero-stat .lbl {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gray-500); margin-top: 8px;
}

/* Hero visual / camera illustration */
.dh-hero-visual {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dh-hero-visual::before {
  content: 'CAM-PRO 4K · UHD-08X';
  position: absolute; bottom: 20px; left: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  color: var(--gray-500);
}
.dh-hero-visual::after {
  content: '';
  position: absolute; top: 20px; right: 20px;
  width: 8px; height: 8px; background: #2BD071; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(43,208,113,.2);
  animation: dh-pulse 2s infinite;
}
.dh-hero-cam { width: 80%; height: auto; }
.dh-hv-corners { position: absolute; inset: 0; pointer-events: none; }
.dh-hv-corners::before,
.dh-hv-corners::after,
.dh-hv-corners .c3,
.dh-hv-corners .c4 {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--red);
}
.dh-hv-corners::before  { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.dh-hv-corners::after   { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.dh-hv-corners .c3 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.dh-hv-corners .c4 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* ============================================================
   PARTNER STRIP (authorised distributor band)
   ============================================================ */
.dh-partner-strip {
  background: var(--ink);
  color: var(--white);
  border-top: 4px solid var(--red);
}
.dh-partner-strip .dh-container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 36px; padding-bottom: 36px; gap: 48px;
}
.dh-partner-mark  { display: flex; align-items: center; gap: 20px; }
.dh-partner-seal  {
  width: 64px; height: 64px;
  border: 2px solid var(--red); border-radius: 50%;
  display: grid; place-items: center;
  position: relative; flex-shrink: 0;
  color: var(--red);
}
.dh-partner-text .pt-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--red); text-transform: uppercase; margin-bottom: 6px;
}
.dh-partner-text .pt-title  { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.dh-partner-text .pt-sub    { font-size: 13px; color: var(--gray-400); margin-top: 4px; }
.dh-partner-meta {
  display: flex; gap: 48px;
  font-family: var(--font-mono); font-size: 12px; color: var(--gray-400);
  flex-shrink: 0;
}
.dh-partner-meta div strong { color: var(--white); font-weight: 600; display: block; font-size: 14px; margin-top: 4px; }

/* ============================================================
   TRUST STRIP (services band)
   ============================================================ */
.dh-trust-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}
.dh-trust-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.dh-trust-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 28px;
  border-right: 1px solid var(--gray-200);
}
.dh-trust-item:last-child { border-right: 0; }
.dh-trust-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(232,0,29,.06); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--red);
}
.dh-trust-item h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.dh-trust-item p  { font-size: 12px; color: var(--gray-500); margin: 0; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.dh-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 0;
}
.dh-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dh-footer-grid h5 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin: 0 0 16px;
}
.dh-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.dh-footer-grid ul li { margin-bottom: 8px; }
.dh-footer-grid ul a { color: var(--gray-400); font-size: 13.5px; }
.dh-footer-grid ul a:hover { color: var(--white); }
.f-about p  { font-size: 13px; color: var(--gray-500); line-height: 1.65; margin: 20px 0 20px; }
.f-contact-line {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--gray-400); margin-bottom: 8px;
}
.f-contact-line a { color: var(--gray-400); }
.f-contact-line a:hover { color: var(--white); }
.dh-footer .f-contact-line svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.dh-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-size: 12px; color: var(--gray-600);
}
.dh-footer-bottom .legal { display: flex; align-items: center; gap: 20px; }
.dh-footer-bottom .legal a { color: var(--gray-600); }
.dh-footer-bottom .legal a:hover { color: var(--white); }

/* ============================================================
   WOOCOMMERCE — base overrides
   ============================================================ */
.woocommerce-notices-wrapper { max-width: var(--container); margin: 16px auto; padding: 0 32px; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-top-color: var(--red) !important; }

/* ============================================================
   WC PAGE WRAPPER
   ============================================================ */
.dh-wc-page { padding: 32px 0 64px; }

/* Breadcrumb */
.dh-breadcrumb { margin-bottom: 10px; }
.dh-bc-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--gray-400);
}
.dh-bc-list li { display: flex; align-items: center; }
.dh-bc-list a { color: var(--gray-400); }
.dh-bc-list a:hover { color: var(--red); }
.dh-bc-sep { margin: 0 6px; color: var(--gray-300); }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.dh-archive-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200); flex-wrap: wrap; gap: 12px;
}
.dh-archive-title { font-size: 26px; font-weight: 800; margin: 8px 0 0; letter-spacing: -.02em; color: #0f5f9e; }
.dh-archive-desc  { font-size: 14px; color: var(--gray-500); margin: 6px 0 0; }

.dh-archive-content { width: 100%; }

/* ── Filter sidebar ── */
.dh-archive-sidebar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky; top: 80px;
}
.admin-bar .dh-archive-sidebar { top: 112px; }
.dh-filter-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13.5px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.dh-filter-reset {
  margin-left: auto; font-size: 11.5px; color: var(--gray-400);
  display: flex; align-items: center; gap: 4px;
}
.dh-filter-reset:hover { color: var(--red); }
.dh-filter-section { border-bottom: 1px solid var(--gray-200); padding: 12px 0; }
.dh-filter-section:last-of-type { border-bottom: 0; padding-bottom: 0; }
.dh-filter-section-toggle {
  width: 100%; text-align: left; background: none; border: none; padding: 0;
  font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-family: var(--font-sans);
}
.dh-filter-section-toggle[aria-expanded="false"] + * { display: none; }
.dh-filter-subcat-list,
.dh-filter-check-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.dh-subcat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 8px; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--gray-600);
  transition: background .12s, color .12s;
}
.dh-subcat-link:hover { background: var(--gray-100); color: var(--ink); }
.dh-subcat-link.active { background: var(--red); color: var(--white); }
.dh-subcat-count { font-size: 11px; opacity: .65; }
.dh-filter-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; cursor: pointer; color: var(--gray-600); padding: 4px 0;
}
.dh-filter-check-label input[type="radio"] { accent-color: var(--red); }
.dh-filter-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dh-filter-dot.green  { background: #2BD071; }
.dh-filter-dot.orange { background: #F59E0B; }
.dh-price-slider-wrap { padding: 4px 0 2px; }
.dh-price-range-track {
  position: relative; height: 4px; background: var(--gray-200);
  border-radius: 2px; margin: 14px 0 8px;
}
.dh-price-range-fill {
  position: absolute; height: 100%; background: var(--red);
  border-radius: 2px; pointer-events: none;
}
.dh-range {
  position: absolute; width: 100%; height: 4px; background: transparent;
  -webkit-appearance: none; appearance: none; pointer-events: none;
  top: -10px; left: 0; outline: none;
}
.dh-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: all;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--red); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.dh-range::-moz-range-thumb {
  pointer-events: all; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--red); cursor: pointer;
}
.dh-price-range-vals {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--gray-500); margin-top: 2px;
}
.dh-filter-submit {
  margin-top: 14px; width: 100%; padding: 9px;
  background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans); transition: background .15s;
}
.dh-filter-submit:hover { background: var(--red-700); }

/* ── Archive toolbar ── */
.dh-archive-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.dh-archive-toolbar-count { font-size: 13px; color: var(--gray-500); }
.dh-archive-toolbar-count strong { color: var(--ink); }
.dh-sort-select {
  padding: 7px 12px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 13px;
  font-family: var(--font-sans); color: var(--ink);
  background: var(--white); cursor: pointer; outline: none;
}
.dh-sort-select:focus { border-color: var(--red); }

/* ── Product grid ── */
.dh-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ── Product card ── */
.dh-product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
  list-style: none;
}
.dh-product-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.dh-card-img-wrap {
  position: relative; background: var(--gray-50);
  aspect-ratio: 1; overflow: hidden;
}
.dh-card-img-link { display: block; height: 100%; }
.dh-card-img-link img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.dh-card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 3px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  pointer-events: none; z-index: 1;
}
.dh-badge-green  { background: #2BD071; color: var(--white); }
.dh-badge-orange { background: #F59E0B; color: var(--white); }
.dh-badge-gray   { background: var(--gray-400); color: var(--white); }
.dh-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.dh-card-sku { font-family: var(--font-mono); font-size: 10px; color: var(--gray-400); letter-spacing: .08em; }
.dh-card-title { font-size: 13px; font-weight: 600; margin: 0; line-height: 1.4; color: var(--ink); }
.dh-card-title a { color: inherit; }
.dh-card-title a:hover { color: var(--red); }
.dh-card-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dh-card-specs li {
  background: var(--gray-100); border-radius: 3px;
  padding: 2px 6px; font-size: 10.5px; color: var(--gray-600);
}
.dh-card-price { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dh-card-price-old  { text-decoration: line-through; color: var(--gray-400); font-size: 11.5px; }
.dh-card-price-main { font-size: 15px; font-weight: 700; color: var(--ink); }
.dh-card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.dh-card-btn {
  flex: 1; padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background .12s, color .12s; border: 1px solid transparent;
}
.dh-btn-cart                { background: var(--red); color: var(--white); }
.dh-btn-cart:hover          { background: var(--red-700); color: var(--white); }
.dh-card-btn--consult       { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }
.dh-card-btn--consult:hover { background: var(--gray-200); color: var(--ink); }
.dh-card-btn--view          { background: var(--ink); color: var(--white); }
.dh-card-btn--view:hover    { background: var(--gray-700); color: var(--white); }
.dh-card-btn-secondary {
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--gray-200); color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s, color .12s;
}
.dh-card-btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* WC pagination */
.woocommerce-pagination { margin-top: 32px; display: flex; justify-content: center; }
.woocommerce-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  border: 1px solid var(--gray-200); color: var(--gray-600);
}
.woocommerce-pagination ul li a:hover { border-color: var(--red); color: var(--red); }
.woocommerce-pagination ul li span.current { background: var(--red); color: var(--white); border-color: var(--red); }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.dh-product-layout {
  display: grid;
  grid-template-columns: 42% 1fr 220px;
  gap: 40px;
  align-items: start;
  padding: 24px 0 40px;
}
/* los hijos del grid no pueden bajar de su min-content sin esto: una imagen con
   ancho natural > columna (p.ej. 464px a 390 de viewport) desborda la ficha */
.dh-product-layout > * { min-width: 0; }
.dh-product-gallery, .dh-gallery-main-wrap { max-width: 100%; }

/* ── Gallery ── */
.dh-gallery-main-wrap {
  position: relative;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.dh-gallery-zoom-link { display: block; position: relative; width: 100%; height: 100%; }
.dh-gallery-main-img  { width: 100%; height: 100%; object-fit: contain; padding: 20px; display: block; }
.dh-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.45); color: var(--white);
  font-size: 11px; padding: 4px 8px; border-radius: 3px;
  display: flex; align-items: center; gap: 4px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.dh-gallery-zoom-link:hover .dh-zoom-hint { opacity: 1; }
.dh-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dh-thumb {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200); background: var(--gray-50);
  overflow: hidden; cursor: pointer; padding: 4px;
  transition: border-color .12s;
}
.dh-thumb img   { width: 100%; height: 100%; object-fit: contain; }
.dh-thumb.active { border-color: var(--red); }
.dh-thumb:hover  { border-color: var(--gray-300); }
.dh-gallery-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-400); margin-top: 10px;
}

/* ── Product info ── */
.dh-product-main { display: flex; flex-direction: column; gap: 14px; }
.dh-product-top-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-product-sku-label { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); }
.dh-product-sku-label strong { color: var(--gray-600); }
.dh-product-rating { display: flex; align-items: center; gap: 8px; }
.dh-stars { display: flex; gap: 2px; }
.dh-star  { font-size: 15px; color: var(--gray-200); }
.dh-star.on { color: #F59E0B; }
.dh-rating-text { font-size: 12px; color: var(--gray-500); }
.dh-product-title { font-size: 22px; font-weight: 800; margin: 0; line-height: 1.25; letter-spacing: -.02em; }
.dh-product-short-desc { font-size: 13.5px; line-height: 1.65; color: var(--gray-600); }
.dh-product-short-desc p { margin: 0; }

/* Specs 2×2 */
.dh-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dh-spec-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 10px 12px;
}
.dh-spec-icon { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.dh-spec-data { display: flex; flex-direction: column; gap: 2px; }
.dh-spec-label { font-size: 10.5px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; }
.dh-spec-value { font-size: 12.5px; font-weight: 600; color: var(--ink); }

/* Price block */
.dh-product-price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dh-price-old     { text-decoration: line-through; color: var(--gray-400); font-size: 15px; }
.dh-price-current { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }

/* Plazo badge */
.dh-plazo-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(232,0,29,.05); border: 1px solid rgba(232,0,29,.15);
  border-radius: var(--radius); padding: 9px 13px;
  font-size: 13px; color: var(--ink); font-weight: 500;
}
.dh-plazo-badge svg { color: var(--red); flex-shrink: 0; }

/* Availability badges */
.dh-avail-row { display: flex; }
.dh-avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600;
}
.dh-avail-green  { background: rgba(43,208,113,.12); color: #0a7a3b; }
.dh-avail-orange { background: rgba(245,158,11,.12);  color: #92530a; }
.dh-avail-gray   { background: var(--gray-100); color: var(--gray-500); }
.dh-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Buy button */
.dh-btn-buy {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px;
  background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; font-family: var(--font-sans); text-align: center;
  transition: background .15s;
}
.dh-btn-buy:hover           { background: var(--red-700); color: var(--white); }
.dh-btn-buy--consult        { background: var(--gray-700); }
.dh-btn-buy--consult:hover  { background: var(--ink); color: var(--white); }

/* WC native add-to-cart button override */
.woocommerce div.product form.cart .button,
.single_add_to_cart_button {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; padding: 14px 20px !important;
  background: var(--red) !important; color: var(--white) !important;
  border: none !important; border-radius: var(--radius) !important;
  font-size: 14px !important; font-weight: 700 !important;
  letter-spacing: .05em !important; text-transform: uppercase !important;
  transition: background .15s !important;
}
.woocommerce div.product form.cart .button:hover,
.single_add_to_cart_button:hover { background: var(--red-700) !important; }

/* Shipping strip */
.dh-shipping-strip {
  display: flex; gap: 12px; flex-wrap: wrap;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 12px 16px;
}
.dh-ship-item { display: flex; align-items: center; gap: 7px; font-size: 12px; flex: 1; min-width: 130px; }
.dh-ship-item svg { color: var(--red); flex-shrink: 0; }
.dh-ship-item strong { color: var(--ink); }

/* ── Aside sidebar ── */
.dh-product-aside { display: flex; flex-direction: column; gap: 16px; }
.dh-aside-block { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px; }
.dh-aside-title { font-size: 11px; font-weight: 700; margin: 0 0 10px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; }
.dh-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dh-recent-link { display: flex; gap: 8px; align-items: center; }
.dh-recent-thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); overflow: hidden;
}
.dh-recent-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dh-recent-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dh-recent-sku   { font-family: var(--font-mono); font-size: 9.5px; color: var(--gray-400); }
.dh-recent-name  { font-size: 11.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-recent-price { font-size: 11.5px; font-weight: 700; color: var(--red); }
.dh-aside-asesoria { background: var(--gray-50); text-align: center; }
.dh-asesoria-header { color: var(--red); margin-bottom: 8px; }
.dh-asesoria-title { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.dh-asesoria-text  { font-size: 12px; color: var(--gray-500); margin: 0 0 10px; line-height: 1.5; }
.dh-asesoria-phone {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.dh-asesoria-phone:hover { color: var(--red); }

/* ── Product tabs ── */
.dh-product-tabs-wrap { margin-top: 48px; border-top: 2px solid var(--gray-200); }
.dh-tabs-nav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--gray-200); overflow-x: auto;
}
.dh-tab-btn {
  padding: 13px 22px; background: none; border: none; border-bottom: 2px solid transparent;
  font-size: 13.5px; font-weight: 500; color: var(--gray-500); cursor: pointer;
  white-space: nowrap; margin-bottom: -1px; font-family: var(--font-sans);
  transition: color .12s, border-color .12s;
}
.dh-tab-btn:hover { color: var(--ink); }
.dh-tab-btn.active { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }
.dh-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-200); color: var(--gray-600);
  font-size: 10.5px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 99px; margin-left: 5px;
}
.dh-tab-panel  { padding: 24px 0; }
.dh-tab-hidden { display: none !important; }
.dh-description-body { max-width: 820px; line-height: 1.72; font-size: 14px; color: var(--gray-700); }
.dh-description-body p { margin: 0 0 14px; }
.dh-description-body h2,
.dh-description-body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.dh-description-body ul { padding-left: 20px; }
.dh-specs-table-wrap { overflow-x: auto; }
.dh-specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dh-specs-table th,
.dh-specs-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.dh-specs-table th { font-weight: 600; color: var(--gray-600); width: 36%; background: var(--gray-50); }
.dh-specs-table tr:last-child th,
.dh-specs-table tr:last-child td { border-bottom: 0; }
.dh-no-specs { color: var(--gray-400); font-size: 14px; }
.dh-docs-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px; text-align: center; color: var(--gray-500);
}
.dh-docs-placeholder svg { color: var(--gray-300); }
.dh-docs-placeholder h4  { font-size: 15px; font-weight: 700; margin: 0; color: var(--ink); }
.dh-docs-placeholder p   { font-size: 13.5px; margin: 0; }
.dh-docs-placeholder .dh-btn-buy { width: auto; padding: 11px 26px; margin-top: 4px; }
.dh-reviews-wrap { max-width: 680px; }

/* ============================================================
   RESPONSIVE — WooCommerce pages
   ============================================================ */
@media (max-width: 1100px) {
  .dh-product-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .dh-product-aside {
    grid-column: 1 / -1;
    flex-direction: row; flex-wrap: wrap; gap: 16px;
  }
  .dh-product-aside .dh-aside-block { flex: 1; min-width: 200px; }
}
@media (max-width: 1100px) {
  .dh-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .dh-archive-layout { grid-template-columns: 1fr; }
  .dh-archive-sidebar { position: static; }
  .dh-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dh-product-layout { grid-template-columns: 1fr; }
  .dh-product-aside { flex-direction: column; }
  .dh-specs-grid { grid-template-columns: 1fr; }
  .dh-shipping-strip { flex-direction: column; gap: 8px; }
  .dh-price-current { font-size: 24px; }
}
@media (max-width: 480px) {
  .dh-product-grid { grid-template-columns: 1fr; }
  .dh-product-layout { gap: 20px; }
}

/* ============================================================
   RESPONSIVE — existing sections
   ============================================================ */
@media (max-width: 1024px) {
  .dh-hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .dh-hero-visual { max-width: 460px; margin: 0 auto; }
  .dh-hero h1 { font-size: 42px; }
  .dh-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .dh-partner-strip .dh-container { flex-direction: column; align-items: flex-start; gap: 24px; }
  .dh-partner-meta { gap: 24px; }
  .dh-trust-grid { grid-template-columns: repeat(2,1fr); }
  .dh-trust-item:nth-child(2) { border-right: 0; }
}
@media (max-width: 768px) {
  .dh-container { padding-left: 20px; padding-right: 20px; }
  .dh-header-main { grid-template-columns: 1fr auto; gap: 16px; }
  .dh-search { display: none; }
  .dh-ub-left span:not(:first-child) { display: none; }
  .dh-ub-right a:not(:first-child) { display: none; }
  .dh-nav-trust { display: none !important; }
  .dh-nav-list { display: none; flex-direction: column; background: var(--black-soft); }
  .dh-nav-list.open { display: flex; }
  .dh-burger { display: flex !important; flex-direction: column; gap: 5px; background: none; border: none; color: var(--white); padding: 8px; cursor: pointer; }
  .dh-burger span { width: 22px; height: 2px; background: var(--white); display: block; }
  .dh-hero-stats { grid-template-columns: repeat(2,1fr); }
  .dh-hero-stat:nth-child(2) { border-right: 0; }
  .dh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dh-trust-grid { grid-template-columns: 1fr; }
  .dh-trust-item { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .dh-trust-item:last-child { border-bottom: 0; }
  .dh-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .dh-hero h1 { font-size: 32px; }
  .dh-hero-stats { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   SUBCATEGORY GRID (categorías padre)
   ============================================================ */
.dh-subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.dh-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 20px 24px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--ink);
}

.dh-subcat-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--ink);
}

.dh-subcat-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.dh-subcat-img-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.dh-subcat-name {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
  .dh-subcat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .dh-subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .dh-subcat-card { padding: 24px 14px 20px; }
  .dh-subcat-name { font-size: 15px; }
}
@media (max-width: 480px) {
  .dh-subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================================
   HOME PAGE (front-page.php)
   ============================================================ */

#dh-home { display: block; }

/* --- HERO --- */
.dh-hero {
  position: relative;
  min-height: 560px;
  background: var(--ink) right center / cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.dh-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.7) 70%, rgba(10,10,10,0.45) 100%);
  z-index: 1;
}
.dh-hero .dh-container { position: relative; z-index: 2; }
.dh-hero-content { max-width: 640px; padding: 80px 0; }
.dh-hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--white);
}
.dh-hero-accent { color: var(--red); }
.dh-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}
.dh-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Botones home */
.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .12s, box-shadow .12s, background-color .12s;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dh-btn-primary {
  background: var(--red);
  color: var(--white);
}
.dh-btn-primary:hover {
  background: #c40019;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.dh-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.dh-btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* --- SECCIÓN GENÉRICA --- */
.dh-home-section {
  padding: 80px 0;
}
.dh-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.dh-section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dh-section-header p {
  font-size: 17px;
  color: var(--ink-soft, #555);
  margin: 0;
}

/* --- CATEGORÍAS HOME (reusa .dh-subcat-card pero añade count) --- */
.dh-home-cats .dh-subcat-card {
  position: relative;
}
.dh-subcat-count {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft, #888);
  margin-top: 6px;
  text-align: center;
}

/* --- TRUST GRID --- */
.dh-home-trust {
  background: #F8F8F8;
}
.dh-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.dh-trust-card {
  text-align: center;
  padding: 24px 16px;
}
.dh-trust-card svg,
.dh-trust-card .dh-icon {
  color: var(--red);
  margin-bottom: 16px;
  width: 32px; height: 32px;
}
.dh-trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.dh-trust-card p {
  font-size: 14px;
  color: var(--ink-soft, #666);
  line-height: 1.5;
  margin: 0;
}

/* --- BANDA B2B --- */
.dh-home-banda {
  position: relative;
  padding: 80px 0;
  background: var(--ink) right center / cover no-repeat;
  color: var(--white);
}
.dh-banda-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.88) 50%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
}
.dh-home-banda .dh-container { position: relative; z-index: 2; }
.dh-banda-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.dh-banda-copy h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.dh-banda-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 520px;
}
.dh-banda-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dh-banda-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--red);
  border-radius: 6px;
}
.dh-banda-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.dh-banda-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* --- CTA FINAL --- */
.dh-home-cta {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
}
.dh-cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.dh-cta-inner h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--white);
}
.dh-cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 32px;
}
.dh-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE HOME
   ============================================================ */
@media (max-width: 1024px) {
  .dh-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .dh-banda-grid { grid-template-columns: 1fr; gap: 32px; }
  .dh-hero-title { font-size: 44px; }
}
@media (max-width: 768px) {
  .dh-hero { min-height: 420px; background-position: right center; }
  .dh-hero-overlay { background: rgba(10,10,10,0.92); }
  .dh-hero-content { padding: 56px 0; }
  .dh-hero-title { font-size: 32px; }
  .dh-hero-sub { font-size: 16px; }
  .dh-hero-cta { flex-direction: column; align-items: stretch; }
  .dh-btn { width: 100%; }
  .dh-home-section { padding: 56px 0; }
  .dh-section-header h2 { font-size: 28px; }
  .dh-section-header p { font-size: 15px; }
  .dh-home-banda { padding: 56px 0; }
  .dh-banda-copy h2 { font-size: 24px; }
  .dh-cta-inner h2 { font-size: 26px; }
  .dh-cta-inner p { font-size: 15px; }
  .dh-cta-buttons { flex-direction: column; }
  .dh-trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dh-hero-title { font-size: 26px; }
  .dh-banda-stat { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Sellos visuales de la banda B2B (sustituyen los stats con Partner ID) */
.dh-banda-seals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dh-banda-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,0.06);
  border-top: 2px solid var(--red);
  border-radius: 6px;
  color: var(--white);
}
.dh-banda-seal svg,
.dh-banda-seal .dh-icon {
  color: var(--red);
  margin-bottom: 10px;
  width: 28px; height: 28px;
}
.dh-banda-seal span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* Mobile: sellos en columna */
@media (max-width: 768px) {
  .dh-banda-seals { grid-template-columns: 1fr; gap: 12px; }
  .dh-banda-seal { flex-direction: row; padding: 14px 16px; gap: 14px; text-align: left; }
  .dh-banda-seal svg, .dh-banda-seal .dh-icon { margin-bottom: 0; }
  .dh-banda-seal span { font-size: 14px; }
}

/* ============================================================
   FOOTER REDISEÑADO
   ============================================================ */

#dh-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 0;
  margin-top: 80px;
}

.dh-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.dh-footer-brand .dh-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  margin-bottom: 16px;
}
.dh-footer-brand .dh-footer-logo .lt-1 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}
.dh-footer-brand .dh-footer-logo .lt-2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}

.dh-footer-about {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0 0 20px;
  max-width: 360px;
}

.dh-footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.dh-footer-contact p svg,
.dh-footer-contact p .dh-icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.dh-footer-contact a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.dh-footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.dh-footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 0 0 16px;
}
.dh-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dh-footer-col li {
  margin-bottom: 8px;
}
.dh-footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color .15s;
}
.dh-footer-col a:hover {
  color: var(--white);
}

/* Sello de grupo */
.dh-footer-group {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.dh-group-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.4;
  transition: color .15s;
}
.dh-group-link:hover {
  color: var(--white);
}
.dh-group-logo {
  height: 32px;
  width: auto;
  filter: brightness(1.1);
}
.dh-group-link strong {
  color: var(--white);
  font-weight: 700;
}

/* Bottom legal */
.dh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}
.dh-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .dh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dh-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dh-group-link { flex-direction: column; text-align: center; gap: 12px; }
  .dh-footer-about { max-width: 100%; }
}

/* === FIX C — overflow horizontal mobile === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
@media (max-width: 768px) {
  .dh-container,
  main, section, article, .dh-product-grid, .dh-card-body {
    max-width: 100vw;
    box-sizing: border-box;
  }
  img, video, iframe, table { max-width: 100%; height: auto; }
  table { display: block; overflow-x: auto; }
}

/* === FIX B — Landing /tienda/ === */
#dh-shop-landing { padding: 32px 0 64px; }
.dh-shop-landing-intro { color: #555; margin-bottom: 32px; }
.dh-shop-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.dh-shop-landing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dh-shop-landing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.dh-shop-landing-card-img {
  aspect-ratio: 1/1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dh-shop-landing-card-img img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
.dh-shop-landing-card-body {
  padding: 16px;
  text-align: center;
}
.dh-shop-landing-card-body h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.dh-shop-landing-count {
  color: #6b7280;
  font-size: 13px;
}

/* Spec grid variantes 2/3/4 cajas (ficha individual) */
.dh-specs-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dh-specs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dh-specs-grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .dh-specs-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .dh-specs-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Línea de fecha de llegada en cards bajo_pedido_con_plazo */
.dh-card-llegada {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #B85A00;
  padding: 4px 8px;
  background: #FFF4E5;
  border-radius: 4px;
  margin: 6px 16px 8px;
  line-height: 1.3;
}
.dh-card-llegada svg {
  flex-shrink: 0;
}

/* === FIBOSEARCH HEADER DH === */

/* Wrapper */
.dgwt-wcas-search-wrapp {
    max-width: 520px;
    width: 100%;
}

.dgwt-wcas-search-form {
    background: transparent !important;
    border: none !important;
}

/* Input limpio sin botón */
.dgwt-wcas-search-input,
input.dgwt-wcas-search-input[type="search"] {
    height: 44px !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 0 16px 0 44px !important;
    box-shadow: none !important;
    width: 100% !important;
}

.dgwt-wcas-search-input:focus,
input.dgwt-wcas-search-input[type="search"]:focus {
    border-color: #E8001D !important;
    background: #1a1a1a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(232,0,29,.15) !important;
}

.dgwt-wcas-search-input::placeholder {
    color: #888 !important;
}

/* Lupa decorativa RETIRADA 2026-07-20 (input SP sin ninguna lupa). Se mantiene
   position:relative por si algo del posicionamiento del wrapper lo necesita.
   El ::before de la lupa (background-image SVG) se ha eliminado. */
html body .dgwt-wcas-search-wrapp {
    position: relative !important;
}

/* Garantizar que el SVG/icono nativo del plugin no aparece (evitar duplicado) */
html body .dgwt-wcas-search-icon,
html body .dgwt-wcas-ico-magnifier {
    display: none !important;
}

/* Botón submit oculto por si reaparece (cinturón + tirantes con setting show_submit_button=off) */
html body .dgwt-wcas-search-submit,
html body button.dgwt-wcas-search-submit,
html body .js-dgwt-wcas-search-submit {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* ========== DROPDOWN DARK ========== */

/* Contenedor del dropdown */
html body .dgwt-wcas-suggestions-wrapp,
html body div.dgwt-wcas-suggestions-wrapp,
html body .dgwt-wcas-details-wrapp {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.6) !important;
    overflow: hidden !important;
}

/* Headings "CATEGORÍAS" / "PRODUCTOS" */
html body .dgwt-wcas-suggestion-headline,
html body .dgwt-wcas-st-headline,
html body div.dgwt-wcas-suggestion-headline {
    color: #999 !important;
    background-color: #0f0f0f !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid #2a2a2a !important;
    border-top: 1px solid #2a2a2a !important;
}

/* Items de sugerencia */
html body .dgwt-wcas-suggestion,
html body div.dgwt-wcas-suggestion,
html body .dgwt-wcas-suggestion-product {
    color: #e5e5e5 !important;
    background-color: transparent !important;
    border-bottom: 1px solid #252525 !important;
    padding: 12px 16px !important;
    transition: background-color .12s ease !important;
}

html body .dgwt-wcas-suggestion:last-child {
    border-bottom: none !important;
}

/* Hover / focused */
html body .dgwt-wcas-suggestion:hover,
html body .dgwt-wcas-suggestion-focused,
html body .dgwt-wcas-suggestion.dgwt-wcas-suggestion-focused,
html body .dgwt-wcas-suggestion:hover .dgwt-wcas-st-title {
    background-color: #2a2a2a !important;
    color: #fff !important;
}

/* Título del producto */
html body .dgwt-wcas-st-title,
html body .dgwt-wcas-suggestion .dgwt-wcas-st-title {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

/* TÉRMINO RESALTADO (el span que mete FiboSearch alrededor del match) */
html body .dgwt-wcas-st-title .dgwt-wcas-highlight,
html body .dgwt-wcas-st-title span.dgwt-wcas-st--highlight,
html body .dgwt-wcas-highlight,
html body mark.dgwt-wcas-highlight {
    color: #E8001D !important;
    background-color: transparent !important;
    font-weight: 700 !important;
}

/* SKU */
html body .dgwt-wcas-st-sku,
html body span.dgwt-wcas-st-sku {
    color: #888 !important;
    font-size: 12px !important;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
    margin-top: 2px !important;
    display: block !important;
}

html body .dgwt-wcas-st-sku .dgwt-wcas-highlight {
    color: #E8001D !important;
    font-weight: 700 !important;
}

/* Precio */
html body .dgwt-wcas-st--price,
html body .dgwt-wcas-price {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

html body .dgwt-wcas-price ins,
html body .dgwt-wcas-st--price ins {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

html body .dgwt-wcas-price del,
html body .dgwt-wcas-st--price del {
    color: #666 !important;
    font-size: 12px !important;
}

/* "IVA no incluido" sufijo */
html body .dgwt-wcas-price-suffix,
html body small.woocommerce-price-suffix {
    color: #888 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    display: block !important;
}

/* Miniatura producto */
html body .dgwt-wcas-si,
html body .dgwt-wcas-suggestion-product .dgwt-wcas-si {
    width: 52px !important;
    height: 52px !important;
    background-color: #fff !important;
    border-radius: 6px !important;
    border: 1px solid #2a2a2a !important;
    overflow: hidden !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
}

html body .dgwt-wcas-si img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

/* Sugerencias de categoría (taxonomía) */
html body .dgwt-wcas-suggestion-taxonomy,
html body .dgwt-wcas-suggestion[data-suggestion-type="taxonomy"] {
    color: #fff !important;
}

html body .dgwt-wcas-suggestion-taxonomy .dgwt-wcas-st-title,
html body .dgwt-wcas-suggestion-taxonomy a {
    color: #fff !important;
    font-size: 13px !important;
}

html body .dgwt-wcas-st-taxonomy,
html body .dgwt-wcas-st-breadcrumbs {
    color: #888 !important;
    font-size: 11px !important;
}

/* "Ver todos los resultados…" */
html body .dgwt-wcas-suggestion-more,
html body .dgwt-wcas-suggestion-more a {
    background-color: #0f0f0f !important;
    color: #E8001D !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 12px 16px !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    border-top: 1px solid #2a2a2a !important;
}

html body .dgwt-wcas-suggestion-more:hover {
    background-color: #E8001D !important;
    color: #fff !important;
}

/* Scrollbar del dropdown si aparece */
html body .dgwt-wcas-suggestions-wrapp::-webkit-scrollbar {
    width: 8px;
}
html body .dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-track {
    background: #1a1a1a;
}
html body .dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
html body .dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mensaje "Sin resultados" */
html body .dgwt-wcas-suggestion-nores,
html body .dgwt-wcas-no-results {
    color: #888 !important;
    background-color: #1a1a1a !important;
    padding: 20px 16px !important;
    text-align: center !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .dgwt-wcas-search-wrapp { max-width: 100%; }
    .dgwt-wcas-search-input { font-size: 16px !important; }
}

/* IVA no incluido — clase custom del child theme dh-iva-label */
html body .dgwt-wcas-st--price small.dh-iva-label,
html body .dgwt-wcas-price small.dh-iva-label,
html body .dgwt-wcas-suggestion small.dh-iva-label {
    color: #888 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    display: block !important;
    margin-top: 2px !important;
}

/* Resaltado v1.33 — clase con doble guión */
html body .dgwt-wcas-st--hl,
html body span.dgwt-wcas-st--hl {
    color: #E8001D !important;
    background-color: transparent !important;
    font-weight: 700 !important;
}

/* Forzar dimensiones del IMG dentro de .dgwt-wcas-si — fix miniaturas que llegan
   sin width/height del plugin */
html body .dgwt-wcas-suggestion-product .dgwt-wcas-si img,
html body .dgwt-wcas-si img[src] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    background-color: #fff !important;
}

/* Si la imagen falla, ocultar el icono roto del navegador */
html body .dgwt-wcas-si img:not([src]),
html body .dgwt-wcas-si img[src=""] {
    display: none !important;
}

/* --- FIX: doble borde — eliminar bordes de wrappers --- */

html body .dgwt-wcas-search-wrapp,
html body div.dgwt-wcas-search-wrapp,
html body .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris,
html body .dgwt-wcas-search-wrapp.dgwt-wcas-style-pirx,
html body .dgwt-wcas-search-wrapp.dgwt-wcas-no-submit,
html body .dgwt-wcas-search-wrapp.dgwt-wcas-has-submit {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

html body .dgwt-wcas-search-form,
html body form.dgwt-wcas-search-form {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

html body .dgwt-wcas-sf-wrapp,
html body div.dgwt-wcas-sf-wrapp {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    position: relative !important;
}

/* El ÚNICO borde rojo válido en focus es el del input */
html body .dgwt-wcas-search-wrapp:focus-within {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* --- FIX: ocultar elementos accesorios que rompen layout (voice, close, etc) --- */

html body .dgwt-wcas-voice-search,
html body div.dgwt-wcas-voice-search,
html body .dgwt-wcas-close-search,
html body div.dgwt-wcas-close-search,
html body .dgwt-wcas-close,
html body div.dgwt-wcas-close,
html body .dgwt-wcas-inner-preloader,
html body .dgwt-wcas-clear-search {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Whitelist: dentro de sf-wrapp solo deben verse input, preloader, label a11y
   y la lupa SVG suelta (.dgwt-wcas-ico-magnifier). Cualquier otro hijo directo
   (voice-search residual, separadores que Solaris pueda inyectar) se oculta. */
html body .dgwt-wcas-sf-wrapp > *:not(.dgwt-wcas-search-input):not(.dgwt-wcas-preloader):not(label):not(.dgwt-wcas-ico-magnifier):not(svg) {
    display: none !important;
}

/* Spinner: transparente y posicionado a la derecha */
html body .dgwt-wcas-preloader {
    background: transparent !important;
    background-color: transparent !important;
    right: 14px !important;
    left: auto !important;
}

/* Label a11y no debe ocupar espacio visual */
html body .dgwt-wcas-sf-wrapp label.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
}

/* --- FIX NUCLEAR: ocultar cualquier hijo no esencial del wrapper --- */

html body .dgwt-wcas-sf-wrapp > div:not(.dgwt-wcas-preloader),
html body .dgwt-wcas-sf-wrapp > button,
html body .dgwt-wcas-sf-wrapp > span,
html body .dgwt-wcas-sf-wrapp > a {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Forzar el INPUT a ocupar el 100% del wrapper sin nada a la derecha */
html body .dgwt-wcas-search-wrapp input.dgwt-wcas-search-input {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-right: 40px !important;
}

/* El preloader (spinner) debe ser INVISIBLE cuando no está activo */
html body .dgwt-wcas-preloader {
    display: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
}

/* Cuando esté buscando (clase aria-busy en el wrapper), mostrar spinner */
html body .dgwt-wcas-search-wrapp[aria-busy="true"] .dgwt-wcas-preloader,
html body .dgwt-wcas-search-wrapp.dgwt-wcas-loading .dgwt-wcas-preloader {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    right: 14px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* === FIN FIBOSEARCH === */

/* ============================================================
   RESPONSIVE — HEADER MOBILE (consolidado, 2026-05-11)
   Sobrescribe parcialmente el @media 768px de la línea 902.
   ============================================================ */

@media (max-width: 768px) {
    /* Logo: ocultar tagline largo, reducir el resto */
    .dh-logo-text .lt-2 { display: none; }
    .dh-logo-text .lt-1 { font-size: 15px; }
    .dh-logo-mark { width: 36px; height: 36px; }

    /* Buscador: forzar visible en SEGUNDA FILA full-width */
    .dh-search {
        display: flex !important;
        grid-column: 1 / -1;
        order: 99;
        width: 100%;
        margin-top: 12px;
        height: 44px;
    }
    .dh-search .dgwt-wcas-search-wrapp { max-width: 100% !important; }
    .dh-search form { width: 100%; }
    .dh-search input[type="search"] { width: 100%; }

    /* Header main: 2 columnas en fila 1, search wrappea a fila 2 */
    .dh-header-main {
        grid-template-columns: auto 1fr;
        gap: 12px;
        padding: 12px 0;
    }

    /* Actions: compactar a icono+total */
    .dh-header-actions { gap: 4px; }
    .dh-icon-btn { padding: 6px 8px; gap: 6px; }
    .dh-icon-btn .lbl small { display: none; }
    .dh-icon-btn .lbl strong { font-size: 12px; }

    /* "Mi cuenta": solo icono (oculta el label entero, no el botón) */
    .dh-header-actions > a.dh-icon-btn[href*="mi-cuenta"] .lbl,
    .dh-header-actions > a.dh-icon-btn[href*="myaccount"] .lbl {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Logo: solo el SVG con DH */
    .dh-logo-text { display: none; }

    /* Cart: aún más compacto */
    .dh-icon-btn .lbl strong { font-size: 11px; }
    .dh-icon-btn { padding: 4px 6px; }
}

/* === DH: icono de cuenta más grande y prominente en móvil (2026-06-29) === */
@media (max-width: 768px) {
  /* Agranda SOLO el muñequito de cuenta (selector por href, no afecta al carrito) */
  .dh-header-actions > a.dh-icon-btn[href*="mi-cuenta"] svg,
  .dh-header-actions > a.dh-icon-btn[href*="myaccount"] svg {
    width: 26px;
    height: 26px;
  }
  /* Tap target más cómodo en ese botón */
  .dh-header-actions > a.dh-icon-btn[href*="mi-cuenta"],
  .dh-header-actions > a.dh-icon-btn[href*="myaccount"] {
    padding: 6px 8px;
  }
  /* Grupo de acciones pegado a la derecha */
  .dh-header-actions { justify-content: flex-end; margin-left: auto; }
}


/* ===== FIX trasplante (2026-07-17): las landing pages usan el modulo Woo de Divi
   (ul.products) con hijos div.dh-product-card. Divi estiliza li.product (que aqui
   NO existe) -> las tarjetas se apilan a 1 columna. Se estiliza ul.products como
   grid, igual que .dh-product-grid. Reversible: git checkout sp-divi/style.css */
.et_pb_shop ul.products,
.et_pb_wc_products ul.products,
ul.products:has(.dh-product-card) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.et_pb_shop ul.products::before, .et_pb_shop ul.products::after,
ul.products:has(.dh-product-card)::before, ul.products:has(.dh-product-card)::after { content: none; display: none; }
.et_pb_shop ul.products .dh-product-card,
ul.products:has(.dh-product-card) .dh-product-card { width: auto; float: none; margin: 0; }
@media (max-width: 1100px) { .et_pb_shop ul.products, ul.products:has(.dh-product-card) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  { .et_pb_shop ul.products, ul.products:has(.dh-product-card) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .et_pb_shop ul.products, ul.products:has(.dh-product-card) { grid-template-columns: 1fr; } }

/* ============================================================
   CONTENCIÓN DE TERCEROS (27-jul-2026)
   ============================================================ */
/* Modal oculto de woocommerce-email-cart: su estado hard-hide pone left:0 con
   margin-left:-240px y deja la caja asomando 228px por la izquierda. left:50%
   replica el centrado del estado visible; top:-200% (del plugin) lo mantiene oculto.
   Solo >=481px: por debajo el plugin ya recoloca el modal con margin:0. */
@media (min-width: 481px) {
  div.cxecrt-component-modal-popup.cxecrt-component-modal-hard-hide { left: 50%; }
}

/* ===== LOTE1 pre-cutover (1-ago-2026): rebrand SP + a11y ===== */
html body .dh-iva-label{font-size:12px;}                 /* F3 IVA >=12px */
.sp-footer-brand img{background:#fff;padding:7px 11px;border-radius:8px;max-width:170px;height:auto;}  /* F4 logo footer sin caja en fondo oscuro */
