/*
Theme Name: Mi Salud (Storefront child)
Theme URI: https://misalud.co.cr/
Description: Tema hijo de Storefront con el diseño de Macrobiótica Mi Salud: buscador protagonista, categorías, ofertas, cuenta y carrito.
Author: Macrobiótica Mi Salud
Template: storefront
Version: 1.0.0
Text Domain: misalud
*/

:root{
  --verde:#509E5C;
  --verde-oscuro:#2F6B3A;
  --verde-claro:#E8F3EA;
  --naranja:#E06B37;
  --naranja-oscuro:#B9522A;
  --naranja-claro:#FBEDE4;
  --crema:#FAF7F0;
  --texto:#21301F;
  --ms-font-heading:'Poppins',system-ui,sans-serif;
  --ms-font-body:'Open Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --sombra:0 10px 30px rgba(47,107,58,.15);
}

body{background:var(--crema);color:var(--texto);font-family:var(--ms-font-body);line-height:1.6}
h1,h2,h3,h4,h5,h6,.woocommerce-loop-product__title{font-family:var(--ms-font-heading);font-style:normal;font-weight:600}
a{color:var(--verde-oscuro)}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.ms-main{display:block}

/* ===== Header ===== */
.ms-header{background:#fff;box-shadow:0 4px 18px rgba(47,107,58,.08);position:sticky;top:0;z-index:999}
.ms-topbar{display:flex;align-items:center;gap:18px;padding:14px 20px;max-width:1200px;margin:0 auto;flex-wrap:wrap}
.ms-logo{display:flex;align-items:center;gap:10px;flex:none}
.ms-logo img{height:52px;width:auto}
.ms-logo span{font-family:var(--ms-font-heading);font-weight:600;font-size:1.15rem;color:var(--verde-oscuro);line-height:1.1}
.ms-search{flex:1;min-width:240px;display:flex;align-items:center;background:var(--crema);border:2px solid var(--verde-claro);border-radius:999px;padding:0 5px 0 18px;height:54px;margin:0;position:relative;transition:border-color .2s,box-shadow .2s}
.ms-search:focus-within{border-color:var(--verde);box-shadow:0 0 0 4px rgba(80,158,92,.15)}
.ms-search input[type=search]{flex:1;border:0;background:transparent;font:inherit;font-size:1rem;padding:0 6px;height:100%;outline:none;color:var(--texto)}
.ms-search > button{display:inline-flex;align-items:center;gap:8px;border:0;background:var(--verde-oscuro);color:#fff;font-weight:600;font-family:var(--ms-font-heading);padding:0 22px;height:44px;border-radius:999px;cursor:pointer;transition:background .2s}
.ms-search > button svg{display:block;flex:none;width:20px;height:20px;fill:currentColor}
.ms-search > button:hover{background:var(--verde)}
.ms-actions{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
.ms-action{display:inline-flex;align-items:center;gap:8px;font-weight:600;height:54px;padding:0 18px;border-radius:999px;border:2px solid var(--verde-claro);color:var(--verde-oscuro);transition:background .2s,border-color .2s}
.ms-action:hover{background:var(--verde-claro)}
.ms-action svg{width:18px;height:18px;fill:currentColor}
.ms-cart{border-color:var(--naranja-claro);color:var(--naranja-oscuro);position:relative}
.ms-cart:hover{background:var(--naranja-claro)}
.ms-cart-count{background:var(--naranja-oscuro);color:#fff;border-radius:999px;font-size:.78rem;font-weight:600;padding:2px 9px;margin-left:2px}
.ms-catnav{background:var(--verde-oscuro)}
.ms-nav-mobile-bar{display:none;max-width:1200px;margin:0 auto;padding:0 16px}
.ms-nav-toggle{display:inline-flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:0 4px;border:0;border-radius:0;background:transparent;color:#fff;font-family:var(--ms-font-heading);font-size:.94rem;font-weight:600;letter-spacing:-.01em;cursor:pointer}
.ms-nav-toggle:hover{background:transparent;color:#fff}.ms-nav-toggle:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ms-nav-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;transition:transform .2s}
.ms-catnav ul{display:flex;gap:6px;list-style:none;margin:0;padding:0 20px;max-width:1200px;margin:0 auto;overflow-x:auto;scrollbar-width:none}
.ms-catnav ul::-webkit-scrollbar{display:none}
.ms-catnav a{display:block;color:#fff;font-family:var(--ms-font-heading);font-size:.92rem;font-weight:600;letter-spacing:-.012em;line-height:1.45;padding:13px 15px;white-space:nowrap;border-bottom:3px solid transparent;transition:border-color .2s,background .2s}
.ms-catnav a:hover,.ms-catnav .current-menu-item a{border-color:#fff;background:rgba(255,255,255,.08)}
.ms-catnav a.ms-hot{color:#ffe3d3;font-weight:600}
.ms-catnav a.ms-hot:hover{border-color:var(--naranja);color:#fff}
.ms-catnav .ms-wishlist-nav{margin-left:auto;position:sticky;right:0;background:var(--verde-oscuro)}
.ms-catnav .ms-wishlist-nav a{display:flex;align-items:center;gap:8px}
.ms-catnav .ms-wishlist-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
.ms-wishlist-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:var(--naranja);color:#fff;font-size:.72rem}

/* ===== Autocomplete del buscador ===== */
.ms-hero-search{position:relative}
.ms-suggest-drop{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:18px;box-shadow:0 20px 50px rgba(33,48,31,.28);overflow:hidden;overflow-y:auto;max-height:70vh;z-index:1200;text-align:left;display:none}
.ms-suggest-drop.open{display:block}
.ms-suggest-section{padding:8px 14px 6px;background:#f7faf4;color:#526457;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ms-suggest-term{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #f0f4f0;color:var(--texto);text-decoration:none}
.ms-suggest-term.active,.ms-suggest-term:hover{background:var(--verde-claro)}
.ms-suggest-kind{border-radius:999px;background:#e8f3ea;color:var(--verde-oscuro);font-size:.68rem;font-weight:700;padding:3px 8px;white-space:nowrap}
.ms-suggest-term-name{font-weight:700;overflow-wrap:anywhere}
.ms-suggest-term-count{color:#526457;font-size:.78rem;font-variant-numeric:tabular-nums}
.ms-suggest-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #f0f4f0;cursor:pointer;text-decoration:none;color:var(--texto)}
.ms-suggest-item:last-of-type{border-bottom:0}
.ms-suggest-item.active,.ms-suggest-item:hover{background:var(--verde-claro)}
.ms-suggest-item img{width:44px;height:44px;object-fit:contain;border-radius:10px;background:#fff;flex:none}
.ms-suggest-name{min-width:0;overflow-wrap:anywhere;font-weight:700;color:var(--texto);font-size:.95rem;line-height:1.25}
.ms-suggest-name mark{display:inline;padding:0;font-size:inherit;line-height:inherit;background:transparent;color:var(--naranja-oscuro);font-weight:800}
.ms-suggest-brand{font-family:var(--ms-font-heading);font-size:.78rem;font-weight:600;color:#435a43;white-space:nowrap;padding:5px 9px;border-radius:999px;background:#f1f5ed;border:1px solid #dce6d7}
.ms-suggest-all{display:block;padding:12px 14px;font-weight:800;color:var(--verde-oscuro);background:var(--crema);cursor:pointer;font-size:.92rem;border:0;width:100%;text-align:left;font-family:inherit}
.ms-suggest-all:hover{background:var(--verde-claro)}
.ms-suggest-msg{padding:12px 14px;color:#6b7a6e;font-size:.92rem}

/* ===== Hero con buscador protagonista ===== */
.ms-hero{color:#fff;text-align:center;padding:64px 20px 58px;position:relative;isolation:isolate;overflow:visible;z-index:3}
.ms-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(47,107,58,.9),rgba(47,107,58,.68) 45%,rgba(33,48,31,.93)),url('assets/hero-bg.jpg') center/cover no-repeat}
.ms-hero::after{content:"";position:absolute;width:min(420px,100%);height:280px;background:radial-gradient(circle at top right,rgba(232,243,234,.28),rgba(232,243,234,0) 70%);top:0;right:0;z-index:0;pointer-events:none}
.ms-hero .wrap{position:relative;z-index:2}
.ms-hero-logo{width:clamp(130px,17vw,175px);height:auto;margin:0 auto 18px;display:block;background:#fff;border-radius:50%;padding:14px;box-shadow:0 16px 38px rgba(0,0,0,.35);animation:ms-flota 5.5s ease-in-out infinite}
@keyframes ms-flota{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.ms-hero h1{font-size:clamp(1.9rem,5vw,3rem);line-height:1.12;margin:0 0 10px;color:#fff}
.ms-hero p{opacity:.95;margin:0 0 26px;font-size:clamp(1rem,2.4vw,1.15rem)}
.ms-hero-search{display:flex;align-items:center;max-width:680px;margin:0 auto;background:#fff;border-radius:999px;padding:7px 8px 7px 24px;box-shadow:0 18px 44px rgba(0,0,0,.25);position:relative;z-index:3}
.ms-hero-search input[type=search]{flex:1;min-width:0;border:0;font:inherit;font-size:1.05rem;padding:14px 8px;outline:none;background:transparent;color:var(--texto)}
.ms-hero-search > button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border:0;background:var(--naranja);color:#fff;border-radius:50%;cursor:pointer;transition:background .2s,transform .2s;padding:0}
.ms-hero-search > button svg{width:21px;height:21px;fill:#fff}
.ms-hero-search > button:hover{background:var(--naranja-oscuro);transform:translateY(-1px)}
.ms-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px;position:relative;z-index:2}
.ms-chips a{background:rgba(255,255,255,.16);border:1.5px solid rgba(255,255,255,.55);color:#fff;font-weight:700;font-size:.9rem;padding:8px 16px;border-radius:999px;transition:background .2s}
.ms-chips a:hover{background:rgba(255,255,255,.28)}

/* ===== Secciones ===== */
.ms-section{padding:56px 0}
.ms-section.alt{background:#fff}
.ms-tag{display:inline-block;background:var(--verde-claro);color:var(--verde-oscuro);font-weight:800;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;padding:6px 16px;border-radius:999px;margin-bottom:12px}
.ms-tag.naranja{background:var(--naranja-claro);color:var(--naranja-oscuro)}
.ms-head{text-align:center;max-width:640px;margin:0 auto 34px}
.ms-head h2{font-size:clamp(1.5rem,3.6vw,2.1rem);color:var(--verde-oscuro);margin:0 0 6px}
.ms-head p{color:#5f6f63;margin:0}
.ms-head a.ms-vermas{font-weight:800;color:var(--naranja);text-decoration:underline;text-underline-offset:3px}

/* ===== Categorías ===== */
.ms-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.ms-cat{background:var(--verde-claro);border-radius:18px;padding:20px 22px;display:flex;flex-direction:column;gap:8px;transition:transform .22s,box-shadow .22s;border:2px solid transparent}
.ms-cat:hover{transform:translateY(-4px);box-shadow:var(--sombra);border-color:var(--verde)}
.ms-cat h3{margin:0;font-size:1.2rem}
.ms-cat h3 a{color:var(--verde-oscuro)}
.ms-cat ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.ms-cat li a{color:#4a5a4e;font-size:.92rem;font-weight:600}
.ms-cat li a:hover{color:var(--verde-oscuro);text-decoration:underline}
.ms-cat .ms-vermas{margin-top:auto;font-weight:800;color:var(--naranja);font-size:.9rem}

/* ===== Productos (sobrescribe Storefront) ===== */
ul.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:20px;margin:0;padding:0;list-style:none}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{background:#fff;border-radius:18px;box-shadow:var(--sombra);overflow:hidden;margin:0;padding:0;text-align:center;transition:transform .25s;display:flex;flex-direction:column;width:auto!important;float:none}
ul.products li.product:hover{transform:translateY(-5px)}
ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:contain;padding:14px;margin:0;border-radius:18px 18px 0 0}
ul.products li.product .woocommerce-loop-product__title{font-size:1.05rem;color:var(--verde-oscuro);padding:10px 14px 0;line-height:1.3}
ul.products li.product .price{color:var(--naranja);font-family:var(--ms-font-heading);font-weight:800;font-size:1.18rem;padding:6px 14px 12px;margin:0}
ul.products li.product .price del{color:#a9b3ab;font-size:.85em;margin-right:6px;font-weight:600}
ul.products li.product .button,ul.products li.product .add_to_cart_button{display:inline-block;margin:0 14px 16px;background:var(--verde);color:#fff;font-family:var(--ms-font-heading);font-weight:800;padding:11px 18px;border-radius:999px;transition:background .2s}
ul.products li.product .button:hover,ul.products li.product .add_to_cart_button:hover{background:var(--verde-oscuro)}
ul.products li.product .onsale{background:var(--naranja);color:#fff;border-radius:999px;font-weight:800;padding:5px 12px;min-height:0;min-width:0;line-height:1.4}
.ms-vermas-wrap{text-align:center;margin-top:30px}

/* ===== Ofertas ===== */
.ms-ofertas{background:linear-gradient(135deg,var(--naranja-claro),var(--crema))}
.ms-empty-oferta{background:#fff;border:2px dashed var(--naranja);border-radius:18px;padding:26px;text-align:center;font-weight:700;color:var(--naranja-oscuro)}

/* ===== Nube de tags ===== */
.ms-cloud{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;max-width:940px;margin:0 auto}
.ms-cloud-tag{display:inline-flex;align-items:center;gap:9px;background:#fff;border:2px solid var(--verde-claro);color:var(--verde-oscuro);border-radius:999px;font-weight:800;font-family:var(--ms-font-heading);padding:10px 20px;font-size:.98rem;transition:transform .18s,background .18s,color .18s,border-color .18s,box-shadow .18s}
.ms-cloud-tag:hover{background:var(--verde);border-color:var(--verde);color:#fff;transform:translateY(-3px);box-shadow:0 10px 22px rgba(47,107,58,.25)}
.ms-cloud-count{background:var(--verde-claro);color:var(--verde-oscuro);border-radius:999px;padding:1px 10px;font-size:.78rem;font-weight:800;transition:background .18s,color .18s}
.ms-cloud-tag:hover .ms-cloud-count{background:rgba(255,255,255,.28);color:#fff}
.ms-cloud-tag.size-m{font-size:1.1rem;padding:12px 25px}
.ms-cloud-tag.size-l{font-size:1.32rem;padding:15px 32px;background:var(--verde-claro);border-color:var(--verde)}
.ms-cloud-tag.size-l:hover{background:var(--verde-oscuro);border-color:var(--verde-oscuro)}
.ms-cloud-tag:nth-child(4n+3).size-m,.ms-cloud-tag:nth-child(4n+1).size-s{border-color:var(--naranja-claro)}
.ms-cloud-tag:nth-child(4n+3).size-m:hover,.ms-cloud-tag:nth-child(4n+1).size-s:hover{background:var(--naranja);border-color:var(--naranja)}

/* Breadcrumb compacto */
.storefront-breadcrumb{padding:.7em 0;margin:0 0 .7em}
.storefront-breadcrumb .woocommerce-breadcrumb{font-size:.85rem;margin:0}

/* ===== Página de producto ===== */
.single-product div.product .product_title{font-size:clamp(1.5rem,3.4vw,2.05rem);color:var(--verde-oscuro);margin-bottom:4px}
.single-product div.product .summary .price{font-family:var(--ms-font-heading);font-weight:800;color:var(--naranja);font-size:1.7rem;margin:0 0 14px}
.single-product div.product .summary .price del{font-size:.7em;color:#a9b3ab;font-weight:600;margin-right:8px}
.single-product div.product .summary .price ins{text-decoration:none}
.single-product div.product .woocommerce-product-gallery{background:#fff;border-radius:20px;box-shadow:0 6px 20px rgba(47,107,58,.10);padding:14px;margin:0 0 22px}
.single-product div.product .woocommerce-product-gallery img{border-radius:12px}
.ms-prod-stars{display:flex;align-items:center;gap:10px;margin:2px 0 8px}
.ms-prod-stars .star-rating{margin:0;font-size:.95em}
.single-product .star-rating::before{color:#d8ded8}
.single-product .star-rating span::before{color:var(--naranja)}
.ms-prod-stars-link{font-size:.85rem;color:#8a948c;font-weight:700}
.ms-prod-stars-link:hover{color:var(--verde-oscuro)}
.ms-prod-short{margin:2px 0 12px;color:#4a5a4e}
.ms-prod-short p{margin:0 0 .5em}
.ms-prod-short p:last-child{margin-bottom:0}
.ms-prod-short.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ms-prod-short-toggle{display:inline-flex;align-items:center;min-height:36px;margin:-6px 0 12px;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--verde-oscuro);font-family:var(--ms-font-heading);font-size:.88rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.ms-prod-short-toggle:hover{background:transparent;color:var(--naranja-oscuro)}
.ms-prod-short-toggle:focus-visible{outline:3px solid var(--verde);outline-offset:3px}
.ms-prod-long{margin:0 0 26px}
.ms-long-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;border-bottom:1px solid #e3e8e4;padding:16px 0;font-family:var(--ms-font-heading);font-weight:700;font-size:1.05rem;color:var(--verde-oscuro);cursor:pointer}
.ms-long-chev{width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-right:8px}
.ms-long-toggle.open .ms-long-chev{transform:rotate(-135deg)}
.ms-prod-long-body{padding:14px 0 2px;color:#4a5a4e}
.ms-prod-long-body p{margin:0 0 .75em}
.ms-prod-long-body p:last-child{margin-bottom:0}
.ms-prod-list{list-style:none;margin:0;padding:0}
.ms-prod-list li{position:relative;padding-left:20px;margin:0 0 .55em}
.ms-prod-list li::before{content:'';position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--verde)}
.ms-prod-list li:last-child{margin-bottom:0}
.ms-desc-toggle:hover{color:var(--naranja-oscuro);text-decoration:underline;text-underline-offset:3px}
.single-product div.product form.cart{margin:0 0 18px}
.single-product div.product .single_add_to_cart_button{background:var(--verde);border-radius:999px;font-family:var(--ms-font-heading);font-weight:800;padding:14px 32px;font-size:1.05rem}
.single-product div.product .single_add_to_cart_button:hover{background:var(--verde-oscuro)}
.single-product div.product form.cart .quantity input{border-radius:12px;border:2px solid var(--verde-claro);padding:10px 8px;font-weight:700;color:var(--texto)}
.single-product .product_meta{font-size:.9rem;color:#526457;margin:0;display:grid;gap:10px}
.single-product .product_meta>span{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid #dfe8d9;border-radius:12px;background:#f8faf6}
.single-product .product_meta>span>strong{font-family:var(--ms-font-heading);font-size:.82rem;font-weight:600;color:var(--texto);min-width:76px}
.single-product .product_meta>span>a,.single-product .product_meta>span>.sku{font-size:.86rem}
.single-product .product_meta a{font-weight:700;color:var(--verde-oscuro);text-decoration:none;padding:2px 8px;border-radius:999px;background:#e8f3ea}
.ms-product-purchase-panel{clear:both;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:30px 0 34px;padding:0}
.ms-product-panel-column{min-width:0;padding:22px;border:1px solid #dfe8d9;border-radius:18px;background:#fff;box-shadow:0 5px 20px rgba(33,48,31,.04)}
.ms-product-panel-column>h2{margin:0 0 16px;color:var(--texto);font-size:1.05rem;line-height:1.35}
.ms-product-panel-trust .ms-product-trust{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.ms-product-panel-trust .ms-product-trust ul{display:grid;grid-template-columns:1fr;gap:10px}
.ms-product-panel-actions{display:flex;flex-direction:column}
.ms-product-panel-actions .msa-wishlist-product{margin:0 0 14px;padding:0}
.ms-product-share{margin:0 0 18px;padding:16px 0;border-top:1px solid #e4ebe0;border-bottom:1px solid #e4ebe0}
.ms-product-share h3{margin:0 0 10px;color:var(--texto);font-size:.88rem;font-weight:600}
.ms-product-share-actions{display:flex;flex-wrap:wrap;gap:8px}
.ms-share-button{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:0;padding:7px 10px;border:1px solid #d7e3d3;border-radius:10px;background:#f8faf6;color:var(--verde-oscuro);font-family:var(--ms-font-heading);font-size:.75rem;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;box-shadow:none}
.ms-share-button:hover{background:var(--verde-claro);color:var(--verde-oscuro);transform:none}
.ms-share-button:focus-visible{outline:3px solid var(--verde);outline-offset:2px}
.ms-share-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ms-share-status{min-height:1.2em;margin:7px 0 0;color:#526457;font-size:.76rem}
.ms-product-panel-actions .msa-wa-btn{width:100%;justify-content:center;margin:0;border:1.5px solid #a9c2a5;background:#fff;color:var(--verde-oscuro);border-radius:12px}
.ms-product-panel-actions .msa-wa-btn:hover{background:var(--verde-claro);box-shadow:none}
.ms-product-panel-actions .msa-wa-note{margin:12px 0 0;line-height:1.5}
@media(max-width:900px){.ms-product-purchase-panel{grid-template-columns:1fr 1fr}.ms-product-panel-meta{grid-column:1/-1}}
@media(max-width:600px){.ms-product-purchase-panel{grid-template-columns:1fr;gap:12px;margin-top:22px}.ms-product-panel-meta{grid-column:auto}.ms-product-panel-column{padding:18px}}
.woocommerce-tabs ul.tabs{display:flex;gap:8px;padding:0;margin:0 0 22px;border:0;flex-wrap:wrap}
.woocommerce-tabs ul.tabs::before{display:none}
.woocommerce-tabs ul.tabs li{margin:0;background:none;border:0}
.woocommerce-tabs ul.tabs li a{background:#fff!important;border:2px solid var(--verde-claro)!important;border-radius:999px;padding:10px 22px!important;font-family:var(--ms-font-heading);font-weight:800;color:var(--verde-oscuro);font-size:.95rem}
.woocommerce-tabs ul.tabs li.active a{background:var(--verde)!important;color:#fff!important;border-color:var(--verde)!important}
.woocommerce-tabs .panel{background:#fff;border-radius:18px;box-shadow:0 4px 14px rgba(47,107,58,.07);padding:22px 24px}
section.related > h2{color:var(--verde-oscuro);font-size:1.4rem}

/* Formulario de valoraciones (dropdown) */
.ms-reviews-toggle{display:inline-flex;align-items:center;gap:8px;background:transparent;border:2px solid var(--verde-claro);color:var(--verde-oscuro);font-family:var(--ms-font-heading);font-weight:800;padding:10px 20px;border-radius:999px;cursor:pointer;margin-top:8px;transition:background .2s,border-color .2s}
.ms-reviews-toggle:hover{background:var(--verde-claro);border-color:var(--verde)}
.ms-chevron{width:14px;height:14px;transition:transform .25s ease}
.ms-reviews-toggle[aria-expanded="true"] .ms-chevron{transform:rotate(180deg)}
#review_form_wrapper{margin-top:16px;background:var(--crema);border-radius:14px;padding:20px 22px}
#review_form .comment-form-rating p.stars a{color:var(--naranja)}
#review_form input[type=text],#review_form input[type=email],#review_form textarea{border:2px solid var(--verde-claro);border-radius:12px;padding:10px 14px;width:100%;font:inherit;background:#fff}
#review_form input[type=text]:focus,#review_form input[type=email]:focus,#review_form textarea:focus{outline:none;border-color:var(--verde);box-shadow:0 0 0 4px rgba(80,158,92,.15)}
#review_form .form-submit input[type=submit],#review_form button[type=submit]{background:var(--verde);color:#fff;border:0;border-radius:999px;font-family:var(--ms-font-heading);font-weight:800;padding:12px 26px;cursor:pointer;transition:background .2s}
#review_form .form-submit input[type=submit]:hover,#review_form button[type=submit]:hover{background:var(--verde-oscuro)}

/* ===== Landing de categorías ===== */
.ms-hero-slim{padding:50px 20px 44px}
.ms-hero-slim h1{margin-bottom:6px}
.ms-hero-slim p{margin-bottom:22px}
.ms-catland-count{display:inline-block;background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.45);color:#fff;border-radius:999px;padding:7px 18px;font-weight:800;margin:18px 0 0;font-size:.9rem}
.ms-abc-wrap{background:#fff;border-radius:20px;box-shadow:var(--sombra);padding:14px;max-width:780px;margin:0 auto 32px}
.ms-abc{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0}
.ms-abc button{border:2px solid var(--verde-claro);background:#fff;color:var(--verde-oscuro);font-family:var(--ms-font-heading);font-weight:800;width:42px;height:42px;border-radius:12px;cursor:pointer;font-size:.95rem;transition:background .15s,color .15s,border-color .15s,transform .15s}
.ms-abc button:hover:not(:disabled){background:var(--verde-claro);transform:translateY(-2px)}
.ms-abc button.active{background:var(--verde);border-color:var(--verde);color:#fff}
.ms-abc button:disabled{opacity:.3;cursor:default}
.ms-abc button.ms-abc-all{width:auto;padding:0 18px}
.ms-catland .ms-cat-item{background:#fff;border:2px solid #eef3ee;border-left:6px solid var(--verde);border-radius:16px;padding:18px 20px;box-shadow:0 4px 14px rgba(47,107,58,.06)}
.ms-cat-item:hover{transform:translateY(-4px);box-shadow:var(--sombra);border-color:var(--verde)}
.ms-cat-item .ms-cat-parent{display:inline-block;background:var(--verde);color:#fff;border-radius:999px;padding:3px 11px;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;width:fit-content}
.ms-cat-item .ms-cat-count{font-size:.84rem;color:#8a948c;font-weight:700}
.ms-cat-item h3{margin:0;font-size:1.12rem}
.ms-cat-item h3 a{color:var(--verde-oscuro)}
.ms-cat-item .ms-vermas{margin-top:auto}
.ms-group-nutricion{border-left-color:var(--naranja)}
.ms-group-nutricion .ms-cat-parent{background:var(--naranja)}
.ms-group-cuidado-personal{border-left-color:#B76BA3}
.ms-group-cuidado-personal .ms-cat-parent{background:#B76BA3}
.ms-group-fitness{border-left-color:#4A7DBD}
.ms-group-fitness .ms-cat-parent{background:#4A7DBD}
.ms-catland-empty{grid-column:1/-1;text-align:center;color:#6b7a6e;font-weight:700;padding:30px 0}
.ms-tags-section{background:linear-gradient(135deg,var(--verde-claro),var(--crema))}

/* ===== Marcas ===== */
.ms-brands{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.ms-brand{background:#fff;border:2px solid var(--verde-claro);border-radius:14px;padding:14px 26px;font-family:var(--ms-font-heading);font-weight:700;color:var(--verde-oscuro);transition:transform .2s,border-color .2s,box-shadow .2s}
.ms-brand:hover{border-color:var(--verde);transform:translateY(-3px);box-shadow:var(--sombra)}

/* ===== Sucursales ===== */
.ms-sucursales{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:18px}
.ms-sucursal{background:#fff;border-radius:16px;box-shadow:0 4px 14px rgba(47,107,58,.07);padding:18px 20px;display:flex;flex-direction:column;gap:6px;border-left:5px solid var(--verde)}
.ms-sucursal h3{margin:0;color:var(--verde-oscuro);font-size:1.05rem}
.ms-sucursal .tel{font-weight:800;color:var(--naranja);font-size:.95rem}
.ms-sucursal p{margin:0;color:#4a5a4e;font-size:.92rem}
.ms-sucursal .waze{margin-top:auto;font-weight:800;color:var(--verde-oscuro);font-size:.88rem;padding-top:6px}
.ms-sucursal .waze:hover{color:var(--verde)}

/* ===== Preguntas frecuentes ===== */
.ms-faq{background:#fff;border-radius:16px;box-shadow:0 4px 14px rgba(47,107,58,.07);margin:0 0 12px;overflow:hidden}
.ms-faq summary{cursor:pointer;font-family:var(--ms-font-heading);font-weight:700;color:var(--verde-oscuro);padding:16px 20px;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.ms-faq summary::-webkit-details-marker{display:none}
.ms-faq summary::after{content:"+";font-size:1.3rem;color:var(--naranja);font-weight:800;transition:transform .2s}
.ms-faq[open] summary::after{transform:rotate(45deg)}
.ms-faq div{padding:0 20px 18px;color:#4a5a4e}
.ms-faq div p{margin:0 0 .6em}
.ms-faq a{color:var(--naranja);font-weight:700}

/* ===== Blog en portada ===== */
.ms-blog{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
.ms-post{background:#fff;border-radius:18px;box-shadow:var(--sombra);padding:20px;display:flex;flex-direction:column;gap:8px;transition:transform .22s}
.ms-post:hover{transform:translateY(-4px)}
.ms-post-date{font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--verde)}
.ms-post h3{margin:0;font-size:1.08rem;line-height:1.3}
.ms-post h3 a{color:var(--verde-oscuro)}
.ms-post p{margin:0;color:#5f6f63;font-size:.94rem}
.ms-post .ms-vermas{margin-top:auto;font-weight:800;color:var(--naranja);font-size:.9rem}

/* ===== Footer legal ===== */
.ms-legal{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:16px 0 0;font-weight:700}
.ms-legal a{color:#dfe9e1;text-decoration:underline;text-underline-offset:3px}
.ms-legal a:hover{color:#fff}

/* ===== Strip y footer ===== */
.ms-strip{background:var(--naranja);color:#fff;text-align:center;padding:16px 20px;font-weight:700}
.ms-strip b{font-weight:800;color:#ffe3d3}
.ms-footer{background:var(--verde-oscuro);color:#dfe9e1;text-align:center;padding:52px 20px 36px;margin-top:0}
.ms-footer img{height:64px;margin:0 auto 14px;display:block}
.ms-footer h3{color:#fff;margin:0 0 4px}
.ms-footer .ms-redes{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:18px 0 6px}
.ms-footer .ms-redes a{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.35);padding:10px 20px;border-radius:999px;font-weight:700;color:#fff;transition:background .2s}
.ms-footer .ms-redes a:hover{background:rgba(255,255,255,.12)}
.ms-footer .ms-redes svg{width:18px;height:18px;fill:currentColor}
.ms-footer .ms-disclaimer{font-size:.78rem;color:#dfe9e1;max-width:560px;margin:16px auto 0}
.ms-footer small{display:block;color:#dfe9e1;margin-top:16px}

/* Botones generales */
.button,button,input[type=submit],.woocommerce a.button,.woocommerce button.button{background:var(--verde);color:#fff;border-radius:999px;font-family:var(--ms-font-heading);font-weight:700;border:0;padding:12px 22px;transition:background .2s}
.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--verde-oscuro);color:#fff}
.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--naranja)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--naranja-oscuro)}
.woocommerce-message,.woocommerce-info{border-top-color:var(--verde)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--verde)}
.onsale{background:var(--naranja)}

/* Buscador en páginas internas */
.ms-search-page .page-title{color:var(--verde-oscuro)}

@media(max-width:860px){
  .ms-topbar{gap:10px;padding:12px 16px}
  .ms-logo img{height:44px}
  .ms-logo span{display:none}
  .ms-search{order:3;flex-basis:100%;min-width:0;height:48px}
  .ms-search > button{width:40px;height:40px;padding:0;justify-content:center;font-size:.92rem}
  .ms-actions{margin-left:auto}
  .ms-action{position:relative;width:48px;height:48px;padding:0;justify-content:center;font-size:.92rem}
  .ms-action-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .ms-action svg{width:21px;height:21px}
  .ms-cart-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;margin:0;border:2px solid #fff;font-size:.7rem;line-height:1}
  ul.products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  ul.products li.product .woocommerce-loop-product__title{font-size:.92rem}
  ul.products li.product .button,ul.products li.product .add_to_cart_button{padding:9px 12px;font-size:.86rem;margin:0 10px 12px}
  .ms-hero-search{padding:6px 6px 6px 18px}
  .ms-hero-search input[type=search]{font-size:.98rem;padding:12px 6px}
  .ms-hero-search > button{width:46px;height:46px}
  .ms-hero-search > button svg{width:19px;height:19px}
  .ms-cloud-tag{padding:8px 16px;font-size:.9rem}
  .ms-cloud-tag.size-l{font-size:1.08rem;padding:11px 22px}
  .ms-cloud-tag.size-m{font-size:.98rem;padding:9px 18px}
  .ms-nav-mobile-bar{display:flex;align-items:center;justify-content:space-between}
  .ms-catnav.ms-nav-collapsed #ms-primary-menu{display:none!important}
  .ms-catnav.is-open #ms-primary-menu{display:flex!important;overflow:visible;flex-direction:column;gap:0;padding:4px 16px 14px;border-top:1px solid rgba(255,255,255,.16)}
  .ms-catnav a{width:100%;padding:12px 4px;border-bottom:0;border-left:3px solid transparent}
  .ms-catnav a:hover,.ms-catnav .current-menu-item a{border-left-color:#fff;border-bottom-color:transparent}
  .ms-catnav .ms-wishlist-nav{position:static;margin-left:0;background:transparent;border-top:1px solid rgba(255,255,255,.16)}
  .ms-catnav .ms-wishlist-nav a{justify-content:flex-start}
  .ms-catnav.is-open .ms-nav-toggle svg{transform:rotate(90deg)}
}
/* Los controles de las sugerencias conservan su propio diseño. */
.ms-suggest-drop .ms-suggest-all{height:auto;min-height:44px;border-radius:0;white-space:normal;line-height:1.4}
.ms-suggest-item:focus-visible,.ms-suggest-all:focus-visible{outline:2px solid var(--verde);outline-offset:-3px}
@media(max-width:480px){
 .ms-suggest-item{grid-template-columns:40px minmax(0,1fr);gap:4px 10px;padding:10px 12px}
 .ms-suggest-item img{width:40px;height:40px;grid-row:span 2}
 .ms-suggest-name{font-size:.9rem;line-height:1.4}
 .ms-suggest-brand{grid-column:2;justify-self:start;font-size:.74rem;line-height:1.3}
}

/* ===== Landing editorial del Blog ===== */
.ms-blog-landing{padding-bottom:64px;background:var(--crema)}
.ms-blog-hero{padding:64px 20px 60px;text-align:center;background:linear-gradient(135deg,#e8f3ea,#f8f6ed)}
.ms-blog-hero h1{max-width:780px;margin:16px auto;color:var(--verde-oscuro);font-size:clamp(2rem,5vw,3.5rem);line-height:1.15;letter-spacing:-.04em}
.ms-blog-hero p{max-width:620px;margin:0 auto 24px;color:#4b6051;font-size:1.1rem;line-height:1.7}
.ms-blog-jump{display:inline-flex;align-items:center;gap:12px;font-weight:700;color:var(--verde-oscuro);text-decoration:none}
.ms-blog-articles{padding-top:48px;scroll-margin-top:200px}
.ms-blog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.ms-blog-heading h2{margin:10px 0 0;color:var(--verde-oscuro);font-size:1.8rem}
.ms-blog-heading>p{margin:0 0 4px;color:#526457}
.ms-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.ms-blog-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e1e8dd;border-radius:20px;box-shadow:0 5px 20px rgba(33,48,31,.04)}
.ms-blog-cover{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:20px;isolation:isolate;overflow:hidden;aspect-ratio:16/10;padding:24px;text-decoration:none;background:#e0eddd;color:#234e2c}
.ms-blog-tone-1{background:#f4e8d9;color:#644831}.ms-blog-tone-2{background:#e7edda;color:#465332}.ms-blog-tone-3{background:#dceae7;color:#31594f}
.ms-blog-cover>img:not(.ms-blog-cover-logo){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
.ms-blog-cover .ms-blog-cover-logo{position:relative;width:68px;height:68px;object-fit:contain;background:#fff;border-radius:50%;padding:6px;box-sizing:border-box}
.ms-blog-cover-word{position:relative;font-family:var(--ms-font-heading);font-size:clamp(1.1rem,2vw,1.5rem);font-weight:700;line-height:1.25;letter-spacing:-.025em}
.ms-blog-cover-ring{position:absolute;right:-50px;top:-30px;width:240px;height:240px;border:40px solid currentColor;border-radius:50%;opacity:.06;z-index:-1}
.ms-blog-cover-leaf{position:absolute;width:140px;height:210px;right:15px;bottom:-65px;border-radius:100% 0 100% 0;background:currentColor;opacity:.08;transform:rotate(-20deg);z-index:-1}
.ms-blog-card-body{min-width:0;display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:24px}
.ms-blog-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;font-size:.78rem;color:#59675a}
.ms-blog-feature-label{padding:4px 9px;border-radius:999px;background:#e8f3ea;color:var(--verde-oscuro);font-weight:700}
.ms-blog-card h3{margin:0 0 14px;font-family:var(--ms-font-heading);font-size:1.2rem;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere}
.ms-blog-card h3 a{color:var(--texto);text-decoration:none}
.ms-blog-card h3 a:hover{color:var(--verde)}
.ms-blog-card-body>p{margin:0 0 24px;color:#526457;line-height:1.7;font-size:.95rem}
.ms-blog-read{display:inline-flex;gap:12px;align-items:center;margin-top:auto;font-weight:700;color:var(--verde-oscuro);text-decoration:none}
.ms-blog-featured{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ms-blog-featured .ms-blog-cover{aspect-ratio:auto;min-height:340px;padding:36px}
.ms-blog-featured .ms-blog-cover-logo{width:90px;height:90px}
.ms-blog-featured .ms-blog-cover-word{font-size:2rem}
.ms-blog-featured .ms-blog-card-body{padding:40px;justify-content:center}
.ms-blog-featured h3{font-size:clamp(1.5rem,3vw,2rem);line-height:1.3}
.ms-blog-featured .ms-blog-read{margin-top:0}
.ms-blog-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}
.ms-blog-pagination .page-numbers{padding:9px 14px;border-radius:8px;background:#fff;color:var(--verde-oscuro)}
.ms-blog-pagination .current{background:var(--verde-oscuro);color:#fff}
.ms-blog-shop{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:56px;padding:32px;border:1px solid #dce6d7;border-radius:20px;background:#edf3e9}
.ms-blog-shop h2{margin:10px 0;font-size:1.6rem;color:var(--verde-oscuro)}
.ms-blog-shop p{margin:0;color:#526457}.ms-blog-shop .button{flex-shrink:0}
.ms-blog-landing a:focus-visible{outline:3px solid var(--naranja);outline-offset:4px}
@media(max-width:900px){.ms-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-blog-featured .ms-blog-card-body{padding:28px}}
@media(max-width:600px){.ms-blog-hero{padding:40px 20px}.ms-blog-grid{grid-template-columns:1fr;gap:20px}.ms-blog-featured{display:flex}.ms-blog-featured .ms-blog-cover{min-height:250px;padding:24px}.ms-blog-featured .ms-blog-cover-logo{width:68px;height:68px}.ms-blog-featured .ms-blog-cover-word{font-size:1.6rem}.ms-blog-card-body,.ms-blog-featured .ms-blog-card-body{padding:22px}.ms-blog-heading{align-items:center}.ms-blog-heading>p{font-size:.85rem;white-space:nowrap}.ms-blog-shop{flex-direction:column;align-items:flex-start;padding:24px}.ms-blog-articles{padding-top:32px}}

/* ===== Home editorial — design.md v2 ===== */
.ms-home{display:block;background:var(--crema)}
body.home h1,body.home h2,body.home h3,body.home .woocommerce-loop-product__title{font-family:var(--ms-font-heading);font-weight:600}
/* El header es idéntico en todas las páginas: pesos, botón y contador globales (design.md v2). */
input[type=search]{box-shadow:none}
.ms-home .ms-hero{padding:64px 0;color:var(--texto);text-align:left}
.ms-home .ms-hero::before{background:linear-gradient(120deg,#e8f3ea 0%,#f7f7ee 70%,#f0f3e7 100%)}
.ms-home .ms-hero::after{display:none}
.ms-home-hero-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:48px}
.ms-home-intro{position:relative;z-index:3;min-width:0}
.ms-home .ms-hero h1{margin:12px 0 20px;color:var(--verde-oscuro);font-size:clamp(2.2rem,4.2vw,3.45rem);line-height:1.15;letter-spacing:-.045em;max-width:620px}
.ms-home .ms-hero .ms-home-intro>p{font-size:1.05rem;line-height:1.75;color:#526457;max-width:540px;opacity:1;margin:0 0 28px}
.ms-home-search-label{display:block;margin-bottom:8px;color:var(--texto);font-weight:600;font-size:.875rem}
.ms-home .ms-hero-search{max-width:none;margin:0;padding:6px 7px 6px 16px;border:1px solid #c9d8c5;border-radius:16px;box-shadow:0 5px 20px rgba(33,48,31,.04)}
.ms-home .ms-hero-search input[type=search]{font-size:1rem;padding:12px 4px}
.ms-home .ms-hero-search>button{width:46px;height:46px;background:var(--verde-oscuro);border-radius:12px;transform:none}
.ms-home .ms-hero-search>button:hover{background:#234f2b}
.ms-home .ms-chips{justify-content:flex-start;gap:8px;margin-top:16px}
.ms-home .ms-chips a{background:rgba(255,255,255,.75);border:1px solid #d3dfcd;color:var(--verde-oscuro);font-weight:600;font-size:.8rem;padding:6px 12px}
.ms-home .ms-chips a:hover{background:#fff;border-color:var(--verde-oscuro)}
.ms-home-catalog-link{display:inline-flex;align-items:center;gap:10px;margin-top:20px;color:var(--verde-oscuro);font-weight:600;font-size:.9rem;text-decoration:none}
.ms-home-visual{position:relative;z-index:1;margin:0;overflow:hidden;border-radius:24px;background:#dce8d7;border:1px solid #d7e1d0}
.ms-home-photo{position:relative;overflow:hidden;aspect-ratio:1/1}.ms-home-photo>img{display:block;position:absolute;inset:0;width:100%;height:132%;max-width:none;object-fit:cover;object-position:center top}
.ms-home-visual figcaption{padding:16px 20px;background:#f8faf5;color:#3f5746;font-size:.875rem;line-height:1.5}
.ms-home .ms-section{padding:56px 0}
.ms-home .ms-head{max-width:none;text-align:left;margin:0 0 28px}
.ms-home .ms-head h2{font-size:clamp(1.5rem,2.7vw,2rem);line-height:1.3;letter-spacing:-.03em;margin:8px 0 10px}
.ms-home .ms-head p{max-width:660px;color:#526457;line-height:1.7}
.ms-home .ms-tag{font-weight:600;font-size:.75rem;letter-spacing:.08em;margin-bottom:0;padding:5px 12px}
.ms-home .ms-cats{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ms-home .ms-cat{padding:24px 20px;background:#fff;border:1px solid #e1e8dd;box-shadow:0 5px 20px rgba(33,48,31,.04);border-radius:20px;gap:12px;transform:none}
.ms-home .ms-cat:hover{transform:none;border-color:#a9c2a5;box-shadow:0 8px 24px rgba(33,48,31,.06)}
.ms-home .ms-cat h3{font-size:1.1rem;line-height:1.4}
.ms-home .ms-cat li a{font-size:.875rem;font-weight:400;color:#526457;line-height:1.7}
.ms-home .ms-cat .ms-vermas{color:var(--verde-oscuro);font-weight:600;margin-top:auto;padding-top:8px}
.ms-home .ms-vermas-wrap{text-align:left;margin-top:24px}
.ms-home .button,.ms-home .button.alt{background:var(--verde-oscuro);color:#fff;border-radius:10px;font-family:var(--ms-font-heading);font-weight:600;font-size:.9rem;padding:12px 20px;transform:none}
.ms-home .button:hover{background:#234f2b;color:#fff}
.ms-home .ms-ofertas{background:#edf3e9;border-block:1px solid #e0e8da}
.ms-home .ms-tag.naranja{background:#f7eadd;color:#9b3f1f;font-weight:600}
.ms-home .ms-empty-oferta{border:1px solid #dce6d7;border-radius:16px;font-weight:400;text-align:left;color:#526457}
.ms-home ul.products{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ms-home ul.products li.product{min-width:0;text-align:left;border:1px solid #e1e8dd;border-radius:20px;box-shadow:0 5px 20px rgba(33,48,31,.04);transform:none}
.ms-home ul.products li.product:hover{transform:none;border-color:#a9c2a5}
.ms-home ul.products li.product a img{padding:16px;border-radius:20px 20px 0 0}
.ms-home ul.products li.product .woocommerce-loop-product__title{padding:12px 18px 0;color:var(--texto);font-size:1rem;line-height:1.5;letter-spacing:-.02em;overflow-wrap:anywhere}
.ms-home ul.products li.product .price{padding:10px 18px 16px;font-family:var(--ms-font-heading);font-weight:600;font-size:1.1rem;color:var(--naranja-oscuro)}
.ms-home ul.products li.product .price del{color:#526457;font-weight:400}
.ms-home ul.products li.product .button{margin:auto 16px 16px;text-align:center;padding:11px 12px;font-size:.83rem;font-weight:600;background:var(--verde-oscuro);border-radius:10px}
.ms-home ul.products li.product .onsale{background:var(--naranja-oscuro);color:#fff;font-weight:600;border:0}
.ms-home .ms-brands{justify-content:flex-start}
.ms-home .ms-brand{font-weight:600;box-shadow:none;border:1px solid #e1e8dd;transform:none}
.ms-home .ms-brand:hover{transform:none}
.ms-home .ms-cloud{justify-content:flex-start;max-width:none;gap:10px}
.ms-home .ms-cloud-tag,.ms-home .ms-cloud-tag.size-m,.ms-home .ms-cloud-tag.size-l{font-family:var(--ms-font-body);font-size:.9rem;font-weight:600;padding:9px 14px;border:1px solid #dce6d7;background:#fff;color:var(--verde-oscuro);transform:none;box-shadow:none}
.ms-home .ms-cloud-tag:hover,.ms-home .ms-cloud-tag.size-l:hover,.ms-home .ms-cloud-tag:nth-child(4n+3).size-m:hover,.ms-home .ms-cloud-tag:nth-child(4n+1).size-s:hover{background:var(--verde-claro);color:var(--verde-oscuro);border-color:#a9c2a5;transform:none;box-shadow:none}
.ms-home .ms-cloud-count,.ms-home .ms-cloud-tag:hover .ms-cloud-count{background:#e8f3ea;color:var(--verde-oscuro);font-weight:600}
.ms-home .ms-blog-card{box-shadow:0 5px 20px rgba(33,48,31,.04)}
.ms-home .ms-blog-card h3{font-size:1.15rem;line-height:1.45;font-weight:600}
.ms-home .ms-blog-read{font-weight:600}
.ms-home-journal .ms-blog-card:nth-child(2) .ms-blog-cover{background:#f4e8d9;color:#644831}
.ms-home-journal .ms-blog-card:nth-child(3) .ms-blog-cover{background:#dceae7;color:#31594f}
.ms-home-blog-link{padding-bottom:56px}
.ms-home a:focus-visible,.ms-home button:focus-visible,body.home .ms-search:focus-within{outline:3px solid var(--verde-oscuro);outline-offset:3px}
.ms-home .ms-hero-search:focus-within{outline:3px solid var(--verde-oscuro);outline-offset:3px}
@media(max-width:1000px){.ms-home-hero-grid{gap:28px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.ms-home .ms-cats,.ms-home ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ms-home .ms-hero{padding:36px 0}.ms-home-hero-grid{grid-template-columns:1fr;gap:28px}.ms-home-hero-grid .ms-home-visual{order:-1}.ms-home .ms-hero h1{font-size:clamp(2rem,8vw,2.7rem);max-width:520px}.ms-home .ms-hero .ms-home-intro>p{font-size:1rem;margin-bottom:22px}.ms-home-visual{max-width:500px;width:100%}.ms-home-photo{aspect-ratio:16/8;max-height:250px}.ms-home-visual figcaption{padding:12px 16px}.ms-home .ms-section{padding:36px 0}.ms-home .ms-cats{gap:12px}.ms-home .ms-cat{padding:20px 16px}.ms-home ul.products{gap:12px}.ms-home ul.products li.product .woocommerce-loop-product__title{font-size:.9rem;padding:10px 12px 0}.ms-home ul.products li.product .price{font-size:1rem;padding:8px 12px 14px}.ms-home ul.products li.product .button{margin:auto 10px 12px;padding:10px 8px;font-size:.78rem}.ms-home .ms-blog-grid{grid-template-columns:1fr}.ms-home-blog-link{padding-bottom:36px}}
@media(max-width:380px){.ms-home .ms-cats{grid-template-columns:1fr}.ms-home .ms-hero-search{padding-left:10px}.ms-home .ms-hero-search input[type=search]{font-size:1rem}.ms-home ul.products li.product .button{white-space:normal;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.ms-home *,body.home .ms-header *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ms-home-service{padding:22px 0;background:#edf3e9;border-top:1px solid #dce6d7;color:#3f5746;font-size:.9rem}.ms-home-service .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* Momentos: marco 1:1 y ambiente de la fotografía activa (home únicamente). */
.ms-home .ms-home-hero::before{background:none}
.ms-home-hero-grid{position:relative}
.ms-hero-ambient{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#e8f3ea}
.ms-ambient-layer{position:absolute;inset:-65px;background-size:cover;background-position:center;filter:blur(50px) saturate(1.25);opacity:0;transition:opacity 1.2s ease}
.ms-ambient-layer.is-active{opacity:.46}
.ms-hero-ambient::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(250,247,240,.96),rgba(250,247,240,.85) 45%,rgba(250,247,240,.38))}
.ms-moments{background:#fff;box-shadow:0 18px 48px rgba(33,48,31,.12);border-color:rgba(255,255,255,.9)}
.ms-moments-window{position:relative;aspect-ratio:1/1;overflow:hidden;isolation:isolate;background:#eef3e9}
.ms-moment{position:absolute;inset:0;margin:0;background:#eef3e9}
.ms-moment[hidden],.ms-moments-controls[hidden]{display:none}
.ms-moment.is-active{z-index:1}
.ms-moment>img{display:block;width:100%;height:100%;object-fit:cover}
/* La foto de producto llena el marco de borde a borde, igual que las escenas ilustradas. */
.ms-moment-product>img{object-fit:cover}
.ms-moment-copy{position:absolute;inset:auto 0 0;padding:62px 24px 22px;background:linear-gradient(transparent,rgba(14,29,18,.76) 50%,rgba(14,29,18,.92));color:#fff}
.ms-moment-copy>span{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600}
.ms-home .ms-moment-copy h2{color:#fff;font-size:clamp(1.15rem,1.8vw,1.5rem);line-height:1.3;font-weight:600;margin:7px 0 8px;letter-spacing:-.025em}
.ms-moment-copy a{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:.85rem;font-weight:600;color:#fff;text-decoration:underline;text-underline-offset:4px}
.ms-moment-product .ms-moment-copy{background:linear-gradient(180deg,rgba(245,248,240,0),rgba(245,248,240,.86) 22%,#f5f8f0 46%);color:#21301f;padding-top:58px}
.ms-home .ms-moment-product h2,.ms-moment-product .ms-moment-copy a{color:#21301f}
.ms-moments-controls{display:flex;align-items:center;gap:3px;padding:7px 10px;color:#2f6b3a;min-height:60px;background:#fff}
.ms-moments-count{font-size:.72rem;font-weight:600;white-space:nowrap;margin-right:4px;font-variant-numeric:tabular-nums}
.ms-moments-controls button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#2f6b3a;box-shadow:none;font-size:1.2rem;font-weight:600;cursor:pointer}
.ms-moments-controls button:hover{background:#e8f3ea}
.ms-moments-controls button:focus-visible,.ms-moment-copy a:focus-visible{outline:3px solid #b9522a;outline-offset:-3px}
.ms-moments-dots{display:flex;flex:1;justify-content:center;gap:0}
.ms-moments-dots button{min-width:24px;flex-basis:24px;border-radius:8px}
.ms-moments-dots button::before{content:"";width:5px;height:5px;background:#b4c2b0;border-radius:4px;transition:height .3s,background .3s}
.ms-moments-dots button[aria-pressed=true]::before{height:20px;background:#2f6b3a}
@media(max-width:700px){.ms-moments{max-width:500px;margin-inline:auto}.ms-moment-copy{padding:48px 20px 16px}.ms-home .ms-moment-copy h2{font-size:1.3rem}.ms-hero-ambient::after{background:linear-gradient(180deg,rgba(250,247,240,.96),rgba(250,247,240,.85) 50%,rgba(250,247,240,.45))}.ms-moments-controls{gap:0;padding-inline:8px}.ms-moments-count{margin-right:0}}
@media(prefers-reduced-motion:reduce){.ms-ambient-layer,.ms-moments-dots button::before{transition:none}}

.ms-moments-play-icon{display:block;width:12px;height:14px;border-inline:4px solid currentColor;box-sizing:border-box}
.ms-moments-controls button[aria-pressed=true] .ms-moments-play-icon{width:0;height:0;border:7px solid transparent;border-left:11px solid currentColor;border-right:0;margin-left:3px}

/* Gesto de redes sociales dentro del creative; pinch zoom conservado. */
.ms-moments-window{touch-action:pinch-zoom}

/* Ficha de producto — design.md: claridad, lectura y confianza junto a la compra. */
body.single-product .ms-logo img{animation:none}
body.single-product .ms-header .button,body.single-product .ms-catnav a{font-weight:600}
body.single-product #primary{width:100%;float:none;margin:0}
body.single-product .woocommerce-breadcrumb{font-size:.85rem;color:#526457;margin-bottom:24px;line-height:1.7}
body.single-product #main>div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:44px;align-items:start;position:relative}
body.single-product #main>div.product::before,body.single-product #main>div.product::after{display:none}
body.single-product #main>div.product>.woocommerce-product-gallery{grid-column:1;grid-row:1;float:none;width:100%;margin:0 0 32px;padding:20px;background:#fff;border:1px solid #e1e8dd;border-radius:20px;box-shadow:0 5px 20px rgba(33,48,31,.04);position:sticky;top:24px}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img{width:100%;max-height:580px;object-fit:contain;aspect-ratio:1/1;border-radius:12px}
/* Lupa táctil: el desliz horizontal la mueve; el vertical sigue desplazando la página. */
body.single-product .woocommerce-product-gallery__wrapper{touch-action:pan-y pinch-zoom}
.ms-touch-zoom-lens{position:absolute;width:140px;height:140px;border:2px solid #fff;border-radius:50%;box-shadow:0 10px 28px rgba(33,48,31,.35),0 0 0 1px rgba(33,48,31,.08);background-color:#fff;background-repeat:no-repeat;pointer-events:none;z-index:6}
.ms-touch-zoom-lens[hidden]{display:none}
/* En táctil, la lupa estática de Woo (zoomImg) queda oculta: tapa los toques y la reemplaza la lupa de swipe. */
@media (pointer:coarse){body.single-product .woocommerce-product-gallery img.zoomImg{display:none!important}}
body.single-product #main>div.product>.summary{grid-column:2;grid-row:1;width:100%;float:none;margin:0 0 40px;padding:28px;background:#fff;border:1px solid #e1e8dd;border-radius:20px;box-shadow:0 5px 20px rgba(33,48,31,.04);min-width:0}
body.single-product #main>div.product>.summary~*{grid-column:1/-1;min-width:0}
body.single-product div.product .product_title{font-weight:600;font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.25;letter-spacing:-.035em;margin:10px 0 20px;overflow-wrap:anywhere}
.ms-product-brand{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#526457;font-size:.85rem}
.ms-product-brand a{color:#2f6b3a;background:#e8f3ea;padding:4px 10px;border-radius:6px;font-weight:600;text-decoration:none}
body.single-product div.product .summary .price{font-size:1.85rem;font-weight:600;line-height:1.4;color:#b9522a;margin:8px 0 20px}
body.single-product div.product .summary .price del{color:#526457;font-weight:400;opacity:1}
body.single-product .ms-prod-short{font-size:1rem;line-height:1.75;color:#526457;margin:0 0 24px}
body.single-product .ms-prod-stars-link{color:#526457;font-weight:400}
body.single-product div.product form.cart{margin:0 0 18px;padding-top:20px;border-top:1px solid #e1e8dd}
body.single-product div.product form.cart:not(.variations_form):not(.grouped_form){display:flex;gap:12px;flex-wrap:wrap;align-items:center}
body.single-product div.product form.cart .quantity{margin:0;flex:0 0 74px}
body.single-product div.product form.cart .quantity input{width:74px;min-height:50px;padding:10px 8px;border:1px solid #c9d8c5;border-radius:10px;background:#fff;font-size:1rem;box-shadow:none}
body.single-product div.product .single_add_to_cart_button{background:#2f6b3a;color:#fff;border-radius:10px;font-family:var(--ms-font-heading);font-weight:600;font-size:1rem;min-height:50px;padding:12px 20px;flex:1;float:none;white-space:normal;line-height:1.6}
body.single-product div.product .single_add_to_cart_button:hover{background:#234f2b;transform:none}
body.single-product div.product .single_add_to_cart_button.disabled{opacity:.6}
body.single-product .summary .stock{font-size:.9rem;color:#2f6b3a;flex-basis:100%;margin:0 0 8px}
body.single-product .summary .out-of-stock{color:#b9522a}
body.single-product .summary .variations{margin:0 0 16px;background:none}
body.single-product .summary .variations th,body.single-product .summary .variations td{background:none;padding:4px 0 10px;text-align:left;display:block;width:100%}
body.single-product .summary .variations label{font-weight:600;color:#21301f}
body.single-product .summary .variations select{width:100%;min-height:48px;background:#fff;border:1px solid #c9d8c5;border-radius:10px;padding:10px;font-size:1rem;color:#21301f}
body.single-product .summary .variations select.ms-variation-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
body.single-product .ms-variation-swatches{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
body.single-product .ms-variation-swatch{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:9px 16px;border:1px solid #c9d8c5;border-radius:999px;background:#fff;color:#2f6b3a;font-family:var(--ms-font-heading);font-size:.9rem;font-weight:600;line-height:1.35;cursor:pointer;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s}
body.single-product .ms-variation-swatch:hover:not(:disabled){background:#f2f7ef;border-color:#87aa80}
body.single-product .ms-variation-swatch.is-active{background:#2f6b3a;border-color:#2f6b3a;color:#fff;box-shadow:0 0 0 3px rgba(47,107,58,.14)}
body.single-product .ms-variation-swatch:disabled{background:#f4f4f1;border-color:#dfe3dd;color:#9aa39b;cursor:not-allowed;text-decoration:line-through;opacity:.78}
body.single-product .ms-variation-swatch:focus-visible{outline:3px solid #b9522a;outline-offset:3px}
body.single-product .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ms-product-trust{clear:both;margin:18px 0;padding:16px;background:#f5f8f2;border:1px solid #e1e8dd;border-radius:12px}
.ms-product-trust ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ms-product-trust li{display:flex;align-items:center;gap:12px;color:#21301f;font-size:.875rem;font-weight:600;line-height:1.5}
.ms-product-trust-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#e8f3ea;color:#2f6b3a;flex-shrink:0}
.ms-product-trust-icon svg{width:23px;height:23px}
.ms-product-trust p{margin:12px 0 0;font-size:.8rem;line-height:1.6;color:#526457}
body.single-product .summary .msa-wa-btn{display:flex;justify-content:center;align-items:center;width:100%;box-sizing:border-box;min-height:48px;border:1px solid #b8d0b5;border-radius:10px;background:#fff;color:#2f6b3a;font-weight:600;font-size:.95rem;box-shadow:none;padding:12px 14px;transform:none}
body.single-product .summary .msa-wa-btn:hover{background:#e8f3ea;transform:none}
body.single-product .summary .msa-wa-note{font-size:.8rem;color:#526457;line-height:1.6;margin:10px 0 20px}
body.single-product .product_meta{font-size:.8rem;color:#526457;border-top:1px solid #e1e8dd;padding-top:16px;margin-top:20px;line-height:1.8}
body.single-product .product_meta>span{display:block;margin:4px 0}
.ms-product-information{background:#fff;border:1px solid #e1e8dd;border-radius:20px;padding:32px;margin:0 0 32px}
.ms-product-information h2,body.single-product .related>h2{font-size:clamp(1.4rem,2.4vw,1.85rem);font-weight:600;line-height:1.3;letter-spacing:-.025em;color:#2f6b3a;margin:0 0 20px}
.ms-product-information-body{max-width:68ch;color:#354638;font-size:1rem;line-height:1.75;overflow-wrap:break-word}
.ms-product-information-body :is(p,ul,ol,blockquote){margin-block:0 1.15em}
.ms-product-information-body :is(h3,h4){color:#21301f;font-size:1.08rem;font-weight:600;line-height:1.4;margin-block:1.6em .55em}
.ms-product-information-body :is(ul,ol){padding-inline-start:1.5em}
.ms-product-information-body li{padding-inline-start:.2em;margin-block:.35em}
.ms-product-information-body li::marker{color:#2f6b3a}
.ms-product-information-body :is(a,a:visited){color:#2f6b3a;text-decoration:underline;text-underline-offset:.15em}
.ms-product-information-body a:focus-visible{outline:3px solid #b9522a;outline-offset:3px}
.ms-product-information-body > :last-child{margin-bottom:0}
body.single-product .woocommerce-tabs{padding:0;margin:0 0 32px;display:block}
body.single-product .woocommerce-tabs ul.tabs,body.single-product .woocommerce-tabs .panel{width:100%;float:none;margin:0 0 16px}
body.single-product .woocommerce-tabs ul.tabs li a{font-weight:600;border-radius:10px;border-width:1px!important;min-height:44px}
body.single-product .woocommerce-tabs ul.tabs li.active a{background:#2f6b3a!important;border-color:#2f6b3a!important}
body.single-product .woocommerce-tabs .panel{border:1px solid #e1e8dd;box-shadow:none;padding:28px}
body.single-product .woocommerce-tabs .panel h2,body.single-product .ms-reviews-toggle{font-weight:600;color:#2f6b3a;font-size:1.25rem}
body.single-product .related{margin-top:16px}
body.single-product ul.products li.product{border:1px solid #e1e8dd;box-shadow:0 5px 20px rgba(33,48,31,.04);border-radius:16px;overflow:hidden}
body.single-product ul.products li.product:hover{transform:none}
body.single-product ul.products li.product .woocommerce-loop-product__title{font-weight:600;color:#21301f;line-height:1.5}
body.single-product ul.products li.product .price{color:#b9522a;font-weight:600}
body.single-product ul.products li.product .button{background:#2f6b3a;color:#fff;font-weight:600;border-radius:10px;min-height:44px}
body.single-product :is(button,input,select,a):focus-visible{outline:3px solid #b9522a;outline-offset:3px}
body.single-product .onsale{background:#fbeDE4;color:#b9522a;border-color:#fbedE4;font-weight:600}
@media(max-width:900px){body.single-product #main>div.product{grid-template-columns:minmax(0,1fr);gap:0}body.single-product #main>div.product>.woocommerce-product-gallery{position:relative;top:auto;grid-column:1;grid-row:1;max-width:580px;justify-self:center;margin-bottom:24px}body.single-product #main>div.product>.summary{grid-column:1;grid-row:2;padding:24px}body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img{max-height:460px}}
@media(max-width:480px){body.single-product #main>div.product>.summary{padding:20px 16px}body.single-product #main>div.product>.woocommerce-product-gallery{padding:12px}.ms-product-information{padding:24px 20px}body.single-product .woocommerce-tabs .panel{padding:24px 20px}body.single-product div.product .product_title{font-size:1.65rem}body.single-product div.product .single_add_to_cart_button{font-size:.9rem;padding-inline:12px}body.single-product div.product form.cart .quantity,body.single-product div.product form.cart .quantity input{width:62px;flex-basis:62px}}
body.single-product .woocommerce-noreviews{background:#e8f3ea;color:#21301f;border-left:4px solid #2f6b3a}
body.single-product .ms-reviews-toggle{background:#fff;border:1px solid #c9d8c5;border-radius:10px;min-height:44px;font-size:1rem}
body.single-product .woocommerce-tabs ul.tabs li::after{display:none}
body.single-product .related>h2{text-align:left}
body.single-product .related ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){body.single-product .related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){body.single-product .related ul.products{grid-template-columns:minmax(0,1fr)}}

.ms-product-availability{display:flex;gap:8px;align-items:center;color:#2f6b3a;font-size:.875rem;margin:-8px 0 20px}
.ms-product-availability>span{width:7px;height:7px;border-radius:50%;background:#2f6b3a}

/* Etiquetas: un vocabulario visual compartido entre landing, home y ficha. */
.ms-topic-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;background:#e8f3ea;color:#2f6b3a}
.ms-topic-icon svg{width:26px;height:26px}
.ms-tags-hero{padding:60px 0;background:linear-gradient(120deg,#e8f3ea,#f4f2e8);border-bottom:1px solid #e1e8dd}
.ms-tags-hero h1{font-size:clamp(2rem,4.5vw,3.25rem);font-weight:600;color:#2f6b3a;line-height:1.2;letter-spacing:-.04em;margin:16px 0 20px}
.ms-tags-hero p{max-width:600px;line-height:1.8;color:#526457;font-size:1.05rem;margin-bottom:20px}
.ms-tags-hero a,.ms-all-tags-link,.ms-home-tags-link{color:#2f6b3a;font-size:.9rem;font-weight:600;display:inline-flex;align-items:center;gap:10px;min-height:44px;text-decoration:none}
.ms-tag-catalog{padding-block:48px}
.ms-tag-catalog-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.ms-tag-catalog-heading h2,.ms-tag-guide h2{font-weight:600;font-size:clamp(1.4rem,2.5vw,1.85rem);line-height:1.3;letter-spacing:-.025em;color:#2f6b3a;margin:12px 0 0}
.ms-tag-catalog-heading>p{color:#526457;font-size:.875rem;margin:0;white-space:nowrap}
.ms-tag-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ms-topic-card{border-radius:20px;background:#fff;border:1px solid #e1e8dd;box-shadow:0 5px 20px rgba(33,48,31,.04);overflow:hidden;min-width:0;transition:border-color .2s,box-shadow .2s}
.ms-topic-card:hover{border-color:#b2c8af;box-shadow:0 8px 24px rgba(33,48,31,.08)}
.ms-topic-card-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.ms-topic-cover{position:relative;background:linear-gradient(135deg,#f1f5ec,#faf7f0);aspect-ratio:16/10;padding:16px;display:grid;place-items:center;overflow:hidden}
.ms-topic-cover>img{width:100%;height:100%;max-height:190px;object-fit:contain;border-radius:10px}
.ms-topic-cover>.ms-topic-icon{position:absolute;left:20px;bottom:16px;width:52px;height:52px;border:3px solid #fff;border-radius:14px;box-shadow:0 3px 14px rgba(33,48,31,.1)}
.ms-topic-cover>.ms-topic-icon svg{width:30px;height:30px}
.ms-topic-cover-fallback svg{width:100px;height:100px;color:#8caa84;stroke-width:1}
.ms-topic-card-copy{padding:22px 24px 24px;flex:1;display:flex;align-items:flex-start;flex-direction:column}
.ms-topic-count{color:#526457;font-size:.8rem}
.ms-topic-card-copy h3{color:#21301f;font-size:1.2rem;line-height:1.4;font-weight:600;letter-spacing:-.025em;margin:8px 0 20px}
.ms-topic-card-cta{margin-top:auto;color:#2f6b3a;font-size:.875rem;font-weight:600;display:flex;align-items:center;gap:12px}
.ms-tag-guide{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:56px;padding:32px;background:#e8f3ea;border:1px solid #dce8d7;border-radius:20px}
.ms-tag-guide h2{margin:0 0 12px;font-size:1.4rem}
.ms-tag-guide p{color:#526457;margin:0;line-height:1.7}
.ms-tag-guide .button{flex-shrink:0;background:#2f6b3a;color:#fff;font-weight:600;border-radius:10px;min-height:48px}
.ms-tags-landing a:focus-visible,.ms-tag-chip:focus-visible{outline:3px solid #b9522a;outline-offset:-3px}
.ms-product-tags{margin:20px 0 24px;padding-top:18px;border-top:1px solid #e1e8dd}
.single-product .summary .ms-product-tags h2{font-size:.875rem;font-weight:600;color:#526457;line-height:1.5;margin:0 0 12px;letter-spacing:0}
.ms-product-tags-list{display:flex;flex-wrap:wrap;gap:8px}
.ms-tag-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;border:1px solid #d5e2d0;border-radius:10px;padding:6px 10px;background:#f7faf4;color:#2f6b3a;text-decoration:none;font-size:.8rem;font-weight:600;line-height:1.5}
.ms-tag-chip:hover{background:#e8f3ea;border-color:#a7c3a1}
.ms-tag-chip .ms-topic-icon{background:none;border-radius:0;width:26px;height:26px}
.ms-tag-chip .ms-topic-icon svg{width:24px;height:24px}
.ms-all-tags-link{font-size:.8rem;margin-top:6px;font-weight:400}
.single-product .product_meta .tagged_as{display:none}
.ms-home .ms-cloud-tag .ms-topic-icon{height:26px;width:26px;background:none;border-radius:0}
.ms-home .ms-cloud-tag .ms-topic-icon svg{height:23px;width:23px}
.ms-home-tags-link{margin-top:20px}
body.page-template-page-etiquetas .ms-logo img{animation:none}
@media(max-width:1000px){.ms-tag-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-tag-guide{margin-inline:20px;width:auto;flex-direction:column;align-items:flex-start}}
@media(max-width:600px){.ms-tags-hero{padding-block:40px}.ms-tag-catalog{padding-block:32px}.ms-tag-catalog-heading{display:block}.ms-tag-catalog-heading>p{margin-top:16px}.ms-tag-cards{grid-template-columns:minmax(0,1fr);gap:20px}.ms-topic-cover{aspect-ratio:16/9}.ms-topic-cover>img{max-height:170px}.ms-topic-card-copy{padding:20px}.ms-tag-guide{padding:24px 20px;margin-bottom:32px}.ms-tag-chip{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.ms-topic-card{transition:none}}
.ms-tag-chip{font-size:.875rem}
@media(max-width:600px){.ms-tag-chip{font-size:.875rem}}

/* Sucursales: mapa OSM con base verde clara y marcadores de marca. */
.ms-branches-hero{padding:44px 0;background:linear-gradient(120deg,#e8f3ea,#faf7f0)}
.ms-branches-hero h1{font-size:clamp(2rem,4vw,3rem);font-weight:600;line-height:1.2;letter-spacing:-.035em;color:#2f6b3a;margin:12px 0 16px}
.ms-branches-hero p,.ms-branches-map-heading p{color:#526457;line-height:1.7;margin:0}
.ms-branches-map-section{padding-block:36px}
.ms-branches-map-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:20px}
.ms-branches-map-heading h2{font-size:1.5rem;font-weight:600;color:#2f6b3a;line-height:1.3;margin:0 0 8px}
.ms-map-country,.ms-branch-on-map{background:#fff;color:#2f6b3a;border:1px solid #c9d8c5;border-radius:10px;padding:10px 16px;font-weight:600;min-height:44px;line-height:1.5;cursor:pointer}
.ms-map-country{flex-shrink:0;font-size:.875rem}
.ms-branches-map{height:520px;max-width:100%;border:1px solid #c9d8c5;border-radius:20px;background:#e8f3ea;overflow:hidden;position:relative;isolation:isolate;z-index:0}
.ms-branches-map .leaflet-tile-pane{filter:grayscale(1) sepia(.35) hue-rotate(65deg) saturate(.65) brightness(1.04)}
.ms-map-fallback{padding:24px;color:#526457}
.ms-map-marker{background:none;border:0;filter:drop-shadow(0 3px 3px rgba(33,48,31,.25))}
.ms-map-marker svg{display:block;overflow:visible}
.ms-branches-map .leaflet-popup-content{font-family:var(--ms-font-body);font-size:.875rem;line-height:1.6;min-width:180px;max-width:240px;color:#21301f}
.ms-map-popup strong{font-family:var(--ms-font-heading);font-weight:600;color:#2f6b3a}
.ms-map-popup p{margin:8px 0}
.ms-map-popup a{color:#2f6b3a;font-weight:600;display:inline-flex;align-items:center;min-height:44px}
.ms-branches-map .leaflet-control-attribution{background:rgba(255,255,255,.95);color:#21301f;font-size:11px;max-width:100%;line-height:1.5}
.ms-branches-map .leaflet-control-attribution a{color:#2f6b3a}
.ms-branches-map .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;color:#2f6b3a;background:#fff}
.ms-map-picker{display:flex;align-items:center;gap:16px;margin:20px 0 0;font-size:.875rem;color:#526457;font-weight:600}
.ms-map-picker select{min-height:46px;background:#fff;border:1px solid #c9d8c5;border-radius:10px;padding:10px 14px;color:#21301f;font-size:1rem;max-width:100%}
.ms-map-picker[hidden],.ms-map-country[hidden]{display:none}
.ms-branches-content{padding-bottom:48px}
.ms-branches-page .ms-sucursal{border:1px solid #e1e8dd;box-shadow:0 5px 20px rgba(33,48,31,.04);border-radius:16px;padding:22px;gap:12px;min-width:0}
.ms-branches-page .ms-sucursal h3{font-weight:600;line-height:1.4}
.ms-branch-meta{display:flex;flex-wrap:wrap;gap:7px;margin-block:1px 2px}
.ms-branch-meta span{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;font-size:.76rem;font-weight:700;line-height:1.2}
.ms-branch-zip{background:#f1f5ed;color:#435a43;border:1px solid #dce6d7}
.ms-branch-zip:before{content:"⌖";margin-inline-end:5px;color:#2f6b3a;font-size:1rem;line-height:1}
.ms-branch-pickup{background:#fff0e8;color:#a84420;border:1px solid #f2cbb9}
.ms-branch-pickup:before{content:"✓";display:grid;place-items:center;width:15px;height:15px;margin-inline-end:5px;border-radius:50%;background:#e06b37;color:#fff;font-size:.64rem}
.ms-branches-page .ms-sucursal p{line-height:1.7}
.ms-branches-page .ms-sucursal .tel{color:#b9522a;font-weight:600;overflow-wrap:anywhere}
.ms-branches-page .ms-sucursal .waze{font-weight:600;min-height:44px;display:inline-flex;align-items:center;padding-top:0}
.ms-branch-on-map{font-size:.875rem;align-self:flex-start;margin-top:auto}
.ms-branches-page :is(button,select,a,[tabindex]):focus-visible{outline:3px solid #b9522a;outline-offset:3px}
body.ms-branches-body .ms-logo img{animation:none}
@media(max-width:700px){.ms-branches-map-heading{align-items:flex-start;flex-direction:column;gap:16px}.ms-branches-map{height:430px;border-radius:16px}.ms-map-picker{align-items:stretch;flex-direction:column;gap:8px}.ms-branches-page .ms-sucursales{grid-template-columns:minmax(0,1fr)}.ms-branches-hero{padding-block:32px}.ms-branch-meta span{font-size:.74rem}}
.ms-branches-map.leaflet-container{background:#e8f3ea;font-family:var(--ms-font-body)}
.ms-branches-map.leaflet-container .leaflet-control-zoom a{width:44px;height:44px;line-height:44px}
.ms-branches-map .leaflet-popup-content{max-width:min(240px,calc(100vw - 120px));margin-right:44px}
.ms-branches-map .leaflet-popup-close-button{width:44px;height:44px;line-height:44px;color:#2f6b3a}

/* Carrito: presentación de los bloques nativos, design.md v2. */
body.woocommerce-cart .site-main { padding: 0 0 56px; }
body.woocommerce-cart .entry-header { text-align: left; margin-bottom: 12px; padding: 0; }
body.woocommerce-cart .entry-title { color: #21301F; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin-bottom: 0; }
.ms-cart-intro { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; color: #526457; }
.ms-cart-intro p { margin: 0; }
.ms-cart-intro a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #2F6B3A; font-weight: 600; }
body.woocommerce-cart .wp-block-woocommerce-cart { margin: 0; padding: 0; }
body.woocommerce-cart .wc-block-cart__main { background: white; border: 1px solid #E1E8DD; border-radius: 20px; padding: 24px; width: calc(66% - 24px); }
body.woocommerce-cart .wc-block-cart__sidebar { background: white; border: 1px solid #E1E8DD; border-radius: 20px; padding: 24px; width: 34%; box-shadow: 0 8px 28px #21301f06; }
body.woocommerce-cart .wc-block-cart .wc-block-cart__totals-title { font: 600 20px/1.4 Poppins,sans-serif; text-transform: none; color: #21301F; padding: 0 0 20px; }
body.woocommerce-cart .wc-block-cart-items { margin: 0; }
body.woocommerce-cart .wc-block-cart-items th { color: #526457; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
body.woocommerce-cart .wc-block-cart-item__image img { border-radius: 12px; }
body.woocommerce-cart .wc-block-components-product-name { color: #21301F; font-weight: 600; text-decoration: none; line-height: 1.5; }
body.woocommerce-cart .wc-block-cart-item__prices { color: #526457; }
body.woocommerce-cart .wc-block-cart-item__total { color: #B9522A; font-weight: 600; }
body.woocommerce-cart .wc-block-components-product-metadata { color: #526457; font-size: 13px; }
body.woocommerce-cart .wc-block-components-quantity-selector { min-height: 44px; border-radius: 10px; background: #FAF7F0; width: 132px; }
body.woocommerce-cart .wc-block-components-quantity-selector button { min-width: 44px; min-height: 44px; color: #2F6B3A; }
body.woocommerce-cart .wc-block-cart-item__remove-link { min-height: 44px; min-width: 44px; color: #526457; }
body.woocommerce-cart .wc-block-components-totals-item { padding-top: 16px; padding-bottom: 16px; }
body.woocommerce-cart .wc-block-components-totals-footer-item { font-size: 20px; color: #21301F; }
body.woocommerce-cart .wc-block-cart__submit-button { min-height: 52px; background: #2F6B3A; color: #fff; border-radius: 12px; font-weight: 600; text-decoration: none; padding: 14px 20px; }
body.woocommerce-cart .wc-block-cart__submit-button:hover { background: #24552E; color: #fff; }
body.woocommerce-cart :is(a,button,input):focus-visible { outline: 3px solid #2F6B3A; outline-offset: 3px; }
body.woocommerce-cart .wc-block-cart__empty-cart__title { font-size: clamp(24px,3vw,32px); color: #21301F; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { background: #fff; border: 1px solid #E1E8DD; padding: 32px 24px; border-radius: 20px; }
.ms-cart-trust { margin-top: 28px; border-top: 1px solid #E1E8DD; padding-top: 24px; }
.ms-cart-trust ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 40px; list-style: none; margin: 0; padding: 0; }
.ms-cart-trust li { display: flex; align-items: center; gap: 10px; color: #2F6B3A; font-size: 14px; font-weight: 600; }
.ms-cart-trust svg { width: 26px; height: 26px; flex: none; }
.ms-cart-trust p { text-align: center; color: #526457; font-size: 13px; margin: 16px 0 0; }
@media(max-width: 800px) {
 body.woocommerce-cart .wc-block-cart .wc-block-cart__main, body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar { width: 100%; padding: 20px; margin-bottom: 20px; }
 .ms-cart-intro { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 20px; }
 .ms-cart-trust ul { align-items: flex-start; flex-direction: column; gap: 16px; }
 .ms-cart-trust p { text-align: left; }
}
@media(max-width: 400px) {
 body.woocommerce-cart .wc-block-cart .wc-block-cart__main, body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar { padding: 14px; }
 body.woocommerce-cart .wc-block-components-product-name { overflow-wrap: anywhere; }
}
@media(max-width: 800px) {
 body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 64px minmax(0,1fr); column-gap: 16px; }
 body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product { grid-column: 2 / 3; min-width: 0; }
 body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total { grid-column: 2 / 3; grid-row: 2; justify-content: flex-start; padding: 12px 0 0; text-align: left; }
 body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper { align-items: flex-start; }
}

/* Botón flotante de WhatsApp (todas las páginas; se oculta en el checkout) */
.ms-wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 999px; background: #25D366; color: #083C1C; font-family: var(--ms-font-heading); font-weight: 700; font-size: .95rem; line-height: 1; text-decoration: none; box-shadow: 0 16px 40px rgba(8, 60, 28, .28); transition: background .2s, box-shadow .2s; }
.ms-wa-fab svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.ms-wa-fab:hover, .ms-wa-fab:focus { background: #1DBB57; color: #083C1C; text-decoration: none; box-shadow: 0 10px 26px rgba(8, 60, 28, .32); }
.ms-wa-fab:focus-visible { outline: 3px solid #083C1C; outline-offset: 3px; }
body.woocommerce-checkout .ms-wa-fab,
body:has(.wp-block-woocommerce-checkout) .ms-wa-fab,
body:has(.wc-block-checkout) .ms-wa-fab { display: none; }
@media(max-width: 767px) {
 .ms-wa-fab { right: 16px; bottom: 85px; min-height: 52px; padding: 6px 18px 6px 14px; font-size: .9rem; }
 .ms-wa-fab svg { width: 24px; height: 24px; }
}
@media(prefers-reduced-motion: reduce) { .ms-wa-fab { transition: none; } }
