/*
Theme Name:   HidraTec Chile
Theme URI:    https://hidratec.cl
Description:  Tema hijo de Astra para HidraTec Chile — oleohidráulica, mangueras y conexiones industriales. Estética industrial moderna sobre la paleta del isotipo (azul HidraTec sobre carbón).
Author:       HidraTec Chile
Template:     astra
Version:      1.0.0
Text Domain:  hidratec-child
*/

/* ==========================================================================
   1. Tokens de marca — extraídos del logotipo
   ========================================================================== */
:root {
  --ht-azul:        #1E7FD4;   /* acento principal: CTA, precios, enlaces */
  --ht-azul-osc:    #0B3D6B;   /* títulos, header profundo */
  --ht-cian:        #2FA8F0;   /* hover, destellos */
  --ht-carbon:      #23262B;   /* barras oscuras */
  --ht-carbon-2:    #2E3238;
  --ht-grafito:     #3A3F46;
  --ht-humo:        #F4F6F8;   /* fondo de sección */
  --ht-borde:       #DCE3EA;
  --ht-texto:       #1B1F24;
  --ht-texto-sec:   #5A646E;
  --ht-ok:          #1F9D55;
  --ht-alerta:      #E8871A;

  --ht-radio:       4px;       /* esquinas casi rectas: lenguaje industrial */
  --ht-sombra:      0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --ht-sombra-alta: 0 8px 28px rgba(11,61,107,.16);
  --ht-transicion:  .18s cubic-bezier(.4,0,.2,1);
  --ht-max:         1280px;
}

/* ==========================================================================
   2. Base tipográfica
   ========================================================================== */
body,
.ast-container {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ht-texto);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ht-azul-osc);
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }

a { color: var(--ht-azul); text-decoration: none; transition: color var(--ht-transicion); }
a:hover, a:focus { color: var(--ht-cian); }

/* foco visible: accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ht-cian);
  outline-offset: 2px;
}

.ht-wrap { max-width: var(--ht-max); margin-inline: auto; padding-inline: 20px; }

/* Cinta diagonal de señalética industrial, usada como separador */
.ht-cinta {
  height: 6px;
  background: repeating-linear-gradient(135deg,
    var(--ht-azul) 0 14px, var(--ht-azul-osc) 14px 28px);
}

/* ==========================================================================
   3. Cabecera — sobre carbón, que es el fondo para el que está diseñado el logotipo
   ========================================================================== */
.ht-barra-top {
  background: #16191D;
  color: #9AA8B6;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ht-barra-top .ht-wrap {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  align-items: center; justify-content: space-between;
  min-height: 40px;
}
.ht-barra-top a { color: #9AA8B6; }
.ht-barra-top a:hover { color: #fff; }
.ht-barra-top strong { color: #fff; font-weight: 600; }
.ht-barra-top__datos { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.ht-barra-top__datos span { display: inline-flex; align-items: center; gap: 7px; }
.ht-barra-top svg { width: 15px; height: 15px; flex: none; opacity: .8; }

.ht-cabecera { background: var(--ht-carbon); }
.ht-cabecera .ht-wrap {
  display: flex; align-items: center; gap: 26px;
  min-height: 96px; padding-block: 8px;
}
.ht-logo { flex: none; display: block; }
/* El logotipo trae su halo y el fondo ya igualado al carbón, así que se muestra
   entero. Recortarlo contra el fondo era lo que rompía el engranaje y partía las
   líneas de "CHILE": el halo es una gradiente muy amplia y ningún umbral la separa. */
.ht-logo img { height: 78px; width: auto; display: block; margin: -12px 0; }

.ht-buscador { flex: 1 1 320px; max-width: 580px; position: relative; }
.ht-buscador form { display: flex; }
.ht-buscador input[type="search"] {
  flex: 1; height: 46px; padding: 0 16px;
  border: 2px solid transparent; border-right: 0;
  border-radius: var(--ht-radio) 0 0 var(--ht-radio);
  font-size: 15px; background: #fff; color: var(--ht-texto);
}
.ht-buscador input[type="search"]:focus { border-color: var(--ht-cian); outline: none; }
.ht-buscador button {
  height: 46px; padding: 0 22px; border: 0; cursor: pointer;
  border-radius: 0 var(--ht-radio) var(--ht-radio) 0;
  background: var(--ht-azul); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  transition: background var(--ht-transicion);
}
.ht-buscador button:hover { background: var(--ht-cian); }

.ht-acciones { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ht-accion {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--ht-radio);
  color: #D8E2EC; font-size: 14px;
  transition: background var(--ht-transicion);
}
.ht-accion:hover { background: rgba(255,255,255,.07); color: #fff; }
.ht-accion svg { width: 23px; height: 23px; stroke: var(--ht-cian); flex: none; }
.ht-accion b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: #fff; }
.ht-accion small { display: block; font-size: 12px; color: #93A2B1; }
.ht-accion__badge {
  position: absolute; transform: translate(13px, -12px);
  background: var(--ht-alerta); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 99px;
}

/* ==========================================================================
   4. Navegación — una sola fila: catálogo desplegable + accesos directos
   Las diez categorías no caben en línea y partirlas en dos filas desparejas
   se leía como un error de maquetación, no como una decisión.
   ========================================================================== */
.ht-nav { background: var(--ht-azul-osc); position: relative; z-index: 40; }
.ht-nav .ht-wrap { display: flex; align-items: stretch; gap: 6px; }

/* --- botón de catálogo con las diez categorías --- */
.ht-catalogo { position: relative; flex: none; }
.ht-catalogo__boton {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px; border: 0; cursor: pointer;
  background: var(--ht-azul); color: #fff;
  font-size: 14.5px; font-weight: 700; font-family: inherit;
  transition: background var(--ht-transicion);
}
.ht-catalogo__boton:hover,
.ht-catalogo:hover .ht-catalogo__boton,
.ht-catalogo:focus-within .ht-catalogo__boton { background: var(--ht-cian); }
.ht-catalogo__boton svg { width: 19px; height: 19px; flex: none; }
.ht-catalogo__boton svg:last-child { width: 12px; height: 12px; opacity: .85; }

.ht-catalogo__lista {
  position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 326px; margin: 0; padding: 6px 0; list-style: none;
  background: #fff; border: 1px solid var(--ht-borde);
  border-top: 3px solid var(--ht-azul);
  box-shadow: var(--ht-sombra-alta);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all var(--ht-transicion);
}
.ht-catalogo:hover .ht-catalogo__lista,
.ht-catalogo:focus-within .ht-catalogo__lista,
.ht-catalogo.is-abierto .ht-catalogo__lista { opacity: 1; visibility: visible; transform: none; }

.ht-nav__item { position: relative; }
.ht-nav__item > a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--ht-texto); font-size: 14.5px;
  border-left: 3px solid transparent;
}
.ht-nav__item > a > span { flex: 1; }
.ht-nav__item > a small {
  font-size: 12px; color: var(--ht-texto-sec); font-weight: 600;
  background: var(--ht-humo); border-radius: 99px; padding: 2px 8px;
}
.ht-nav__item > a svg { width: 13px; height: 13px; flex: none; opacity: .4; }
.ht-nav__item > a:hover,
.ht-nav__item:focus-within > a,
.ht-nav__item.is-open > a {
  background: var(--ht-humo); color: var(--ht-azul); border-left-color: var(--ht-azul);
}
.ht-nav__item > a:hover svg { opacity: 1; }

/* --- panel de subcategorías, al costado --- */
.ht-drop {
  position: absolute; top: -6px; left: 100%;
  width: 560px; padding: 20px 24px;
  background: #fff; border: 1px solid var(--ht-borde);
  border-top: 3px solid var(--ht-azul);
  box-shadow: var(--ht-sombra-alta);
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: all var(--ht-transicion);
}
.ht-nav__item:hover > .ht-drop,
.ht-nav__item:focus-within > .ht-drop,
.ht-nav__item.is-open > .ht-drop { opacity: 1; visibility: visible; transform: none; }

.ht-drop__titulo {
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--ht-borde);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 19px; color: var(--ht-azul-osc);
  text-transform: uppercase; letter-spacing: .03em;
}
.ht-drop__cols { columns: 2; column-gap: 26px; }
.ht-drop__cols a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  break-inside: avoid; padding: 6px 0;
  color: var(--ht-texto); font-size: 14px;
}
.ht-drop__cols a:hover { color: var(--ht-azul); }
.ht-drop__cols a small { font-size: 11.5px; color: var(--ht-texto-sec); flex: none; }
.ht-drop__todo {
  display: flex; align-items: center; gap: 7px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--ht-borde);
  font-size: 14px; font-weight: 600; color: var(--ht-azul);
}
.ht-drop__todo svg { width: 13px; height: 13px; flex: none; }

/* --- accesos directos --- */
.ht-nav__rapidos {
  display: flex; align-items: stretch; flex-wrap: nowrap;
  margin: 0; padding: 0; list-style: none; min-width: 0; overflow: hidden;
}
.ht-nav__rapidos a {
  display: flex; align-items: center; height: 52px; padding: 0 14px;
  color: #DCE8F3; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background var(--ht-transicion), color var(--ht-transicion);
}
.ht-nav__rapidos a:hover { background: rgba(255,255,255,.09); color: #fff; }

.ht-nav__destacado {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; padding: 0 18px; height: 52px; flex: none;
  color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap;
  background: var(--ht-ok);
  transition: filter var(--ht-transicion);
}
.ht-nav__destacado:hover { filter: brightness(1.12); color: #fff; }
.ht-nav__destacado svg { width: 19px; height: 19px; flex: none; }

/* ==========================================================================
   5. Tarjetas de producto
   ========================================================================== */
ul.products {
  display: grid; gap: 20px; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
}
ul.products::before,
ul.products::after { content: none; }

ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ht-borde);
  border-radius: var(--ht-radio); overflow: hidden;
  transition: border-color var(--ht-transicion), box-shadow var(--ht-transicion),
              transform var(--ht-transicion);
}
ul.products li.product:hover {
  border-color: var(--ht-azul);
  box-shadow: var(--ht-sombra-alta);
  transform: translateY(-3px);
}
ul.products li.product a img {
  margin: 0; aspect-ratio: 1; object-fit: contain;
  background: #fff; padding: 12px;
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: 15.5px !important; line-height: 1.3; font-weight: 600;
  padding: 0 14px; margin: 4px 0 8px;
  color: var(--ht-texto); font-family: 'Inter', sans-serif;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.9em;
}
ul.products li.product .price {
  padding: 0 14px; margin-top: auto;
  color: var(--ht-azul-osc); font-size: 20px; font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .02em;
}
ul.products li.product .price del { color: var(--ht-texto-sec); font-size: 15px; font-weight: 500; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button {
  margin: 12px 14px 14px; text-align: center;
}

/* etiqueta SKU en la tarjeta */
.ht-sku {
  padding: 12px 14px 0; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ht-texto-sec); font-weight: 600;
}

.woocommerce span.onsale {
  background: var(--ht-alerta); color: #fff;
  border-radius: var(--ht-radio); min-height: 0; min-width: 0;
  padding: 5px 11px; font-size: 12px; font-weight: 700;
  line-height: 1.2; top: 10px; left: 10px; right: auto; margin: 0;
}

/* ==========================================================================
   6. Botones
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.ht-btn {
  background: var(--ht-azul); color: #fff;
  border: 0; border-radius: var(--ht-radio);
  padding: 12px 22px; font-weight: 600; font-size: 15px;
  line-height: 1.25; cursor: pointer;
  transition: background var(--ht-transicion), transform var(--ht-transicion);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.ht-btn:hover { background: var(--ht-azul-osc); color: #fff; transform: translateY(-1px); }

.ht-btn--fantasma {
  background: transparent; color: var(--ht-azul);
  box-shadow: inset 0 0 0 2px var(--ht-azul);
}
.ht-btn--fantasma:hover { background: var(--ht-azul); color: #fff; }

.ht-btn--claro { background: #fff; color: var(--ht-azul-osc); }
.ht-btn--claro:hover { background: var(--ht-humo); color: var(--ht-azul-osc); }

/* ==========================================================================
   7. Portada
   ========================================================================== */
.ht-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% 12%, rgba(47,168,240,.30), transparent 62%),
    linear-gradient(120deg, var(--ht-azul-osc) 0%, #0A2E52 46%, var(--ht-carbon) 100%);
  color: #fff;
}
.ht-hero::after {   /* trama técnica sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(100deg, transparent 32%, #000 100%);
}
.ht-hero .ht-wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 48px; align-items: center; padding-block: 76px;
}
.ht-hero__etiqueta {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(47,168,240,.16); border: 1px solid rgba(47,168,240,.42);
  color: #BFE2FB; border-radius: 99px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.ht-hero h1 { color: #fff; margin: 18px 0 14px; }
.ht-hero h1 em { font-style: normal; color: var(--ht-cian); }
.ht-hero p { color: #C6D6E4; font-size: 17.5px; max-width: 58ch; margin-bottom: 26px; }
.ht-hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.ht-hero__cifras {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16);
}
.ht-hero__cifras b {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px; color: var(--ht-cian); line-height: 1;
}
.ht-hero__cifras span { font-size: 13.5px; color: #A9BED2; }

.ht-hero__panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 26px; backdrop-filter: blur(3px);
}
.ht-hero__panel h2 { color: #fff; font-size: 20px; margin: 0 0 16px; }
.ht-hero__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ht-hero__panel li {
  display: flex; gap: 11px; align-items: flex-start;
  color: #D5E3EF; font-size: 15px;
}
.ht-hero__panel li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; stroke: var(--ht-cian); }

.ht-seccion { padding-block: 62px; }
.ht-seccion--humo { background: var(--ht-humo); }
.ht-seccion__cabeza { margin-bottom: 30px; }
.ht-seccion__cabeza p { color: var(--ht-texto-sec); margin: 6px 0 0; font-size: 16.5px; }
.ht-seccion__cabeza h2 { margin: 0; }
.ht-seccion__cabeza--fila {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-end; justify-content: space-between;
}

/* rejilla de categorías */
.ht-cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ht-cat {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--ht-borde); border-radius: var(--ht-radio);
  padding: 20px; transition: all var(--ht-transicion); overflow: hidden;
}
.ht-cat::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--ht-azul); transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--ht-transicion);
}
.ht-cat:hover { border-color: var(--ht-azul); box-shadow: var(--ht-sombra-alta); }
.ht-cat:hover::before { transform: scaleY(1); }
.ht-cat img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.ht-cat h3 { font-size: 18px; margin: 0; color: var(--ht-azul-osc); }
.ht-cat small { color: var(--ht-texto-sec); font-size: 13.5px; }

/* franja de confianza */
.ht-ventajas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.ht-ventaja { display: flex; gap: 15px; align-items: flex-start; }
.ht-ventaja__icono {
  flex: none; width: 46px; height: 46px; border-radius: var(--ht-radio);
  background: rgba(30,127,212,.10); display: grid; place-items: center;
}
.ht-ventaja__icono svg { width: 23px; height: 23px; stroke: var(--ht-azul); }
.ht-ventaja h3 { font-size: 17px; margin: 0 0 3px; }
.ht-ventaja p { margin: 0; font-size: 14.5px; color: var(--ht-texto-sec); }

/* ==========================================================================
   8. Catálogo y ficha
   ========================================================================== */
.woocommerce-breadcrumb {
  font-size: 13.5px; color: var(--ht-texto-sec);
  padding: 14px 0; margin: 0;
}
.woocommerce-breadcrumb a { color: var(--ht-texto-sec); }
.woocommerce-breadcrumb a:hover { color: var(--ht-azul); }

.woocommerce div.product .product_title { margin-bottom: 10px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ht-azul-osc); font-size: 34px; font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--ht-azul);
}
.woocommerce .quantity input[type="number"] {
  height: 46px; border: 2px solid var(--ht-borde); border-radius: var(--ht-radio);
}

.ht-ficha-datos {
  display: grid; gap: 10px; margin: 18px 0 22px;
  padding: 16px 18px; background: var(--ht-humo);
  border-left: 3px solid var(--ht-azul); border-radius: 0 var(--ht-radio) var(--ht-radio) 0;
}
.ht-ficha-datos div { display: flex; gap: 10px; font-size: 14.5px; }
.ht-ficha-datos dt { color: var(--ht-texto-sec); min-width: 128px; }
.ht-ficha-datos dd { margin: 0; font-weight: 600; }

/* ==========================================================================
   9. Pie
   ========================================================================== */
.ht-pie { background: var(--ht-carbon); color: #AFBECC; font-size: 14.5px; }
.ht-pie a { color: #AFBECC; }
.ht-pie a:hover { color: #fff; }
.ht-pie__grid {
  display: grid; gap: 34px; padding-block: 54px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
.ht-pie h3 {
  color: #fff; font-size: 16px; margin: 0 0 14px;
  letter-spacing: .07em; text-transform: uppercase;
  font-family: 'Inter', sans-serif; font-weight: 700;
}
.ht-pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
/* los iconos van en línea dentro del texto: sin tamaño explícito el SVG se estira */
.ht-pie svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: .8; }
.ht-pie p { margin: 0 0 10px; line-height: 1.7; }
.ht-pie img.ht-pie__logo { height: 48px; width: auto; margin-bottom: 16px; }
.ht-pie__legal {
  border-top: 1px solid rgba(255,255,255,.10); padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: 13.5px; color: #8A9AAA;
}

/* aviso de dato pendiente del cliente, visible solo para el equipo */
.ht-pendiente {
  background: #FFF4E0; border: 1px dashed var(--ht-alerta);
  color: #8A5200; padding: 2px 7px; border-radius: 3px;
  font-size: .92em; font-weight: 600;
}

/* ==========================================================================
   10. Adaptación a pantallas chicas
   ========================================================================== */
@media (max-width: 1024px) {
  .ht-hero .ht-wrap { grid-template-columns: 1fr; padding-block: 54px; gap: 34px; }
  .ht-pie__grid { grid-template-columns: 1fr 1fr; }
  .ht-nav__lista { display: none; }
  .ht-nav.is-abierto .ht-nav__lista {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ht-borde);
    box-shadow: var(--ht-sombra-alta); max-height: 74vh; overflow-y: auto;
  }
  .ht-nav.is-abierto .ht-nav__item > a { color: var(--ht-texto); height: 48px; }
  .ht-nav.is-abierto .ht-drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 3px solid var(--ht-azul);
    margin-left: 16px; display: none;
  }
  .ht-nav.is-abierto .ht-nav__item.is-open .ht-drop { display: block; }
}

@media (max-width: 782px) {
  .ht-cabecera .ht-wrap { flex-wrap: wrap; gap: 14px; min-height: 0; }
  .ht-buscador { order: 3; flex-basis: 100%; max-width: none; }
  .ht-logo img { height: 42px; }
  .ht-accion b, .ht-accion small { display: none; }
  .ht-barra-top__datos span:not(:first-child) { display: none; }
  .ht-hero__cifras { grid-template-columns: 1fr; gap: 10px; }
  .ht-pie__grid { grid-template-columns: 1fr; gap: 26px; }
  ul.products { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   11. Ajustes sobre Astra
   Astra encierra el contenido en un contenedor con márgenes y pinta algunos
   colores propios con mayor especificidad. Aquí se corrige lo justo.
   ========================================================================== */

/* Los bloques de portada van a sangre; el contenedor de Astra los recortaba. */
.home .ht-hero,
.home .ht-seccion,
.home .ht-cinta {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
.home .site-content .ast-container,
.home #primary { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.home .site-content > .ast-container { width: 100% !important; }
.home .entry-content > :not(.ht-hero):not(.ht-seccion):not(.ht-cinta) { display: none; }

/* El precio de Astra es verde; aquí manda el azul de marca. */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
ul.products li.product .price,
ul.products li.product .price .amount {
  color: var(--ht-azul-osc);
  font-size: 20px;
  font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
}
.woocommerce div.product p.price .amount,
.woocommerce div.product span.price .amount { color: var(--ht-azul-osc); }

/* La lista del menú es un <ul>: sin esto salen las viñetas. */
.ht-nav__lista { list-style: none; margin: 0; padding: 0; }
.ht-nav__lista li::before { content: none; }

/* Los SVG en línea heredan el alto del texto si no se les fija tamaño. */
.ht-hero__etiqueta svg { width: 16px; height: 16px; flex: none; }
.ht-ventaja__icono svg,
.ht-hero__panel li svg { flex: none; }
.ht-btn svg, .ht-accion svg, .ht-nav svg { flex: none; }

/* El botón de menú es solo para pantallas chicas. */
@media (min-width: 1025px) { .ht-nav__todas { display: none; } }

/* Astra reserva espacio de título/cabecera de entrada que en la tienda sobra. */
.home .ast-archive-description,
.home .entry-header { display: none; }

/* Astra dibuja su propia barra de pie encima de la nuestra: sobra. */
.site-footer .ast-small-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-footer-copyright { display: none !important; }
