/* ================================================
   MÍSTICA SUR — ESTILOS COMPLETOS
   ================================================ */

/* --- VARIABLES Y RESET --- */
:root {
  --bg-color: #faf9f6;
  --card-bg: #ffffff;
  --text-primary: #111111;
  --text-muted: #707070;
  --accent-color: #f7b731;
  --accent-gold: #fbc531;
  --badge-orange: #f4a261;
  --badge-green: #2a9d8f;
  --border-color: #ededed;
  --red-main: #b71c1c;
  --red-dark: #8b0000;
  --red-light: #fdecea;
  --cart-banner-bg: #fffdf0;
  --cart-banner-border: #fef1cf;
  --btn-checkout-bg: #fcc419;
  --progress-green: #2b9348;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --modal-z: 3000;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-modal: 0 8px 40px rgba(0,0,0,0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-stack); cursor: pointer; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ================================================
   HEADER
   ================================================ */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.header-top {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
  justify-content: space-between;
}

#logo { width: 54px; padding-top: 4px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.logo { display:flex; align-items:center; flex-shrink: 0; }

/* Barra de búsqueda con dropdown */
.search-bar {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 9px 15px 9px 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #f5f5f3;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search-bar input:focus {
  border-color: var(--accent-gold);
  background: #fff;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* Dropdown de búsqueda */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-modal);
  z-index: 2000;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.search-results-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f5f5f3; }
.search-result-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.search-result-info { flex: 1; }
.search-result-info .sr-title { font-size: 13px; font-weight: 600; }
.search-result-info .sr-price { font-size: 12px; color: var(--text-muted); }
.search-no-results { padding: 16px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* Iconos header */
.header-icons { display:flex; gap:16px; flex-shrink:0; }
.icon-btn {
  background: none;
  border: none;
  font-size: 21px;
  position: relative;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
  transition: color 0.2s;
}
.icon-btn:hover { color: var(--red-main); }
.cart-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #111;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.fav-badge { background: var(--red-main); }

/* Nav principal */
.main-nav { border-top: 1px solid var(--border-color); background: #fff; }
.main-nav ul { display:flex; justify-content:center; list-style:none; gap:32px; padding:12px 0; }
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text-primary); }

/* Nav de categorías (barra bajo el header) */
.cat-nav {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
  background: #fff;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-btn:hover { border-color: var(--red-main); color: var(--red-main); }
.cat-btn.active {
  background: var(--red-main);
  border-color: var(--red-main);
  color: white;
}

/* ================================================
   HERO BANNER
   ================================================ */
.hero-banner {
  background: linear-gradient(135deg, #f5ede4 60%, #ede0d4 100%);
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}
.hero-tag {
  display: inline-block;
  background: var(--red-main);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.hero-content { padding: 48px; max-width: 55%; }
.hero-content h1 {
  font-size: 38px;
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-content p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: white;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.hero-image {
  width: 45%;
  align-self: stretch;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2d4c9;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-fallback {
  background: radial-gradient(circle at center, #fff 0%, #dcd1c4 100%);
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.dot { width: 8px; height: 8px; background: rgba(0,0,0,0.2); border-radius: 50%; }
.dot.active { background: #111; }

/* ================================================
   CATEGORÍAS CARDS
   ================================================ */
.cat-cards-section { margin: 32px 0 8px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--red-main);
  margin-bottom: 18px;
}
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.cat-card:hover {
  border-color: var(--red-main);
  box-shadow: 0 4px 16px rgba(183,28,28,0.12);
  transform: translateY(-2px);
}
.cat-icon { font-size: 36px; }
.cat-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.cat-desc { font-size: 12px; color: var(--text-muted); }

/* about-section — ver definición mejorada al final */

/* ================================================
   TIENDA / NOVEDADES
   ================================================ */
.store-section { margin-bottom: 40px; }
.store-header { margin-bottom: 20px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-filter {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.btn-filter:hover { border-color: var(--red-main); color: var(--red-main); }
.btn-filter.active {
  background: var(--red-main);
  border-color: var(--red-main);
  color: white;
}
.sort-group select {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 7px 28px 7px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23707070' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  padding-right: 30px;
}
.results-count { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* Grid de productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }

.card-image-wrapper {
  position: relative;
  background: #f7f7f7;
  padding-top: 100%;
}
.card-image-wrapper img {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .card-image-wrapper img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
  text-transform: capitalize;
}
.badge-orange { background: var(--badge-orange); }
.badge-green { background: var(--badge-green); }
.badge-red { background: var(--red-main); }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  transition: all 0.2s;
}
.wishlist-btn:hover { transform: scale(1.12); }
.wishlist-btn.active { color: var(--red-main); }
.wishlist-btn.active i::before { content: "\f004"; font-weight: 900; } /* solid heart */

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}
.cat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.product-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: #111; line-height: 1.3; }
.product-brand { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.product-price { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  margin-top: auto;
  padding-bottom: 36px;
}
.stars { color: #fbc531; }
.rating-count { color: var(--text-muted); }
.add-to-cart-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #111;
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  z-index: 5;
}
.add-to-cart-btn:hover { background: var(--red-main); transform: scale(1.08); }
.add-to-cart-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* Sin resultados */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results i { font-size: 52px; margin-bottom: 14px; color: #ccc; display: block; }
.no-results p { margin-bottom: 16px; font-size: 16px; }

/* ================================================
   CONTACTO
   ================================================ */
.contact-section { padding: 40px 0; }
.contact-locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.location-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}
.location-map { width: 100%; height: 250px; }
.location-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--red-main);
  padding: 14px 16px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-address { font-size: 14px; color: var(--text-muted); padding: 0 16px 16px; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--red-main);
  color: white;
  padding: 40px 16px 20px;
  margin-top: 60px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 28px;
}
.footer-column h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.footer-column p { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-column a { color: #f0f0f0; transition: color 0.2s; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.social-icon {
  color: white;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.social-icon:hover { background: rgba(255,255,255,0.3); }
.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

/* ================================================
   MOBILE NAV BAR
   ================================================ */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border-color);
  justify-content: space-around;
  padding: 7px 0;
  z-index: 2000;
}
.mobile-nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
  position: relative;
}
.mobile-nav-item i { font-size: 19px; margin-bottom: 2px; }
.mobile-nav-item.active { color: var(--red-main); font-weight: 600; }

/* ================================================
   MODALES — BASE
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: var(--modal-z);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal lateral (carrito / favoritos) */
.modal-right {
  width: 480px;
  max-width: 100vw;
  height: 100%;
  transform: translateX(100%);
  border-radius: 0;
}
.modal-overlay.open .modal-right { transform: translateX(0); }

/* Modal centrado (producto) */
.modal-center {
  margin: auto;
  width: 780px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  border-radius: var(--radius-md);
  transform: scale(0.92) translateY(16px);
  position: relative;
  overflow-y: auto;
}
.modal-overlay.open .modal-center { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.modal-header h2 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--text-primary); }
.modal-close-abs {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.modal-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  background: #fafaf8;
}

/* ================================================
   CARRITO MODAL — CONTENIDO
   ================================================ */
.secure-checkout-banner {
  background: var(--cart-banner-bg);
  border-bottom: 1px solid var(--cart-banner-border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.secure-icon { color: var(--accent-gold); }
.secure-checkout-banner p { font-size: 12px; color: #666453; }
.secure-checkout-banner span { color: #ded9b8; margin: 0 4px; }

/* Cart items */
.cart-card-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
  transition: border-color 0.2s;
}
.cart-card-item:hover { border-color: #ddd; }
.cart-item-img-box {
  width: 86px;
  height: 86px;
  background: #fcfcfc;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img-box img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-details { flex-grow: 1; display: flex; flex-direction: column; }
.cart-item-brand { font-size: 11px; color: var(--text-muted); }
.cart-item-name { font-size: 14px; font-weight: 600; margin-top: 2px; }
.cart-item-weight { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.stock-status {
  font-size: 11px;
  color: var(--badge-green);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-weight: 500;
}
.cart-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.quantity-controller {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1px 3px;
}
.quantity-controller button {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-val { width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.item-secondary-actions { font-size: 12px; color: var(--text-muted); }
.item-secondary-actions a { text-decoration: underline; cursor: pointer; }
.item-secondary-actions a:hover { color: var(--red-main); }
.cart-item-price-box {
  align-self: flex-end;
  font-size: 15px;
  font-weight: 700;
  position: absolute;
  right: 14px;
  bottom: 12px;
}

/* Resumen inline */
.summary-card-inline { }
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
}
.summary-row.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.shipping-cost.free { color: var(--badge-green); font-weight: 600; }

/* Barra de envío gratis */
.free-shipping-progress-container {
  background: #f7f7f5;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.progress-text-wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
}
.progress-text-wrapper i { color: var(--badge-green); }
.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: #e0e0dc;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--progress-green);
  transition: width 0.4s ease;
}
.btn-checkout {
  width: 100%;
  background: var(--btn-checkout-bg);
  border: none;
  padding: 14px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
}
.btn-checkout:hover { background: #e6b000; transform: translateY(-1px); }
.clear-cart-btn {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}
.clear-cart-btn:hover { color: var(--red-main); }

/* ================================================
   FAVORITOS MODAL — CONTENIDO
   ================================================ */
.fav-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.fav-card-item:hover { border-color: #bbb; }
.fav-card-item img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f3;
  flex-shrink: 0;
}
.fav-info { flex: 1; }
.fav-info .fav-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.fav-info .fav-price { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.fav-info .fav-cat { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.fav-actions { display: flex; flex-direction: column; gap: 6px; }
.fav-add-cart {
  background: #111;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.fav-add-cart:hover { background: var(--red-main); }
.fav-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.fav-remove:hover { color: var(--red-main); }

/* ================================================
   MODAL PRODUCTO — FICHA
   ================================================ */
.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 460px;
}
.product-modal-img {
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.product-modal-img img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.product-modal-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.pmi-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); margin-bottom: 6px; }
.pmi-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.pmi-brand { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.pmi-price { font-size: 28px; font-weight: 700; color: var(--red-main); margin-bottom: 16px; }
.pmi-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.pmi-rating .stars { font-size: 15px; }
.pmi-desc { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.pmi-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; color: white; }
.pmi-stock { font-size: 13px; color: var(--badge-green); display: flex; align-items: center; gap: 6px; margin-bottom: 20px; font-weight: 500; }
.pmi-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pmi-actions .btn-add-cart {
  flex: 1;
  background: #111;
  color: white;
  border: none;
  padding: 13px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.pmi-actions .btn-add-cart:hover { background: var(--red-main); }
.pmi-actions .btn-fav-modal {
  background: none;
  border: 1px solid var(--border-color);
  padding: 13px 16px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.pmi-actions .btn-fav-modal:hover { border-color: var(--red-main); color: var(--red-main); }
.pmi-actions .btn-fav-modal.active { color: var(--red-main); }

/* ================================================
   TOAST NOTIFICACIÓN
   ================================================ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================
   RESPONSIVE — ver al final del archivo (sección actualizada)
   ================================================ */

/* ================================================
   GALERÍA MULTI-FOTO — Modal producto
   ================================================ */

/* Wrapper principal de galería */
.product-modal-img {
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-main-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: #f0f0ee;
}

/* Área de zoom */
.gallery-zoom-area {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}
.gallery-zoom-area img {
    max-width: 90%;
    max-height: 340px;
    object-fit: contain;
    transition: transform 0.1s linear, opacity 0.18s;
    pointer-events: none;
    display: block;
}
.gallery-zoom-area.zooming img {
    transition: none;
}
.gallery-zoom-area.zooming {
    cursor: crosshair;
}

/* Hint de zoom */
.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}
.gallery-zoom-area.zooming .zoom-hint { opacity: 0; }

/* Flechas de navegación */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.gallery-nav:hover { background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }

/* Dots de galería */
.gallery-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 8px 0 4px;
}
.gdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gdot.active { background: var(--red-main); transform: scale(1.25); }

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px 12px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    justify-content: center;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #eee;
    transition: border-color 0.2s, transform 0.15s;
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-btn:hover { transform: scale(1.06); }
.thumb-btn.active { border-color: var(--red-main); }

/* Badge de cantidad de fotos en la card del catálogo */
.img-count-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

/* ================================================
   LIGHTBOX — pantalla completa
   ================================================ */
#msLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.28s;
}
#msLightbox.lb-open { background: rgba(0,0,0,0.92); }

.lb-overlay {
    position: absolute;
    inset: 0;
}
.lb-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
}
#lbMainImg {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    transition: opacity 0.16s;
    display: block;
}
.lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,0.28); }
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ================================================
   SELECTOR DE CANTIDAD — Modal producto
   ================================================ */
.pmi-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pmi-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.pmi-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 25px;
    padding: 2px 4px;
    gap: 2px;
    background: #fff;
}
.pmi-qty-ctrl button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: background 0.15s;
}
.pmi-qty-ctrl button:hover:not(:disabled) { background: #f0f0ee; }
.pmi-qty-ctrl button:disabled { color: #ccc; cursor: not-allowed; }
.pmi-qty-ctrl span {
    min-width: 32px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}
.pmi-qty-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--red-main);
    white-space: nowrap;
}

/* ================================================
   RESPONSIVE galería / lightbox
   ================================================ */
@media (max-width: 768px) {
    .product-modal-img {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        min-height: 240px;
    }
    .gallery-main-wrap { min-height: 200px; }
    .gallery-zoom-area { min-height: 200px; }
    .gallery-zoom-area img { max-height: 210px; }
    .thumb-btn { width: 46px; height: 46px; }
    .lb-nav { width: 40px; height: 40px; font-size: 17px; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .pmi-qty-row { gap: 10px; }
}

/* ── Placeholder imagen sin foto ──────────────────── */
.img-ph {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ece6;
    color: #ccc;
    font-size: 32px;
}
.img-ph-sm {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ece6;
    border-radius: 6px;
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
}
.card-image-wrapper .img-ph {
    position: absolute;
    inset: 0;
    min-height: unset;
    border-radius: 0;
}
.img-error { background: #f5f5f3; }

/* ================================================
   LOGO FALLBACK & HEADER FIXES
   ================================================ */
.logo-fallback {
  display: none;
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--red-main);
}
.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile search toggle: oculto en desktop */
.mobile-search-toggle { display: none; }

/* Mobile search bar expandible */
.mobile-search-bar {
  display: none;
  position: relative;
  padding: 8px 14px 10px;
  background: #fff;
  border-top: 1px solid var(--border-color);
}
.mobile-search-bar input {
  width: 100%;
  padding: 9px 40px 9px 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #f5f5f3;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.mobile-search-bar input:focus {
  border-color: var(--accent-gold);
  background: #fff;
}
.mobile-search-bar .search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}
.mobile-search-close {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.mobile-search-bar.open { display: block; }

/* ================================================
   ABOUT SECTION — mejorada
   ================================================ */
.about-section {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 48px 0;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}
.about-text { flex: 1; }
.about-text p {
  color: #444;
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 15px;
}
.about-img {
  width: 380px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ================================================
   NOVEDADES GRID
   ================================================ */
.novedades-section {
  margin: 48px 0;
}
.novedades-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.novedades-sub a {
  color: var(--red-main);
  font-weight: 600;
  text-decoration: underline;
}
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.novedad-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.novedad-card:hover {
  box-shadow: 0 6px 24px rgba(183,28,28,0.1);
  transform: translateY(-3px);
}
.novedad-icon { font-size: 42px; margin-bottom: 14px; }
.novedad-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.novedad-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.btn-novedad {
  display: inline-block;
  background: var(--red-main);
  color: white;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-novedad:hover { background: var(--red-dark); }

/* ================================================
   CONTACT — botón WhatsApp en location card
   ================================================ */
.location-info {
  padding: 14px 16px 16px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,211,102,0.15);
  color: #1a7a3a;
  border: 1px solid rgba(37,211,102,0.3);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: rgba(37,211,102,0.28); }

/* Footer social links mejorado */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: white;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
  width: fit-content;
}
.social-icon:hover { background: rgba(255,255,255,0.28); }
.social-icon.whatsapp { background: rgba(37,211,102,0.25); }
.footer-mayorista {
  margin-top: 12px !important;
  font-size: 12px !important;
  opacity: 0.7;
}

/* Mobile nav item: position relative para badge */
.mobile-nav-item { position: relative; }

/* ================================================
   RESPONSIVE — REEMPLAZA LAS ANTIGUAS
   ================================================ */

/* Tablet: 768 – 992 */
@media (max-width: 992px) {
  /* Novedades: 2 columnas en tablet */
  .novedades-grid { grid-template-columns: repeat(2, 1fr); }

  /* About: columna */
  .about-section { flex-direction: column; gap: 28px; padding: 28px; }
  .about-img { width: 100%; }
  .about-img img { height: 240px; }

  /* Contacto: 1 columna */
  .contact-locations { grid-template-columns: 1fr; gap: 20px; }

  /* Footer */
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  /* Modales */
  .modal-right { width: 420px; }
  .product-modal-body { grid-template-columns: 1fr; }
  .product-modal-img {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    min-height: 220px;
  }
  .product-modal-info { padding: 24px; }
}

/* Mobile: ≤ 768 */
@media (max-width: 768px) {
  body { padding-bottom: 70px; }

  /* Header: fila única limpia en mobile */
  .header-top {
    padding: 10px 12px;
    gap: 8px;
  }
  /* Nav desktop oculto */
  .main-nav { display: none; }

  /* Menú abierto */
  .header.open .main-nav {
    display: block;
    background: #fff;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }
  .header.open .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .header.open .main-nav li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  .header.open .main-nav a {
    display: flex;
    padding: 13px 20px;
    justify-content: flex-start;
    font-size: 14px;
  }

  /* Lupa mobile visible */
  .mobile-search-toggle { display: flex; }

  /* Menú toggle visible */
  .menu-toggle { display: block; }

  /* Hero */
  .hero-banner { flex-direction: column-reverse; min-height: auto; }
  .hero-content { padding: 28px 20px; max-width: 100%; text-align: center; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .hero-image { width: 100%; height: 200px; }

  /* About */
  .about-section { padding: 22px 18px; gap: 22px; margin: 28px 0; }
  .about-text p { font-size: 14px; }
  .about-img img { height: 200px; }

  /* Novedades: 1 columna en mobile */
  .novedades-grid { grid-template-columns: 1fr; gap: 14px; }
  .novedad-card { padding: 22px 18px; }

  /* Contacto */
  .contact-locations { grid-template-columns: 1fr; }

  /* Footer */
  .footer-content { grid-template-columns: 1fr; gap: 18px; }
  .footer { padding: 28px 16px 16px; }

  /* Mobile nav */
  .mobile-nav-bar { display: flex; }

  /* Modales bottom-sheet en mobile */
  .modal-right {
    width: 100%;
    height: 92vh;
    margin-top: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: translateY(100%);
  }
  .modal-overlay { align-items: flex-end; justify-content: stretch; }
  .modal-overlay.open .modal-right { transform: translateY(0); }
  .modal-center {
    max-height: 90vh;
    margin: auto 8px;
    border-radius: var(--radius-md);
  }

  /* Modal producto */
  .pmi-price { font-size: 22px; }
  .pmi-actions { flex-direction: column; }
  .pmi-actions .btn-add-cart { width: 100%; }
  .product-modal-body { grid-template-columns: 1fr; }
  .product-modal-img { border-radius: var(--radius-md) var(--radius-md) 0 0; }
}

/* Mobile chico: ≤ 480 */
@media (max-width: 480px) {
  .hero-content { padding: 22px 16px; }
  .hero-content h1 { font-size: 22px; }
  .hero-image { height: 160px; }
  .about-section { padding: 18px 14px; }
  .Subtitulos { font-size: 19px; }
  .novedades-section { margin: 28px 0; }
  .novedad-icon { font-size: 34px; }
  .novedad-card h3 { font-size: 15px; }
  .location-map iframe { height: 200px; }
  .footer-column h3 { font-size: 15px; }
}


/*  ===============================================
   RESPONSIVE — GALERÍA MULTI-FOTO
   ================================================ */
   /* Estilos del contenedor principal */
 
   