/* ============================================================
   store.css — Tienda web pública
   ============================================================ */

:root {
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-light: #e0f2fe;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #94a3b8;
  --bg: #f1f5f9;
  --surface: #fff;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-hov: 0 10px 36px rgba(0,0,0,.14);
  --wa: #25D366;
  --wa-dark: #128C7E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 600;
  font-size: 15px; border: none; cursor: pointer;
  transition: all .2s; font-family: inherit; line-height: 1;
}
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-white   { background: #fff; color: var(--accent); }
.btn-white:hover { background: #f0f9ff; transform: translateY(-2px); }
.btn-wa      { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── Top bar ──────────────────────────────────────────────── */
#topbar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
}
#topbar a { color: #fff; font-weight: 700; }

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-main {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 38px; object-fit: contain; display: none; }
.nav-logo-name { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 900; color: var(--accent); line-height: 1; }
.nav-cats { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cat-link { padding: 8px 14px; border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .15s; white-space: nowrap; cursor: pointer; }
.nav-cat-link:hover, .nav-cat-link.active { background: var(--accent); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; padding: 9px 16px; cursor: pointer; font-size: 13px; color: var(--text-muted); transition: border-color .2s; }
.nav-search:hover { border-color: var(--accent); }
.nav-search input { background: none; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--text); width: 220px; }
.nav-wa-btn { display: flex; align-items: center; gap: 7px; background: var(--wa); color: #fff; padding: 9px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; transition: background .2s; }
.nav-wa-btn:hover { background: var(--wa-dark); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
#mob-nav { display: none; background: var(--surface); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
#mob-nav::-webkit-scrollbar { display: none; }
.mob-nav-inner { display: flex; gap: 6px; padding: 10px 20px; white-space: nowrap; }

/* ── BANNER SLIDER ────────────────────────────────────────── */
#hero-slider {
  position: relative;
  overflow: hidden;
  background: #e8f4f8;
  /* altura base; JS la puede sobrescribir */
  min-height: 420px;
}

.slider-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  height: 100%;
}

.slide {
  flex-shrink: 0;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Fondo del slide — color o imagen de fondo */
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
/* Overlay sutil para legibilidad */
/* Overlay solo cuando hay imagen de fondo — se activa via clase */
.slide-bg.has-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.22);
}

.slide-content {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.slide-text { flex: 1; color: #fff; }

/* Badge pill encima del título */
.slide-badge-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.slide-badge-label {
  font-size: 14px; font-weight: 500; opacity: .9;
}
.slide-badge-pill {
  display: inline-block;
  background: #fbbf24;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: .3px;
}

.slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 16px;
}
.slide-sub {
  font-size: 16px;
  opacity: .82;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

/* Botón CTA con flecha */
.slide-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: #fbbf24;
  color: #0f172a;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none; cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.slide-cta:hover { background: #f59e0b; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(251,191,36,.4); }
.slide-cta-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* Imagen derecha del slide */
.slide-img-wrap {
  flex-shrink: 0;
  width: 380px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.slide-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.slide-img-ph {
  font-size: 80px;
  opacity: .4;
}

/* Navegación flechas */
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 18px;
  line-height: 1;
}
.slider-arrow:hover { background: rgba(255,255,255,.45); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Dots */
.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: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
  border: none;
}
.slider-dot.active {
  width: 28px;
  border-radius: 4px;
  background: #fff;
}

/* ── CATEGORÍAS GRID ──────────────────────────────────────── */
#sec-cats { background: var(--surface); }
.sec-cats-title-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-grid-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
}
.cat-grid-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-grid-img {
  width: 52px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.cat-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-grid-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.3;
}

/* ── Section headers ──────────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.sec-title { font-size: 28px; font-weight: 800; }
.sec-sub { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.sec-link { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sec-link:hover { text-decoration: underline; }

/* ── Product cards ────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .22s; }
.prod-card:hover { box-shadow: var(--shadow-hov); transform: translateY(-5px); border-color: var(--accent); }
.pc-img-wrap { position: relative; overflow: hidden; }
.pc-img { width: 100%; height: 200px; object-fit: cover; transition: transform .35s; }
.prod-card:hover .pc-img { transform: scale(1.06); }
.pc-img-ph { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; font-size: 52px; background: linear-gradient(135deg,var(--accent-light),var(--bg)); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.b-pct { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 50px; }
.b-nuevo { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 50px; }
.b-stock { background: #6b7280; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 50px; }
.pc-ship { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 4px; }
.pc-body { padding: 14px; }
.pc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--accent); margin-bottom: 4px; }
.pc-name { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-marca { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pc-prices { margin-bottom: 12px; }
.pc-price { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; }
.pc-price-promo { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: #ef4444; }
.pc-price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.pc-usd { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pc-wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px; border-radius: 50px; background: var(--wa); color: #fff; font-weight: 600; font-size: 13px; border: none; cursor: pointer; transition: all .2s; font-family: inherit; }
.pc-wa-btn:hover { background: var(--wa-dark); }
/* Skeleton */
.skel { background: linear-gradient(90deg,var(--border) 25%,#f0f0f0 50%,var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Promo banner ─────────────────────────────────────────── */
#banner { background: linear-gradient(120deg,#0f172a 0%,#1e293b 50%,#0f172a 100%); padding: 56px 0; color: #fff; position: relative; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; opacity: .04; background-image: radial-gradient(circle,white 1px,transparent 1px); background-size: 28px 28px; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.banner-pill { display: inline-block; background: var(--wa); color: #fff; padding: 4px 14px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.banner-title { font-size: 36px; font-weight: 900; margin-bottom: 8px; line-height: 1.1; }
.banner-sub { font-size: 16px; opacity: .6; max-width: 500px; }

/* ── About ────────────────────────────────────────────────── */
#nosotros { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg,var(--accent-light),var(--bg)); display: flex; align-items: center; justify-content: center; font-size: 90px; }
.about-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 12px; }
.about-title { font-size: 36px; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.about-text { font-size: 16px; color: var(--text-2); line-height: 1.8; margin-bottom: 24px; }
.about-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.about-item { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); }
.about-item-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: #0f172a; color: #94a3b8; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; max-width: 280px; }
.footer-col-ttl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ── WA FAB ───────────────────────────────────────────────── */
#wa-fab { position: fixed; bottom: 28px; right: 28px; z-index: 400; }
.fab-pulse { position: absolute; inset: -4px; border-radius: 50%; background: var(--wa); opacity: .5; animation: fab-p 2s ease-in-out infinite; }
@keyframes fab-p { 0%,100%{transform:scale(1);opacity:.5} 50%{transform:scale(1.4);opacity:0} }
.fab-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 24px rgba(37,211,102,.45); transition: transform .2s; }
.fab-btn:hover { transform: scale(1.1); }

/* ── Dolar badge ──────────────────────────────────────────── */
.dolar-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.25); border-radius: 50px; font-size: 12px; color: #16a34a; font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* Slider */
  .slide-content { padding: 40px 20px; gap: 20px; }
  .slide-title { font-size: 30px; }
  .slide-sub { font-size: 14px; }
  .slide-img-wrap { width: 150px; height: 160px; border-radius: 12px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
  /* Cats */
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-card { padding: 10px 12px; }
  /* Products */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* About */
  .about-grid { grid-template-columns: 1fr; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .banner-inner { flex-direction: column; text-align: center; }
  .banner-title { font-size: 26px; }
  /* Nav */
  .nav-cats { display: none; }
  #mob-nav { display: block; }
  .nav-burger { display: block; }
  .nav-right .nav-search { display: none; }
  .section { padding: 44px 0; }
  .sec-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .slide-title { font-size: 24px; }
  .slide-img-wrap { display: none; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-grid-img { width: 40px; height: 40px; font-size: 22px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── Preloader ────────────────────────────────────────────── */
#_web_preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;           /* opaco total: oculta el flash de colores */
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  transition: opacity .4s ease;
}
#_web_preloader._fade {
  opacity: 0;
  pointer-events: none;
}
._web_spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(0,0,0,.08);
  border-top-color: var(--accent, #0ea5e9);
  border-radius: 50%;
  animation: _spin .75s linear infinite;
}
._web_preloader_logo {
  height: 48px; max-width: 160px;
  object-fit: contain; display: none;
}
@keyframes _spin { to { transform: rotate(360deg); } }

/* ── Ver más productos ────────────────────────────────────── */
.ver-mas-wrap {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 24px 0;
}
.ver-mas-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; border-radius: 50px;
  border: 2px solid var(--accent); background: transparent;
  color: var(--accent); font-family: inherit;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.ver-mas-btn:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.ver-mas-count {
  font-size: 13px; color: var(--text-muted);
}

/* ── Clientes Carrusel ──────────────────────────────────────── */
.clients-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.clients-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.clients-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 4px 2px;
}
.client-logo-card {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1/1;
  transition: transform .2s, box-shadow .2s;
}
.client-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.client-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.client-logo-card:hover img {
  transform: scale(1.04);
}
.clients-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.clients-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.clients-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
}
@media (max-width: 768px) {
  .clients-slide { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .clients-slide { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
