
/*
Theme Name: FYM Theme
Description: Tema premium migrado desde Shopify para F&M Soluciones Alimentarias.
Author: Ricardo / FYM
Version: 2.0
*/

/* F&M Variables y Tipografía */
:root {
  --color-foreground: 28, 75, 39;
  --color-background: 255, 255, 255;
  --color-button: 153, 194, 33;
  --color-button-text: 255, 255, 255;
  --font-body-family: 'Abel', sans-serif;
  --font-heading-family: 'Assistant', sans-serif;
  --page-width: 140rem;
}
body {
  font-family: var(--font-body-family);
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6, .sfym-logo__text, .sfym-nav__link, .footer-block__heading {
  font-family: var(--font-heading-family);
}

  /* ═══════════════════════════════════════════
     SOLUCIONES F&M — TOPBAR
     ═══════════════════════════════════════════ */
  .sfym-topbar {
    background: linear-gradient(135deg, #1F5025 0%, #183D1B 100%);
    color: #ccc;
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(153,194,33,0.15);
  }
  .sfym-topbar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  .sfym-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.25s ease;
  }
  .sfym-topbar__item:hover { color: #99C221; }
  .sfym-topbar__item svg {
    width: 14px; height: 14px;
    fill: currentColor; flex-shrink: 0;
  }
  @media screen and (max-width: 989px) {
    .sfym-topbar { display: none; }
  }

  /* ═══════════════════════════════════════════
     HEADER PRINCIPAL
     ═══════════════════════════════════════════ */
  .section-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: {{ section.settings.margin_bottom | default: 0 }}px;
  }
  .sfym-header-wrapper {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  }
  .sfym-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: {{ section.settings.padding_top | default: 16 }}px 2rem {{ section.settings.padding_bottom | default: 16 }}px 2rem;
    gap: 1.5rem;
  }
  .sfym-header__left-box {
    display: flex;
    align-items: center;
  }
  .sfym-header__right-box {
    display: flex;
    align-items: center;
  }
  @media screen and (min-width: 1050px) {
    .sfym-header {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
    }
    .sfym-header__left-box {
      grid-column: 1;
      justify-self: stretch;
      justify-content: flex-end;
    }
    .sfym-logo {
      grid-column: 2;
      justify-self: center;
      padding: 0 1rem;
    }
    .sfym-header__right-box {
      grid-column: 3;
      justify-self: stretch;
      justify-content: space-between;
    }
  }
  .scrolled-past-header .sfym-header-wrapper {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
  .scrolled-past-header .sfym-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Logo */
  .sfym-logo { flex-shrink: 0; }
  .sfym-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
  }
  .sfym-logo a:hover { transform: scale(1.04); }
  .sfym-logo img {
    max-width: {{ settings.logo_width | default: 160 }}px;
    height: auto;
    transition: max-width 0.35s ease;
  }
  .scrolled-past-header .sfym-logo img {
    max-width: {{ settings.logo_width | default: 160 | times: 0.8 | round: 0 }}px;
  }
  .sfym-logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F5025;
    letter-spacing: -0.5px;
  }

  /* ═══════════════════════════════════════════
     BUSCADOR OVERLAY
     ═══════════════════════════════════════════ */
  .sfym-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sfym-search-overlay.is-open {
    opacity: 1;
    pointer-events: all;
  }
  .sfym-search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    width: min(640px, calc(100vw - 2rem));
    overflow: visible;
    position: relative;
    transform: translateY(-16px);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
  }
  .sfym-search-overlay.is-open .sfym-search-box {
    transform: translateY(0);
  }
  /* X flotante fuera del panel */
  .sfym-search-box__close {
    position: absolute !important;
    top: -14px !important;
    right: -14px !important;
    width: 28px !important; height: 28px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    color: #888 !important;
    padding: 0 !important;
    transition: color 0.2s, box-shadow 0.2s !important;
    z-index: 10 !important;
  }
  .sfym-search-box__close:hover {
    color: #333 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18) !important;
  }
  .sfym-search-box__close svg { width: 12px !important; height: 12px !important; }
  .sfym-search-box__inner {
    border-radius: 16px;
    overflow: hidden;
  }
  .sfym-search-box__input-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 1.25rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .sfym-search-box__input-row > svg {
    width: 20px; height: 20px;
    color: #999; flex-shrink: 0;
  }
  #sfym-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    padding: 1.1rem 0.75rem;
    background: transparent;
    color: #222;
  }
  /* Ocultar la X nativa del browser en input[type=search] */
  #sfym-search-input::-webkit-search-cancel-button { display: none; }
  #sfym-search-input::-webkit-search-decoration { display: none; }
  .sfym-search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
  }
  .sfym-search-results:empty { display: none; }
  .sfym-search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #222;
    transition: background 0.15s;
  }
  .sfym-search-result-item:hover { background: #f7f9f2; }
  .sfym-search-result-item img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #eee;
  }
  .sfym-search-result-item__img-placeholder {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: #f0f0f0;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
  }
  .sfym-search-result-item__info { flex: 1; min-width: 0; }
  .sfym-search-result-item__title {
    font-size: 0.93rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sfym-search-result-item__price {
    font-size: 0.82rem;
    color: #1F5025;
    font-weight: 700;
    margin-top: 2px;
  }
  .sfym-search-hint {
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    color: #999;
    text-align: center;
  }
  .sfym-search-box__footer {
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: flex-end;
  }
  .sfym-search-box__footer a {
    font-size: 0.82rem;
    color: #1F5025;
    font-weight: 600;
    text-decoration: none;
  }
  .sfym-search-box__footer a:hover { text-decoration: underline; }

  /* Iconos derecha */
  .sfym-header__icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .sfym-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    color: #1c4b27 !important;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
  }
  .sfym-header__icon svg { color: #1c4b27 !important; stroke: #1c4b27 !important; }
  .sfym-header__icon:hover {
    background: rgba(153,194,33,0.1);
    color: #99C221 !important;
    transform: translateY(-2px);
  }
  .sfym-header__icon svg { width: 22px; height: 22px; }
  .sfym-cart-count {
    position: absolute;
    top: 2px; right: 0;
    background: #99C221;
    color: #1F5025;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sfym-pulse 2s infinite;
  }
  @keyframes sfym-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(153,194,33,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(153,194,33,0); }
  }

  /* ═══════════════════════════════════════════
     NAVEGACIÓN DESKTOP
     ═══════════════════════════════════════════ */
  .sfym-nav { display: none; }
  @media screen and (min-width: 1050px) {
    .sfym-nav { display: flex; }
    .sfym-nav--left { justify-content: flex-end; padding-right: 1.5rem; }
    .sfym-nav--right { justify-content: flex-start; padding-left: 1.5rem; }
  }
  .sfym-nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 0; /* Espaciado entre items ya lo da el padding de los links, si se necesita más, subir este gap */
  }
  .sfym-nav__item { position: relative; }
  .sfym-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    position: relative;
  }
  .sfym-nav__link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 1rem; right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, #99C221, #8BB51A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  }
  .sfym-nav__link:hover,
  .sfym-nav__item.is-open .sfym-nav__link { color: #99C221; }
  .sfym-nav__link:hover::after,
  .sfym-nav__item.is-open .sfym-nav__link::after { transform: scaleX(1); }
  .sfym-nav__link .sfym-caret {
    width: 10px; height: 10px;
    transition: transform 0.25s ease;
  }
  .sfym-nav__item.is-open .sfym-caret { transform: rotate(180deg); }

  /* Mega Menu */
  .sfym-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 580px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
    padding: 2rem 2.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    border-top: 3px solid #99C221;
  }
  .sfym-nav__item.is-open .sfym-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .sfym-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
  }
  .sfym-mega-menu__col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #99C221;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(153,194,33,0.2);
  }
  .sfym-mega-menu__links {
    list-style: none;
    margin: 0; padding: 0;
  }
  .sfym-mega-menu__links li { margin-bottom: 0.35rem; }
  .sfym-mega-menu__links a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }
  .sfym-mega-menu__links a:hover {
    color: #99C221;
    padding-left: 6px;
  }

  /* Dropdown simple */
  .sfym-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    border-top: 3px solid #99C221;
  }
  .sfym-nav__item.is-open .sfym-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .sfym-dropdown__link {
    display: block;
    padding: 0.55rem 1.25rem;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
  }
  .sfym-dropdown__link:hover {
    color: #99C221;
    background: rgba(153,194,33,0.06);
    padding-left: 1.5rem;
  }

  /* ═══════════════════════════════════════════
     MOBILE DRAWER
     ═══════════════════════════════════════════ */
  .sfym-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s;
  }
  .sfym-hamburger:hover { background: rgba(0,0,0,0.05); }
  .sfym-hamburger svg { width: 24px; height: 24px; }
  @media screen and (min-width: 1050px) {
    .sfym-hamburger { display: none; }
  }
  .sfym-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .sfym-drawer-overlay.is-active {
    opacity: 1; visibility: visible;
  }
  .sfym-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .sfym-drawer.is-active { transform: translateX(0); }
  .sfym-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
  }
  .sfym-drawer__header span {
    font-weight: 700;
    font-size: 1rem;
    color: #1F5025;
  }
  .sfym-drawer__close {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    color: #333;
    transition: background 0.2s;
  }
  .sfym-drawer__close:hover { background: rgba(0,0,0,0.06); }
  .sfym-drawer__close svg { width: 20px; height: 20px; }

  /* Buscador mobile en drawer */
  .sfym-drawer__search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .sfym-drawer__search-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
  }
  .sfym-drawer__search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #333;
  }
  .sfym-drawer__search-btn {
    background: #1F5025;
    border: none;
    border-radius: 7px;
    padding: 5px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    transition: background 0.2s;
  }
  .sfym-drawer__search-btn:hover { background: #99C221; }

  .sfym-drawer__nav {
    list-style: none;
    margin: 0; padding: 0.5rem 0;
  }
  .sfym-drawer__item { border-bottom: 1px solid #f2f2f2; }
  .sfym-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
  }
  .sfym-drawer__link:hover { background: rgba(153,194,33,0.06); }
  .sfym-drawer__link .sfym-caret {
    width: 12px; height: 12px;
    transition: transform 0.25s;
  }
  .sfym-drawer__item.is-open .sfym-drawer__link .sfym-caret {
    transform: rotate(180deg);
  }
  .sfym-drawer__sub {
    list-style: none;
    margin: 0; padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fafafa;
  }
  .sfym-drawer__item.is-open .sfym-drawer__sub {
    max-height: 500px;
  }
  .sfym-drawer__sub a {
    display: block;
    padding: 0.6rem 1.25rem 0.6rem 2rem;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s, padding-left 0.2s;
  }
  .sfym-drawer__sub a:hover {
    color: #99C221;
    padding-left: 2.25rem;
  }

  /* Badge Coming Soon */
  .sfym-badge-coming {
    font-size: 9px; background: rgba(245,158,11,0.15);
    color: #E07B00; border: 1px solid rgba(245,158,11,0.3);
    padding: 2px 6px; border-radius: 10px;
    font-weight: 600; letter-spacing: 0.5px;
    vertical-align: middle; margin-left: 6px;
  }

/* FOOTER CSS */

.footer {
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.footer:not(.color-scheme-1) {
  border-top: none;
}

.footer__content-top {
  padding-bottom: 5rem;
  display: block;
}

@media screen and (max-width: 749px) {
  .footer .grid {
    display: block;
  }

  .footer-block.grid__item {
    padding: 0;
    margin: 4rem 0;
    width: 100%;
  }

  .footer-block.grid__item:first-child {
    margin-top: 0;
  }

  .footer__content-top {
    padding-bottom: 3rem;
    padding-left: calc(4rem / var(--font-body-scale));
    padding-right: calc(4rem / var(--font-body-scale));
  }
}

@media screen and (min-width: 750px) {
  .footer__content-top .grid {
    row-gap: 6rem;
    margin-bottom: 0;
  }
}

.footer__content-bottom {
  border-top: solid 0.1rem rgba(var(--color-foreground), 0.08);
  padding-top: 3rem;
}

.footer__content-bottom:only-child {
  border-top: 0;
}

.footer__content-bottom-wrapper {
  display: flex;
  width: 100%;
}

@media screen and (max-width: 749px) {
  .footer__content-bottom {
    flex-wrap: wrap;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    row-gap: 1.5rem;
  }

  .footer__content-bottom-wrapper {
    flex-wrap: wrap;
    row-gap: 1.5rem;
    justify-content: center;
  }

  .footer__content-bottom.scroll-trigger.animate--slide-in {
    animation: none;
    opacity: 1;
    transform: inherit;
  }
}

.footer__localization:empty + .footer__column--info {
  align-items: center;
}

@media screen and (max-width: 749px) {
  .footer__localization:empty + .footer__column {
    padding-top: 1.5rem;
  }
}

.footer__column {
  width: 100%;
  align-items: flex-end;
}

.footer__column--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (min-width: 750px) {
  .footer__column--info {
    padding-left: 0;
    padding-right: 0;
    align-items: flex-end;
  }
}

.footer-block:only-child:last-child {
  text-align: center;
  max-width: 76rem;
  margin: 0 auto;
}

@media screen and (min-width: 750px) {
  .footer-block {
    display: block;
    margin-top: 0;
  }
}

.footer-block:empty {
  display: none;
}

.footer-block--newsletter {
  display: flex;
  align-items: flex-end;
  margin-top: 3rem;
  gap: 1rem;
}

.footer-block--newsletter:only-child {
  margin-top: 0;
}

@media screen and (max-width: 749px) {
  .footer-block.footer-block--menu:only-child {
    text-align: left;
  }
}

@media screen and (min-width: 750px) {
  .footer-block--newsletter {
    flex-wrap: nowrap;
    justify-content: center;
  }
}

.footer-block__heading {
  margin-bottom: 2rem;
  margin-top: 0;
  font-size: calc(var(--font-heading-scale) * 1.6rem);
}

@media screen and (min-width: 990px) {
  .footer-block__heading {
    font-size: calc(var(--font-heading-scale) * 1.8rem);
  }
}

.footer__list-social:empty,
.footer-block--newsletter:empty {
  display: none;
}

.footer__follow-on-shop {
  display: flex;
  text-align: center;
}

.footer__list-social.list-social:only-child {
  justify-content: center;
}

.footer-block__newsletter {
  text-align: center;
  flex-grow: 1;
}

.newsletter-form__field-wrapper {
  max-width: 36rem;
}

@media screen and (min-width: 750px) {
  /* Pushes other components to the right of the flexbox */
  .footer-block__newsletter:not(:only-child) {
    text-align: left;
    margin-right: auto;
  }

  .footer-block__newsletter:not(:only-child) .footer__newsletter {
    justify-content: flex-start;
    margin: 0;
  }

  .footer-block__newsletter:not(:only-child) .newsletter-form__message--success {
    left: auto;
  }

  .footer__follow-on-shop {
    margin-bottom: 0.4rem;
  }
  /* Follow on shop is the first button but it has siblings*/
  .footer__follow-on-shop:first-child:not(:last-child) {
    justify-content: flex-start;
    margin-right: auto;
    text-align: left;
  }

  /*
    All three components are present, email, Follow on Shop, and social icons.
    Moves the FoS button next to the social icons so they appear grouped together
  */
  .footer__follow-on-shop:not(:first-child):not(:last-child) {
    justify-content: flex-end;
    text-align: right;
  }
}

@media screen and (max-width: 749px) {
  /*
    On a small screen we want all the items to be centered
    because they will be stacked.
   */
  .footer-block--newsletter {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    align-items: center;
    gap: 3rem;
  }

  .footer__list-social.list-social,
  .footer__follow-on-shop,
  .footer-block__newsletter {
    display: flex;
    justify-content: center;
  }

  .footer-block__newsletter {
    flex-direction: column;
  }
}

@media screen and (min-width: 750px) {
  .footer-block__newsletter + .footer__list-social {
    margin-top: 0;
  }
}

.footer__localization {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  padding: 1rem 1rem 0;
}

.footer__localization:empty {
  display: none;
}

.footer__localization h2 {
  margin: 1rem 1rem 0.5rem;
  color: rgba(var(--color-foreground), 0.75);
}

@media screen and (min-width: 750px) {
  .footer__localization {
    padding: 0.4rem 0;
    justify-content: flex-start;
  }

  .footer__localization h2 {
    margin: 1rem 0 0;
  }
}

@media screen and (min-width: 750px) {
  .footer__payment {
    margin-top: 1.5rem;
  }
}

.footer__content-bottom-wrapper--center {
  justify-content: center;
}

.footer__copyright {
  text-align: center;
  margin-top: 1.5rem;
}

@media screen and (min-width: 750px) {
  .footer__content-bottom-wrapper:not(.footer__content-bottom-wrapper--center) .footer__copyright {
    text-align: right;
  }
}

@keyframes appear-down {
  0% {
    opacity: 0;
    margin-top: -1rem;
  }
  100% {
    opacity: 1;
    margin-top: 0;
  }
}

.footer-block__details-content {
  margin-bottom: 4rem;
}

@media screen and (min-width: 750px) {
  .footer-block__details-content {
    margin-bottom: 0;
  }

  .footer-block__details-content > p,
  .footer-block__details-content > li {
    padding: 0;
  }

  .footer-block:only-child li {
    display: inline;
  }

  .footer-block__details-content > li:not(:last-child) {
    margin-right: 1.5rem;
  }
}

.footer-block__details-content .list-menu__item--link,
.copyright__content a {
  color: rgba(var(--color-foreground), 0.75);
}

.footer-block__details-content .list-menu__item--active {
  transition: text-decoration-thickness var(--duration-short) ease;
  color: rgb(var(--color-foreground));
}

@media screen and (min-width: 750px) {
  .footer-block__details-content .list-menu__item--link:hover,
  .copyright__content a:hover {
    color: rgb(var(--color-foreground));
    text-decoration: underline;
    text-underline-offset: 0.3rem;
  }

  .footer-block__details-content .list-menu__item--active:hover {
    text-decoration-thickness: 0.2rem;
  }
}

@media screen and (max-width: 989px) {
  .footer-block__details-content .list-menu__item--link {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media screen and (min-width: 750px) {
  .footer-block__details-content .list-menu__item--link {
    display: inline-block;
    font-size: 1.4rem;
  }

  .footer-block__details-content > :first-child .list-menu__item--link {
    padding-top: 0;
  }
}

.footer-block-image {
  display: flex;
}

.footer-block-image.left {
  justify-content: flex-start;
}

.footer-block-image.center {
  justify-content: center;
}

.footer-block-image.right {
  justify-content: flex-end;
}

@media screen and (max-width: 749px) {
  .footer-block-image,
  .footer-block-image.left,
  .footer-block-image.center,
  .footer-block-image.right {
    justify-content: center;
  }
}

.footer-block__image-wrapper {
  margin-bottom: 2rem;
  overflow: hidden !important;
}

.footer-block__image-wrapper img {
  display: block;
  height: auto;
  max-width: 100%;
}

.footer-block__brand-info {
  text-align: left;
}

.footer-block:only-child .footer-block__brand-info {
  text-align: center;
}

.footer-block:only-child > .footer-block__brand-info > .footer-block__image-wrapper {
  margin-left: auto;
  margin-right: auto;
}

.footer-block-image > img,
.footer-block__brand-info > img {
  height: auto;
}

.footer-block:only-child .footer-block__brand-info .footer__list-social.list-social {
  justify-content: center;
}

.footer-block__brand-info .footer__list-social.list-social {
  justify-content: flex-start;
}

.footer-block__details-content .placeholder-svg {
  max-width: 20rem;
}

.copyright__content {
  font-size: 1.1rem;
}

.copyright__content a {
  color: currentColor;
  text-decoration: none;
}

.policies {
  display: inline;
}

.policies li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.policies li::before {
  content: '\00B7';
  padding: 0 0.8rem;
}

.policies li a {
  padding: 0.6rem 0;
  display: block;
}

@media screen and (min-width: 750px) {
  .policies li a {
    padding: 0;
  }
}
@keyframes animateLocalization {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-1rem);
  }
}

/* check for flexbox gap in older Safari versions */
@supports not (inset: 10px) {
  @media screen and (max-width: 749px) {
    .footer .grid {
      margin-left: 0;
    }
  }

  @media screen and (min-width: 750px) {
    .footer__content-top .grid {
      margin-left: -3rem;
    }

    .footer__content-top .grid__item {
      padding-left: 3rem;
    }
  }
}

/* FIXES PARA ICONOS DE INDUSTRIA Y FLEXBOX NAV */
.sfym-nav__list {
  display: flex !important;
  align-items: center;
  gap: 1.5rem !important; /* Separación del menú desktop */
}

/* Restricción de tamaño de las imágenes (SVG/IMG) en el mega menú */
.sfym-mega-menu__links svg, 
.sfym-ind-link svg, 
.sfym-drawer__sub svg,
.mega-menu__link img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  margin-right: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}

.sfym-ind-link {
  display: flex !important;
  align-items: center;
}


  /* ═════════════════════════════════════════
     HERO PRINCIPAL - SOLUCIONES F&M
     ═════════════════════════════════════════ */
  .sfym-hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f2f5f2; /* Fallback claro — no se ve negro si la imagen tarda */
    display: flex;
    align-items: center;
  }

  .sfym-hero-container--480px { height: 480px; min-height: 480px; }
  .sfym-hero-container--560px { height: 560px; min-height: 560px; }
  .sfym-hero-container--640px { height: 640px; min-height: 640px; }

  @media(max-width: 989px) {
    .sfym-hero-container {
      height: 100vh;
      min-height: 550px;
    }
    .sfym-hero-container--480px,
    .sfym-hero-container--560px,
    .sfym-hero-container--640px {
      height: 100vh;
    }
  }

  .sfym-hero-track {
    display: flex;
    width: 100%;
    height: 100%;
  }

  /* SLIDE INDIVIDUAL */
  .sfym-hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    display: flex;
    align-items: center;
  }
  .sfym-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }

  /* FONDO IMAGEN (100% W/H) */
  .sfym-hero-img-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
  }
  
  /* OVERLAY (Entre imagen y contenido) */
  .sfym-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.45s ease;
  }

  /* Tipos de overlay configurados en schema se manejan con inline styles o modificadores */
  .sfym-hero-overlay--difuminado_suave {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }

  /* GRID DE CONTENIDO */
  .sfym-hero-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
  }
  
  @media(max-width: 989px) {
    .sfym-hero-grid {
      justify-content: center;
      text-align: center;
    }
  }

  /* ── GRADIENTE PERMANENTE — Verde corporativo F&M ──
     Verde medio-oscuro (#0F4A1A ≈ rgb(15,74,26)) — se ve verde limpio
     sobre cualquier fondo (blanco, claro, oscuro). No produce gris sucio. */
  .sfym-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      to right,
      rgba(15, 74, 26, 0.93) 0%,
      rgba(15, 74, 26, 0.80) 26%,
      rgba(15, 74, 26, 0.42) 50%,
      rgba(15, 74, 26, 0.10) 66%,
      transparent            80%
    );
    pointer-events: none;
  }
  /* Texto centrado: radial verde corporativo */
  .sfym-hero-slide.is-center-text::before {
    background: radial-gradient(
      ellipse 65% 80% at 50% 60%,
      rgba(15, 74, 26, 0.86) 0%,
      rgba(15, 74, 26, 0.48) 55%,
      transparent 80%
    );
  }

  /* COLUMNA IZQUIERDA (CONTENIDO) */
  .sfym-hero-content {
    width: 100%;
    max-width: 52%;
    z-index: 5;
  }
  @media(max-width: 989px) {
    .sfym-hero-content {
      max-width: 100%;
      margin: 0 auto;
    }
  }

  .sfym-hero-slide.is-center-text .sfym-hero-grid {
    justify-content: center;
    text-align: center;
  }
  .sfym-hero-slide.is-center-text .sfym-hero-content {
    max-width: 65%;
  }
  @media(max-width: 989px) {
    .sfym-hero-slide.is-center-text .sfym-hero-content {
      max-width: 100%;
    }
  }

  .sfym-hero-badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.1rem;
    background: rgba(229, 114, 0, 0.20);
    border: 1px solid rgba(229, 114, 0, 0.45);
    color: #ffb060;
    opacity: 0;
  }

  .sfym-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    letter-spacing: -0.8px;
    color: #ffffff;
    opacity: 0;
    text-shadow:
      0 2px 4px rgba(0,0,0,0.6),
      0 4px 16px rgba(0,0,0,0.4);
  }
  .sfym-hero-title strong {
    color: #FFA040;
  }

  .sfym-hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(220, 238, 224, 0.90);
    line-height: 1.6;
    margin: 0 0 1.75rem 0;
    opacity: 0;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  }

  /* CTAs - Estilos modificados por el requerimiento de auditoría anterior */
  .sfym-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #E07B00;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    min-width: auto;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    border: none;
    cursor: pointer;
  }
  .sfym-hero-cta:hover {
    background: #C86A00;
    transform: translateY(-3px);
  }
  
  @media(max-width: 989px) {
    .sfym-hero-cta {
      padding: 11px 24px;
      font-size: 0.9rem;
      width: auto;
    }
  }

  /* CONTROLES DE NAVEGACIÓN */
  .sfym-hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    display: flex;
    gap: 12px;
    z-index: 20;
  }
  
  @media(max-width: 989px) {
    .sfym-hero-nav {
      left: 50%;
      transform: translateX(-50%);
      bottom: 1.5rem;
    }
  }
  
  .sfym-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
  }
  .sfym-hero-dot.is-active {
    background: #E57200;
    transform: scale(1.3);
  }

  /* ══════════════════════════════════════
     MOBILE — max-width: 768px
     Full-bleed image + degradado hacia abajo + texto sobre el gradiente
     ══════════════════════════════════════ */
  @media (max-width: 768px) {

    /* Contenedor: altura fija para image full-bleed */
    .sfym-hero-container {
      height: 520px !important;
      min-height: unset !important;
    }
    .sfym-hero-track { height: 100%; }

    /* Todos los slides: absolutos a pantalla completa (como desktop) */
    .sfym-hero-slide {
      position: absolute !important;
      top: 0; left: 0;
      width: 100% !important;
      height: 100% !important;
      overflow: hidden;
      pointer-events: none;
    }

    /* Slide activo: texto alineado al fondo de la imagen */
    .sfym-hero-slide.is-active {
      pointer-events: auto;
      align-items: flex-end;
    }

    /* Imagen: full-bleed, sin colapso, visible de inmediato */
    .sfym-hero-slide.is-active .sfym-hero-img-bg {
      position: absolute !important;
      top: 0 !important; left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover;
      object-position: center top;
      opacity: 1 !important;
      animation: none !important;
    }

    /* Overlay: degradado transparente arriba → verde corporativo abajo
       para que la imagen se vea arriba y el texto quede legible abajo */
    .sfym-hero-overlay {
      position: absolute !important;
      top: 0 !important; left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0)      0%,
        rgba(0, 0, 0, 0)      50%,
        rgba(10, 46, 26, 0.72) 75%,
        rgba(10, 46, 26, 0.92) 100%
      ) !important;
    }

    /* Grid: sin fondo sólido — el gradiente hace el trabajo */
    .sfym-hero-grid {
      position: relative !important;
      background: none !important;
      width: 100%;
      max-width: 100%;
      padding: 1.25rem 1.5rem 3rem; /* padding inferior = espacio para los dots */
      text-align: left;
      justify-content: flex-start;
      align-items: flex-start;
      z-index: 10;
    }
    .sfym-hero-content { max-width: 100%; }

    /* Tipografía móvil */
    .sfym-hero-badge {
      font-size: 0.65rem;
      margin-bottom: 0.6rem;
    }
    .sfym-hero-title {
      font-size: 1.35rem !important;
      letter-spacing: -0.2px;
      margin-bottom: 0.7rem;
      text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    }
    .sfym-hero-subtitle {
      font-size: 0.88rem;
      margin-bottom: 1rem;
      color: rgba(255,255,255,0.92);
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }
    .sfym-hero-cta { width: auto; }

    /* Animaciones de texto: sin delay en móvil */
    .sfym-hero-slide.is-active .sfym-hero-badge,
    .sfym-hero-slide.is-active .sfym-hero-title,
    .sfym-hero-slide.is-active .sfym-hero-subtitle,
    .sfym-hero-slide.is-active .sfym-hero-cta {
      animation-delay: 0s !important;
      animation-duration: 0.35s !important;
    }

    /* Dots: posición absoluta sobre la imagen, sin fondo sólido */
    .sfym-hero-nav {
      position: absolute !important;
      bottom: 1.1rem;
      left: 1.5rem;
      transform: none !important;
      background: none !important;
      padding: 0;
      z-index: 20;
      justify-content: flex-start;
    }
    .sfym-hero-dot { background: rgba(255,255,255,0.4); }
    .sfym-hero-dot.is-active { background: #E57200; }
  }

  /* FLECHAS */
  .sfym-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    color: #fff;
    transition: all 0.2s;
  }
  .sfym-hero-arrow:hover {
    background: #E57200;
    border-color: #E57200;
    color: #fff;
  }
  .sfym-hero-arrow--prev { left: 2%; }
  .sfym-hero-arrow--next { right: 2%; }
  @media(max-width: 989px) {
    .sfym-hero-arrow { display: none; }
  }


  /* ══════════════════════════════════════
     HOVER REVEAL EFFECT — Solo dispositivos con cursor (desktop/laptop)
     Al pasar el mouse: overlay se desvanece → imagen se revela
     ══════════════════════════════════════ */
  @media (hover: hover) and (pointer: fine) {

    /* Overlay: se desvanece al hover para revelar la imagen */
    .sfym-hero-slide:hover .sfym-hero-overlay {
      opacity: 0.10;
    }

    /* Imagen: zoom sutil al revelar (refuerza el efecto inmersivo) */
    .sfym-hero-slide:hover .sfym-hero-img-bg {
      transform: scale(1.04);
      transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    /* Protección de legibilidad: text-shadow fuerte cuando el overlay casi no existe */
    .sfym-hero-slide:hover .sfym-hero-title {
      text-shadow:
        0 2px 14px rgba(0,0,0,0.95),
        0 0 30px rgba(0,0,0,0.75);
    }
    .sfym-hero-slide:hover .sfym-hero-subtitle {
      text-shadow: 0 1px 10px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.7);
    }
    .sfym-hero-slide:hover .sfym-hero-badge {
      text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    }
  }

  /* ══════════════════════════════════════
     MOBILE / TOUCH — sin hover
     Overlay fijo en estado intermedio: imagen visible pero texto siempre legible
     (El @media (max-width: 768px) ya maneja esto con el gradiente corporativo)
     ══════════════════════════════════════ */
  @media (hover: none) {
    /* Asegura que en táctil el overlay nunca se desvanezca */
    .sfym-hero-slide .sfym-hero-overlay {
      opacity: 1 !important;
    }
  }

  /* ==================================================
     ANIMACIONES CSS (Se disparan al agregar .is-active)
     ================================================== */
  
  @keyframes sfymSlideFadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes sfymSlideFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes sfymScaleInRight {
    from { opacity: 0; transform: translateX(60px) scale(1.05); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }
  
  @keyframes sfymPanIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Ken Burns: zoom out lento + sube hacia arriba */
  @keyframes sfymKenBurns {
    0%   { opacity: 0; transform: scale(1.22) translateY(5%); }
    5%   { opacity: 1; }
    100% { opacity: 1; transform: scale(1.0) translateY(-3%); }
  }

  /* Zoom In */
  @keyframes sfymZoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1.08); }
  }

  /* Solo fade (sin efecto) */
  @keyframes sfymFadeOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ── Animación de imagen: efecto según data-effect del slide ── */
  /* Zoom Out estándar (default) */
  .sfym-hero-slide.is-active .sfym-hero-img-bg {
    animation: sfymPanIn 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  /* Ken Burns */
  .sfym-hero-slide[data-effect="ken_burns"].is-active .sfym-hero-img-bg {
    animation: sfymKenBurns 9s cubic-bezier(0.15, 0.3, 0.5, 1) forwards;
  }
  /* Zoom In */
  .sfym-hero-slide[data-effect="zoom_in"].is-active .sfym-hero-img-bg {
    animation: sfymZoomIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  /* Estático */
  .sfym-hero-slide[data-effect="static"].is-active .sfym-hero-img-bg {
    animation: sfymFadeOnly 0.8s ease forwards;
  }
  .sfym-hero-slide.is-active .sfym-hero-badge {
    animation: sfymSlideFadeInLeft 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
  }
  .sfym-hero-slide.is-active .sfym-hero-title {
    animation: sfymSlideFadeInLeft 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  }
  .sfym-hero-slide.is-active .sfym-hero-subtitle {
    animation: sfymSlideFadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s forwards;
  }
  .sfym-hero-slide.is-active .sfym-hero-cta {
    animation: sfymSlideFadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
  }


/* FIX MENU LINKS AND BRAND COLORS */
a { color: #1F5025; text-decoration: none; }
a:hover { color: #E57200; }
.header__menu-item, .sfym-nav__list a, .sfym-ind-link {
  color: #1F5025 !important;
  text-decoration: none !important;
}
.header__menu-item:hover, .sfym-nav__list a:hover, .sfym-ind-link:hover {
  color: #E57200 !important;
}


/* --------- KITS SLIDER CSS --------- */
/* ═══════════════════════════════════════════════════════════
   F&M SOLUCIONES — KITS SLIDER SECTION
   ═══════════════════════════════════════════════════════════ */

.sfym-ks {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, #f2f6f3 0%, #fff 100%);
  overflow: hidden;
}
.sfym-ks__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Cabecera estratégica ── */
.sfym-ks__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}
.sfym-ks__head-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(153,194,33,.12);
  border: 1px solid rgba(153,194,33,.25);
  color: #6a9a10;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: .65rem;
  width: fit-content;
}
.sfym-ks__head-title {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #1F5025;
  margin: 0 0 .5rem;
  line-height: 1.2;
  letter-spacing: -.4px;
}
.sfym-ks__head-desc {
  font-size: .92rem;
  color: #777;
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}
.sfym-ks__head-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.sfym-ks__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(31,80,37,.18);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
  color: #1F5025;
  flex-shrink: 0;
}
.sfym-ks__nav-btn:hover {
  background: #1F5025;
  border-color: #1F5025;
  color: #fff;
  transform: scale(1.06);
}
.sfym-ks__nav-btn svg { width: 18px; height: 18px; }
.sfym-ks__cta-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 26px;
  background: #E07B00;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
}
.sfym-ks__cta-all:hover {
  background: #C86A00;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224,123,0,.3);
}
.sfym-ks__cta-all svg { width: 15px; height: 15px; }

/* ── Track / Carrusel ── */
.sfym-ks__track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.sfym-ks__track {
  display: flex;
  gap: 1.25rem;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.sfym-ks__track.grabbing { cursor: grabbing; }

/* ── Tarjeta ── */
.sfym-ks-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 390px;             /* altura fija para el efecto de reveal */
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  transition: box-shadow .35s ease, transform .35s ease;
  cursor: pointer;
}
.sfym-ks-card:hover {
  box-shadow: 0 18px 52px rgba(0,0,0,.22);
  transform: translateY(-5px);
}

/* Imagen — ocupa toda la tarjeta por defecto */
.sfym-ks-card__bg {
  position: absolute;
  inset: 0;
  background: #f0f5f1;      /* fondo claro para fotos de producto en blanco */
  border-radius: 16px;
  overflow: hidden;
  z-index: 0;
}
.sfym-ks-card__bg img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.5rem;
  transition: transform .55s ease, opacity .4s ease;
}
.sfym-ks-card:hover .sfym-ks-card__bg img {
  transform: scale(1.06);   /* ligero zoom mientras el panel sube */
}

.sfym-ks-card__bg-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1F5025 0%, #0f3010 100%);
}

/* Overlay: no se usa — el body es el panel de hover */
.sfym-ks-card__overlay { display: none; }

/* Contenido — panel semitransparente que sube desde abajo al hover */
.sfym-ks-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(8, 34, 12, 0.97) 0%,
    rgba(18, 60, 24, 0.93) 55%,
    rgba(31, 80, 37, 0.82) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .42s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform .48s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}

/* Badge superior */
.sfym-ks-card__tag {
  display: inline-block;
  background: linear-gradient(135deg, #99C221, #8BB51A);
  color: #1F5025;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: .65rem;
  width: fit-content;
}
.sfym-ks-card__badge-save {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 50px;
  z-index: 3;
}

/* Título */
.sfym-ks-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .1rem;
  letter-spacing: -.3px;
  text-shadow: none;
  line-height: 1.15;
}
.sfym-ks-card__subtitle {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  margin: 0 0 1rem;
  font-style: italic;
}

/* Spacer */
.sfym-ks-card__spacer { flex: 1; }

/* Lista de ítems */
.sfym-ks-card__items {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .38rem;
}
.sfym-ks-card__items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}
.sfym-ks-card__items li .sfym-ks-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #99C221;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sfym-ks-card__items li .sfym-ks-check svg {
  width: 9px; height: 9px;
  color: #fff;
}
.sfym-ks-card__items li.sfym-ks-gift {
  color: #FFD54F;
  font-weight: 600;
}

/* Fila inferior: precio izquierda + botón derecha */
.sfym-ks-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: auto;
}

/* Precio */
.sfym-ks-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0;
  padding-top: 0;
  border-top: none;
}
.sfym-ks-card__price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFD54F;
  letter-spacing: -.5px;
  text-shadow: none;
  line-height: 1;
}
.sfym-ks-card__compare {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: line-through;
}

/* CTA — derecha de la fila inferior */
.sfym-ks-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: #E07B00;
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(224,123,0,.4);
  flex-shrink: 0;
  white-space: nowrap;
}
.sfym-ks-card__cta:hover {
  background: #C86A00;
  box-shadow: 0 6px 24px rgba(224,123,0,.5);
  transform: translateY(-2px);
}
.sfym-ks-card__cta svg { width: 15px; height: 15px; }

/* ── Botón hover-cta centralizado: ya no se usa, el body es el panel ── */
.sfym-ks-card__hover-cta { display: none; }

/* ── Reveal del panel verde al hover (solo desktop con cursor) ── */
@media (hover: hover) and (pointer: fine) {
  .sfym-ks-card:hover .sfym-ks-card__body {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Badge de ahorro visible encima del panel verde */
  .sfym-ks-card__badge-save { z-index: 5; }
}

/* ── Puntos / Dots ── */
.sfym-ks__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 1.75rem;
}
.sfym-ks__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(31,80,37,.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .3s ease;
}
.sfym-ks__dot.active {
  background: #1F5025;
  width: 24px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 1099px) {
  .sfym-ks-card { flex: 0 0 calc((100% - 1.25rem) / 2); }
}
@media (max-width: 699px) {
  .sfym-ks-card { flex: 0 0 88vw; }
  .sfym-ks__head { grid-template-columns: 1fr; }
  .sfym-ks__head-actions { justify-content: flex-start; }
  .sfym-ks__cta-all { display: none; }
  .sfym-ks__cta-all--mobile { display: inline-flex !important; }
}
.sfym-ks__cta-all--mobile { display: none; margin: 1.75rem auto 0; }

/* ══════════════════════════════════════
   MOBILE — max-width: 768px
   Diseño dividido: imagen 1:1 arriba + body blanco legible abajo
   El panel verde NO se activa en táctil (sin hover físico)
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Card: altura automática (fluye con contenido) */
  .sfym-ks-card {
    height: auto;
    cursor: default;
  }

  /* Imagen: cuadrado 1:1, relativa en el flujo */
  .sfym-ks-card__bg {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }
  .sfym-ks-card__bg img {
    padding: 0.85rem;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Body: siempre visible, estático, blanco */
  .sfym-ks-card__body {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 0.85rem 1.1rem 1rem;
    overflow: visible;
  }

  /* Spacer: sin espacio extra */
  .sfym-ks-card__spacer { flex: 0; min-height: 0; }

  /* Tipografía oscura sobre blanco */
  .sfym-ks-card__tag { font-size: .54rem; }
  .sfym-ks-card__title {
    font-size: 1rem;
    color: #1a3d1f;
    margin-bottom: 0.2rem;
  }
  .sfym-ks-card__subtitle {
    font-size: 0.69rem;
    color: #4d7355;
    margin-bottom: 0.5rem;
  }
  .sfym-ks-card__items { margin-bottom: 0.5rem; gap: 0.18rem; }
  .sfym-ks-card__items li {
    font-size: 0.71rem;
    color: #2d4a32;
    line-height: 1.3;
  }
  .sfym-ks-card__items li.sfym-ks-gift { color: #b35e00; }
  .sfym-ks-card__bottom {
    padding-top: 0.4rem;
    border-top-color: rgba(0, 0, 0, 0.08);
  }
  .sfym-ks-card__pricing { gap: 1px; }
  .sfym-ks-card__price { font-size: 1.05rem; color: #E07B00; }
  .sfym-ks-card__compare { font-size: 0.68rem; color: #aaa; }

  /* CTA móvil */
  .sfym-ks-card__cta {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(224,123,0,.35);
  }
  .sfym-ks-card__cta:hover { transform: none; }

  /* Badge: sobre la imagen */
  .sfym-ks-card__badge-save { z-index: 4; }
}

/* --------- CATEGORIAS CSS --------- */
  :root {
    --sfym-blue: #1F5025;
    --sfym-gold: #E57200;
  }

  .sfym-categorias-sec {
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
  }

  .sfym-cat-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .sfym-cat-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .sfym-cat-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--sfym-blue);
    margin: 0 0 0.5rem;
    line-height: 1.2;
  }

  .sfym-cat-sub {
    font-size: 1.1rem;
    color: #6b6b6b;
    margin: 0;
  }

  /* Grid auto-organizable */
  .sfym-cat-grid {
    display: grid;
    gap: 1.5rem;
    justify-content: center;
  }

  /* 4+ cards = 4 columnas */
  .sfym-cat-grid[data-count="4"],
  .sfym-cat-grid[data-count="5"],
  .sfym-cat-grid[data-count="6"],
  .sfym-cat-grid[data-count="7"],
  .sfym-cat-grid[data-count="8"] {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 3 cards = 3 columnas */
  .sfym-cat-grid[data-count="3"] {
    grid-template-columns: repeat(3, minmax(280px, 350px));
  }

  /* 2 cards = 2 columnas */
  .sfym-cat-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(300px, 450px));
  }

  @media(max-width: 989px) {
    .sfym-cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  }

  /* Card Styles */
  .sfym-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    padding: 1.5rem;
    background: var(--sfym-blue);
    opacity: 0; /* Para el Intersection Observer */
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .sfym-cat-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @media(max-width: 749px) {
    .sfym-cat-card { height: 160px; padding: 1rem; }
  }

  /* Borde inferior dorado animado */
  .sfym-cat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 4px;
    background: var(--sfym-gold);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
  }
  .sfym-cat-card:hover::after { width: 100%; }

  .sfym-cat-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .sfym-cat-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sfym-cat-card:hover .sfym-cat-bg img { transform: scale(1); }

  .sfym-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31,80,37,0.95) 0%, rgba(31,80,37,0.4) 50%, transparent 100%);
    z-index: 2;
    transition: background 0.4s;
  }
  .sfym-cat-card:hover .sfym-cat-overlay {
    background: linear-gradient(to top, rgba(31,80,37,0.85) 0%, rgba(31,80,37,0.2) 60%, transparent 100%);
  }

  .sfym-cat-content {
    position: relative;
    z-index: 3;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .sfym-cat-card:hover .sfym-cat-content {
    transform: translateY(-10px);
  }

  .sfym-cat-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--sfym-gold);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(229,114,0,0.3);
  }

  .sfym-cat-name {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }

  .sfym-cat-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin: 0;
    transition: opacity 0.3s;
  }

  .sfym-cat-cta {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sfym-gold);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .sfym-cat-card:hover .sfym-cat-cta {
    bottom: -24px;
    opacity: 1;
  }
  .sfym-cat-card:hover .sfym-cat-count {
    opacity: 0;
  }

  /* ── MOBILE — max-width: 768px ──
     Full-background image card (igual que desktop)
     Sin bloques sólidos separados */
  @media (max-width: 768px) {

    /* 1 columna de ancho completo */
    .sfym-cat-grid {
      grid-template-columns: 1fr !important;
      gap: 0.85rem;
    }

    /* Card: altura fija, imagen de fondo completa */
    .sfym-cat-card {
      height: 200px;
      justify-content: flex-end;
      padding: 1rem;
      border-radius: 12px;
    }

    /* Imagen: de vuelta al flujo absoluto (full-bleed) */
    .sfym-cat-bg {
      position: absolute;
      inset: 0;
      width: auto;
      height: auto;
    }
    .sfym-cat-bg img {
      transform: scale(1.03);
      border-radius: 0;
    }

    /* Overlay: restaurar el degradado */
    .sfym-cat-overlay { display: block; }

    /* Content: texto sobre el degradado, sin fondo sólido */
    .sfym-cat-content {
      position: relative;
      background: none;
      padding: 0;
      border-radius: 0;
      z-index: 3;
    }
    .sfym-cat-card:hover .sfym-cat-content { transform: none; }

    /* Count: siempre visible en móvil (sin estado hover) */
    .sfym-cat-count { opacity: 1; }

    /* CTA: siempre visible como elemento estático */
    .sfym-cat-cta {
      position: static;
      opacity: 1;
      bottom: auto;
      margin-top: 3px;
    }

    /* Badge */
    .sfym-cat-badge { top: 0.6rem; right: 0.6rem; }

    /* Borde dorado animado: ocultar (no hay hover en táctil) */
    .sfym-cat-card::after { display: none; }
  }

/* FIX DE Z-INDEX DEL HEADER (SOLAPAMIENTO DE MENÚ) */
.sfym-header-wrapper {
   position: sticky; 
   top: 0; 
   z-index: 9999 !important; 
   background: #fff;
}

/* =========================================================
   FIJACIÓN SUPERIOR: STICKY HEADER ESTILO SHOPIFY PREMIUM
   ========================================================= */
.sfym-header-wrapper {
   position: sticky;
   top: 0;
   z-index: 9999 !important;
   background-color: #ffffff !important; 
   transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
   border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sfym-header-wrapper.scrolled-past-header {
   background-color: rgba(255, 255, 255, 0.92) !important;
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   box-shadow: 0 6px 24px rgba(0,0,0,0.06);
   border-bottom: none;
}

/* Forzar reset visual de submódulos */
.sfym-header {
   background-color: transparent !important; 
}
.sfym-topbar {
   position: relative;
   z-index: 10000;
}

/* =========================================================
   FIJACIÓN SUPERIOR: STRICT LOCK PARA CONTENIDO DEL MENÚ (V13)
   ========================================================= */
.sfym-header-wrapper {
   display: block !important;
   height: auto !important;
   transform: none !important;
}

.sfym-header {
   position: relative !important;
   top: 0 !important;
   transform: none !important;
   margin-top: 0 !important;
   height: auto !important;
}

.sfym-topbar {
   position: relative !important;
   top: 0 !important;
   transform: none !important;
}
