/*
Theme Name: DLazona
Theme URI: https://dlazona.cl
Author: FlowCode AI
Description: DLazona — marketplace de productos locales de la Región de Aysén. Tema a medida, WooCommerce + mapa interactivo.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: dlazona-theme
*/

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

.screen-reader-text{ border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute !important; width:1px; word-wrap:normal !important; }

html{ overflow-x:hidden; }
body{ overflow-x:hidden; max-width:100vw; }

/* Barra superior */
.dlz-topbar{ background:#00180C; color:#fff; }
.dlz-topbar__inner{ max-width:1280px; margin:0 auto; padding:0.5rem 1.25rem; display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; }
.dlz-topbar__item{ display:inline-flex; align-items:center; gap:0.4rem; font-size:0.8rem; white-space:nowrap; }
.dlz-topbar__item svg{ flex-shrink:0; }

/* Header / navegación */
.dlz-header{ position:sticky; top:0; z-index:50; background:#fff; }
.dlz-header .wp-block-navigation{ font-size:0.98rem; }
.dlz-logo-mark{ display:flex; align-items:center; text-decoration:none !important; }
.dlz-logo-mark img{ height:44px; width:auto; display:block; }
footer .dlz-logo-mark img{ height:38px; }
@media (max-width:480px){ .dlz-logo-mark img{ height:36px; } }

.dlz-header-actions{ align-items:center; }
.dlz-header-actions .wc-block-mini-cart__button{
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; padding:0 !important; border-radius:50%;
  color:#00180C; background:transparent; border:none;
}
.dlz-header-actions .wc-block-mini-cart__button:hover{ background:#F5F1E6; }
.dlz-header-actions .wc-block-mini-cart__icon{ width:22px; height:22px; }
.dlz-header-actions .wc-block-mini-cart__badge{ background:#6B9C1A !important; color:#00180C !important; }

.dlz-search-form{ position:relative; display:flex; align-items:center; }
.dlz-search-input{
  width:200px; max-width:40vw; height:40px; border:1px solid #E1DCC9; border-radius:999px;
  padding:0 2.6rem 0 1rem; font-size:0.9rem; color:#00180C; background:#F5F1E6;
  transition:width .2s,max-width .2s;
}
.dlz-search-input::placeholder{ color:#5B6357; }
.dlz-search-input:focus{ outline:2px solid #6B9C1A; outline-offset:1px; width:260px; max-width:60vw; }
.dlz-search-submit{
  position:absolute; right:2px; top:2px; width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; border:none; background:transparent;
  color:#00180C; cursor:pointer;
}
.dlz-search-submit:hover{ background:#E1DCC9; }
@media (max-width:480px){ .dlz-search-input{ width:140px; } }

@media (min-width:600px) and (max-width:1079.98px){
  .dlz-header .wp-block-navigation__responsive-container-open:not(.always-shown){ display:flex !important; }
  .dlz-header .wp-block-navigation__responsive-container:not(.is-menu-open){ display:none !important; }
}

/* WhatsApp flotante: lo renderiza el plugin Click to Chat (ver ht_ctc_chat_options) */

/* Cards de producto WooCommerce */
.woocommerce ul.products, ul.products{
  display:grid !important; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)) !important;
  gap:clamp(1rem,2vw,1.75rem) !important; margin:0 !important; padding:0 !important; list-style:none !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after{ content:none !important; display:none !important; }
.woocommerce ul.products li.product, ul.products li.product{
  float:none !important; width:auto !important; margin:0 !important; clear:none !important;
  display:flex !important; flex-direction:column; background:#fff; border:1px solid #E1DCC9;
  border-radius:14px; overflow:hidden; padding:0 !important; list-style:none;
  transition:box-shadow .2s,transform .2s;
}
.woocommerce ul.products li.product:hover{ box-shadow:0 12px 28px rgba(0,24,12,0.12); transform:translateY(-3px); }
.woocommerce ul.products li.product:focus-within{ outline:2px solid #6B9C1A; outline-offset:2px; }
.woocommerce ul.products li.product > a:not(.button){ text-decoration:none; color:inherit; display:flex; flex-direction:column; flex:1 0 auto; }
.woocommerce ul.products li.product a img{
  width:100%; aspect-ratio:1/1; object-fit:cover; display:block; background:#F5F1E6; transition:transform .3s;
}
.woocommerce ul.products li.product:hover img{ transform:scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--wp--preset--font-family--heading); font-weight:600; font-size:1rem;
  margin:0.9rem 1rem 0.3rem; color:#00180C; min-height:2.6em; line-height:1.3;
  text-wrap:balance; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.woocommerce ul.products li.product .dlz-product-meta{ margin:0 1rem 0.4rem; font-size:0.82rem; color:#5B6357; }
.woocommerce ul.products li.product .price{ display:block; margin:0 1rem 1rem; font-weight:700; color:#2A5C12; font-size:1.05rem; }
.woocommerce ul.products li.product .button{
  display:block; width:calc(100% - 2rem); margin:auto 1rem 1.1rem; text-align:center;
  background:#6B9C1A; color:#00180C; border-radius:10px; padding:0.7rem 0.6rem; font-weight:600;
  line-height:1.25; white-space:normal; box-sizing:border-box; font-size:0.88rem; flex-shrink:0;
}
.woocommerce ul.products li.product .button:hover{ background:#2A5C12; color:#fff; }
.woocommerce ul.products li.product .button:focus-visible{ outline:2px solid #00180C; outline-offset:2px; }

.dlz-cat-filter{ display:flex; flex-wrap:wrap; gap:0.6rem; margin:0 0 2rem; }
.dlz-cat-filter__pill{
  display:inline-flex; align-items:center; padding:0.55rem 1.1rem; border-radius:999px;
  border:1px solid #E1DCC9; background:#fff; color:#00180C; text-decoration:none; font-weight:600; font-size:0.9rem;
  transition:background .15s,color .15s,border-color .15s; cursor:pointer;
}
.dlz-cat-filter__pill:hover{ border-color:#2A5C12; color:#2A5C12; }
.dlz-cat-filter__pill.is-active{ background:#6B9C1A; border-color:#6B9C1A; color:#00180C; }

.woocommerce-ordering{ display:inline-block; margin-bottom:2rem; }
.woocommerce-ordering select.orderby{
  appearance:none; -webkit-appearance:none; border:1px solid #E1DCC9; border-radius:999px; background:#fff;
  padding:0.55rem 2.2rem 0.55rem 1.1rem; font-weight:600; font-size:0.9rem; color:#00180C;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300180C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 0.75rem center; background-size:14px; cursor:pointer;
}
.woocommerce-ordering select.orderby:hover{ border-color:#6B9C1A; }
.woocommerce-result-count{ color:#5B6357; font-size:0.92rem; }
.woocommerce span.onsale{ position:absolute; margin:0.7rem; background:#00180C; color:#fff; border-radius:999px; padding:0.25rem 0.7rem; font-size:0.75rem; font-weight:700; z-index:2; }
.woocommerce nav.woocommerce-pagination ul{ display:flex; gap:0.4rem; list-style:none; padding:0; justify-content:center; margin:2.5rem 0 0; }
.woocommerce nav.woocommerce-pagination ul li{ list-style:none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span{ display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px; border:1px solid #E1DCC9; border-radius:8px; color:#00180C; text-decoration:none; }
.woocommerce nav.woocommerce-pagination ul li span.current{ background:#6B9C1A; color:#00180C; border-color:#6B9C1A; }

/* Single producto */
.woocommerce div.product .woocommerce-product-gallery img{ border-radius:14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price{ color:#2A5C12; font-size:1.5rem; font-weight:700; }
.dlz-product-origen{ display:inline-flex; align-items:center; gap:0.4rem; margin:0 0 1rem; padding:0.4rem 0.9rem; background:#F5F1E6; border-radius:999px; font-size:0.88rem; font-weight:600; color:#2A5C12; text-decoration:none; }
.dlz-product-origen:hover{ background:#E1DCC9; }
.dlz-product-productor{ font-size:0.92rem; color:#5B6357; margin:0 0 1rem; }
.dlz-demo-badge{ display:inline-block; margin:0.6rem 1rem 0; font-size:0.72rem; font-weight:700; color:#00558C; background:#E3F3FB; padding:0.2rem 0.55rem; border-radius:6px; text-transform:uppercase; letter-spacing:0.04em; }
.dlz-demo-notice{ font-size:0.85rem; color:#00558C; background:#E3F3FB; border-radius:8px; padding:0.6rem 0.9rem; margin:0 0 1rem; }

.woocommerce div.product form.cart{ display:flex; align-items:center; flex-wrap:wrap; gap:1rem; margin-bottom:1.5rem; }
.woocommerce div.product form.cart .quantity{ margin:0; }
.woocommerce div.product form.cart .quantity .qty{
  height:48px !important; width:80px !important; box-sizing:border-box !important; border-radius:10px !important;
  padding:0 0.5rem !important; font-size:1rem !important; text-align:center !important;
  color:#00180C !important; background:#fff !important; border:1px solid #E1DCC9 !important; line-height:normal !important;
}
.woocommerce div.product form.cart .quantity .qty:focus{ outline:2px solid #6B9C1A; outline-offset:1px; border-color:#6B9C1A !important; }
.woocommerce div.product .single_add_to_cart_button, .woocommerce div.product .dlz-wa-product-btn{
  height:48px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px !important; font-weight:700 !important; font-size:0.98rem;
  padding:0 1.6rem !important; border:none !important; margin:0 !important; line-height:1; white-space:nowrap;
}
.woocommerce div.product .single_add_to_cart_button{ background:#6B9C1A !important; color:#00180C; }
.woocommerce div.product .single_add_to_cart_button:hover{ background:#2A5C12 !important; color:#fff; }
.woocommerce div.product .dlz-wa-product-btn{ background:#25D366; color:#fff; text-decoration:none; gap:0.5rem; }
.woocommerce div.product .dlz-wa-product-btn:hover{ background:#1ebe59; }

.dlz-product-info{ display:flex; flex-direction:column; gap:1.1rem; padding:1.5rem; margin-bottom:1.5rem; background:#F5F1E6; border-radius:14px; }
.dlz-product-info__item{ display:flex; gap:0.9rem; align-items:flex-start; }
.dlz-product-info__icon{ display:inline-flex; flex-shrink:0; }
.dlz-product-info__icon svg{ width:22px; height:22px; }
.dlz-product-info__item strong{ display:block; font-size:0.95rem; color:#00180C; margin-bottom:0.15rem; }
.dlz-product-info__item span{ display:block; font-size:0.88rem; color:#5B6357; line-height:1.5; }
.dlz-product-info__item a{ color:#2A5C12; font-weight:600; }

.woocommerce div.product .woocommerce-tabs ul.tabs{ border-bottom:1px solid #E1DCC9; padding:0; margin:0 0 1.5rem; display:flex; gap:0.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li{ list-style:none; margin:0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{ display:inline-block; padding:0.8rem 1.2rem; font-weight:600; color:#5B6357; text-decoration:none; border-bottom:2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{ color:#2A5C12; border-bottom-color:#2A5C12; }
.woocommerce div.product .woocommerce-tabs .panel{ color:#333; line-height:1.7; }
.woocommerce div.product .related.products > h2{ font-family:var(--wp--preset--font-family--heading); font-size:1.7rem; margin-bottom:1.5rem; }

/* Carrito / checkout clásicos */
.woocommerce table.shop_table{ border-radius:12px; overflow:hidden; border:1px solid #E1DCC9; border-collapse:separate; width:100%; }
.woocommerce table.shop_table th{ background:#F5F1E6; font-weight:700; color:#00180C; padding:1rem; text-align:left; }
.woocommerce table.shop_table td{ padding:1rem; border-top:1px solid #E1DCC9; vertical-align:middle; }
.woocommerce table.shop_table td.product-thumbnail img{ border-radius:10px; width:70px; height:70px; object-fit:cover; background:#F5F1E6; }
.woocommerce table.shop_table td.product-name a{ font-weight:600; color:#00180C; text-decoration:none; }
.woocommerce table.shop_table .quantity .qty{
  height:42px !important; width:70px !important; border-radius:8px !important; box-sizing:border-box !important;
  padding:0 0.4rem !important; font-size:0.95rem !important; text-align:center !important;
  color:#00180C !important; background:#fff !important; border:1px solid #E1DCC9 !important; line-height:normal !important;
}
.woocommerce a.remove{ color:#2A5C12 !important; border-radius:50% !important; }
.woocommerce a.remove:hover{ background:#6B9C1A !important; color:#00180C !important; }
.woocommerce #payment #place_order, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button{ background:#6B9C1A; color:#00180C; border-radius:10px; border:none; padding:0.85rem 1.5rem; font-weight:700; }
.woocommerce #payment #place_order:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{ background:#2A5C12; color:#fff; }
.woocommerce .cart-collaterals .cart_totals{ background:#F5F1E6; border-radius:14px; padding:1.5rem; }
.woocommerce .cart-collaterals .cart_totals h2{ margin-top:0; }
.woocommerce .cart-collaterals .cart_totals table{ width:100%; }
.woocommerce .cart-collaterals .cart_totals table td, .woocommerce .cart-collaterals .cart_totals table th{ padding:0.7rem 0; border-top:1px solid #E1DCC9; }

.woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout #order_review_heading{ font-family:var(--wp--preset--font-family--heading); font-size:1.3rem; }
.woocommerce-checkout .form-row label{ font-weight:600; font-size:0.92rem; color:#00180C; margin-bottom:0.3rem; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea{
  border:1px solid #E1DCC9; border-radius:8px; padding:0.75rem; box-sizing:border-box; width:100%;
}
.woocommerce-checkout .select2-container{ width:100% !important; }
.woocommerce-checkout .select2-container .select2-selection--single{ border:1px solid #E1DCC9 !important; border-radius:8px !important; height:48px !important; display:flex; align-items:center; padding:0 0.75rem; }
.woocommerce-checkout .select2-container .select2-selection__rendered{ padding:0 !important; color:#00180C; line-height:normal; }
.woocommerce-checkout .select2-container .select2-selection__arrow{ height:46px !important; }
.woocommerce-checkout .select2-container--focus .select2-selection--single, .woocommerce-checkout .select2-container--open .select2-selection--single{ border-color:#6B9C1A !important; }
.woocommerce-checkout form.checkout{ display:block; }
@media (min-width:900px){
  .woocommerce-checkout form.checkout{ display:grid; grid-template-columns:1.5fr 1fr; column-gap:2.5rem; align-items:start; }
  .woocommerce-checkout #customer_details{ grid-column:1; grid-row:1 / span 2; }
  .woocommerce-checkout #order_review_heading{ grid-column:2; grid-row:1; margin-top:0; }
  .woocommerce-checkout #order_review{ grid-column:2; grid-row:2; position:sticky; top:90px; }
}
.woocommerce-checkout #customer_details .col2-set{ display:block; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2{ width:100%; float:none; }
.woocommerce-checkout #customer_details .col-2{ margin-top:1rem; }
.woocommerce-checkout #order_notes_field textarea{ min-height:80px; }

.dlz-order-item{ display:flex; align-items:center; gap:0.75rem; }
.dlz-order-thumb{ width:44px; height:44px; object-fit:cover; background:#F5F1E6; border-radius:8px; flex-shrink:0; }
.dlz-order-item__name{ font-size:0.92rem; }

.woocommerce-checkout-review-order-table{ border:1px solid #E1DCC9; border-radius:12px; border-collapse:separate; overflow:hidden; width:100%; }
.woocommerce-checkout-review-order-table thead th{ background:#F5F1E6; padding:0.8rem 1rem; font-weight:700; color:#00180C; text-align:left; }
.woocommerce-checkout-review-order-table td{ padding:0.8rem 1rem; border-top:1px solid #E1DCC9; }
.woocommerce-checkout-review-order-table tfoot th, .woocommerce-checkout-review-order-table tfoot td{ padding:0.7rem 1rem; border-top:1px solid #E1DCC9; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td{ font-size:1.1rem; font-weight:700; color:#00180C; }

.woocommerce-info, .woocommerce-message{ border-top-color:#6B9C1A !important; background:#F0F5E4; color:#00180C; }
.woocommerce-info::before, .woocommerce-message::before{ color:#6B9C1A !important; }
.woocommerce-NoticeGroup .woocommerce-info a, .woocommerce-cart .woocommerce-info a{ color:#2A5C12; font-weight:600; }

.dlz-thankyou-wa{ margin-top:1.5rem; }

.woocommerce-checkout #payment{ background:#F5F1E6; border-radius:14px; }
.woocommerce-checkout #payment ul.payment_methods{ border-bottom:1px solid #E1DCC9; padding:1.2rem 1.2rem 0.8rem; margin:0; }
.woocommerce-checkout #payment div.payment_box{ background:#fff !important; border-radius:10px; margin:1rem 1.2rem 1.2rem !important; }
.woocommerce-checkout #payment div.payment_box::before{ display:none; }
.woocommerce-checkout #payment #place_order{ margin:0 1.2rem 1.2rem; width:calc(100% - 2.4rem); float:none; }

/* ============ HERO HOME ============ */
.dlz-hero{ background:linear-gradient(180deg,#F5F1E6 0%,#EDE7D6 100%); }
.dlz-hero__inner{ max-width:1280px; margin:0 auto; padding:clamp(2.5rem,6vw,4rem) clamp(1.25rem,4vw,2rem) clamp(1.5rem,4vw,2.5rem); text-align:center; }
.dlz-hero__eyebrow{ display:inline-block; margin-bottom:1rem; padding:0.4rem 1rem; border-radius:999px; background:#6B9C1A; color:#00180C; font-size:0.78rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; }
.dlz-hero__title{ font-family:var(--wp--preset--font-family--heading); font-weight:700; color:#00180C; font-size:clamp(2rem,4.5vw,3.2rem); line-height:1.15; margin:0 0 0.9rem; }
.dlz-hero__lead{ font-size:clamp(1rem,1.5vw,1.15rem); color:#2A5C12; max-width:56ch; margin:0 auto 1.5rem; }
.dlz-hero__ctas{ display:flex; gap:0.85rem; flex-wrap:wrap; justify-content:center; margin-bottom:0.5rem; }
.dlz-btn{ display:inline-flex; align-items:center; justify-content:center; padding:0.85rem 1.6rem; border-radius:999px; font-weight:700; text-decoration:none; font-size:0.95rem; }
.dlz-btn--solid{ background:#6B9C1A; color:#00180C; }
.dlz-btn--solid:hover{ background:#2A5C12; color:#fff; }
.dlz-btn--outline{ background:transparent; color:#00180C; border:2px solid #00180C; }
.dlz-btn--outline:hover{ background:#00180C; color:#fff; }
.dlz-btn--wa{ background:#25D366; color:#fff; }
.dlz-btn--wa:hover{ background:#1ebe59; }

/* ============ MAPA INTERACTIVO ============ */
.dlz-map-section{ background:#fff; padding:clamp(2.5rem,5vw,4rem) 0; }
.dlz-map-section__inner{ max-width:1000px; margin:0 auto; padding:0 clamp(1.25rem,4vw,2rem); }
.dlz-map-section__heading{ text-align:center; margin-bottom:0.5rem; }
.dlz-map-section__lead{ text-align:center; color:#5B6357; max-width:60ch; margin:0 auto 2rem; }

.dlz-map-wrap{ display:flex; flex-direction:column; align-items:center; }
.dlz-map{ width:100%; max-width:520px; height:auto; display:block; }
.dlz-map .zona{ fill:#2A5C12; stroke:#F5F1E6; stroke-width:2; cursor:pointer; transition:fill 200ms ease, transform 200ms ease; transform-box:fill-box; transform-origin:center; }
.dlz-map .zona:hover{ fill:#6B9C1A; transform:scale(1.02); }
.dlz-map .zona.is-active{ fill:#6B9C1A; stroke:#00180C; stroke-width:2; }
.dlz-map .zona.sin-datos{ fill:#C9CDC7; cursor:pointer; }
.dlz-map .zona.sin-datos:hover{ fill:#B7BDB2; transform:scale(1.02); }
.dlz-map .zona.sin-datos.is-active{ fill:#8A8F84; stroke:#00180C; stroke-width:2; }
.dlz-map .zona:focus-visible{ outline:3px solid #00558C; outline-offset:2px; }
.dlz-map .dlz-map__label{ font-family:var(--wp--preset--font-family--body); font-size:26px; font-weight:700; fill:#00180C; pointer-events:none; paint-order:stroke; stroke:#F5F1E6; stroke-width:3px; stroke-linejoin:round; }
.dlz-map .dlz-map__pin{ pointer-events:none; }
.dlz-map__tooltip{
  position:absolute; pointer-events:none; background:#00180C; color:#fff; font-size:0.8rem; font-weight:600;
  padding:0.4rem 0.75rem; border-radius:8px; transform:translate(-50%,-115%); white-space:nowrap; z-index:5; opacity:0; transition:opacity 150ms;
}
.dlz-map__tooltip.is-visible{ opacity:1; }
.dlz-map-container{ position:relative; width:100%; max-width:520px; }

.dlz-map-legend{ display:flex; flex-wrap:wrap; gap:1.25rem; justify-content:center; margin-top:1.25rem; font-size:0.85rem; color:#5B6357; }
.dlz-map-legend__item{ display:inline-flex; align-items:center; gap:0.4rem; }
.dlz-map-legend__swatch{ width:14px; height:14px; border-radius:4px; display:inline-block; }
.dlz-map-legend__pin-icon{ display:inline-flex; width:14px; height:14px; }

/* Acordeón móvil de comunas — bajo 768px el mapa sigue siendo visible; el acordeón
   queda como control garantizado (varias comunas quedan bajo 44px de área táctil en el mapa a esa escala). */
.dlz-locality-accordion{ display:none; }
.dlz-locality-toggle{ display:none; }
@media (max-width:767.98px){
  /* El mapa necesita >=320px de ancho para que las etiquetas (26px en viewBox 580) rindan >=14px reales.
     Cancela el padding del section y le da su propio gutter, que baja a 0 justo en el viewport de 320px
     y sube a 20px (clamp) a partir de 360px — así el mapa nunca queda por debajo del piso de legibilidad. */
  .dlz-map-wrap{
    margin-left:calc(-1 * clamp(1.25rem,4vw,2rem));
    margin-right:calc(-1 * clamp(1.25rem,4vw,2rem));
    padding-left:clamp(0px, calc((100vw - 320px) / 2), 20px);
    padding-right:clamp(0px, calc((100vw - 320px) / 2), 20px);
  }
  .dlz-map{ width:100%; max-width:100%; height:auto; }

  .dlz-locality-toggle{
    display:flex; align-items:center; justify-content:center; gap:0.5rem;
    width:100%; min-height:48px; margin:1.25rem 0 0.75rem; padding:0.7rem 1rem;
    border-radius:12px; border:1px solid #E1DCC9; background:#fff;
    font-family:var(--wp--preset--font-family--heading); font-weight:600; font-size:0.95rem; color:#00180C; cursor:pointer;
  }
  .dlz-locality-toggle[aria-expanded="true"]{ background:#F5F1E6; color:#2A5C12; }
  .dlz-locality-toggle__chevron{ display:flex; flex-shrink:0; transition:transform 200ms; }
  .dlz-locality-toggle[aria-expanded="true"] .dlz-locality-toggle__chevron{ transform:rotate(180deg); }

  .dlz-locality-accordion{ display:block; border:1px solid #E1DCC9; border-radius:14px; overflow:hidden; }
  .dlz-locality-accordion.is-collapsed{ display:none; }
  .dlz-locality-accordion__item{
    display:flex; align-items:center; justify-content:space-between; gap:0.75rem;
    width:100%; min-height:56px; padding:0.85rem 1.1rem; background:#fff; border:none;
    border-bottom:1px solid #E1DCC9; text-align:left; font-family:var(--wp--preset--font-family--heading);
    font-weight:600; font-size:1rem; color:#00180C; cursor:pointer;
  }
  .dlz-locality-accordion__item:last-child{ border-bottom:none; }
  .dlz-locality-accordion__item.sin-datos{ color:#8A8F84; }
  .dlz-locality-accordion__item[aria-expanded="true"]{ background:#F5F1E6; color:#2A5C12; }
  .dlz-locality-accordion__chevron{ flex-shrink:0; width:44px; height:44px; display:flex; align-items:center; justify-content:center; transition:transform 200ms; }
  .dlz-locality-accordion__item[aria-expanded="true"] .dlz-locality-accordion__chevron{ transform:rotate(180deg); }
}

/* Panel de catálogo por localidad — debajo del mapa, sin recarga */
.dlz-catalog-panel{ margin-top:2.5rem; scroll-margin-top:100px; }
.dlz-catalog-panel:not(.is-visible){ display:none; }
.dlz-catalog-panel__header{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-bottom:1.25rem; }
.dlz-catalog-panel__title{ font-family:var(--wp--preset--font-family--heading); font-weight:700; font-size:1.5rem; color:#00180C; margin:0; }
.dlz-catalog-panel__close{ background:none; border:1px solid #E1DCC9; border-radius:999px; padding:0.5rem 1rem; font-weight:600; font-size:0.85rem; color:#5B6357; cursor:pointer; }
.dlz-catalog-panel__close:hover{ border-color:#00180C; color:#00180C; }
.dlz-catalog-panel__chips{ display:flex; flex-wrap:wrap; gap:0.6rem; margin-bottom:1.5rem; }
.dlz-catalog-panel__empty{ text-align:center; padding:2.5rem 1rem; color:#5B6357; background:#F5F1E6; border-radius:14px; }
.dlz-catalog-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1.25rem; }
.dlz-catalog-card{ display:flex; flex-direction:column; background:#fff; border:1px solid #E1DCC9; border-radius:14px; overflow:hidden; text-decoration:none !important; color:inherit; transition:box-shadow .2s,transform .2s; }
.dlz-catalog-card:hover{ box-shadow:0 12px 28px rgba(0,24,12,0.12); transform:translateY(-3px); }
.dlz-catalog-card__img{ width:100%; aspect-ratio:1/1; object-fit:cover; background:#F5F1E6; display:block; }
.dlz-catalog-card__body{ padding:0.9rem 1rem 1.1rem; }
.dlz-catalog-card__title{ display:block; font-family:var(--wp--preset--font-family--heading); font-weight:600; font-size:0.98rem; color:#00180C; margin:0 0 0.3rem; line-height:1.3; }
.dlz-catalog-card__meta{ display:block; font-size:0.8rem; color:#5B6357; margin:0 0 0.5rem; }
.dlz-catalog-card__price{ display:block; font-weight:700; color:#2A5C12; font-size:1rem; }
.dlz-catalog-card__demo{ display:inline-block; margin-top:0.4rem; font-size:0.72rem; font-weight:700; color:#00558C; background:#E3F3FB; padding:0.2rem 0.55rem; border-radius:6px; text-transform:uppercase; letter-spacing:0.04em; }

/* ============ SECCIONES GENERALES ============ */
.dlz-section{ padding:clamp(2.5rem,5vw,4rem) 0; }
.dlz-section--crema{ background:#F5F1E6; }
.dlz-section__inner{ max-width:1280px; margin:0 auto; padding:0 clamp(1.25rem,4vw,2rem); }
.dlz-section__heading{ text-align:center; max-width:60ch; margin:0 auto 2.5rem; }
.dlz-section__heading h2{ margin:0 0 0.6rem; }
.dlz-section__heading p{ color:#5B6357; margin:0; }

/* Cómo funciona: 3 pasos */
.dlz-steps{ display:flex; align-items:flex-start; gap:0; }
.dlz-step{ flex:1; background:#fff; border-radius:14px; padding:1.75rem 1.5rem; position:relative; border:1px solid #E1DCC9; }
.dlz-step__num{ position:absolute; top:1.2rem; right:1.4rem; font-family:var(--wp--preset--font-family--heading); font-weight:700; font-size:1.6rem; color:#6B9C1A; opacity:0.4; }
.dlz-step__icon{ display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:#F5F1E6; margin-bottom:1rem; }
.dlz-step__icon svg{ width:26px; height:26px; }
.dlz-step h3{ font-size:1.1rem; margin:0 0 0.4rem; }
.dlz-step p{ margin:0; color:#5B6357; font-size:0.92rem; line-height:1.55; }
.dlz-step__connector{ flex:0 0 auto; width:clamp(24px,4vw,56px); height:2px; background:repeating-linear-gradient(90deg,#6B9C1A 0 6px,transparent 6px 12px); margin-top:2.6rem; }
@media (max-width:900px){ .dlz-steps{ flex-direction:column; gap:1.25rem; } .dlz-step__connector{ display:none; } }

/* Productores: 5 beneficios (también reusado para "pilares" con menos ítems) */
.dlz-benefits{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1.25rem; }
.dlz-benefit{ text-align:center; padding:1.75rem 1rem; border-radius:14px; background:#fff; border:1px solid #E1DCC9; }
.dlz-benefit__icon{ display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:#F5F1E6; margin-bottom:0.9rem; }
.dlz-benefit__icon svg{ width:26px; height:26px; }
.dlz-benefit h3{ font-size:1rem; margin:0 0 0.3rem; font-family:var(--wp--preset--font-family--heading); }
.dlz-benefit p{ margin:0; color:#5B6357; font-size:0.88rem; }
@media (max-width:1000px){ .dlz-benefits{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .dlz-benefits{ grid-template-columns:1fr; } }

/* Nuestros productores (página Nosotros) */
.dlz-producers{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.25rem; }
.dlz-producer-card{ text-align:center; padding:1.75rem 1.25rem; border-radius:14px; background:#fff; border:1px solid #E1DCC9; }
.dlz-producer-card__icon{ display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:#F5F1E6; margin-bottom:0.9rem; }
.dlz-producer-card__icon svg{ width:26px; height:26px; }
.dlz-producer-card h3{ font-size:1rem; margin:0 0 0.4rem; font-family:var(--wp--preset--font-family--heading); }
.dlz-producer-card__marca{ margin:0 0 0.2rem; color:#2A5C12; font-size:0.9rem; font-weight:600; }
.dlz-producer-card__sector{ margin:0 0 0.5rem; color:#5B6357; font-size:0.85rem; }
.dlz-producer-card__produce{ margin:0; color:#5B6357; font-size:0.88rem; }
@media (max-width:1000px){ .dlz-producers{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .dlz-producers{ grid-template-columns:1fr; } }

/* Piezas gráficas de campaña (página Sé parte de DLazona) */
.dlz-campana-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.dlz-campana-gallery img{ width:100%; height:auto; max-width:100%; border-radius:14px; display:block; }
@media (max-width:760px){ .dlz-campana-gallery{ grid-template-columns:1fr; max-width:360px; margin:0 auto; } }

.dlz-featured-products ul.products{ grid-template-columns:repeat(4,1fr) !important; }
@media (max-width:900px){ .dlz-featured-products ul.products{ grid-template-columns:repeat(2,1fr) !important; } }
@media (max-width:600px){ .dlz-featured-products ul.products{ grid-template-columns:1fr !important; } }

.dlz-cta-band{ background:#00180C; color:#fff; text-align:center; padding:clamp(2.5rem,5vw,3.5rem) clamp(1.25rem,4vw,2rem); border-radius:20px; max-width:1280px; margin:0 auto; }
.dlz-cta-band h2{ color:#fff; margin:0 0 0.75rem; }
.dlz-cta-band p{ color:#C9CDC7; margin:0 0 1.5rem; max-width:56ch; margin-left:auto; margin-right:auto; }

/* Contacto */
.dlz-contact-info{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.dlz-contact-info__item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:0.7rem; padding:1.5rem 1rem; border:1px solid #E1DCC9; border-radius:14px; }
.dlz-contact-info__icon{ display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background:#F5F1E6; }
.dlz-contact-info__icon svg{ width:24px; height:24px; }
.dlz-contact-info__item strong{ font-size:0.95rem; color:#00180C; }
.dlz-contact-info__item a, .dlz-contact-info__item span{ color:#5B6357; font-size:0.9rem; text-decoration:none; }
.dlz-contact-info__item a:hover{ color:#2A5C12; }

.dlz-form{ display:flex; flex-direction:column; gap:1rem; margin-top:0; background:#F5F1E6; border-radius:16px; padding:clamp(1.5rem,4vw,2.25rem); }
.dlz-form .dlz-honeypot{ position:absolute; left:-9999px; }
.dlz-form__row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.dlz-form label{ display:flex; flex-direction:column; gap:0.35rem; font-weight:600; font-size:0.9rem; color:#00180C; }
.dlz-form input, .dlz-form select, .dlz-form textarea{
  font-family:inherit; font-weight:400; font-size:0.98rem; color:#00180C;
  padding:0.75rem; border:1px solid #E1DCC9; border-radius:8px; box-sizing:border-box; width:100%; background:#fff;
}
.dlz-form input::placeholder, .dlz-form textarea::placeholder{ color:#9098A6; }
.dlz-form__submit{ background:#6B9C1A; color:#00180C; border:none; border-radius:10px; padding:0.9rem 1.6rem; font-weight:700; font-size:1rem; cursor:pointer; width:100%; }
.dlz-form__submit:hover{ background:#2A5C12; color:#fff; }
.dlz-form__alt{ text-align:center; font-size:0.88rem; color:#5B6357; margin:0; }
@media (max-width:600px){ .dlz-contact-info{ grid-template-columns:1fr; } .dlz-form__row{ grid-template-columns:1fr; } }

.dlz-footer-contact svg{ vertical-align:-2px; margin-right:0.15rem; }

/* Localidad: encabezado de comuna en la tienda/archivo de taxonomía */
.dlz-locality-hero{ background:#F5F1E6; padding:2rem 0; text-align:center; }
.dlz-locality-hero h1{ margin:0 0 0.4rem; }
.dlz-locality-hero p{ margin:0; color:#5B6357; }

[id]{ scroll-margin-top:90px; }

/* Campos de checkout ocultos (país fijo CL; dirección/comuna/región con solo retiro en tienda) */
.dlz-hidden-field{ display:none !important; }

/* ============ CALCULADOR DE DESPACHO (carrito) ============ */
.dlz-shipping-calc{ background:#F5F1E6; border:1px solid #E1DCC9; border-radius:14px; padding:1.25rem 1.4rem; margin-bottom:1.5rem; }
.dlz-shipping-calc__title{ margin:0 0 0.9rem; font-size:1.05rem; }
.dlz-shipping-calc__row{ display:flex; flex-wrap:wrap; gap:0.9rem; margin-bottom:1rem; }
.dlz-shipping-calc__field{ display:flex; flex-direction:column; gap:0.35rem; font-size:0.85rem; font-weight:600; color:#00180C; flex:1 1 200px; }
.dlz-shipping-calc__field select{ min-height:44px; padding:0.5rem 0.6rem; border-radius:8px; border:1px solid #E1DCC9; background:#fff; font-size:0.92rem; color:#00180C; }
.dlz-shipping-calc__btn{ min-height:44px; border:none; }
.dlz-shipping-calc__result{ margin-top:1rem; }
.dlz-shipping-calc__option{ display:flex; align-items:center; flex-wrap:wrap; gap:0.6rem; padding:0.6rem 0; border-bottom:1px solid #E1DCC9; }
.dlz-shipping-calc__option:last-child{ border-bottom:none; }
.dlz-shipping-calc__option-label{ flex:1 1 auto; font-weight:600; color:#00180C; }
.dlz-shipping-calc__option-value{ color:#2A5C12; }
.dlz-shipping-calc__wa{ padding:0.5rem 1rem; font-size:0.85rem; min-height:auto; }
.dlz-shipping-calc__empty{ margin:0; color:#5B6357; font-size:0.9rem; }

/* ============ MODO CAMPAÑA ============ */
.dlz-price-soon{ display:inline-block; font-weight:700; color:#2A5C12; background:#E7F0E0; padding:0.25rem 0.7rem; border-radius:999px; font-size:0.85rem; letter-spacing:0.02em; text-transform:uppercase; }

.dlz-avisame{ background:#F5F1E6; border:1px solid #E1DCC9; border-radius:14px; padding:1.25rem 1.4rem; margin:1.25rem 0; }
.dlz-avisame__lead{ margin:0 0 1rem; color:#5B6357; font-size:0.95rem; }
.dlz-avisame__form .dlz-honeypot{ position:absolute; left:-9999px; }
.dlz-avisame__row{ display:flex; flex-wrap:wrap; gap:0.75rem; }
.dlz-avisame__row input[type="email"]{ flex:1 1 220px; min-height:44px; padding:0.5rem 0.8rem; border-radius:8px; border:1px solid #E1DCC9; background:#fff; font-size:0.92rem; color:#00180C; }
.dlz-avisame__row button{ min-height:44px; border:none; white-space:nowrap; }
.dlz-avisame__msg{ margin:0.75rem 0 0; font-weight:600; }

.dlz-catalog-panel__recruit{ text-align:center; padding:2.5rem 1.5rem; background:#F5F1E6; border-radius:14px; }
.dlz-catalog-panel__recruit p{ margin:0 0 1.25rem; color:#2A5C12; font-size:1.02rem; max-width:52ch; margin-left:auto; margin-right:auto; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  .woocommerce ul.products li.product:hover, .woocommerce ul.products li.product:hover img,
  .dlz-catalog-card:hover, .dlz-map .zona:hover{ transform:none !important; }
}
