/* ================================================================
   NM MUEBLES · styles.css v4 — COMPLETO
================================================================ */
:root {
  --navy:    #0D2137;
  --navy2:   #163352;
  --orange:  #E8652A;
  --orng2:   #C94E18;
  --cream:   #FAF6F1;
  --bg:      #F2EDE7;
  --white:   #ffffff;
  --border:  #E2D9CE;
  --text:    #1A1A1A;
  --muted:   #7A7068;
  --green:   #25D366;
  --red:     #D92B2B;
  --shadow:  0 2px 16px rgba(13,33,55,.10);
  --r:       12px;
  --hh:      70px;
  --nh:      46px;
  --font-serif: 'Fraunces', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans:  'Manrope', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding-top: calc(var(--hh) + var(--nh));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ── UTILIDADES ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: var(--hh);
  display: flex; align-items: center; gap: 16px;
}

/* Logo */
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: #fff; }
.logo-slogan { font-size: 9.5px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .7px; margin-top: 2px; }

/* Buscador header */
.hdr-search { flex: 1; max-width: 500px; position: relative; }
.hdr-search-form {
  display: flex;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 8px; overflow: hidden; transition: .2s;
}
.hdr-search-form:focus-within { border-color: var(--orange); background: rgba(255,255,255,.16); }
.hdr-search-input {
  flex: 1; padding: 9px 14px; background: none; border: none;
  outline: none; color: #fff; font-size: 14px;
}
.hdr-search-input::placeholder { color: rgba(255,255,255,.4); }
.hdr-search-btn {
  padding: 9px 13px; background: none; border: none;
  color: rgba(255,255,255,.6); display: flex; align-items: center; transition: .15s;
}
.hdr-search-btn:hover { color: #fff; }

/* Sugerencias */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 200;
  overflow: hidden; display: none;
}
.search-suggestions.open { display: block; }
.sug-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  transition: .12s; cursor: pointer;
}
.sug-item:last-child { border: none; }
.sug-item:hover { background: var(--cream); }
.sug-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sug-item-info { flex: 1; min-width: 0; }
.sug-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-item-price { font-size: 12px; color: var(--orange); font-weight: 700; }

/* Carrito botón */
.hdr-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
  background: rgba(255,255,255,.1); color: #fff; flex-shrink: 0; transition: .15s;
}
.hdr-cart:hover { background: rgba(255,255,255,.2); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-badge.show { display: flex; }

/* Hamburger */
.hdr-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; background: none; border: none; flex-shrink: 0;
}
.hdr-burger span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ── NAV ─────────────────────────────────────────────────────── */
.site-nav { background: var(--navy2); border-top: 1px solid rgba(255,255,255,.07); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: var(--nh); display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
/* Contenedor de categorías dinámicas del nav — display:contents
   para que sus hijos participen directamente en el flex del nav-inner */
#nav-cats { display: contents; }


.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 6px;
  color: rgba(255,255,255,.72); font-size: 13px; font-weight: 500; white-space: nowrap; transition: .14s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.12); }

/* Dropdown nav — estilos manejados por JS inline para máxima compatibilidad */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-item { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; color: var(--text); transition: .12s; white-space: nowrap; }
.nav-drop-item:hover { background: var(--cream); color: var(--navy); }

/* ── SLIDER ──────────────────────────────────────────────────── */
.slider {
  position: relative; width: 100%; overflow: hidden; background: var(--navy);
  height: clamp(260px, 44vw, 520px);
}
.slider-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; position: relative; overflow: hidden; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,33,55,.82) 0%, rgba(13,33,55,.3) 55%, transparent 100%); }
.slide-body {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: clamp(28px,5vw,72px) 24px;
  height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.slide-title { font-family: var(--font-serif); font-size: clamp(24px,3.8vw,54px); color: #fff; line-height: 1.12; font-weight: 700; max-width: 600px; text-shadow: 0 2px 12px rgba(0,0,0,.3); margin-bottom: 12px; }
.slide-sub { color: rgba(255,255,255,.82); font-size: clamp(14px,1.6vw,18px); max-width: 480px; line-height: 1.55; margin-bottom: 26px; }
.slide-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: var(--orange); color: #fff; border-radius: 8px; font-weight: 700; font-size: 15px; border: none; transition: .2s; align-self: flex-start; }
.slide-btn:hover { background: var(--orng2); transform: translateY(-2px); }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.18); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: .2s;
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.35); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); border: none; padding: 0; transition: .25s; }
.slider-dot.on { background: #fff; width: 26px; }

/* ── BANNER CUOTAS ───────────────────────────────────────────── */
.promo-bar {
  background: var(--orange); color: #fff;
  padding: 11px 24px; display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap; font-weight: 600; font-size: 14px; text-align: center;
}
.promo-bar-btn {
  background: #fff; color: var(--orange); padding: 7px 18px;
  border-radius: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: .15s;
}
.promo-bar-btn:hover { background: var(--cream); }

/* ── SECCIONES ───────────────────────────────────────────────── */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.section-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--navy); }
.section-link { color: var(--orange); font-size: 14px; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ── GRILLA DE PRODUCTOS ─────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.prod-card {
  background: var(--white); border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(13,33,55,.13); }

.prod-card-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); position: relative; }
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover .prod-card-img img { transform: scale(1.05); }
.prod-card-badge { position: absolute; top: 9px; right: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.prod-card-body { padding: 13px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.prod-card-brand { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; }
.prod-card-name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.prod-card-name a:hover { color: var(--orange); }
.prod-card-prices { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.prod-card-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.prod-card-price { font-family: var(--font-serif); font-size: 20px; color: var(--navy); font-weight: 700; }
.prod-card-cuota { font-size: 12px; color: var(--orange); font-weight: 600; }
.prod-card-btn { margin-top: auto; padding: 10px; background: var(--navy); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; transition: .15s; }
.prod-card-btn:hover { background: var(--orange); }

/* ── LOADING / VACÍO ─────────────────────────────────────────── */
.loading-grid { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--muted); }
.empty-state { text-align: center; padding: 64px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; grid-column: 1/-1; }
.empty-state p { color: var(--muted); }
.btn-primary { display: inline-flex; padding: 12px 26px; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 700; font-size: 14px; transition: .15s; border: none; }
.btn-primary:hover { background: var(--orange); }

/* ── PAGINACIÓN ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 28px 0 0; flex-wrap: wrap; }
.pag-btn { padding: 8px 15px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); font-size: 14px; transition: .14s; }
.pag-btn:hover { border-color: var(--navy); }
.pag-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── PÁGINA PRODUCTOS — LAYOUT ───────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-top: 32px; align-items: start; }

.sidebar { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 20px; position: sticky; top: calc(var(--hh) + var(--nh) + 14px); }
.sidebar h3 { font-family: var(--font-serif); font-size: 16px; color: var(--navy); margin-bottom: 12px; font-weight: 700; }
.sb-link { display: block; padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--text); transition: .12s; margin-bottom: 1px; }
.sb-link:hover, .sb-link.on { background: var(--cream); color: var(--navy); font-weight: 600; }
.sb-link.sub { padding-left: 26px; font-size: 13px; color: var(--muted); }
.sb-link.sub.on { color: var(--orange); }

.catalog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.catalog-title { font-family: var(--font-serif); font-size: 22px; color: var(--navy); font-weight: 600; }
.catalog-title small { font-size: 13px; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }
.catalog-sort select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; outline: none; }

/* ── DETALLE PRODUCTO ────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 24px 0 0; }
.breadcrumb a:hover { color: var(--orange); }

.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 64px; }

.gallery-main { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--cream); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gal-thumb { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; padding: 0; transition: .14s; flex-shrink: 0; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.on { border-color: var(--orange); }

.prod-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.prod-name { font-family: var(--font-serif); font-size: clamp(22px,3vw,34px); color: var(--navy); margin: 8px 0 16px; line-height: 1.18; }
.prod-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.price-old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.price-main { font-family: var(--font-serif); font-size: 34px; color: var(--navy); font-weight: 700; }
.price-main small { font-size: 14px; font-weight: 400; color: var(--muted); font-family: var(--font-sans); }
.badge-pct { background: var(--red); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }

.cuotas-box { background: var(--cream); border-radius: 10px; padding: 16px; margin-bottom: 20px; border: 1px solid var(--border); }
.cuotas-box label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); margin-bottom: 10px; }
.cuotas-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.cuota-chip { padding: 7px 13px; border: 2px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; transition: .14s; }
.cuota-chip:hover { border-color: var(--navy); }
.cuota-chip.on { border-color: var(--orange); background: var(--orange); color: #fff; }
.cuota-result { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--navy); }

.prod-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }

.prod-actions { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.qty-ctrl { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { width: 40px; height: 46px; background: var(--cream); border: none; font-size: 20px; transition: .12s; }
.qty-ctrl button:hover { background: var(--border); }
.qty-ctrl input { width: 52px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); font-size: 15px; font-weight: 700; outline: none; }
.btn-add { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: var(--navy); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; transition: .15s; }
.btn-add:hover { background: var(--orange); }

.prod-stock { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.btn-wa-prod { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; border: 2px solid var(--green); color: var(--green); font-weight: 700; font-size: 14px; transition: .15s; }
.btn-wa-prod:hover { background: var(--green); color: #fff; }

/* ── CARRITO ─────────────────────────────────────────────────── */
.cart-page { padding: 36px 0 60px; }
.page-title { font-family: var(--font-serif); font-size: 30px; color: var(--navy); margin-bottom: 28px; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: var(--white); border-radius: 10px; border: 1px solid var(--border); padding: 14px; display: flex; align-items: center; gap: 14px; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; color: var(--navy); }
.cart-item-price { color: var(--orange); font-weight: 700; font-family: var(--font-serif); font-size: 16px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: 7px; overflow: hidden; }
.cart-item-qty button { width: 32px; height: 34px; background: var(--cream); border: none; font-size: 18px; }
.cart-item-qty span { font-weight: 700; padding: 0 6px; font-size: 14px; }
.cart-item-del { background: none; border: none; color: var(--muted); font-size: 18px; padding: 4px 8px; line-height: 1; transition: .12s; }
.cart-item-del:hover { color: var(--red); }

.cart-summary { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 24px; position: sticky; top: calc(var(--hh) + var(--nh) + 16px); display: flex; flex-direction: column; gap: 16px; }
.cart-summary h2 { font-family: var(--font-serif); font-size: 20px; color: var(--navy); }
.cuotas-box-cart .cuota-chip { padding: 6px 10px; font-size: 12px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0; }
.summary-total span { color: var(--muted); font-size: 14px; }
.summary-total strong { font-family: var(--font-serif); font-size: 26px; color: var(--navy); }
.btn-wa-checkout { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; background: var(--green); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; width: 100%; transition: .15s; }
.btn-wa-checkout:hover { background: #1da851; }
.cart-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.btn-keep-shopping { display: block; text-align: center; font-size: 13px; color: var(--muted); }
.btn-keep-shopping:hover { color: var(--navy); }

.cart-empty { text-align: center; padding: 64px 0; display: none; flex-direction: column; align-items: center; gap: 16px; }
.cart-empty.show { display: flex; }
.cart-empty-icon { font-size: 56px; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 52px 0 0; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 44px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px;
}
.footer-logo { height: 48px; width: auto; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-slogan { font-size: 13px; color: rgba(255,255,255,.5); font-style: italic; }
.footer-col h4 { font-family: var(--font-serif); font-size: 16px; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.62); padding: 4px 0; transition: .14s; }
.footer-col a:hover { color: var(--orange); }
.footer-redes { display: flex; flex-direction: column; gap: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,.35); max-width: 1280px; margin: 0 auto; }

/* ── WHATSAPP FLOTANTE ───────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: waPulse 2.5s infinite; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse { 0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,.75); } }

/* ── TIENDAS FLOTANTE ────────────────────────────────────────── */
.stores-float { position: fixed; bottom: 92px; right: 24px; z-index: 799; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.stores-popup { background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.16); padding: 10px; min-width: 185px; display: none; flex-direction: column; gap: 3px; }
.stores-popup.open { display: flex; animation: popIn .2s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.stores-popup-title { font-size: 12px; font-weight: 700; color: var(--navy); padding: 4px 10px 8px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .5px; }
.store-link { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; transition: .12s; }
.store-link:hover { background: var(--cream); color: var(--navy); }
.stores-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(13,33,55,.3); transition: .2s; }
.stores-btn:hover { background: var(--navy2); transform: scale(1.06); }

/* ── TOAST ───────────────────────────────────────────────────── */
#nm-toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 999;
  transition: .28s; white-space: nowrap; max-width: 92vw; text-align: center;
}
#nm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  body { padding-top: var(--hh); }
  .site-nav {
    display: none; position: fixed; top: var(--hh); left: 0; right: 0;
    z-index: 890; max-height: 70vh; overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .nav-inner { flex-direction: column; height: auto; padding: 10px 16px; gap: 2px; }
  .nav-link { width: 100%; color: rgba(255,255,255,.82); }
  .nav-drop { width: 100%; flex-direction: column; align-items: flex-start; }
  .nav-drop-item { color: rgba(255,255,255,.72); font-size: 13px; padding: 8px 16px 8px 24px; }
  .nav-drop-item:hover { background: rgba(255,255,255,.1); color: #fff; }
  .hdr-burger { display: flex; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .prod-detail { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .slider { height: clamp(210px, 58vw, 360px); }
}

@media (max-width: 640px) {
  .hdr-search { display: none; }
  .logo-slogan { display: none; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-card-price { font-size: 17px; }
  .section { padding: 32px 0; }
  .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .stores-float { bottom: 78px; right: 16px; }
  .slider { height: clamp(200px, 60vw, 320px); }
  .slide-body { padding: 24px 20px; }
}

/* ── TICKER / BANNER DESLIZANTE ─────────────────────────────── */
.ticker-bar {
  background: var(--navy);
  color: #fff;
  height: 38px;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-bottom: 2px solid var(--orange);
}
.ticker-bar:hover { background: var(--navy2); }
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 60px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}
.ticker-item .ticker-dest {
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
}
.ticker-item .ticker-sep {
  color: rgba(255,255,255,.3);
  margin: 0 8px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Cuando hay ticker, el body baja más */
body.has-ticker { padding-top: calc(var(--hh) + var(--nh) + 38px); }
body.has-ticker .site-header { top: 38px; }
@media (max-width: 960px) {
  body.has-ticker { padding-top: calc(var(--hh) + 38px); }
  body.has-ticker .site-header { top: 38px; }
}
