/* ===========================
   COMPUNOG — style.css
   Paleta: azul eléctrico + gris claro
   =========================== */

:root {
  --bg:        #eef0f4;
  --bg2:       #f6f7fa;
  --bg-white:  #ffffff;
  --blue-dark: #0D47A1;
  --blue:      #1565C0;
  --blue-mid:  #1976D2;
  --blue-lt:   #42A5F5;
  --blue-pale: #BBDEFB;
  --blue-xpale:#E3F2FD;
  --text:      #1a1d2e;
  --text-mid:  #4a5568;
  --text-muted:#8492a6;
  --border:    #d8dde8;
  --border-lt: #eaecf2;
  --shadow-sm: 0 2px 8px rgba(21,101,192,0.08);
  --shadow-md: 0 6px 24px rgba(21,101,192,0.14);
  --shadow-lg: 0 16px 48px rgba(21,101,192,0.18);
  --radius:    10px;
  --font-head: 'Exo 2', sans-serif;
  --font-ui:   'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(to right, #ffffff 0%, #BBDEFB 60%, #90CAF9 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ─── HEADER ─────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--blue-pale);
  box-shadow: 0 2px 16px rgba(21,101,192,0.1);
}

.manImg {
  width: 18px;
  height: 18px;
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 28px;
  display: flex; align-items: center; gap: 20px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

.logo-gem {
  width: 44px; height: 44px;
  filter: drop-shadow(0 2px 6px rgba(21,101,192,0.35));
  transition: transform 0.3s;
}
.logo:hover .logo-gem { transform: rotate(-8deg) scale(1.08); }

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 1px;
  line-height: 1;
}
.logo-compu { color: var(--text); }
.logo-nog   { color: var(--blue); }

/* Search */
.search-bar {
  flex: 1; max-width: 480px; margin: 0 auto;
  display: flex;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
  border-color: var(--blue-lt);
  box-shadow: 0 0 0 3px rgba(66,165,245,0.18);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }

.search-bar button {
  background: var(--blue);
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--blue-dark); }

/* Cart Button */
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(21,101,192,0.3);
}
.cart-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(21,101,192,0.4);
}
.cart-btn:active { transform: translateY(0); }

.cart-badge {
  background: #FF6B35;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transition: transform 0.2s;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 60px 28px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.c1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-lt), transparent 70%);
  top: -200px; right: -100px;
}
.c2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  bottom: -100px; left: 10%;
}

.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--blue-pale) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  max-width: 560px;
}

.hero-chip {
  display: inline-block;
  background: var(--blue-xpale);
  border: 1px solid var(--blue-pale);
  border-radius: 20px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-accent {
  color: var(--blue);
  position: relative;
}
.hero-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue-lt), var(--blue));
  border-radius: 2px;
}

.hero-sub {
  color: var(--text-mid);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-tags span {
  background: white;
  border: 1.5px solid var(--blue-pale);
  border-radius: 6px;
  color: var(--blue-mid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  box-shadow: var(--shadow-sm);
}

.hero-gem-wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hero-gem-svg {
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  filter: drop-shadow(0 12px 32px rgba(21,101,192,0.28));
  animation: gemFloat 4s ease-in-out infinite;
}

@keyframes gemFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

/* ─── FILTROS — DOS FILAS ────────────────────────── */
.cats-section {
  background: #E3F2FD;
  border-bottom: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.cats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--text-mid);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-btn:hover {
  border-color: var(--blue-lt);
  color: var(--blue);
  background: var(--blue-xpale);
}
.cat-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 2px 8px rgba(21,101,192,0.25);
}


/* ─── PRODUCTS ───────────────────────────────────── */
.products-section { 
  padding: 36px 0 80px;
  background: #E3F2FD;
 }

.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 10px;
}

.section-hd-right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.sort-select {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sort-select:hover,
.sort-select:focus {
  border-color: var(--blue-lt);
  box-shadow: 0 0 0 3px rgba(66,165,245,0.15);
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(to bottom, var(--blue-lt), var(--blue));
  border-radius: 4px;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

.no-results {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* ─── PRODUCT CARD ───────────────────────────────── */
.product-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-lt);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-lt);
}

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

.product-emoji-fallback {
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  width: 100%; height: 100%;
}

.modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  border-radius: 10px;
}

.product-img {
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  height: 148px;
  position: relative;
  border-bottom: 1px solid var(--border-lt);
}

.product-cat-tag {
  position: absolute; top: 10px; left: 10px;
  background: white;
  border: 1px solid var(--blue-pale);
  border-radius: 5px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  padding: 3px 8px;
}

.product-info {
  padding: 16px;
  flex: 1; display: flex; flex-direction: column;
}

.product-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.product-specs {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-lt);
}

.product-price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
}

.add-btn {
  background: var(--blue);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(21,101,192,0.22);
}
.add-btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(21,101,192,0.35);
}
.add-btn:active { transform: scale(0.96); }

/* ─── CARRITO SIDEBAR ────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg-white);
  border-left: 2px solid var(--blue-pale);
  box-shadow: -8px 0 40px rgba(21,101,192,0.14);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 2px solid var(--blue-pale);
  background: var(--blue-xpale);
}
.cart-hd-left {
  display: flex; align-items: center; gap: 10px;
}
.cart-header h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
}

.close-cart {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 12px;
  transition: all 0.2s;
}
.close-cart:hover { border-color: #e53e3e; color: #e53e3e; }

.cart-items {
  flex: 1; overflow-y: auto; padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-pale) transparent;
}

.cart-empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: 0.5; }
.cart-empty-state p {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.cart-empty-state span { font-size: 0.85rem; color: var(--text-muted); }

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-lt);
}

.cart-item-thumb {
  width: 52px; height: 52px;
  background: var(--blue-xpale);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-name {
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-price {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 800;
  color: var(--blue);
}

.cart-item-controls { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qty-controls { display: flex; align-items: center; gap: 6px; }

.qty-btn {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  transition: all 0.18s;
}
.qty-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xpale); }

.qty-num {
  font-family: var(--font-mono);
  font-size: 0.9rem; font-weight: 700;
  min-width: 22px; text-align: center;
  color: var(--text);
}

.remove-btn {
  background: transparent; border: none;
  color: #e53e3e; cursor: pointer;
  font-size: 0.68rem; font-family: var(--font-mono);
  opacity: 0.6; transition: opacity 0.2s;
}
.remove-btn:hover { opacity: 1; }

.cart-footer {
  border-top: 2px solid var(--blue-pale);
  padding: 20px 22px;
  background: var(--bg2);
}

.cart-totals { margin-bottom: 16px; }
.ct-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-mid);
}
.ct-row span:last-child { font-weight: 600; }
.ct-divider { height: 1px; background: var(--border); margin: 8px 0; }
.ct-total {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 800;
}
.ct-total span:last-child {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue);
}

.checkout-btn {
  width: 100%;
  background: #25D366;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  margin-bottom: 10px;
}
.checkout-btn:hover {
  background: #1ebe58;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.checkout-btn:active { transform: scale(0.98); }

.checkout-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.4;
}

/* ─── MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-white);
  border: 2px solid var(--blue-pale);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease-out;
  margin: auto;
  will-change: transform;
}
.modal-overlay.open .modal { transform: translateY(0); }

/* Modal grande tipo página de producto */
.modal-product { max-width: 900px; }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 6px; color: var(--text-mid);
  cursor: pointer; font-size: 0.85rem; padding: 5px 11px;
  transition: all 0.2s; z-index: 10;
}
.modal-close:hover { border-color: #e53e3e; color: #e53e3e; }

.modal-content { padding: 28px; }

/* ── Layout del modal producto ── */
.mp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .mp-layout { grid-template-columns: 1fr; gap: 20px; }
  .modal-content { padding: 20px; }
}

/* ── Galería ── */
.mp-gallery { display: flex; flex-direction: column; gap: 10px; }

.mg-wrap { display: flex; flex-direction: column; gap: 10px; }

.mg-main {
  background: #ffffff;
  border: 1.5px solid var(--blue-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.mg-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
}

.mg-emoji-big {
  font-size: 6rem;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

.mg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: white; border: 1.5px solid var(--border);
  border-radius: 50%; color: var(--text);
  cursor: pointer; font-size: 1.4rem; font-weight: 700;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s; z-index: 2;
}
.mg-arrow:hover { border-color: var(--blue); color: var(--blue); }
.mg-prev { left: 10px; }
.mg-next { right: 10px; }

.mg-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.mg-thumb {
  width: 60px; height: 60px;
  background: var(--blue-xpale);
  border: 2px solid var(--border-lt);
  border-radius: 6px; cursor: pointer; overflow: hidden;
  transition: border-color 0.18s;
}
.mg-thumb:hover { border-color: var(--blue-lt); }
.mg-thumb.active { border-color: var(--blue); }
.mg-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* ── Info columna derecha ── */
.mp-info { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }

.mp-cat-tag {
  display: inline-block;
  background: var(--blue-xpale);
  border: 1px solid var(--blue-pale);
  border-radius: 5px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 2px;
  padding: 3px 10px;
  width: fit-content;
}

.mp-name {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 800;
  color: var(--text); line-height: 1.25;
}

.mp-description {
  font-size: 0.9rem; color: var(--text-mid);
  line-height: 1.65;
  border-left: 3px solid var(--blue-pale);
  padding-left: 12px;
}

.mp-price-box {
  background: var(--blue-xpale);
  border: 1.5px solid var(--blue-pale);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.mp-price-label {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 1px;
}
.mp-price {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--blue);
}

.mp-add-btn {
  width: 100%;
  background: var(--blue);
  border: none; border-radius: 8px;
  color: white; cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 3px 12px rgba(21,101,192,0.28);
}
.mp-add-btn:hover { background: var(--blue-dark); box-shadow: 0 5px 18px rgba(21,101,192,0.38); }
.mp-add-btn:active { transform: scale(0.98); }

.mp-share-btn {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-mid);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.mp-share-btn:hover { border-color: var(--blue-lt); color: var(--blue); background: var(--blue-xpale); }

.mp-badges { display: flex; flex-direction: column; gap: 10px; }

.mp-badge {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border-lt);
  border-radius: 8px;
  padding: 12px 14px;
}
.mp-badge-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.mp-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
}
.mp-badge p {
  font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; margin: 0;
}

/* ── Tabla de specs ── */
.mp-specs-section {
  border-top: 2px solid var(--border-lt);
  padding-top: 24px;
}

.mp-specs-title {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
}
.mp-specs-title::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(to bottom, var(--blue-lt), var(--blue));
  border-radius: 4px;
}

.mp-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.mp-specs-table tr { border-bottom: 1px solid var(--border-lt); }
.mp-specs-table tr:last-child { border-bottom: none; }
.mp-specs-table tr:nth-child(even) { background: var(--bg2); }

.spec-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 10px 16px 10px 12px;
  width: 40%;
  vertical-align: top;
}
.spec-value {
  color: var(--text);
  font-weight: 600;
  padding: 10px 12px;
}


/* ─── TOAST ──────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--blue);
  border-radius: 8px;
  color: white;
  font-family: var(--font-ui);
  font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px;
  box-shadow: 0 8px 24px rgba(21,101,192,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 400;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── DESTACADOS ─────────────────────────────────── */
.featured-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(21,101,192,0.3);
}

.product-card:has(.featured-tag) {
  border-color: var(--blue-lt);
  box-shadow: 0 4px 16px rgba(21,101,192,0.12);
}

/* Botón especial Ofertas */
.cat-btn-offers { color: #c62828 !important; }
.cat-btn-offers:hover { background: #fff3e0 !important; border-bottom-color: #e53935 !important; color: #c62828 !important; }
.cat-btn-offers.active { background: #fff3e0 !important; border-bottom-color: #e53935 !important; color: #c62828 !important; }

/* ─── OFERTAS — precios y badges ────────────────── */
.offer-tag {
  display: inline-block;
  background: #e53935;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-original {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-sale { color: #e53935 !important; }

.discount-pct {
  background: #e53935;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Modal precio oferta */
.mp-price-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-price-original {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.mp-discount-pct {
  background: #e53935;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Card con oferta — borde sutil */
.product-card:has(.offer-tag) {
  border-color: #ffcdd2;
}
.product-card:has(.offer-tag):hover {
  border-color: #e53935;
}

/* ─── STOCK BADGES ───────────────────────────────── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.stock-ok  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.stock-mid { background: #fff8e1; color: #e65100; border: 1px solid #ffcc80; }
.stock-low { background: #fff3e0; color: #c62828; border: 1px solid #ef9a9a; animation: pulseLow 1.8s ease-in-out infinite; }
.stock-out { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }

@keyframes pulseLow {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

/* Versión grande para el modal */
.stock-lg {
  font-size: 0.82rem;
  padding: 7px 14px;
  margin-bottom: 0;
}

/* Botón deshabilitado en card */
.add-btn:disabled {
  background: #b0bec5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--text);
  border-top: 3px solid var(--blue);
  padding: 36px 28px;
}
.footer-inner { text-align: center; }

.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 8px;
}
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  color: white;
}
.footer-logo-text strong { color: var(--blue-lt); }

.footer-tagline {
  color: #8a9bb0;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex; align-items: center; gap: 8px;
  border-radius: 8px;
  color: white;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.social-btn:active { transform: translateY(0); }

.social-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-tk { background: #010101; border: 1px solid #333; }
.social-wa { background: #25D366; }

.footer-copy { color: #566577; font-size: 0.78rem; font-family: var(--font-mono); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding: 48px 20px 40px; min-height: auto; }
  .hero-gem-wrap { margin-top: 32px; }
  .hero-gem-svg { width: 140px; height: 140px; }
  .hero-tags { justify-content: center; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .cart-btn span:not(.cart-badge) { display: none; }

  /* Filtros en una sola fila con scroll horizontal en mobile */
  .cats-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .cats-row::-webkit-scrollbar { display: none; }
  .cat-btn {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 7px 12px;
  }
}

@media (max-width: 480px) {
  .header-inner { gap: 10px; padding: 10px 14px; }
  .logo-text { font-size: 1.2rem; }
  .logo-gem { width: 34px; height: 34px; }
  .container { padding: 0 14px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-price { font-size: 1.1rem; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ─── WHATSAPP FLOTANTE ──────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 500;
  display: flex; align-items: center; gap: 10px;
  background: #25D366;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  color: white;
  padding: 14px 20px 14px 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waAppear 0.5s ease 1s both;
}

@keyframes waAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

.wa-float-label {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Pulso para llamar la atención */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25D366;
  animation: waPulse 2.5s ease-out 2s infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 480px) {
  .wa-float { bottom: 18px; right: 18px; padding: 12px 16px 12px 14px; }
  .wa-float-label { font-size: 0.8rem; }
}

.new-tag-lg {
  position: static;
  transform: none;
  display: inline-block;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

/* Card con NUEVO — borde violeta sutil */
.product-card:has(.new-tag) {
  border-color: #DDD6FE;
}
.product-card:has(.new-tag):hover {
  border-color: #A855F7;
}
