/* ════════════════════════════════════════════════════════════
   AROMAS DEL MUNDO - Estilos principales
   ════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --blue-900: #0a0a0a; /* Negro premium */
  --blue-800: #1a1a1a;
  --blue-700: #2a2a2a;
  --blue-600: #000000; /* Botones principales */
  --blue-500: #333333;
  --blue-100: #f4f4f4;
  --blue-50:  #fafafa;

  --mp-blue: #009ee3;
  --mp-dark: #007dc4;

  --gray-900: #111111;
  --gray-700: #444444;
  --gray-500: #888888;
  --gray-400: #bbbbbb;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50:  #fafafa;

  --green-600: #000000;
  --green-100: #f4f4f4;
  --red-600: #d32f2f;
  --red-100: #ffebee;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);

  --radius: 0px; /* Bordes rectos para elegancia */
  --radius-lg: 0px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1280px;
  --header-height: 120px;
}

/* ── Reset y base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .logo-name, .hero-text h1, .section-title {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select { font-family: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600); color: #fff;
}
.btn-primary:hover { background: var(--blue-700); }
.btn-outline {
  border: 2px solid var(--blue-600); color: var(--blue-600); background: transparent;
}
.btn-outline:hover { background: var(--blue-50); }
.btn-mp {
  background: var(--mp-blue); color: #fff;
}
.btn-mp:hover { background: var(--mp-dark); }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-full { width: 100%; }
.btn-link { background: none; color: var(--blue-600); font-weight: 600; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 8000;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(36, 16, 34, .08);
  backdrop-filter: blur(14px);
}

.header-top {
  background: linear-gradient(90deg, #f8eef3 0%, #fff7f2 50%, #f6eef8 100%);
  color: #6d5663;
  font-size: .7rem; padding: .45rem 0;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid rgba(120, 86, 108, .12);
}
.header-top a { color: #5f4654; }
.header-top a:hover { color: #2d1f2a; }
.header-top-inner {
  display: flex; justify-content: space-between; align-items: center;
}

.header-main { padding: .75rem 0; }
.header-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px) auto;
  align-items: center;
  gap: 1.25rem;
  padding: .15rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.logo-img {
  height: 84px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-copy {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #2f1e2a;
  line-height: 1.05;
}
.logo-tagline {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8d6d7c;
  white-space: nowrap;
}

.header-actions {
  position: static;
  transform: none;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.search-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
}
.search-box {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .45rem .5rem .45rem .75rem;
  border: 1px solid rgba(121, 89, 107, .18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(251,245,247,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 24px rgba(93, 58, 76, .08);
}
.search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 .8rem;
  border-radius: 999px;
  background: #f6e8ef;
  color: #7e5568;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #2f1e2a;
  font-size: .92rem;
  padding: 0;
}
.search-input::placeholder { color: #9a7f8c; }
.search-input:focus { outline: none; }
.search-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34202d 0%, #6a4457 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(85, 50, 69, .22);
}
.search-btn:hover { transform: translateY(-1px); }

/* Dropdown búsqueda */
.search-dropdown {
  position: absolute; top: calc(100% + .35rem); left: 0; right: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200); z-index: 8500; overflow: hidden;
  max-height: 420px; overflow-y: auto;
}
.dropdown-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem 1rem; cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--blue-50); }
.dropdown-item-img {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover; background: var(--gray-100);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.dropdown-item-info { flex: 1; min-width: 0; }
.dropdown-item-name { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-item-sub { font-size: .78rem; color: var(--gray-500); }
.dropdown-item-price { font-weight: 700; color: var(--blue-700); font-size: .9rem; white-space: nowrap; }
.dropdown-more {
  padding: .75rem 1rem; text-align: center;
  font-size: .85rem; font-weight: 600; color: var(--blue-600);
  background: var(--blue-50); cursor: pointer;
}
.dropdown-more:hover { background: var(--blue-100); }
.dropdown-loading, .dropdown-no-results {
  padding: 1.25rem; text-align: center; color: var(--gray-500); font-size: .9rem;
}
.dropdown-section-label {
  padding: .4rem 1rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-400);
  background: var(--gray-50); border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

/* Carrito */
.cart-btn {
  position: relative; width: 46px; height: 46px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-900); transition: var(--transition); flex-shrink: 0;
}
.cart-btn:hover { transform: scale(1.05); }
.cart-count {
  position: absolute; top: 0px; right: 0px;
  background: var(--blue-900); color: #fff;
  min-width: 18px; height: 18px; border-radius: 50%; padding: 0 4px;
  font-size: .65rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
  animation: cartBounce .3s ease;
}
@keyframes cartBounce {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* Menú hamburguesa */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--gray-100);
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: var(--transition);
}

/* Nav categorías */
.nav-categories {
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: #ffffff;
  position: relative; z-index: 100;
  min-height: 42px;
}
@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.nav-list {
  display: flex; gap: 2rem; padding: 0; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
  animation: navFadeIn .35s ease both;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li > a {
  display: flex; align-items: center; gap: .4rem;
  padding: 1rem 0; color: var(--gray-700);
  font-size: .85rem; font-weight: 500; white-space: nowrap; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  cursor: pointer; user-select: none;
  transition: color .2s ease, border-bottom-color .2s ease;
}
.nav-list > li > a:hover {
  color: var(--blue-900);
  border-bottom-color: var(--blue-900);
}
.nav-list > li > a.active,
.nav-list > li.nav-open > a {
  color: var(--blue-900);
  border-bottom-color: var(--blue-900);
}

/* Dropdown: posicionado via JS con position:fixed para evitar clipping por overflow */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 220px;
  padding: 0.5rem 0;
  border: 1px solid #eee;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-dropdown.nav-open {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s;
  text-transform: none;
  letter-spacing: 0;
}
.nav-dropdown a:hover {
  background: var(--gray-50);
  color: var(--blue-700);
  padding-left: 1.75rem;
}

.nav-empty-note {
  display: block;
  padding: .7rem 1rem;
  color: var(--gray-500);
  font-size: .82rem;
}

.nav-categories-menu {
  min-width: 260px;
  overflow: visible;
}

.nav-cat-item {
  position: relative;
}

.nav-cat-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-sub-arrow {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1;
}

.nav-submenu {
  display: none;
  position: absolute;
  left: calc(100% - 2px);
  top: -.5rem;
  min-width: 230px;
  padding: .5rem 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  z-index: 1002;
}

.nav-cat-item.submenu-open > .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 1rem;
}

.nav-submenu a small {
  color: var(--gray-400);
  font-size: .72rem;
  font-weight: 700;
}

.nav-submenu-all {
  font-weight: 700;
  color: var(--blue-800) !important;
  border-bottom: 1px solid var(--gray-100);
}

.nav-brands-menu {
  min-width: 520px;
  max-width: min(720px, calc(100vw - 2rem));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overflow-x: visible;
}

.nav-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.nav-brand-item {
  min-width: 0;
}

.nav-brand-item .nav-cat-link {
  min-width: 0;
  padding: .75rem 1rem;
}

.nav-brand-item .nav-cat-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-brands-menu .nav-all-link {
  margin-top: .25rem;
}

/* Mega menú "Productos" */
.nav-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 1000;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border: 1px solid #eee;
  padding: 1.5rem;
  min-width: 500px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-mega.nav-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Columnas y títulos */
.nav-mega-col { min-width: 160px; }
.nav-mega-col h4 {
  font-size: .78rem; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .05em;
  margin: .6rem 0 .3rem; padding: .2rem .3rem;
  border-radius: 4px;
  transition: color .18s, opacity .18s;
  cursor: default;
}
.nav-mega-col:hover h4 { color: #374151; opacity: 1; }
.nav-mega-col h4 { opacity: .75; }

/* Subcategorías */
.nav-mega-col a {
  display: block; padding: .3rem .3rem;
  font-size: .84rem; color: #374151;
  border-radius: 4px;
  transition: color .18s ease, transform .18s ease;
  cursor: pointer;
}
.nav-mega-col a:hover {
  color: #1d4ed8;
  transform: translateX(5px);
}

/* ════════════════════════════════════════════════════════════
   BARRA DE ANUNCIO
════════════════════════════════════════════════════════════ */
.announce-bar {
  background: #f0f0f0;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .4rem 1rem;
  font-size: .75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  white-space: nowrap;
}

.announce-icon { font-size: .9rem; flex-shrink: 0; }
.announce-text { line-height: 1.4; white-space: nowrap; font-weight: 400; }
.announce-sep { opacity: .4; flex-shrink: 0; }

@media (max-width: 480px) {
  .announce-bar {
    padding: .4rem 0;
    justify-content: flex-start;
  }

  .announce-bar-inner {
    display: flex;
    gap: 2rem;
    animation: ticker 14s linear infinite;
    white-space: nowrap;
  }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (min-width: 481px) {
  .announce-bar-inner {
    animation: none !important;
  }

  /* Ocultar los items duplicados — la segunda mitad */
  .announce-bar-inner > *:nth-child(n+9) {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  background: url('/images/banner.png') center/cover no-repeat;
  min-height: 500px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background: url('/images/aromas_mobileok.png') center top/cover no-repeat;
    min-height: 280px;
  }
}
.hero-inner { width: 100%; display: flex; justify-content: flex-start; }
.hero-text { max-width: 500px; margin: 0; }
.hero-text h1 {
  font-size: 3.5rem; font-weight: 700; line-height: 1;
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-text p {
  font-size: 1.1rem; color: #333;
  margin-bottom: 2.5rem; line-height: 1.6; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; }

/* Botón primario hero */
.hero-btn-primary {
  background: var(--blue-900); color: #fff;
  border: 1px solid var(--blue-900); font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.hero-btn-primary:hover {
  background: #fff; color: var(--blue-900);
}

/* Botón WhatsApp canal hero */
.hero-btn-wa {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--blue-900);
  border: 1px solid var(--gray-400); font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .3s, background .3s;
}
.hero-btn-wa:hover {
  background: var(--gray-100);
  border-color: var(--blue-900);
}

.hero-image { display: none; } /* Ocultamos la imagen para un look minimalista centrado */

/* ════════════════════════════════════════════════════════════
   SECCIONES
════════════════════════════════════════════════════════════ */
.section { padding: 3.5rem 0; }
.section-gray { background: var(--gray-50); }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.75rem;
}
.section-title {
  font-size: 1.6rem; font-weight: 800; color: var(--blue-900);
  margin-bottom: 1.75rem;
}
.section-header .section-title { margin-bottom: 0; }

/* Swiper Fixes */
.swiper-button-next, .swiper-button-prev {
  z-index: 10 !important;
}

/* ── Categorías slider ──────────────────────────────────────── */
/* ══ Carrusel unificado JL ══ */
/*.jl-carousel-wrapper {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.jl-carousel-track-outer {
  flex: 1; overflow: hidden; 
}
.jl-carousel-track {
  display: flex; gap: 1.25rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1); */

.jl-carousel-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: #fff; box-shadow: var(--shadow); cursor: pointer;
  font-size: 1.6rem; color: var(--gray-700); flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-start;
  transition: background .15s, color .15s;
  line-height: 1;
}
.jl-carousel-arrow:hover { background: var(--blue-600); color: #fff; }


/* Tarjeta — sin cambio de tamaño en hover (box-shadow en vez de border) */
.category-card {
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1.5px var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: 140px;
  flex-shrink: 0;
}
.category-card:hover {
  box-shadow: 0 0 0 2px var(--blue-500), var(--shadow-lg);
  transform: translateY(-3px);
}
.category-card-icon { font-size: 2rem; }
.category-card-name { font-weight: 700; font-size: .9rem; color: var(--blue-900); }
.category-card-count { font-size: .78rem; color: var(--gray-500); }

/* ── Productos grid (resultados de búsqueda) ─────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

/* ── Popular slider (inicio) ─────────────────────────────────── */
.section-popular-wrap { background: #f8faff; }
/* Usamos jl-carousel-* para el wrapper y track. Ajustamos ancho de tarjetas. */
/*.popular-slider-card-wrapper {
  flex: 0 0 260px;
}*/

/* ── Tarjeta premium ─────────────────────────────────────────── */
.popular-slider-card-wrapper {
  flex: 0 0 260px !important;
  max-width: 260px;
}
.product-card {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: opacity .3s ease;
  cursor: pointer;

  /* CAMBIO */
  display: block;

  text-decoration: none;
  color: inherit;
}

/* CONTENEDOR IMAGEN */
.product-img {
  width: 100%;
  /* Change height from 260px to auto and add aspect-ratio */
  height: auto !important; 
  aspect-ratio: 1 / 1; 

  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 0px; /* Increased for a softer, modern look */
}

/* IMAGEN */
.product-img img {
  width: 100%;
  height: 100%;

  object-fit: contain !important;

  transition: transform .5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}
/* ── Skeleton Loaders ────────────────────────────────────────── */
.skeleton-card { border: none; background: #fff; box-shadow: none; cursor: default; }
.skeleton-card:hover { transform: none; box-shadow: none; }
.skeleton-img { aspect-ratio: 3/4; background: #f3f4f6; position: relative; overflow: hidden; }
.skeleton-img::after, .skeleton-text::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%); animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer { 100% { transform: translateX(100%); } }
.skeleton-text {
  height: 14px; background: #f3f4f6; margin-bottom: 8px; position: relative; overflow: hidden;
}

.product-info {
  padding: 0.8rem 0 !important;

  display: block !important;

  text-align: center;
}
.product-brand { font-size: .7rem; color: #000; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .2rem; }
.product-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; /* Slightly larger */
  font-weight: 800;   /* Much bolder to match the reference */
  color: #000;       /* Darker for more contrast */
  margin: 0.5rem 0;
  line-height: 1.2;
}
.product-prices { margin-top: auto; }
.product-price-cash {
  font-size: 1rem; font-weight: 600; color: var(--blue-900);
}
.product-price-cash-label { font-size: .72rem; color: var(--gray-500); display: none; }
.product-price-mp {
  font-size: .82rem; color: var(--gray-500); font-weight: 400; margin-top: .2rem;
}

/* Botón ghost / outline */
.product-add-btn {
  margin-top: 1rem; width: 100%;
  background: transparent;
  color: var(--blue-900);
  border: 0px solid var(--gray-300);
  padding: .6rem; border-radius: 0;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.product-add-btn:hover {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-900);
}
.product-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--blue-900); color: #fff;
  font-size: .65rem; font-weight: 600; padding: .2rem .6rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.product-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Increase width or set to 100% to let the carousel logic decide size */
  width: 320px; 
  min-width: 280px; 

  background: #fff;
  border-radius: 0px; /* More rounded like the reference */
  overflow: hidden;
  padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Add a soft shadow on hover to match the 'high-end' feel */
.product-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


.product-card-wrapper .product-add-btn { margin-top: 0; }

/* ── Banner de precios ──────────────────────────────────────── */
.price-banner {
  display: flex; align-items: stretch; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.price-banner-item { flex: 1; padding: 2.5rem 2rem; text-align: center; }
.price-cash { background: var(--green-100); }
.price-mp { background: #e0f4fd; }
.price-banner-divider {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-200); font-weight: 800; font-size: 1.2rem;
  color: var(--gray-500); padding: 0 1.25rem;
}
.price-banner-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.price-banner-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.price-banner-item p { font-size: .9rem; color: var(--gray-700); }

/* ════════════════════════════════════════════════════════════
   VISTA BÚSQUEDA / LISTADO
════════════════════════════════════════════════════════════ */
.search-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding-top: 2rem; padding-bottom: 3rem;
  align-items: start;
}

/* Sidebar filtros */
.filters-sidebar {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem;
  position: sticky; top: calc(var(--header-height) + 1rem);
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.filters-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.filters-header h3 { font-size: 1rem; font-weight: 700; }
.btn-clear-filters {
  font-size: .78rem; color: var(--blue-600); font-weight: 600;
  background: none; border: none; cursor: pointer;
}
.btn-clear-filters:hover { text-decoration: underline; }
.btn-close-filters {
  display: none; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--gray-500); line-height: 1;
  padding: .1rem .3rem;
}
.btn-close-filters:hover { color: var(--gray-800); }
.filter-group { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--gray-100); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-size: .85rem; font-weight: 700; color: var(--gray-700); margin-bottom: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.filter-list { display: flex; flex-direction: column; gap: .3rem; max-height: 200px; overflow-y: auto; }
.filter-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: var(--transition);
  font-size: .8rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-item:hover { color: #000; padding-left: 5px; }
.filter-item.active { font-weight: 700; color: #000; border-bottom-color: #000; }
.facet-count { margin-left: auto; font-size: .75rem; color: var(--gray-400); font-weight: 400; }
.price-range { display: flex; align-items: center; gap: .5rem; margin-bottom: .65rem; }
.price-input {
  flex: 1; min-width: 0; padding: .4rem .6rem; border: 1px solid var(--gray-200);
  border-radius: 6px; font-size: .85rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input:focus { outline: none; border-color: var(--blue-500); }

/* Resultados */
.results-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem;
}
.results-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--blue-900); }
.results-count { font-size: .85rem; color: var(--gray-500); display: block; margin-top: .15rem; }
.results-controls { display: flex; gap: .75rem; align-items: center; }
.sort-select {
  padding: .45rem .85rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: .85rem; background: #fff;
  cursor: pointer; color: var(--gray-700);
}
.sort-select:focus { outline: none; border-color: var(--blue-500); }
.active-filter-pills {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1rem;
}
.active-filter-pills.hidden { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--blue-100); color: var(--blue-800);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--blue-200);
  transition: var(--transition);
}
.filter-pill:hover { background: var(--blue-200); }
.pill-remove { font-size: .7rem; opacity: .7; line-height: 1; }
.filter-toggle-btn {
  display: none; align-items: center; gap: .4rem;
  padding: .45rem .85rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: .85rem; background: #fff;
  cursor: pointer; color: var(--gray-700);
}

/* Paginación */
.pagination {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--gray-700);
  transition: var(--transition); cursor: pointer;
}
.page-btn:hover { background: var(--blue-50); border-color: var(--blue-300, #93c5fd); }
.page-btn.active {
  background: var(--blue-600); color: #fff; border-color: var(--blue-600);
}
.page-btn:disabled { opacity: .4; cursor: default; }

/* Estado vacío */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--gray-500);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-700); margin-bottom: .5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ════════════════════════════════════════════════════════════
   DETALLE PRODUCTO
════════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  padding: 1.25rem 0; font-size: .85rem; color: var(--gray-500);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue-600); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-400); }

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
}
.product-detail-images { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.product-detail-main-img {
  aspect-ratio: 1; background: var(--gray-100);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem;
}
.product-detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-thumbnails {
  display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .25rem;
}
.thumb-img {
  width: 80px; height: 80px; border-radius: 10px; object-fit: cover;
  cursor: pointer; border: 2px solid transparent; opacity: .7; transition: .2s;
  background: var(--gray-100);
}
.thumb-img:hover { opacity: 1; border-color: var(--blue-500); }
.thumb-img.active { opacity: 1; border-color: var(--blue-600); }
.gallery-arrow {
  position: absolute; top: calc(50% - 30px); transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2; line-height: 1; transition: background .2s;
}
.gallery-arrow:hover { background: rgba(0,0,0,.7); }
.gallery-arrow-prev { left: 8px; }
.gallery-arrow-next { right: 8px; }
.product-detail-info { display: flex; flex-direction: column; gap: 1rem; }
.product-detail-brand { color: var(--gray-500); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.product-detail-name { font-size: 1.7rem; font-weight: 800; color: var(--blue-900); line-height: 1.25; }
.product-detail-code { color: var(--gray-500); font-size: .82rem; margin-top: .15rem; }
.product-detail-code span { font-family: monospace; font-weight: 600; color: var(--gray-600); }
.product-detail-category { color: var(--gray-500); font-size: .9rem; }

.price-box {
  background: var(--gray-50); border-radius: var(--radius-lg);
  padding: 1.25rem; border: 1px solid var(--gray-200);
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid var(--gray-200);
}
.price-row:last-child { border-bottom: none; }
.price-row-label { font-size: .9rem; color: var(--gray-600, #4b5563); }
.price-cash-val { font-size: 1.6rem; font-weight: 800; color: var(--green-600); }
.price-mp-val { font-size: 1.3rem; font-weight: 700; color: var(--mp-blue); }
.price-mp-note { font-size: .78rem; color: var(--gray-500); margin-top: .2rem; }
/* Mayorista en detalle */
.price-retail-detail { font-size: 1rem; font-weight: 500; color: var(--gray-400); text-decoration: line-through; }
.price-row-retail { opacity: .75; }
.price-row-ws-highlight { background: #eff6ff; border-radius: 10px; margin: .25rem -.75rem; padding: .25rem .75rem; }
.price-ws-detail { font-size: 1.8rem; font-weight: 900; color: #1d4ed8; }

.product-detail-actions { display: flex; flex-direction: column; gap: .75rem; }
.product-detail-actions .btn { padding: .85rem; font-size: 1rem; }
.product-detail-stock { font-size: .85rem; color: var(--green-600); font-weight: 600; }

.product-detail-desc {
  border-top: 1px solid var(--gray-200); padding-top: 1rem;
  font-size: .95rem; color: var(--gray-700); line-height: 1.7;
}

.related-section { padding: 2rem 0 3rem; }
.related-section h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ════════════════════════════════════════════════════════════
   CARRITO PANEL
════════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 9900; backdrop-filter: blur(2px);
}
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 95vw;
  background: #fff; z-index: 9901;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s ease;
}
.cart-panel.open { transform: translateX(0); }
.cart-panel:not(.hidden) { transform: translateX(0); }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
}
.cart-header h3 { font-size: 1.15rem; font-weight: 700; }
.cart-close { font-size: 1.2rem; color: var(--gray-500); transition: var(--transition); }
.cart-close:hover { color: var(--gray-900); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gray-500); gap: .75rem; }
.cart-empty .empty-icon { font-size: 3rem; }

.cart-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .85rem; background: var(--gray-50); border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.cart-item-img {
  width: 60px; height: 60px; border-radius: 8px;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  border: 1px solid var(--gray-200);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .88rem; font-weight: 600; line-height: 1.3; margin-bottom: .3rem; }
.cart-item-price { font-size: .85rem; color: var(--green-600); font-weight: 700; }
.cart-item-price-mp { font-size: .78rem; color: var(--mp-blue); }
.cart-item-controls { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--gray-200); color: var(--gray-700);
  font-weight: 700; font-size: .9rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--blue-100); color: var(--blue-700); }
.qty-display { font-size: .9rem; font-weight: 600; min-width: 1.5rem; text-align: center; }
.cart-item-remove {
  margin-left: auto; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-500);
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s;
  border: none; line-height: 1;
}
.cart-item-remove:hover { background: var(--red-100); color: var(--red-600); }

.cart-footer { border-top: 1px solid var(--gray-200); padding: 1.25rem 1.5rem; }
.cart-totals { margin-bottom: 1rem; }
.total-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .3rem 0; }
.total-row strong { font-weight: 700; }
.total-mp strong { color: var(--mp-blue); }
.cart-actions { display: flex; flex-direction: column; gap: .6rem; }
.cart-whatsapp-hint { text-align: center; font-size: .8rem; color: var(--gray-500); margin-top: .25rem; }
.cart-whatsapp-hint a { color: var(--blue-600); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { font-size: 1.2rem; color: var(--gray-500); }
.modal-close:hover { color: var(--gray-900); }
.modal-body { padding: 1.5rem; }
.modal-subtitle { color: var(--gray-600, #4b5563); font-size: .9rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-input {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: .95rem; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.modal-total-preview {
  background: var(--blue-50); border-radius: var(--radius); padding: 1rem;
  margin-top: 1rem; font-size: .9rem;
}
.checkout-error { background: var(--red-100); color: var(--red-600); padding: .75rem; border-radius: var(--radius); font-size: .85rem; margin-top: .75rem; }
.modal-footer {
  display: flex; gap: .75rem; padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  justify-content: flex-end;
}

/* Checkout enriquecido */
.modal-checkout { max-width: 560px; }
.modal-checkout .modal-body { padding: 0; max-height: 78vh; overflow-y: auto; }
.checkout-summary {
  background: var(--blue-50); border-bottom: 1px solid var(--blue-100);
  padding: 1rem 1.5rem; font-size: .88rem; color: var(--gray-700);
}
.checkout-summary strong { color: var(--blue-700); }
.checkout-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.checkout-section:last-of-type { border-bottom: none; }
.checkout-section-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-500); margin-bottom: .9rem;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.delivery-options { display: flex; flex-direction: column; gap: .6rem; }
.delivery-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s;
}
.delivery-option input[type=radio] { display: none; }
.delivery-option.selected,
.delivery-option:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.delivery-option-body { display: flex; align-items: center; gap: .75rem; }
.delivery-option-icon { font-size: 1.5rem; }
.delivery-option-body strong { display: block; font-size: .9rem; }
.delivery-option-body span { font-size: .8rem; color: var(--gray-500); }
.shipping-services { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.shipping-svc {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border: 1.5px solid var(--gray-200);
  border-radius: 2rem; font-size: .85rem; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.shipping-svc:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.shipping-svc input[type=radio] { display: none; }
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   QUIÉNES SOMOS
════════════════════════════════════════════════════════════ */
.about-container {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}
.about-title {
  font-size: 2rem; font-weight: 800; color: var(--blue-800);
  margin-bottom: 2rem; padding-bottom: .75rem;
  border-bottom: 3px solid var(--blue-600);
}
.about-section {
  margin-bottom: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--blue-600);
}
.about-section h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--blue-800);
  margin-bottom: .75rem;
}
.about-section p { color: var(--gray-700); margin-bottom: .5rem; }
.about-list {
  list-style: none; padding: 0; margin-top: .5rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.about-list li {
  padding: .45rem .6rem .45rem 1rem;
  border-left: 2px solid var(--blue-100);
  color: var(--gray-700); font-size: .95rem;
}
.about-link {
  color: var(--blue-600); font-weight: 600; text-decoration: none;
}
.about-link:hover { text-decoration: underline; }
.about-wa-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .4rem;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: .55rem 1.1rem; border-radius: 8px;
  text-decoration: none; transition: background .15s, transform .12s;
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.about-wa-btn:hover {
  background: #1ebe5d; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
}

/* ════════════════════════════════════════════════════════════
   RESEÑAS
════════════════════════════════════════════════════════════ */
.reviews-section { background: var(--gray-50); }

.reviews-intro {
  color: var(--gray-500);
  font-size: .98rem;
  max-width: 620px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

/* Carrusel (reemplazado por .jl-carousel-*) */
.review-card {
  flex: 0 0 calc(33.333% - .84rem);
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: .75rem;
}
.review-stars { color: #f59e0b; font-size: 1.15rem; letter-spacing: .1em; }
.review-text { color: var(--gray-700); font-size: .92rem; line-height: 1.6; flex: 1; font-style: italic; }
.review-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.review-author strong { display: block; font-size: .9rem; color: var(--gray-900); }
.review-platform {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .75rem; font-weight: 600; margin-top: .15rem;
}
.review-platform svg { flex-shrink: 0; }
.review-platform-google { color: #4285f4; }
.review-platform-ig { color: #d6249f; }
.review-platform-fb { color: #1877f2; }

/* Flechas (reemplazado por .jl-carousel-arrow) */

/* Dots */
.reviews-dots { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.reviews-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-300); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.reviews-dot.active { background: var(--blue-600); transform: scale(1.3); }

/* Tarjetas de plataforma */
.reviews-platforms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: .5rem;
}
.platform-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: var(--radius);
  padding: 1.1rem 1.25rem; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: box-shadow .2s, transform .15s;
}
.platform-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.platform-logo { flex-shrink: 0; display: flex; }
.platform-info { flex: 1; }
.platform-info strong { display: block; font-size: .95rem; color: var(--gray-900); }
.platform-info span { font-size: .8rem; color: var(--gray-500); }
.platform-stars { color: #f59e0b; font-size: .95rem; letter-spacing: .05em; flex-shrink: 0; }
.platform-google .platform-logo svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.1)); }
.platform-ig .platform-logo { color: #d6249f; }
.platform-fb .platform-logo { color: #1877f2; }

@media (max-width: 900px) {
  .review-card { flex: 0 0 calc(50% - .63rem); }
}
@media (max-width: 600px) {
  .review-card { flex: 0 0 100%; }
  .reviews-platforms { grid-template-columns: 1fr; }
  .reviews-arrow { display: none; }
}

/* ════════════════════════════════════════════════════════════
   MAPA
════════════════════════════════════════════════════════════ */
.map-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 3rem 0;
}
.map-section-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}
.map-info h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--blue-800);
  margin-bottom: .6rem;
}
.map-info p { color: var(--gray-700); margin-bottom: .4rem; font-size: .95rem; }
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity .2s, transform .12s;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .35);
}
.btn-maps:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.map-embed iframe { width: 100%; display: block; }
.footer-map-link {
  color: #6d4d6a;
}
.footer-map-link:hover {
  color: #3d2040;
  text-decoration: underline;
}

/* Iconos sociales en footer */
.footer-social { display: flex; gap: .6rem; margin-top: .9rem; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  color: #fff; text-decoration: none; transition: transform .15s, opacity .15s;
}
.social-btn svg { width: 26px; height: 26px; }
.social-btn:hover { transform: translateY(-2px); opacity: .85; }
.social-fb { background: #1877f2; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-wa { background: #25d366; }

/* Footer bottom con redes */
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom-social { display: flex; gap: .75rem; }
.footer-bottom-social a {
  color: rgba(255,255,255,.5); transition: color .15s;
}
.footer-bottom-social a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════
   MAYORISTA — botón nav, barra sesión, modal, precios
════════════════════════════════════════════════════════════ */

/* Botón en navbar */
.ws-nav-btn {
  display: flex; align-items: center; gap: .4rem;
  background: var(--blue-50); color: var(--blue-700);
  border: 1.5px solid var(--blue-200, #bfdbfe); border-radius: 20px;
  padding: .35rem .85rem; font-size: .78rem; font-weight: 600;
  transition: background .2s, border-color .2s; white-space: nowrap; cursor: pointer;
  flex-shrink: 0;
}
.ws-nav-btn:hover { background: var(--blue-100, #dbeafe); border-color: var(--blue-400, #60a5fa); }
.ws-nav-btn-active { background: #fef3c7 !important; color: #92400e !important; border-color: #fbbf24 !important; }

/* Barra de sesión activa */
.ws-session-bar {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #fff; display: flex; align-items: center; gap: .75rem;
  padding: .55rem 1.5rem; font-size: .82rem; flex-wrap: wrap;
}
.ws-session-icon { font-size: 1rem; }
.ws-session-logout {
  margin-left: auto; background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
  padding: .25rem .75rem; font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.ws-session-logout:hover { background: rgba(255,255,255,.28); }

/* Modal overlay */
.ws-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.ws-modal-overlay.hidden { display: none; }
.ws-modal-box {
  background: #fff; border-radius: 20px; width: 100%; max-width: 420px;
  padding: 2.5rem 2rem; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: wsFadeIn .25s ease;
}
@keyframes wsFadeIn { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
.ws-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gray-100); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 1rem; color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
}
.ws-modal-close:hover { background: var(--gray-200); }
.ws-modal-logo { font-size: 2.5rem; text-align: center; margin-bottom: .75rem; }
.ws-modal-title { font-size: 1.45rem; font-weight: 800; text-align: center; color: var(--gray-900); margin-bottom: .4rem; }
.ws-modal-sub { font-size: .88rem; color: var(--gray-500); text-align: center; margin-bottom: 1.75rem; line-height: 1.5; }
.ws-step-name { font-size: .95rem; color: var(--gray-700); margin-bottom: 1.25rem; }
.ws-first-info { font-size: .83rem; color: var(--gray-500); margin-bottom: 1rem; line-height: 1.5; }
.ws-field { margin-bottom: 1rem; }
.ws-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.ws-field input {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--gray-300);
  border-radius: 10px; font-size: .95rem; transition: border-color .2s;
  box-sizing: border-box;
}
.ws-field input:focus { outline: none; border-color: var(--blue-600); }
.ws-btn-primary {
  width: 100%; background: var(--blue-600); color: #fff;
  padding: .75rem; border-radius: 10px; font-size: .95rem; font-weight: 700;
  transition: background .2s; margin-top: .25rem; cursor: pointer;
}
.ws-btn-primary:hover { background: var(--blue-700); }
.ws-btn-link {
  display: block; width: 100%; text-align: center; margin-top: .75rem;
  background: none; color: var(--gray-500); font-size: .85rem; cursor: pointer;
  padding: .4rem; border-radius: 8px; transition: color .2s;
}
.ws-btn-link:hover { color: var(--blue-600); }
.ws-error {
  margin-top: 1rem; padding: .65rem .9rem; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 8px;
  color: #dc2626; font-size: .83rem; font-weight: 500;
}
.ws-error.hidden { display: none; }

/* Step 0 — opciones login / registro */
.ws-step0-options {
  display: flex; gap: .875rem; margin-top: .5rem;
}
.ws-option-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1.25rem .75rem; border: 2px solid var(--gray-200); border-radius: 14px;
  background: var(--gray-50); cursor: pointer; transition: all .2s; text-align: center;
}
.ws-option-btn:hover {
  border-color: var(--blue-600); background: var(--blue-50); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
}
.ws-option-icon { font-size: 1.75rem; line-height: 1; }
.ws-option-title { font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.ws-option-sub { font-size: .75rem; color: var(--gray-500); line-height: 1.3; }

/* Textarea en form registro */
.ws-field textarea {
  width: 100%; padding: .55rem .85rem; border: 1.5px solid var(--gray-200);
  border-radius: 10px; font-size: .93rem; font-family: inherit;
  transition: border-color .2s; background: #fff; box-sizing: border-box;
}
.ws-field textarea:focus { outline: none; border-color: var(--blue-500); }

/* Precios mayoristas en tarjetas */
.product-price-retail {
  font-size: .74rem; color: var(--gray-400); text-decoration: line-through; margin-bottom: .1rem;
}
.product-price-ws-label { font-size: .72rem; font-weight: 700; color: #1d4ed8; text-transform: uppercase; letter-spacing: .04em; }
.product-price-ws { font-size: 1.2rem; font-weight: 800; color: #1d4ed8; }
.product-badge-ws {
  background: #1d4ed8 !important; left: auto !important; right: .6rem !important;
}

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9998;
  width: 58px; height: 58px; border-radius: 50%;
  background: #FFA2FF; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(255,162,255,.55);
  text-decoration: none;
  animation: wa-pulse 2.5s infinite;
  transition: transform .15s, background .15s;
}
.wa-float:hover { background: #f07ef0; transform: scale(1.08); animation: none; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(255,162,255,.55); }
  50% { box-shadow: 0 4px 28px rgba(255,162,255,.85); }
}

@media (max-width: 640px) {
  .map-section-inner { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer { background: var(--blue-900); color: rgba(255,255,255,.8); padding: 3rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
}
.footer .logo-name { color: #fff; }
.footer .logo-tagline { color: rgba(255,255,255,.5); }
.footer .logo-icon { background: rgba(255,255,255,.15); }
.footer-desc { margin-top: .85rem; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.footer h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact p, .footer-contact a { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: .5rem; display: block; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0;
  text-align: center; font-size: .82rem; color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════════════════════════
   TOASTS
════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  z-index: 500; display: flex; flex-direction: column; gap: .6rem;
  pointer-events: none;
}
.toast {
  background: var(--gray-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--radius);
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn .3s ease;
  display: flex; align-items: center; gap: .6rem;
  pointer-events: all; max-width: 320px;
}
.toast-success { background: var(--green-600); }
.toast-error   { background: var(--red-600); }
.toast-info    { background: var(--blue-600); }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(120%); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .search-layout { grid-template-columns: 200px 1fr; }
  .hero-text h1 { font-size: 2.4rem; }
}

/* ── Desktop: dropdowns abiertos solamente por click ───────────────────────── */
@media (min-width: 769px) {
  /* Permitir overflow para que los paneles absolutos no se corten */
  .nav-categories { overflow: visible; }
  .nav-list { overflow: visible; }

  /* Cada li es el containing block de su dropdown */
  #navList > li { position: relative; }

  /* Los paneles usan position:absolute en desktop (no fixed),
     así CSS :hover puede controlarlos sin JS */
  .nav-dropdown,
  .nav-mega {
    position: absolute !important;
    top: 100%;
    left: 0;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .header-top { display: none; }
  .logo-tagline { display: none; }
  .menu-toggle { display: flex; }

  .header-main { padding: .55rem 0; }
  .header-main-inner {
    grid-template-columns: auto 1fr auto;
    gap: .75rem;
    align-items: center;
  }
  .logo {
    gap: .6rem;
    min-width: 0;
  }
  .logo-img { height: 58px; }
  .logo-title { font-size: 1.02rem; }
  .search-wrapper {
    order: 4;
    grid-column: 1 / -1;
    max-width: none;
  }
  .search-box {
    min-height: 46px;
    padding: .35rem .4rem .35rem .55rem;
    gap: .45rem;
  }
  .search-chip {
    height: 30px;
    padding: 0 .65rem;
    font-size: .64rem;
  }
  .search-input { font-size: .86rem; }
  .search-btn {
    width: 36px;
    height: 36px;
  }
  .header-actions {
    gap: .45rem;
    justify-self: end;
  }

  .nav-categories { display: none; }
.nav-categories.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80dvh;
  overflow-y: auto;
  z-index: 9000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  padding-top: 138px;
}

.nav-list > li > a {
  padding: .75rem 1.25rem !important;
  font-size: .95rem;
}

  /* En mobile el nav es vertical y los dropdowns se abren al tocar */
  .nav-list { flex-direction: column; }
  .nav-list > li > a { border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav-list > li > a:hover { transform: none; }
  .nav-dropdown, .nav-mega {
    position: static !important; box-shadow: none; border-radius: 0;
    border: none; background: rgba(0,0,0,.2); padding: 0;
    min-width: unset; max-width: unset;
    display: none; flex-wrap: unset;
  }
  .nav-list > li.nav-open .nav-dropdown,
  .nav-list > li.nav-open .nav-mega { display: block; }
  .nav-mega.nav-open { display: block; }
  .nav-mega-col h4 { color: rgba(255,255,255,.5); padding-left: 1.8rem; }
  .nav-dropdown a, .nav-mega-col a { color: rgba(255,255,255,.8); padding: .45rem 1.8rem; margin: 0; border-radius: 0; }
  .nav-dropdown a:hover, .nav-mega-col a:hover { background: rgba(255,255,255,.08); color: #fff; transform: none; }

  .nav-categories-menu { min-width: unset; overflow: hidden; }
  .nav-cat-item { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-cat-link { color: rgba(255,255,255,.85) !important; padding: .55rem 1.8rem !important; }
  .nav-cat-item.has-submenu.submenu-open > .nav-cat-link { color: #fff !important; background: rgba(255,255,255,.08); }
  .nav-cat-item.has-submenu.submenu-open .nav-sub-arrow { transform: rotate(90deg); }
  .nav-submenu {
    position: static;
    display: none;
    min-width: unset;
    padding: .25rem 0 .45rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,.22);
  }
  .nav-cat-item.submenu-open > .nav-submenu { display: block; }
  .nav-submenu a { color: rgba(255,255,255,.78) !important; padding: .45rem 2.6rem !important; }
  .nav-submenu-all { border-bottom: 1px solid rgba(255,255,255,.08); color: #fff !important; }
  .nav-brands-menu { min-width: unset; max-width: unset; overflow: hidden; }
  .nav-brand-grid { grid-template-columns: 1fr; }
  .nav-brand-item { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-brand-item .nav-cat-link { color: rgba(255,255,255,.85) !important; padding: .55rem 1.8rem !important; }

  .search-layout { grid-template-columns: 1fr; }
  .filters-sidebar {
    display: none; position: fixed; inset: 0;
    z-index: 250; overflow-y: auto;
    border-radius: 0;
  }
  .filters-sidebar.open { display: block; }
  .filter-toggle-btn { display: flex; }
  .btn-close-filters { display: flex; }

  .hero { padding: 1.5rem 0; }
  .hero-inner { flex-direction: column; gap: 1rem; }
  .hero-text h1 { font-size: 1.75rem; letter-spacing: -.01em; margin-bottom: .75rem; }
  .hero-text p { font-size: .95rem; margin-bottom: 1.25rem; }
  .hero-image { display: none; }
  .hero-actions { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .5rem; }
  .hero-btn-primary, .hero-btn-outline, .hero-btn-wa { padding: .5rem .8rem; font-size: .85rem; flex: 1 1 auto; text-align: center; justify-content: center; }

  .section { padding: 2rem 0; }
  .section-title { font-size: 1.35rem; margin-bottom: 1.25rem; }

  .category-card { width: 45%; max-width: 120px; padding: .6rem; gap: .4rem; }
  .category-card-icon { font-size: 1.2rem; }
  .category-card-name { font-size: .8rem; }
  .category-card-count { font-size: .7rem; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: .5rem; }
  .product-info { padding: .5rem; }
  .product-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; /* Slightly larger */
  font-weight: 800;   /* Much bolder to match the reference */
  color: #000;       /* Darker for more contrast */
  margin: 0.5rem 0;
  line-height: 1.2;
}
  .product-add-btn { padding: .4rem .8rem; font-size: .75rem; margin-top: .4rem; }
 .product-price-cash {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-900);
}
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .review-card { padding: 1rem; }
  .review-text { font-size: .8rem; }

  .price-box { padding: .75rem; }
  .price-row { padding: .4rem 0; flex-direction: column; align-items: flex-start; gap: .2rem; }
  .price-cash-val, .price-mp-val { font-size: 1rem; }

  .footer { padding: 1.5rem 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .footer-links ul { gap: .2rem; }
  .footer h4 { margin-bottom: .5rem; }

}

@media (max-width: 480px) {
  .logo-copy { display: none; }
  .logo-img { height: 54px; }
  .search-chip { display: none; }
  .hero-actions { flex-direction: column; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* ── Loading spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 32px; height: 32px;
  border: 3px solid var(--gray-200); border-top-color: var(--blue-600);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center {
  display: flex; justify-content: center; align-items: center; padding: 4rem;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: var(--serv-accent) !important;
  opacity: .5;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}
/* 🎨 Estilos para las Flechas de Navegación */

.categoriesSwiper .swiper-button-next,
.categoriesSwiper .swiper-button-prev {
    /* Color de tu acento (o el que quieras que resalte) */
    color: #ffa3ff; /* El color de tu hover: #FFA2FF */
    
    /* Si las flechas son muy pequeñas, puedes aumentar su tamaño */
    font-size: 20px; 
}

.categoriesSwiper .swiper-button-next:hover,
.categoriesSwiper .swiper-button-prev:hover {
    color: var(--serv-dark); /* Color oscuro al pasar el mouse */
}
.categories-carousel {
    padding: 60px 50px!important; /* Padding superior e inferior, 0 lateral */
}

.categories-carousel {
    padding: 0px 0;
    width: 100%;
}

.categoriesSwiper {
    width: 100%;
    overflow: hidden;
}

.categoriesSwiper .swiper-wrapper {
    align-items: stretch;
}

.categoriesSwiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}
/* FUERZA tamaño horizontal del slide */
.categoriesSwiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}



.product-img {
    width: 100%;
    height: 260px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fafafa;
    overflow: hidden;

    border-radius: 0px;
}
/* Imagen */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}


/* 2. La tarjeta: le quitamos cualquier ancho fijo en px */


/* 1. Alineamos el track a la izquierda (arregla el centrado raro) */
#popularGrid {
    display: flex !important;
    justify-content: flex-start !important; /* Alinea todo a la izquierda */
    align-items: stretch !important;       /* Mantiene todas las cards de igual altura */
    gap: 20px !important;                 /* Espacio entre perfumes */
    margin: 0 !important;
    padding: 0 10px !important;           /* Un poco de aire en los bordes */
}

/* 2. Arreglamos las flechas (les damos fondo y sombra para que resalten) */
.jl-carousel-arrow {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: #fff !important;          /* Fondo blanco para que se vea sobre la card */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; /* Sombra suave */
    border: none !important;
    color: #333 !important;
    font-size: 1.5rem !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;               /* Asegura que esté ARRIBA de las cards */
}

/* Posicionamos la flecha izquierda fuera de la card */
.jl-carousel-arrow-prev {
    left: 0px !important;               /* La sacamos un poco hacia afuera */
}

/* Posicionamos la flecha derecha fuera de la card */
.jl-carousel-arrow-next {
    right: 0px !important;              /* La sacamos un poco hacia afuera */
}




/* Diseño de flechas "Premium" (blancas, circulares y con sombra) */
.jl-carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: white !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem !important;
    color: #000 !important;
}

/* Ubicación exacta de cada flecha */
.jl-carousel-arrow[onclick*="-1"] { left: 0px !important; } /* Flecha izquierda */
.jl-carousel-arrow[onclick*="1"] { right: 0px !important; } /* Flecha derecha */
/* Forzamos que el track ocupe el 100% y no deje huecos */


/* Ajuste de las tarjetas para que midan exactamente lo mismo */
.product-card-wrapper {
    flex: 0 0 calc(33.33% - 20px) !important; /* 33% menos el gap */
    max-width: calc(33.33% - 20px) !important;
    margin: 0 !important;
}
/* Swiper: Forzamos el ancho de las diapositivas */

.categoriesSwiper .category-card {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* La imagen tiene que ser cuadrada sí o sí */
.categoriesSwiper img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 20px !important;
}
/* Contenedor del carrusel de abajo */


/* Imagen cuadrada y grande */
#popularGrid .product-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important; /* O 'cover' si preferís que llenen todo el cuadro */
    background-color: #fff !important;
    border-radius: 15px !important;
}


/* Forzamos que cada tarjeta ocupe su tercio correspondiente */
#popularGrid .product-card-wrapper {
    flex: 0 0 calc(33.33% - 20px) !important; /* El 33% del total menos el espacio del gap */
    max-width: calc(33.33% - 20px) !important;
    box-sizing: border-box !important;
}

/* Hacemos que la imagen sea un cuadrado perfecto y grande */
#popularGrid .product-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 18px !important;
    background: #fff;
}



/* Las sacamos un poquito hacia afuera para que no tapen el producto */
.arrow-left { position: absolute; left: -20px; }
.arrow-right { position: absolute; right: -20px; }




.jl-carousel-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;

    background: #fff;
    color: #111;

    font-size: 28px;
    font-weight: 300;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0,0,0,.12);

    z-index: 10;

    transition: all .2s ease;
}

.jl-carousel-arrow:hover {
    transform: scale(1.08);
    background: #111;
    color: #fff;
}

.arrow-left {
    margin-right: 12px;
}

.arrow-right {
    margin-left: 12px;
}




.jl-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.5s ease;
    align-items: stretch;
    min-width: 0;
}

#popularGrid .product-card-wrapper {
    flex: 0 0 320px;
    min-width: 320px;
    flex-shrink: 0;
}

.jl-carousel-arrow {
    flex: 0 0 auto;
    z-index: 10;
}
.product-img {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-popular-wrap {
  padding-top: 60px;
}

.category-card {
  background: var(--serv-white);
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 4px 5px var(--serv-shadow);
  transition: transform 0.3s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--serv-shadow);
}
/* ════════════════════════════════════════════════════════════
   CARRUSEL JL — bloque único, sin duplicados
════════════════════════════════════════════════════════════ */



/* Track externo */
.jl-carousel-track-outer {
  overflow: hidden;
  width: 100%;
  height: auto;
  align-self: stretch;
}

/* Track interno — el que JS mueve con translateX */
.jl-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease;
  align-items: stretch;
  min-width: 0;
  /* SIN justify-content ni margin/padding que rompan el translateX */
}

/* Cards del carrusel popular */
#popularGrid .product-card-wrapper {
  flex: 0 0 300px;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Flechas — en el flujo normal (NO absolute) */
.jl-carousel-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 10;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  /* SIN position:absolute — las flechas van en el flujo del flex */
}

.jl-carousel-arrow:hover {
  background: #111;
  color: #fff;
  transform: scale(1.08);
}

/* Imágenes de producto */
.product-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Header elevado sobre todo */
.header,
.nav-categories {
  position: sticky;
  z-index: 8000;
}

/* Mega menú */
.nav-mega {
  display: flex;
  gap: 3rem;
  padding: 1.5rem;
  min-width: 850px;
}
.mega-group { display: flex; flex-direction: column; min-width: 180px; }
.mega-group h4 { font-size: 14px; margin-bottom: 1rem; color: #b57aa1; text-transform: uppercase; letter-spacing: .08em; }
.mega-group a { padding: .45rem 0; color: #444; text-decoration: none; }
.mega-group a:hover { color: #000; }

.jl-carousel-arrow {
  align-self: center;  /* ← esto las centra dentro del wrapper estirado */
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: background .2s ease, color .2s ease;
}
.jl-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
#searchGrid .product-card-wrapper {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  overflow: visible !important;
  position: relative !important;
}

#searchGrid .product-img {
  overflow: hidden;
}
#searchGrid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}
#searchGrid {
  grid-template-columns: repeat(3, 1fr) !important;
}
.product-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  left: auto;
  background: linear-gradient(135deg, #f9a8d4, #ec4899);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .25rem .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, .4);
  z-index: 2;
}

.product-badge-ws {
  background: linear-gradient(135deg, #93c5fd, #1d4ed8);
  top: 2.5rem;
  right: .75rem;
  left: auto;
  box-shadow: 0 2px 8px rgba(29, 78, 216, .4);
}

.footer {
  background: #fff;
  padding: 2rem 0;
  border-top: none;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  color: #888;
  background: transparent;
  transition: border-color .2s, color .2s, transform .15s;
}
.social-btn:hover {
  border-color: #555;
  color: #333;
  transform: translateY(-2px);
}
.social-fb, .social-ig, .social-wa {
  background: transparent;
}
/* ════════════════════════════════════════════════════════════
   NOSOTROS
════════════════════════════════════════════════════════════ */
.about-hero {
  background: linear-gradient(135deg, #f6eef8, #fdf0f8);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid #ead5f0;
}
.about-hero h1 {
  font-size: 2.8rem;
  color: #3d2040;
  margin-bottom: .75rem;
}
.about-hero p {
  font-size: 1rem;
  color: #8d6d7c;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-body {
  padding: 3rem 1.25rem 4rem;
}
.about-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.about-card {
  background: #fff;
  border: 1px solid #ead5f0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.about-card:hover {
  box-shadow: 0 8px 24px rgba(168, 85, 247, .1);
  transform: translateY(-3px);
}
.about-card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.about-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #3d2040;
  margin-bottom: .5rem;
}
.about-card p {
  font-size: .88rem;
  color: #6d4d6a;
  line-height: 1.6;
}
.about-contact-section {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-contact-section h2 {
  font-size: 1.6rem;
  color: #3d2040;
  margin-bottom: 1.5rem;
}
.about-contact-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.about-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .95rem;
  color: #6d4d6a;
}
.about-contact-item a {
  color: #6d4d6a;
  transition: color .2s;
}
.about-contact-item a:hover { color: #3d2040; }
.about-contact-item svg { flex-shrink: 0; color: #a855f7; }
.about-social-minimal {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  color: #555;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .15s;
}
.about-social-minimal:hover {
  border-color: #a855f7;
  color: #a855f7;
  transform: translateY(-2px);
}@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
body, html {
  overflow-x: hidden;
  max-width: 100%;
}
/* GLOBAL — fuera de cualquier @media */
.categories-carousel {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.categoriesSwiper {
  position: relative;
  overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* El hero debajo */
.hero {
  position: relative;
  z-index: 1;
}
@media (max-width: 480px) {
  .categories-carousel {
    padding: 0 40px !important;
  }

  .categoriesSwiper .swiper-slide {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .category-card {
    width: 100% !important;
    padding: 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .categoriesSwiper img {
    width: 55% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    margin: 0 auto 12px !important;
    display: block !important;
  }

  .category-card p {
    font-size: .85rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    top: 35% !important;
  }
}
.nav-mobile-close {
  display: none;
}

@media (max-width: 768px) {
  #navList > li > a {
    padding: .6rem 1.25rem !important;
    font-size: .95rem;
    color: #3d2040 !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }
  #navList > li {
    margin: 0 !important;
  }
  .nav-cat-link {
    color: #3d2040 !important;
  }
  .nav-dropdown a, .nav-mega-col a {
    color: #555 !important;
  }
  .nav-mobile-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #3d2040;
    cursor: pointer;
    z-index: 10;
  }
}
@media (max-width: 768px) {
  #navCategories .container {
    padding: 0 !important;
  }
  #navList > li {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
  }
}
@media (max-width: 768px) {
  #navCategories .container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  #navList {
    padding: 0 !important;
    margin: 0 !important;
  }
  #navList > li {
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media (max-width: 768px) {
  #navList > li {
    padding: 0 !important;
    margin: 0 !important;
  }
  #navList > li > a {
    padding: .5rem 1.25rem !important;
  }
  .nav-dropdown {
    background: transparent !important;
  }
  .nav-dropdown a {
    color: #3d2040 !important;
    background: transparent !important;
  }
  .nav-cat-link {
    color: #3d2040 !important;
  }
  .nav-submenu {
    background: transparent !important;
  }
  .nav-submenu a {
    color: #3d2040 !important;
  }
}
@media (max-width: 768px) {
  #navList > li {
    min-height: 0 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #navList > li > a {
    padding: .6rem 1.25rem !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
  }
}
@media (max-width: 768px) {
  #navList {
    row-gap: 0 !important;
  }
}
@media (max-width: 768px) {
  .nav-cat-item {
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }
  .nav-cat-link {
    color: #3d2040 !important;
  }
  .nav-cat-item.has-submenu.submenu-open > .nav-cat-link {
    color: #3d2040 !important;
    background: rgba(0,0,0,.04) !important;
  }
  .nav-submenu {
    background: rgba(0,0,0,.03) !important;
  }
  .nav-submenu a {
    color: #555 !important;
  }
  .nav-brand-item {
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }
  .nav-brand-item .nav-cat-link {
    color: #3d2040 !important;
  }
}
@media (max-width: 480px) {
  #searchGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 0 8px !important;
  }

  #searchGrid .product-card-wrapper {
    width: 100% !important;
    min-width: 0 !important;
  }

  #searchGrid .product-img {
    height: 160px !important;
  }

  #searchGrid .product-name {
    font-size: .75rem !important;
  }

  #searchGrid .product-price-cash,
  #searchGrid .product-price-ws {
    font-size: .8rem !important;
  }
}
@media (max-width: 480px) {
  .about-cards {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  .price-banner {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .price-banner-divider {
    text-align: center !important;
  }

  .price-banner-item {
    width: 100% !important;
  }
}
