@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --navy: #0B1E3D;
  --teal: #0EA8A0;
  --bg: #ffffff;
  --card: #FFFFFF;
  --text: #1A2B47;
  --text-soft: #8C95A6;
  --line: #E6E9EF;
  --radius: 14px;
  --danger: #D64545;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
  background: var(--navy);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.search-wrap {
  width: 100%;
  max-width: 600px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: 0.6; font-size: 14px; color: white; }

/* Logo header */
.catalog-header {
  display: flex;
  justify-content: center;
  padding: 32px 24px 0;
}
.catalog-logo {
  height: 130px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .catalog-logo { height: 90px; }
}

/* Crumb */
.crumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.crumb .seg { cursor: pointer; padding: 4px 10px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.crumb .seg:hover { background: var(--line); color: var(--navy); }
.crumb .seg.current { color: var(--navy); font-weight: 700; background: #fff; border: 1px solid var(--line); }
.crumb .sep { opacity: 0.4; }

main { max-width: 1200px; margin: 0 auto; padding: 18px 24px 80px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.section-title { display: none; }

/* Botones */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #F3D5D5; }
.btn-danger:hover { background: #FBEAEA; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* Grid marcas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }

.brand-card {
  background: transparent;
  border: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.brand-card:hover { transform: translateY(-4px) scale(1.03); }
.brand-card img {
  width: 95%;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.brand-card .fallback {
  background: white;
  color: var(--navy);
  padding: 24px 30px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  width: 95%;
  text-align: center;
}

/* Productos lista */
.prod-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.prod-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  gap: 16px;
  cursor: pointer;
  transition: box-shadow 0.14s;
}
.prod-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.prod-info { flex: 1; }
.prod-brand { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.prod-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.prod-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}
.prod-price { font-size: 18px; font-weight: 700; color: #1D9E75; }

/* Promociones grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.promo-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.14s, transform 0.14s;
}
.promo-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.promo-card-img {
  width: 100%;
  height: 180px;
  background: #f0f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { font-size: 40px; color: #ccc; }
.promo-badge {
  background: #FF3B30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 0 10px 0;
  position: absolute;
  top: 0;
  left: 0;
}
.promo-card-body { padding: 16px; }
.promo-card-name { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.promo-card-desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 12px; }
.promo-prices { display: flex; align-items: baseline; gap: 10px; }
.promo-price-old { font-size: 14px; color: #999; text-decoration: line-through; }
.promo-price-new { font-size: 22px; font-weight: 800; color: #FF3B30; }

/* Boton flotante promociones */
.promo-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--teal);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14,168,160,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 100;
  letter-spacing: 0.02em;
}
.promo-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(14,168,160,0.55);
}

/* Empty */
.empty { padding: 40px 20px; text-align: center; color: var(--text-soft); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Modal */
.overlay {
  position: fixed; inset: 0;
  background: rgba(11,30,61,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 26px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { font-family: 'Space Grotesk', sans-serif; margin: 0 0 18px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field textarea { resize: vertical; }
.modal-actions { display: flex; gap: 8px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* Responsive */
@media (max-width: 600px) {
  .topbar { padding: 14px 16px; }
  main { padding: 14px 16px 80px; }
  .crumb { padding: 16px 16px 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .prod-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .prod-right { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .promo-fab { bottom: 20px; right: 16px; padding: 12px 20px; font-size: 14px; }
}
✅ CSS limpio listocat
✅ listocat

/* Sticker PROMOS */
.promo-fab {
  background: #FF3B30 !important;
  color: white !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 16px 28px !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 24px rgba(255,59,48,0.5) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
.promo-fab:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 12px 32px rgba(255,59,48,0.6) !important;
}

/* Sticker SVG */
.promo-fab {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-shadow: none !important;
  z-index: 100 !important;
  transition: transform 0.2s !important;
}
.promo-fab:hover {
  transform: rotate(-10deg) scale(1.1) !important;
  box-shadow: none !important;
}

/* Imagen promo */
.promo-fab {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.promo-img {
  width: 120px;
  object-fit: contain;
  transition: transform 0.2s;
}
.promo-fab:hover .promo-img {
  transform: scale(1.08) rotate(-3deg);
}

/* Imagen promo mas grande */
.promo-img {
  width: 160px !important;
}

/* Promo mas pequeño y esquinado */
.promo-img {
  width: 140px !important;
}
@media (max-width: 600px) {
  .promo-fab {
    bottom: 10px !important;
    right: 5px !important;
  }
  .promo-img {
    width: 120px !important;
  }
}

/* Logo un poco mas grande */
.catalog-logo {
  height: 150px !important;
}
@media (max-width: 600px) {
  .catalog-logo {
    height: 110px !important;
  }
}

/* Imagen en tarjeta de producto */
.prod-img {
  width: 80px;
  min-width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  .prod-img {
    width: 60px;
    min-width: 60px;
    height: 60px;
  }
}

/* Fondo transparente en imagen de producto */
.prod-img {
  background: transparent !important;
}

/* Sin fondo en imagen de producto */
.prod-img {
  background: transparent !important;
}

/* Fondo blanco imagen producto */
.prod-img {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Grid marcas 3 columnas en desktop */
@media (min-width: 601px) {
  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Grid marcas desktop */
@media (min-width: 601px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 220px)) !important;
    justify-content: center !important;
  }
}

/* Logo header mas grande */
.catalog-logo {
  height: 180px !important;
}
@media (max-width: 600px) {
  .catalog-logo {
    height: 130px !important;
  }
}




/* Boton microfono */
.mic-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  padding: 4px;
}
.mic-btn:hover { opacity: 1; }
.mic-btn.listening {
  opacity: 1;
  animation: pulse-mic 1s ease-in-out infinite;
}
@keyframes pulse-mic {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.3); }
}

/* Carrito */
.cart-btn {
  background: white;
  border: 2px solid var(--teal);
  color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cart-btn:hover { background: var(--teal); color: white; }

#cartCount {
  background: var(--teal);
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
}
.cart-btn:hover #cartCount { background: white; color: var(--teal); }

/* Modal carrito */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(11,30,61,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.cart-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}
.cart-modal h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--navy);
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.cart-item-name { font-weight: 600; font-size: 14px; flex: 1; }
.cart-item-price { color: #1D9E75; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  background: var(--line);
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--teal); color: white; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.cart-form { margin-top: 16px; }
.cart-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 32px;
  font-size: 15px;
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 12px;
  transition: opacity 0.2s;
}
.btn-whatsapp:hover { opacity: 0.88; }

/* Boton agregar en producto */
.btn-add-cart {
  background: var(--teal);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-add-cart:hover { opacity: 0.85; }
✅ listocat

/* Carrito separado */
.cart-btn {
  margin-left: 12px !important;
  flex-shrink: 0 !important;
}

/* Carrito separado */

.cart-btn {

  margin-left: 20px !important;

  flex-shrink: 0 !important;

}


/* Boton limpiar busqueda */
.clear-btn {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.clear-btn:hover { background: rgba(255,255,255,0.4); }

/* X mas pequeña */
.clear-btn {
  font-size: 11px !important;
  width: 18px !important;
  height: 18px !important;
}

/* Separar X y microfono */
.clear-btn {
  right: 44px !important;
}
✅ listocat

/* X mas grande adentro */
.clear-btn {
  font-size: 13px !important;
}

/* Banner de marca */
.brand-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-radius: 16px;
  margin-bottom: 28px;
}
.brand-banner-logo {
  height: 60px;
  object-fit: contain;
}
.brand-banner-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

/* Cards de productos */
.prod-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.prod-card-new {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.prod-card-new:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.prod-card-img {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.no-img-placeholder {
  font-size: 48px;
  opacity: 0.3;
}
.prod-card-body {
  padding: 14px 16px;
}
.prod-card-name {
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.4;
}
.prod-card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-card-price {
  font-size: 18px;
  font-weight: 800;
  color: #0EA8A0;
}

@media (max-width: 600px) {
  .prod-cards { grid-template-columns: 1fr 1fr; }
  .prod-card-img { height: 130px; }
  .brand-banner { padding: 16px 20px; }
  .brand-banner-name { font-size: 20px; }
}
