.sm-site-header {
  transition: box-shadow .25s ease, background-color .25s ease;
}

.sm-header-action {
  align-items: center;
  color: var(--sm-color-muted);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  gap: 3px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}

.sm-header-action:hover {
  color: var(--sm-color-primary);
  transform: translateY(-2px);
}

.sm-header-badge {
  align-items: center;
  background: var(--sm-color-secondary);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -7px;
  top: -7px;
}

.sm-primary-nav a {
  align-items: center;
  border-radius: 10px;
  color: var(--sm-color-primary);
  display: inline-flex;
  font-size: 14px;
  gap: 4px;
  padding: 8px 10px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.sm-primary-nav a:hover {
  background: var(--sm-color-mint);
  color: var(--sm-color-secondary);
}

.sm-whatsapp {
  align-items: center;
  background: #25d366;
  border-radius: 18px;
  bottom: 26px;
  color: #fff;
  display: flex;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 26px;
  text-decoration: none;
  width: 58px;
  z-index: 80;
}

.sm-section-title {
  color: var(--sm-color-primary);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.sm-product-card {
  background: #fff;
  border: 1px solid rgba(196, 198, 207, .35);
  border-radius: 24px;
  box-shadow: var(--sm-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.sm-product-card:hover {
  box-shadow: 0 24px 60px rgba(3, 36, 72, .14);
  transform: translateY(-5px);
}

.sm-product-card__media {
  aspect-ratio: 1 / 1;
  background: #f2f4f6;
  display: block;
  overflow: hidden;
  position: relative;
}

.sm-product-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  width: 100%;
}

.sm-product-card:hover .sm-product-card__media img {
  transform: scale(1.04);
}

.sm-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.sm-product-card__title {
  color: var(--sm-color-primary);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.sm-product-card__price {
  color: var(--sm-color-primary);
  font-size: 18px;
  font-weight: 800;
  margin-top: auto;
}

.sm-product-card__actions {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sm-product-card__actions .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--sm-color-primary);
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  min-height: 46px;
  padding: 13px 18px;
  text-align: center;
  transition: background-color .2s ease, transform .2s ease;
}

.sm-product-card__actions .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--sm-color-secondary);
  color: #fff;
  transform: translateY(-1px);
}

.sm-wishlist-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(196, 198, 207, .6);
  border-radius: 14px;
  color: var(--sm-color-primary);
  display: flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
}

.sm-wishlist-button.is-active {
  background: #fff0f4;
  border-color: #fecdd3;
  color: #e11d48;
}

.sm-wishlist-button.is-active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.woocommerce .woocommerce-breadcrumb {
  color: var(--sm-color-muted);
  font-size: 13px;
  margin: 0 0 26px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 28px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  background: #f7f9fb;
  border: 1px solid rgba(116, 119, 127, .32);
  border-radius: 14px;
  min-height: 50px;
  padding: 11px 14px;
}

.woocommerce div.product {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--sm-shadow);
  padding: clamp(20px, 4vw, 48px);
}

.woocommerce div.product .product_title {
  color: var(--sm-color-primary);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.12;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--sm-color-secondary);
  font-size: 1.65rem;
  font-weight: 900;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper img {
  border-radius: 22px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #f2f4f6;
  border: 0;
  border-radius: 12px 12px 0 0;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  background: #fff;
  border: 1px solid rgba(196, 198, 207, .3);
  border-radius: 28px;
  box-shadow: var(--sm-shadow);
  padding: clamp(20px, 4vw, 42px);
}

.woocommerce table.shop_table {
  border: 0;
  border-collapse: separate;
  border-radius: 18px;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: #f2f4f6;
  color: var(--sm-color-primary);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.woocommerce .cart_totals,
.woocommerce-checkout #order_review {
  background: #f7f9fb;
  border: 1px solid rgba(196, 198, 207, .32);
  border-radius: 22px;
  padding: 24px;
}

.woocommerce-checkout #payment {
  background: #f2f4f6;
  border-radius: 20px;
}

.woocommerce-checkout #payment div.payment_box {
  background: #fff;
  border-radius: 14px;
}

.woocommerce-checkout #payment #place_order {
  font-size: 15px;
  min-height: 56px;
  width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(3, 36, 72, .07);
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--sm-color-secondary);
}

.sm-checkout-flow .sm-page {
  max-width: 1120px;
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .sm-header-cart {
    display: none !important;
  }
  .sm-primary-nav {
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .sm-primary-nav.is-open {
    display: block;
  }

  .sm-header-action {
    font-size: 0;
  }

  .sm-whatsapp {
    bottom: 20px;
    right: 18px;
  }

  .woocommerce-cart-form__cart-item td {
    border-radius: 0;
  }
}


.sm-menu-toggle { display: none; }
@media (max-width: 767px) { .sm-menu-toggle { display: inline-flex; } }

@media (min-width: 768px) { .sm-menu-toggle { display: none !important; } }
@media (max-width: 767px) { .sm-menu-toggle { display: inline-flex !important; } }

/* Stable header dimensions */
.sm-site-header img {
  height: 80px !important;
  max-width: 230px;
  object-fit: contain;
  width: auto !important;
}
.sm-site-header form[role="search"] {
  min-width: 260px;
}
@media (min-width: 768px) {
  .sm-site-header img { height: 112px !important; max-width: 300px; }
}
@media (max-width: 767px) {
  .sm-site-header img { height: 66px !important; max-width: 150px; }
  .sm-site-header form[role="search"] { min-width: 0; }
}

/* Editorial pages and forms */
.sm-chip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(116, 119, 127, .28);
  border-radius: 999px;
  color: var(--sm-color-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 15px;
}
.sm-chip:hover,
.sm-chip.is-active { background: var(--sm-color-primary); border-color: var(--sm-color-primary); color: #fff; }
.sm-contact-icon { align-items: center; background: rgba(46, 196, 182, .14); border-radius: 14px; color: var(--sm-color-secondary); display: flex; flex: 0 0 46px; height: 46px; justify-content: center; width: 46px; }
.sm-wpforms .wpforms-container { margin: 0; }
.sm-wpforms .wpforms-field { padding: 8px 0; }
.sm-wpforms .wpforms-field-label { color: var(--sm-color-primary); font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.sm-wpforms input[type="text"],
.sm-wpforms input[type="email"],
.sm-wpforms input[type="tel"],
.sm-wpforms textarea,
.sm-wpforms select { background: #f7f9fb !important; border: 1px solid rgba(116,119,127,.3) !important; border-radius: 14px !important; min-height: 50px; padding: 11px 14px !important; width: 100% !important; }
.sm-wpforms textarea { min-height: 130px; }
.sm-wpforms button[type="submit"] { background: var(--sm-color-primary) !important; border: 0 !important; border-radius: 999px !important; color: #fff !important; font-weight: 800 !important; min-height: 50px; padding: 12px 24px !important; }
.sm-legal-content a,
.sm-entry-content a { color: var(--sm-color-secondary); font-weight: 700; text-decoration: underline; }
.sm-legal-content ul,
.sm-legal-content ol,
.sm-entry-content ul,
.sm-entry-content ol { margin: 1em 0; padding-left: 1.4em; }
.sm-legal-content ul,
.sm-entry-content ul { list-style: disc; }
.sm-legal-content ol,
.sm-entry-content ol { list-style: decimal; }
.sm-legal-content li,
.sm-entry-content li { margin: .45em 0; }
.sm-entry-content { color: var(--sm-color-on-surface-variant); font-size: 17px; line-height: 1.8; }
.sm-entry-content h2,
.sm-entry-content h3 { color: var(--sm-color-primary); font-weight: 900; line-height: 1.25; margin: 1.5em 0 .55em; }
.sm-entry-content h2 { font-size: 1.55rem; }
.sm-entry-content h3 { font-size: 1.25rem; }
.sm-entry-content p { margin: 1em 0; }
.sm-entry-content img { border-radius: 18px; height: auto; }
.sm-faq summary { list-style: none; }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq[open] summary span { transform: rotate(45deg); }
.sm-faq summary span { font-size: 24px; transition: transform .2s ease; }
.sm-pagination .page-numbers { background: #fff; border-radius: 10px; display: inline-flex; margin: 0 3px; padding: 8px 12px; }
.sm-pagination .current { background: var(--sm-color-primary); color: #fff; }

/* Mobile commerce and conversion */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(0, 106, 102, .42);
  outline-offset: 3px;
}
:where(a, button) { touch-action: manipulation; }

/* Stabilize icon ligatures while the Google font is loading. */
.material-symbols-outlined {
    flex-shrink: 0;
    line-height: 1;
    max-width: 1em;
    overflow: hidden;
    white-space: nowrap;
    width: 1em;
}

/* Keep floated Instagram cards from affecting the site footer. */
.sm-instagram-feed { display: flow-root; }
body > footer {
    clear: both;
    width: 100%;
}
.sm-mobile-search,
.sm-mobile-bottom-nav,
.sm-mobile-buybar { display: none; }

@media (max-width: 767px) {
  body:not(.sm-checkout-flow) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .sm-site-header > div:first-child {
    padding-bottom: 8px;
    padding-top: 8px;
  }

  .sm-mobile-search {
    display: block;
  }

  .sm-mobile-search input[type="search"] {
    background: #f2f4f6;
    border: 1px solid rgba(116, 119, 127, .24);
    border-radius: 14px;
    color: var(--sm-color-primary);
    font-size: 16px;
    min-height: 46px;
    padding: 10px 48px 10px 16px;
    width: 100%;
  }

  .sm-mobile-search button {
    align-items: center;
    color: var(--sm-color-primary);
    display: flex;
    height: 44px;
    justify-content: center;
    position: absolute;
    right: 2px;
    top: 1px;
    width: 44px;
  }

  .sm-home-hero {
    padding-bottom: 48px;
    padding-top: 32px;
  }

  .sm-home-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.75rem);
    text-wrap: balance;
  }

  .sm-home-hero .sm-hero-trust {
    line-height: 1.65;
    text-wrap: balance;
  }

  .sm-home-hero .sm-hero-media {
    aspect-ratio: 4 / 3;
    max-height: 285px;
  }

  .sm-home-hero > div {
    gap: 34px;
  }

  .sm-home-needs {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .sm-home-needs .grid {
    gap: 12px;
  }

  .sm-home-needs .grid > a {
    min-height: 138px;
    padding: 18px 12px;
  }

  .sm-home-trust {
    padding-bottom: 30px;
    padding-top: 30px;
  }

  .sm-home-trust > div {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-home-trust > div > div {
    align-items: flex-start;
    gap: 10px;
  }

  .sm-home-trust .material-symbols-outlined {
    font-size: 25px;
  }

  .sm-home-trust strong { font-size: 13px; }
  .sm-home-trust span:not(.material-symbols-outlined) { font-size: 11px; }

  .sm-product-grid {
    display: flex;
    gap: 16px;
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: auto;
    padding: 4px 20px 22px;
    scroll-padding-left: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .sm-product-grid::-webkit-scrollbar { display: none; }

  .sm-product-grid .sm-product-card {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
  }

  .sm-product-card__body { padding: 17px; }
  .sm-product-card__title { min-height: 43px; }
  .sm-product-card__actions .button { width: 100%; }

  .sm-home-mission .grid {
    display: flex;
    gap: 16px;
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: auto;
    padding: 2px 20px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .sm-home-mission .grid > div {
    flex: 0 0 min(78vw, 300px);
    padding: 24px;
    scroll-snap-align: start;
  }

  .sm-mobile-bottom-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid rgba(116, 119, 127, .2);
    bottom: 0;
    box-shadow: 0 -8px 28px rgba(3, 36, 72, .1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 90;
  }

  .sm-mobile-bottom-nav a {
    align-items: center;
    border-radius: 12px;
    color: var(--sm-color-primary);
    display: flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 800;
    gap: 1px;
    justify-content: center;
    min-height: 54px;
    position: relative;
  }

  .sm-mobile-bottom-nav .material-symbols-outlined { font-size: 23px; }
  .sm-mobile-bottom-nav__shop { background: rgba(0, 106, 102, .1); color: var(--sm-color-secondary) !important; }

  .sm-bottom-cart-count {
    align-items: center;
    background: var(--sm-color-secondary);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 9px;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 4px;
    position: absolute;
    right: 14px;
    top: 2px;
  }

  .sm-whatsapp {
    display: none;
    bottom: calc(84px + env(safe-area-inset-bottom));
    height: 52px;
    right: 14px;
    width: 52px;
  }

  .sm-mobile-buybar {
    align-items: center;
    background: #fff;
    border-top: 1px solid rgba(116, 119, 127, .22);
    bottom: calc(68px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(3, 36, 72, .12);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    left: 0;
    padding: 10px 14px;
    position: fixed;
    right: 0;
    z-index: 95;
  }

  .sm-mobile-buybar strong {
    color: var(--sm-color-primary);
    display: block;
    font-size: 17px;
    white-space: nowrap;
  }

  .sm-mobile-buybar__hint {
    color: var(--sm-color-secondary);
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .sm-mobile-buybar > a {
    background: var(--sm-color-primary);
    border-radius: 14px;
    color: #fff;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    min-height: 46px;
    padding: 13px 18px;
  }

  .single-product .sm-whatsapp {
    bottom: calc(148px + env(safe-area-inset-bottom));
  }

  .sm-product-purchase-anchor {
    display: block;
    scroll-margin-top: 190px;
  }
}

@media(max-width:767px){
  .sm-resource-recommendation{flex-wrap:wrap}
  .sm-resource-recommendation .sm-button{flex:1 0 100%;text-align:center}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.sm-resource-recommendation__image{border-radius:18px;flex:0 0 112px;height:112px;object-fit:cover;width:112px}
.sm-community-form form{max-width:100%;width:100%}
@media(max-width:767px){
  button,.button,input[type="button"],input[type="submit"],.sm-chip,.sm-header-action,.sm-search-add{min-height:44px}
  .sm-wishlist-button,.woocommerce a.remove{min-height:44px;min-width:44px}
  .sm-resource-recommendation{align-items:flex-start}
  .sm-resource-recommendation__image{flex-basis:86px;height:86px;width:86px}
}


/* Mobile touch-target accessibility pass. */
@media(max-width:767px){
  .sm-header-action{min-width:44px}
  .sm-goal-filter a,
  .sm-product-card__body a,
  .sm-home-resources article a,
  body.page-template-page-recursos main article a,
  nav[aria-label="Migas de pan"] a,
  .woocommerce-shipping-calculator a,
  .woocommerce-product-gallery__trigger{align-items:center;display:inline-flex;min-height:44px}
  .woocommerce-product-gallery__trigger{justify-content:center;min-width:44px}
  .sm-section-title+a,.sm-section-title~a{min-height:44px}
  .sm-home-flow a[href*="/tienda/"].text-primary{align-items:center;display:inline-flex;min-height:44px}
}
