/* ============================================================
   HERBOLARIA LA MONARCA - Sistema de diseno
   Verde Monarca #2D5016 + Oro Monarca #D4AF37
   ============================================================ */

:root {
  --hlm-green: #2D5016;
  --hlm-green-deep: #1B3009;
  --hlm-gold: #D4AF37;
  --hlm-gold-soft: #E8D9A0;
  --hlm-cream: #F9F6F3;
  --hlm-mint: #E8F4F0;
  --hlm-line: #DFE4DA;
  --hlm-ink: #23301C;
  --hlm-muted: #5F6B58;
  --hlm-shadow: 0 1px 2px rgba(27,48,9,.04), 0 8px 24px -8px rgba(27,48,9,.12);
  --hlm-shadow-lift: 0 2px 4px rgba(27,48,9,.06), 0 18px 40px -12px rgba(27,48,9,.22);
  --hlm-r: 8px;
}

/* ---------- Tipografia ---------- */

body,
.entry-content p,
.woocommerce {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--hlm-ink);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.entry-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--hlm-green-deep);
  font-weight: 600;
  letter-spacing: -.012em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.2; }

.hlm-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--hlm-muted);
  max-width: 60ch;
}

/* ---------- Ritmo de seccion ---------- */

.hlm-section {
  padding-block: clamp(64px, 8vw, 116px) !important;
  padding-inline: max(20px, 5vw) !important;
}
.hlm-section > * { max-width: 1180px; margin-inline: auto; }

.hlm-section--cream { background: var(--hlm-cream) !important; }
.hlm-section--mint  { background: var(--hlm-mint) !important; }

.hlm-head { margin-bottom: clamp(36px, 4.5vw, 62px); }
.hlm-head h2 { margin: 0 0 14px; }
.hlm-head .hlm-lead { margin: 0; }

/* Regla dorada con mariposa - el motivo de la marca */
.hlm-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
}
.hlm-rule::before,
.hlm-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--hlm-gold));
}
.hlm-rule::after { background: linear-gradient(90deg, var(--hlm-gold), transparent); }
.hlm-rule span {
  width: 26px; height: 22px; flex: none;
  background: center/contain no-repeat
    url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 170%22 fill=%22%23D4AF37%22%3E%3Cellipse cx=%2262%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(-28 62 58)%22/%3E%3Cellipse cx=%22138%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(28 138 58)%22/%3E%3Cellipse cx=%2274%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(-16 74 112)%22/%3E%3Cellipse cx=%22126%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(16 126 112)%22/%3E%3Cellipse cx=%22100%22 cy=%2285%22 rx=%226%22 ry=%2242%22/%3E%3C/svg%3E');
}
.hlm-rule--center { justify-content: center; }
.hlm-rule--left::before { display: none; }

/* ---------- Hero ---------- */

.hlm-hero {
  position: relative;
  overflow: hidden;
  background: var(--hlm-green) !important;
  padding-block: clamp(84px, 11vw, 150px) !important;
  padding-inline: max(20px, 5vw) !important;
}
.hlm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 520px at 88% 18%, rgba(212,175,55,.26), transparent 62%),
    radial-gradient(560px 420px at 4% 96%, rgba(212,175,55,.09), transparent 60%);
  pointer-events: none;
}
/* Mariposa que sangra fuera del marco */
.hlm-hero::after {
  content: '';
  position: absolute;
  right: -6%; top: 50%;
  width: min(620px, 52vw); aspect-ratio: 200/170;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .11;
  background: center/contain no-repeat
    url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 170%22 fill=%22%23D4AF37%22%3E%3Cellipse cx=%2262%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(-28 62 58)%22/%3E%3Cellipse cx=%22138%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(28 138 58)%22/%3E%3Cellipse cx=%2274%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(-16 74 112)%22/%3E%3Cellipse cx=%22126%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(16 126 112)%22/%3E%3Cellipse cx=%22100%22 cy=%2285%22 rx=%226%22 ry=%2242%22/%3E%3C/svg%3E');
  pointer-events: none;
}
.hlm-hero > * {
  position: relative; z-index: 1;
  max-width: 1180px; margin-inline: auto;
}
.hlm-hero__inner { max-width: 660px; }

.hlm-hero h1 {
  color: #fff !important;
  margin: 0 0 20px;
  padding-bottom: .08em;
}
.hlm-hero h1 em {
  font-style: italic;
  color: var(--hlm-gold);
  font-weight: 400;
}
.hlm-hero .hlm-kicker {
  color: var(--hlm-gold) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hlm-hero .hlm-lead {
  color: rgba(255,255,255,.84) !important;
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  max-width: 50ch;
  margin: 0 0 38px;
}

/* ---------- Botones ---------- */

.hlm-btn .wp-block-button__link,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button.add_to_cart_button {
  font-family: 'Montserrat', sans-serif !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  border-radius: var(--hlm-r) !important;
  padding: 15px 30px !important;
  transition: background-color .22s ease, color .22s ease,
              transform .22s ease, box-shadow .22s ease;
  border: 1px solid transparent;
}

.hlm-btn--gold .wp-block-button__link {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
  box-shadow: 0 10px 26px -10px rgba(212,175,55,.6);
}
.hlm-btn--gold .wp-block-button__link:hover {
  background: #E5C25A !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(212,175,55,.75);
}

.hlm-btn--ghost .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(212,175,55,.55) !important;
}
.hlm-btn--ghost .wp-block-button__link:hover {
  background: rgba(212,175,55,.12) !important;
  border-color: var(--hlm-gold) !important;
  transform: translateY(-2px);
}

.hlm-btn--green .wp-block-button__link {
  background: var(--hlm-green) !important;
  color: #fff !important;
}
.hlm-btn--green .wp-block-button__link:hover {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
  transform: translateY(-2px);
}

.wp-block-buttons { gap: 14px; }

/* ---------- Categorias WooCommerce ---------- */

.hlm-cats ul.wc-block-product-categories-list,
.hlm-cats .wc-block-product-categories-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hlm-cats .wc-block-product-categories-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.hlm-cats .wc-block-product-categories-list li a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--hlm-green-deep);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.hlm-cats .wc-block-product-categories-list li a::before {
  content: '';
  position: absolute; right: -18px; top: -14px;
  width: 96px; aspect-ratio: 200/170;
  opacity: .13;
  transition: opacity .24s ease, transform .24s ease;
  background: center/contain no-repeat
    url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 170%22 fill=%22%232D5016%22%3E%3Cellipse cx=%2262%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(-28 62 58)%22/%3E%3Cellipse cx=%22138%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(28 138 58)%22/%3E%3Cellipse cx=%2274%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(-16 74 112)%22/%3E%3Cellipse cx=%22126%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(16 126 112)%22/%3E%3Cellipse cx=%22100%22 cy=%2285%22 rx=%226%22 ry=%2242%22/%3E%3C/svg%3E');
}
.hlm-cats .wc-block-product-categories-list li a:hover {
  border-color: var(--hlm-gold);
  transform: translateY(-3px);
  box-shadow: var(--hlm-shadow-lift);
}
.hlm-cats .wc-block-product-categories-list li a:hover::before {
  opacity: .24;
  transform: rotate(-8deg) scale(1.06);
}
.hlm-cats .wc-block-product-categories-list-item-count {
  display: block;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hlm-gold);
}

/* ---------- Productos ---------- */

.hlm-products ul.products,
.hlm-products .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.hlm-products ul.products::before,
.hlm-products ul.products::after { display: none !important; }

.hlm-products li.product,
.hlm-products .wc-block-grid__product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 20px !important;
  float: none !important;
  background: #fff;
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  overflow: hidden;
  text-align: left;
  transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.hlm-products li.product:hover,
.hlm-products .wc-block-grid__product:hover {
  border-color: var(--hlm-gold);
  transform: translateY(-3px);
  box-shadow: var(--hlm-shadow-lift);
}

.hlm-products li.product a img,
.hlm-products .wc-block-grid__product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--hlm-cream);
  margin: 0 0 16px !important;
  transition: transform .4s ease;
}
.hlm-products li.product:hover img { transform: scale(1.04); }

.hlm-products .woocommerce-loop-product__title,
.hlm-products .wc-block-grid__product-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.02rem !important;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hlm-green-deep);
  padding: 0 18px !important;
  margin: 0 0 10px !important;
}
.hlm-products .price,
.hlm-products .wc-block-grid__product-price {
  display: block;
  padding: 0 18px;
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: var(--hlm-gold) !important;
}
.hlm-products .button,
.hlm-products .wp-block-button__link {
  margin: 0 18px !important;
  display: block;
  text-align: center;
  background: var(--hlm-green) !important;
  color: #fff !important;
  padding: 12px 18px !important;
  font-size: .8rem !important;
}
.hlm-products .button:hover {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
}

/* ---------- Beneficios (sin tarjetas, solo tipografia y oro) ---------- */

.hlm-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 42px 34px; }
.hlm-benefit { padding-top: 22px; border-top: 2px solid var(--hlm-gold); }
.hlm-benefit h3 { margin: 0 0 10px; font-size: 1.16rem; }
.hlm-benefit p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--hlm-muted);
}

/* ---------- Pasos ---------- */

.hlm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.hlm-step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--hlm-line); border-radius: var(--hlm-r); }
.hlm-step::before {
  counter-increment: s;
  content: counter(s);
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--hlm-gold);
  margin-bottom: 14px;
}
.hlm-step h3 { margin: 0 0 8px; font-size: 1.06rem; }
.hlm-step p { margin: 0; font-size: .9rem; color: var(--hlm-muted); line-height: 1.58; }

/* ---------- Testimonios ---------- */

.hlm-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hlm-quote {
  position: relative;
  background: #fff;
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  padding: 44px 28px 28px;
  box-shadow: var(--hlm-shadow);
}
.hlm-quote::before {
  content: '\201C';
  position: absolute; top: 6px; left: 22px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--hlm-gold);
  opacity: .34;
}
.hlm-quote p {
  margin: 0 0 20px;
  font-size: .97rem;
  line-height: 1.66;
  color: var(--hlm-ink);
}
.hlm-quote cite {
  display: block;
  font-style: normal;
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hlm-muted);
}

/* ---------- CTA de cierre ---------- */

.hlm-cta {
  position: relative;
  overflow: hidden;
  background: var(--hlm-green) !important;
  text-align: center;
}
.hlm-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(620px 400px at 50% 0%, rgba(212,175,55,.24), transparent 66%);
  pointer-events: none;
}
.hlm-cta > * { position: relative; z-index: 1; }
.hlm-cta h2 { color: #fff !important; margin: 0 0 16px; }
.hlm-cta .hlm-lead {
  color: rgba(255,255,255,.82) !important;
  margin: 0 auto 34px;
  text-align: center;
}
.hlm-cta .wp-block-buttons { justify-content: center; }

/* ---------- Contacto ---------- */

.hlm-contact { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hlm-contact__rows { margin-top: 26px; }
.hlm-contact__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hlm-line);
}
.hlm-contact__row span:first-child {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--hlm-muted);
}
.hlm-contact__row span:last-child,
.hlm-contact__row a { font-weight: 600; color: var(--hlm-green-deep); text-decoration: none; }
.hlm-contact__row a:hover { color: var(--hlm-gold); }

/* ---------- Header / Footer Kadence ---------- */

.site-branding .site-title,
#colophon .site-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 600;
  letter-spacing: -.01em;
}
.site-header { border-bottom: 1px solid var(--hlm-line); }
.site-header .header-navigation a { font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 500; }
.site-header .header-navigation a:hover { color: var(--hlm-gold) !important; }

#colophon, .site-footer { background: var(--hlm-green) !important; color: rgba(255,255,255,.76); }
#colophon a, .site-footer a { color: rgba(255,255,255,.76); }
#colophon a:hover, .site-footer a:hover { color: var(--hlm-gold); }
#colophon h2, #colophon h3, .site-footer h2, .site-footer h3 { color: #fff !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hlm-cats .wc-block-product-categories-list,
  .hlm-products ul.products,
  .hlm-products .wc-block-grid__products,
  .hlm-benefits,
  .hlm-steps { grid-template-columns: repeat(2, 1fr); }
  .hlm-quotes { grid-template-columns: 1fr; }
  .hlm-contact { grid-template-columns: 1fr; gap: 40px; }
  .hlm-hero::after { opacity: .08; right: -22%; }
}

@media (max-width: 680px) {
  .hlm-cats .wc-block-product-categories-list,
  .hlm-products ul.products,
  .hlm-products .wc-block-grid__products,
  .hlm-benefits,
  .hlm-steps { grid-template-columns: 1fr; }
  .hlm-benefits { gap: 30px; }
  .hlm-hero__inner { max-width: 100%; }
  .wp-block-buttons { width: 100%; }
  .wp-block-buttons .wp-block-button { width: 100%; }
  .wp-block-buttons .wp-block-button__link { display: block; text-align: center; }
  .hlm-hero::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .hlm-products li.product:hover img { transform: none; }
}

/* ============================================================
   Anulaciones estructurales para la salida real de Gutenberg
   (wp-block-columns es flex; aqui pasa a grid)
   ============================================================ */

.wp-block-columns.hlm-benefits,
.wp-block-columns.hlm-steps,
.wp-block-columns.hlm-quotes,
.wp-block-columns.hlm-contact {
  display: grid !important;
  flex-wrap: nowrap !important;
  align-items: start;
  margin-block: 0 !important;
}

.wp-block-columns.hlm-benefits { grid-template-columns: repeat(4, 1fr); gap: 42px 34px; }
.wp-block-columns.hlm-steps    { grid-template-columns: repeat(4, 1fr); gap: 26px; }
.wp-block-columns.hlm-quotes   { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wp-block-columns.hlm-contact  { grid-template-columns: 1.05fr .95fr; gap: 56px; }

.hlm-benefits > .wp-block-column,
.hlm-steps > .wp-block-column,
.hlm-quotes > .wp-block-column,
.hlm-contact > .wp-block-column {
  flex: none !important;
  flex-basis: auto !important;
  margin-left: 0 !important;
  min-width: 0;
}

/* Cita del testimonio como parrafo nativo */
.hlm-quote__cite {
  font-family: 'Montserrat', sans-serif !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hlm-muted) !important;
  margin: 0 !important;
}

/* Filas de contacto como parrafos nativos */
.hlm-row {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--hlm-line);
  font-weight: 600;
  color: var(--hlm-green-deep);
}
.hlm-row strong {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--hlm-muted);
  flex: none;
}
.hlm-row a { color: var(--hlm-green-deep); text-decoration: none; }
.hlm-row a:hover { color: var(--hlm-gold); }

/* El titulo de pagina del tema no va en la portada */
.page-id-17 .entry-header,
.page-id-17 .page-title-wrap { display: none !important; }
.page-id-17 .entry-content > * { margin-block-start: 0; }
.page-id-17 .content-area,
.page-id-17 .site-main { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
.page-id-17 .content-container,
.page-id-17 .entry-content-wrap { padding: 0 !important; }

@media (max-width: 1024px) {
  .wp-block-columns.hlm-benefits,
  .wp-block-columns.hlm-steps { grid-template-columns: repeat(2, 1fr); }
  .wp-block-columns.hlm-quotes { grid-template-columns: 1fr; }
  .wp-block-columns.hlm-contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .wp-block-columns.hlm-benefits,
  .wp-block-columns.hlm-steps { grid-template-columns: 1fr; }
  .hlm-row { flex-direction: column; gap: 4px; align-items: flex-start; }
}
/* ---------- Marca de seccion: mariposa + filete dorado sobre el titulo ---------- */

h2.hlm-mark, h3.hlm-mark {
  position: relative;
  padding-top: 46px;
}
h2.hlm-mark::before, h3.hlm-mark::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 28px; height: 24px;
  background: center/contain no-repeat
    url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 170%22 fill=%22%23D4AF37%22%3E%3Cellipse cx=%2262%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(-28 62 58)%22/%3E%3Cellipse cx=%22138%22 cy=%2258%22 rx=%2246%22 ry=%2234%22 transform=%22rotate(28 138 58)%22/%3E%3Cellipse cx=%2274%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(-16 74 112)%22/%3E%3Cellipse cx=%22126%22 cy=%22112%22 rx=%2232%22 ry=%2226%22 transform=%22rotate(16 126 112)%22/%3E%3Cellipse cx=%22100%22 cy=%2285%22 rx=%226%22 ry=%2242%22/%3E%3C/svg%3E');
}
h2.hlm-mark::after {
  content: '';
  position: absolute; top: 12px; left: 42px;
  width: 62px; height: 1px;
  background: linear-gradient(90deg, var(--hlm-gold), transparent);
}

.hlm-cta h2.hlm-mark::before { left: 50%; transform: translateX(-50%); }
.hlm-cta h2.hlm-mark::after { display: none; }

.hlm-head { margin-bottom: clamp(34px, 4.4vw, 58px) !important; }
.hlm-head h2 { margin: 0 0 14px !important; }
.hlm-head p { margin: 0 !important; }
/* ============================================================
   CORRECCIONES v2
   Mariposa monarca real, tarjeta de categoria, boton de compra
   ============================================================ */

:root {
  --hlm-bfly-gold: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 170%22%3E%3Cg fill=%22%23D4AF37%22%3E%3Cpath d=%22M100 72C86 40 62 16 40 18 18 20 10 44 20 66c8 18 34 28 56 22 14-4 22-8 24-16z%22/%3E%3Cpath d=%22M100 72c14-32 38-56 60-54 22 2 30 26 20 48-8 18-34 28-56 22-14-4-22-8-24-16z%22/%3E%3Cpath d=%22M100 84c-10 20-26 42-46 42-18 0-28-14-22-28 6-14 28-22 48-20 10 1 17 2 20 6z%22/%3E%3Cpath d=%22M100 84c10 20 26 42 46 42 18 0 28-14 22-28-6-14-28-22-48-20-10 1-17 2-20 6z%22/%3E%3Cellipse cx=%22100%22 cy=%2282%22 rx=%224.5%22 ry=%2240%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke=%22%23D4AF37%22 stroke-width=%223.5%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M97 44C92 28 84 20 74 15%22/%3E%3Cpath d=%22M103 44c5-16 13-24 23-29%22/%3E%3C/g%3E%3C/svg%3E');
  --hlm-bfly-green: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 170%22%3E%3Cg fill=%22%232D5016%22%3E%3Cpath d=%22M100 72C86 40 62 16 40 18 18 20 10 44 20 66c8 18 34 28 56 22 14-4 22-8 24-16z%22/%3E%3Cpath d=%22M100 72c14-32 38-56 60-54 22 2 30 26 20 48-8 18-34 28-56 22-14-4-22-8-24-16z%22/%3E%3Cpath d=%22M100 84c-10 20-26 42-46 42-18 0-28-14-22-28 6-14 28-22 48-20 10 1 17 2 20 6z%22/%3E%3Cpath d=%22M100 84c10 20 26 42 46 42 18 0 28-14 22-28-6-14-28-22-48-20-10 1-17 2-20 6z%22/%3E%3Cellipse cx=%22100%22 cy=%2282%22 rx=%224.5%22 ry=%2240%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke=%22%232D5016%22 stroke-width=%223.5%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M97 44C92 28 84 20 74 15%22/%3E%3Cpath d=%22M103 44c5-16 13-24 23-29%22/%3E%3C/g%3E%3C/svg%3E');
}

.hlm-hero::after { background-image: var(--hlm-bfly-gold) !important; opacity: .13; }
h2.hlm-mark::before, h3.hlm-mark::before { background-image: var(--hlm-bfly-gold) !important; }

/* ---------- Tarjeta de categoria: el LI es la tarjeta ---------- */

.hlm-cats ul.wc-block-product-categories-list > li.wc-block-product-categories-list-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  overflow: hidden;
  transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.hlm-cats ul.wc-block-product-categories-list > li::before {
  content: '';
  position: absolute; right: -14px; top: -10px;
  width: 86px; aspect-ratio: 200/170;
  opacity: .12;
  transform: rotate(-10deg);
  transition: opacity .24s ease, transform .24s ease;
  background: center/contain no-repeat var(--hlm-bfly-green);
}
.hlm-cats ul.wc-block-product-categories-list > li:hover {
  border-color: var(--hlm-gold);
  transform: translateY(-3px);
  box-shadow: var(--hlm-shadow-lift);
}
.hlm-cats ul.wc-block-product-categories-list > li:hover::before {
  opacity: .22;
  transform: rotate(-4deg) scale(1.07);
}

.hlm-cats ul.wc-block-product-categories-list > li > a {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  overflow: visible;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--hlm-green-deep);
  text-decoration: none;
}
.hlm-cats ul.wc-block-product-categories-list > li > a::before { display: none; }
.hlm-cats ul.wc-block-product-categories-list > li:hover > a { color: var(--hlm-green); }

.hlm-cats .wc-block-product-categories-list-item-count {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--hlm-gold);
}
.hlm-cats .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Boton de compra siempre visible ---------- */

.hlm-products .product-action-wrap,
.hlm-products .woo-archive-action-on-hover .product-action-wrap {
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  transform: none !important;
  pointer-events: auto !important;
  margin: 0 18px !important;
  padding: 0 !important;
  background: none !important;
}
.hlm-products .product-action-wrap .button,
.hlm-products .product-action-wrap a {
  display: block !important;
  width: 100%;
  text-align: center;
  background: var(--hlm-green) !important;
  color: #fff !important;
  border-radius: var(--hlm-r) !important;
  padding: 12px 16px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  margin: 0 !important;
}
.hlm-products .product-action-wrap .button:hover,
.hlm-products .product-action-wrap a:hover {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
}
.hlm-products li.product, .hlm-products .wc-block-grid__product { overflow: visible; }
.hlm-products li.product > a:first-child img { border-radius: var(--hlm-r) var(--hlm-r) 0 0; }
/* ---------- Boton de compra: anular el patron hover de Kadence ---------- */

.hlm-products .wc-block-grid__product-add-to-cart,
.hlm-products div.wp-block-button.wc-block-grid__product-add-to-cart {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 4px 18px 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.hlm-products .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: var(--hlm-green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--hlm-r) !important;
  padding: 13px 16px !important;
  margin: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  line-height: 1.2 !important;
  transition: background-color .22s ease, color .22s ease;
}
.hlm-products .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.hlm-products .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
}
.hlm-products .wc-block-grid__product-add-to-cart .added_to_cart {
  display: block;
  margin: 8px 18px 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hlm-gold);
  text-decoration: none;
}
.hlm-products .product-details { padding-bottom: 4px !important; }
/* ---------- Afinado movil ---------- */

@media (max-width: 680px) {
  .hlm-hero { padding-block: 56px 60px !important; }
  .hlm-hero h1 { font-size: clamp(2.05rem, 8.6vw, 2.55rem); line-height: 1.08; }
  .hlm-hero .hlm-lead { font-size: 1rem; margin-bottom: 30px; }
  .hlm-hero .hlm-kicker { font-size: .7rem; letter-spacing: .14em; margin-bottom: 16px; }

  .site-branding .site-title { font-size: 1.3rem !important; }

  h2 { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
  .hlm-section { padding-block: 54px !important; }
  h2.hlm-mark { padding-top: 38px; }
  h2.hlm-mark::before { width: 24px; height: 20px; }
  h2.hlm-mark::after { top: 10px; left: 36px; width: 48px; }

  .hlm-cats ul.wc-block-product-categories-list > li.wc-block-product-categories-list-item { min-height: 104px; padding: 20px; }
}

@media (max-width: 420px) {
  .hlm-hero h1 { font-size: 1.95rem; }
}
/* ============================================================
   TIENDA: archivo, categoria y ficha de producto
   ============================================================ */

/* ---------- Banda de titulo ---------- */

.entry-hero,
.product-archive-hero-section,
.page-hero-section {
  position: relative;
  overflow: hidden;
  background: var(--hlm-green) !important;
}
.entry-hero::after {
  content: '';
  position: absolute;
  right: -3%; top: 50%;
  width: min(360px, 34vw); aspect-ratio: 200/170;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .12;
  background: center/contain no-repeat var(--hlm-bfly-gold);
  pointer-events: none;
}
.entry-hero .entry-hero-container-inner {
  background: transparent !important;
  position: relative;
  z-index: 1;
}
.entry-hero .hero-section-overlay { display: none !important; }
.entry-hero .entry-header { padding-block: clamp(46px, 6vw, 78px); }
.entry-hero h1,
.entry-hero .page-title,
.entry-hero .archive-title {
  color: #fff !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.08;
  margin: 0;
}
.entry-hero .archive-description,
.entry-hero .taxonomy-description,
.entry-hero .kadence-breadcrumbs,
.entry-hero .kadence-breadcrumbs a {
  color: rgba(255,255,255,.8) !important;
}
.entry-hero .kadence-breadcrumbs a:hover { color: var(--hlm-gold) !important; }

/* ---------- Rejilla de productos (archivo y relacionados) ---------- */

.woocommerce ul.products { gap: 22px; }

.woocommerce ul.products li.product,
.woocommerce ul.products li.entry.loop-entry {
  background: #fff;
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  overflow: hidden;
  padding-bottom: 20px;
  transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--hlm-gold);
  transform: translateY(-3px);
  box-shadow: var(--hlm-shadow-lift);
}

.woocommerce ul.products li.product .woocommerce-loop-image-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--hlm-cream);
  margin: 0 !important;
  transition: transform .4s ease;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-image-link img { transform: scale(1.04); }

.woocommerce ul.products li.product .product-details { padding: 16px 18px 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  line-height: 1.26 !important;
  color: var(--hlm-green-deep) !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
}
.woocommerce ul.products li.product .price {
  display: block;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: var(--hlm-gold) !important;
  margin: 0 0 14px !important;
}

/* Boton de compra siempre visible en toda la tienda */
.woocommerce ul.products li.product .product-action-wrap,
.woocommerce ul.products li.product .wp-block-button {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: var(--hlm-green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--hlm-r) !important;
  padding: 13px 16px !important;
  margin: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
}
.woocommerce ul.products li.product .added_to_cart {
  display: block;
  margin-top: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hlm-gold);
  text-decoration: none;
}

/* ---------- Barra de resultados y orden ---------- */

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
  font-family: 'Montserrat', sans-serif !important;
  font-size: .82rem;
  color: var(--hlm-muted);
}
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  padding: 9px 12px;
  background: #fff;
}

/* ---------- Ficha de producto ---------- */

.single-product .product_title {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--hlm-green-deep) !important;
  line-height: 1.1;
}
.single-product .summary .price,
.single-product p.price {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--hlm-gold) !important;
}
.single-product .woocommerce-product-details__short-description { color: var(--hlm-muted); }
.single-product form.cart button.single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  background: var(--hlm-green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--hlm-r) !important;
  padding: 16px 34px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.single-product form.cart button.single_add_to_cart_button:hover {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
  transform: translateY(-2px);
}
.single-product .quantity input.qty {
  border: 1px solid var(--hlm-line);
  border-radius: var(--hlm-r);
  padding: 14px 10px;
  font-family: 'Montserrat', sans-serif;
}
.single-product .woocommerce-tabs ul.tabs li a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--hlm-green) !important; }
.single-product .product_meta { font-size: .82rem; color: var(--hlm-muted); }
.single-product .related > h2,
.single-product .upsells > h2 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--hlm-green-deep) !important;
}

/* ---------- Carrito y pago ---------- */

.woocommerce table.shop_table th,
.woocommerce table.shop_table td { font-family: 'Montserrat', sans-serif; }
.woocommerce table.shop_table th { color: var(--hlm-green-deep); }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--hlm-green-deep) !important;
}
.woocommerce .checkout-button,
.woocommerce button.button.alt,
.woocommerce #place_order {
  background: var(--hlm-green) !important;
  color: #fff !important;
  border-radius: var(--hlm-r) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
}
.woocommerce .checkout-button:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover {
  background: var(--hlm-gold) !important;
  color: var(--hlm-green-deep) !important;
}
/* ---------- Ficha: alinear texto del boton y la cantidad ---------- */

.single-product form.cart { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.single-product form.cart .quantity { margin: 0 !important; }
.single-product form.cart .quantity input.qty {
  height: 100%;
  min-height: 52px;
  width: 84px;
  text-align: center;
  padding: 0 10px;
}
.single-product form.cart button.single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  height: auto;
  line-height: 1.2 !important;
  padding: 0 34px !important;
  margin: 0 !important;
  white-space: nowrap;
}