﻿:root {
  --bg: #000000;
  --bg-soft: #070707;
  --surface: #0d0d0d;
  --surface-2: #151515;
  --border: #1f1f1f;
  --border-soft: #181818;
  --text: #e8eef5;
  --text-soft: #9aa7b8;
  --text-dim: #6b7a8c;
  --cyan: #e20010;
  --violet: #8f000c;
  --amber: #f59e0b;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(135deg, #e20010 0%, #8f000c 100%);
  --grad-soft: linear-gradient(135deg, rgba(226,0,16,.14), rgba(143,0,12,.14));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(226,0,16,.25), 0 20px 60px rgba(143,0,12,.18);
  --font-head: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --container: 1200px;
}

/* ============ TEMA CLARO ============ */
html[data-theme="light"] {
  --bg: #f2f4f7;
  --bg-soft: #e8ebf0;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #d9dfe7;
  --border-soft: #e2e7ed;
  --text: #12161c;
  --text-soft: #4a5564;
  --text-dim: #7b8a9c;
  --grad: linear-gradient(135deg, #e20010 0%, #8f000c 100%);
  --grad-soft: linear-gradient(135deg, rgba(226,0,16,.10), rgba(143,0,12,.10));
  --shadow: 0 10px 40px rgba(20,28,40,.12);
  --shadow-glow: 0 0 0 1px rgba(226,0,16,.18), 0 20px 60px rgba(143,0,12,.08);
}

/* Zonas esenciales que conservan el negro aunque haya tema claro */
html[data-theme="light"] header {
  --surface: #10151c;
  --surface-2: #181e27;
  --border: #2a3442;
  --border-soft: #1b222b;
  --text: #e8eef5;
  --text-soft: #9aa7b8;
  --text-dim: #6b7a8c;
}
html[data-theme="light"] footer {
  --bg-soft: #0a0b0d;
  --surface: #10151c;
  --border: #262d37;
  --border-soft: #1b222b;
  --text: #e8eef5;
  --text-soft: #9aa7b8;
  --text-dim: #6b7a8c;
}
html[data-theme="light"] .hero {
  --bg: #000000;
  --bg-soft: #070707;
  --surface: #0d0d0d;
  --surface-2: #151515;
  --border: #1f1f1f;
  --border-soft: #16181c;
  --text: #e8eef5;
  --text-soft: #9aa7b8;
  --text-dim: #6b7a8c;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(226,0,16,.25), 0 20px 60px rgba(143,0,12,.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(143,0,12,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(143,0,12,.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-danger {
  background: rgba(248,113,113,.12);
  color: var(--red);
  border: 1px solid rgba(248,113,113,.35);
}
.btn-danger:hover { background: rgba(248,113,113,.2); }

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(226,0,16,.45);
}
.btn-outline-cyan:hover { background: rgba(226,0,16,.1); }

.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-disabled { opacity: .45; pointer-events: none; }

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 20px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 60px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 0; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--cyan); }

.nav-search {
  flex: 0 1 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  max-width: 380px;
  transition: border-color .2s;
}
.nav-search:focus-within { border-color: var(--cyan); }
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; width: 100%;
}
.nav-search svg { flex-shrink: 0; color: var(--text-dim); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-btn .badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px; height: 19px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.icon-btn .badge.hidden { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

/* ============ CLIENTES ============ */
.client-btn {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.client-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.client-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.client-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(143,0,12,.4); }
.client-btn svg { flex-shrink: 0; }
.client-btn.logged { position: relative; }
.client-btn.logged::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--surface);
}
@media (max-width: 1080px) {
  .client-btn span { display: none; }
  .client-btn { width: 42px; padding: 0; justify-content: center; }
}
.modal-body input.pin-input { text-align: center; font-size: 18px; letter-spacing: 10px; font-weight: 700; }
.cl-hint { color: var(--text-dim); font-weight: 400; font-size: 12px; }
.cl-link {
  display: inline-block; margin: 0 0 14px; padding: 0;
  background: none; border: none;
  color: var(--cyan); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}
.cl-link:hover { color: var(--text); }
.client-account-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.client-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  margin: 0 auto 14px;
}
.client-account-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.client-account-row:last-of-type { border-bottom: none; }
.client-account-row span { color: var(--text-dim); }
.client-account-row strong { color: var(--text); text-align: right; word-break: break-word; }

/* ---------- Mi cuenta: pedidos y carrito ---------- */
.cu-stats {
  display: flex; justify-content: space-between; gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.cu-section { margin-bottom: 20px; }
.cu-section h4 {
  font-family: var(--font-head);
  font-size: 14px; margin-bottom: 4px;
}
.cu-hint { font-size: 13px; color: var(--text-dim); padding: 6px 0; }
.cu-pedido {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.cu-pedido:last-child { border-bottom: none; }
.cu-fecha { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.cu-der { text-align: right; }
.cu-total { display: block; font-weight: 700; margin-top: 4px; }
.cu-est {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.cu-est.Nuevo { color: #ff6b6b; background: rgba(255,107,107,.12); }
.cu-est.Procesando { color: #ffb020; background: rgba(255,176,32,.12); }
.cu-est.Enviado { color: #4ea1ff; background: rgba(78,161,255,.12); }
.cu-est.Entregado { color: #2fd06f; background: rgba(47,208,111,.12); }
.cu-est.Cancelado { color: #8b9bb0; background: rgba(139,155,176,.12); }

/* ---------- Seguimiento de pedidos ---------- */
.seg-grid { display: grid; gap: 18px; padding: 26px 0 60px; max-width: 720px; }
.seg-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.seg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.seg-head strong { font-size: 15px; }
.seg-fecha { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.seg-items { border-top: 1px dashed var(--border); padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.seg-item { display: flex; justify-content: space-between; gap: 10px; }
.seg-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 12px; }
.seg-timer { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.seg-timer strong { color: var(--red); font-variant-numeric: tabular-nums; }
.seg-hint { margin-top: 12px; font-size: 12px; color: var(--text-dim); text-align: center; }
.seg-wa .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cu-carrito-total {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 0 4px; margin-top: 4px;
  border-top: 1px solid var(--border-soft);
  font-weight: 700;
}

.bottom-nav { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(143,0,12,.28), transparent 60%),
    radial-gradient(600px 380px at 10% 110%, rgba(226,0,16,.2), transparent 60%),
    var(--bg);
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 500px at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 44px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  min-height: 100%;
  box-sizing: border-box;
}
.hero-brand-logo {
  width: 240px;
  max-width: 82%;
}
.hero-brand-tag {
  font-size: 14px;
  color: #a9b7cc;
  letter-spacing: 0.02em;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(226,0,16,.3);
  background: rgba(226,0,16,.08);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero p.lead {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .num { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.stat .lbl { color: var(--text-dim); font-size: 13px; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-image {
  position: relative;
  padding: 12px;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image img {
  position: relative;
  width: 100%;
  max-width: 2000px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.45));
  opacity: 0;
  transform: scale(1.5);
  transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.hero-image img.hero-ready {
  opacity: 1;
  transform: scale(1);
}
.hero-image img.dragging {
  cursor: grabbing;
}
.hero-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  padding: 30px;
  box-shadow: var(--shadow-glow);
  transform: rotate(2deg);
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hero-card-top .chip {
  font-size: 12px; font-weight: 600;
  color: var(--green);
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.25);
  padding: 5px 12px; border-radius: 999px;
}
.hero-card-top .chip.off { color: var(--amber); background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); }
.hero-card img { border-radius: 16px; margin-bottom: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-card h3 { font-size: 20px; margin-bottom: 8px; }
.hero-card .price-row { display: flex; align-items: center; gap: 12px; }
.hero-card .price-row .now { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.hero-card .price-row .old { color: var(--text-dim); text-decoration: line-through; font-size: 14px; }

.hero-card.brand-card { text-align: center; padding: 36px 30px; }
.hero-card.brand-card .hero-card-top { margin-bottom: 24px; }
.hero-card.brand-card .brand-logo { margin-bottom: 18px; }
.hero-card.brand-card .brand-logo img { width: 120px; height: auto; aspect-ratio: auto; margin: 0 auto; border-radius: 0; background: none; }
.hero-card.brand-card h3 { font-size: 32px; margin-bottom: 8px; }
.hero-card.brand-card .brand-tag { color: var(--text-soft); font-size: 15px; margin: 0 auto 24px; max-width: 260px; }
.hero-card.brand-card .brand-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--cyan);
  background: var(--grad-soft); border: 1px solid rgba(226,0,16,.3);
  padding: 9px 18px; border-radius: 999px;
}

.hero-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float.f1 { top: -20px; right: -10px; }
.hero-float.f2 { bottom: -20px; left: -14px; animation-delay: 2.5s; }
.hero-float .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.hero-float strong { font-family: var(--font-head); font-size: 14px; display: block; }
.hero-float span { font-size: 12px; color: var(--text-dim); }

/* ============ HERO CARRUSEL (destacados) ============ */
.hero-carousel { position: relative; }
.feat-carousel { position: relative; }

/* Animaciones de entrada de la portada principal (estática) */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-anim .hero-content { animation: heroUp .8s cubic-bezier(.25,.8,.25,1) both; }
.hero-anim .hero-visual { animation: heroFade .9s ease both .18s; }
.hero-anim .hero-stats { animation: heroUp .8s cubic-bezier(.25,.8,.25,1) both .4s; }
.hero-track { display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .65s cubic-bezier(.25,.8,.25,1); }
.feat-viewport { position: relative; overflow: hidden; }
.hero-slide { flex: 0 0 auto; min-width: 100%; box-sizing: border-box; }
.hs-rating { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; margin-bottom: 12px; }
.hs-rating .stars { color: var(--amber); letter-spacing: 1px; }
.hs-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hs-price .now { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--text); }
.hs-price .old { color: var(--text-dim); text-decoration: line-through; font-size: 16px; }
.hs-price .off {
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
/* ============ SLIDES DE PRODUCTOS DESTACADOS (diseño profesional) ============ */
/* Categoría del producto sobre el título */
.hero-product .hs-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.hero-product .hs-cat::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--grad);
}
.hero-product h1 { margin-bottom: 12px; }
.hero-product .lead { margin-bottom: 16px; }

/* Sellos de confianza bajo el precio */
.hero-product .hs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
}
.hero-product .hs-meta span {
  font-size: 12.5px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-product .hs-meta span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Marco de la foto del producto destacado */
.hero-slide .hero-image.hs-frame {
  position: relative;
  background:
    radial-gradient(340px 340px at 28% 18%, rgba(226,0,16,.2), transparent 60%),
    radial-gradient(340px 340px at 78% 88%, rgba(143,0,12,.24), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  border: 1px solid rgba(226,0,16,.3);
  border-radius: 28px;
  box-shadow: var(--shadow-glow);
  padding: 14px;
  overflow: hidden;
}
.hero-slide .hero-image img.hs-img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  opacity: 1;
  transform: none;
  transition: none;
  filter: none;
  cursor: default;
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}

/* Etiqueta flotante de descuento sobre la foto */
.hs-off-tag {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 3;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(226,0,16,.45);
  letter-spacing: .3px;
}
/* Etiqueta de disponibilidad */
.hs-stock-tag {
  position: absolute;
  bottom: 26px;
  left: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,14,22,.82);
  border: 1px solid rgba(52,211,153,.35);
  color: #d8ffec;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hs-stock-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.hs-stock-tag.sold {
  border-color: rgba(248,113,113,.4);
  color: #ffdada;
}
.hs-stock-tag.sold .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.hero-card.product { transform: rotate(2deg); }
.hero-card.product .pc-chip {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(0,0,0,.7);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226,0,16,.35);
}
.hero-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10,14,22,.85);
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.hero-nav:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-nav.prev { left: -22px; }
.hero-nav.next { right: -22px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}
.hero-dots button.active { background: var(--cyan); width: 28px; }
.hero-count {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ FEATURES STRIP ============ */
.features {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 20px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature .fic {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.feature strong { font-size: 15px; display: block; }
.feature span { font-size: 12.5px; color: var(--text-dim); }

/* ============ SECTIONS ============ */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.01em; }
.section-head p { color: var(--text-dim); margin-top: 8px; font-size: 15px; }
.section-head .link {
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.section-head .link:hover { border-color: var(--cyan); }

/* ============ HERO DESTACADO (debajo del hero principal) ============ */
.hero-feat {
  padding: 48px 0 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.hero-feat-head { margin-bottom: 28px; }
.hero-feat .hero-carousel { margin-top: 6px; }
.hero-feat .hero-slide { padding: 0 6px; }

/* ============ EMPTY STATES ============ */
.empty-section {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-section .empty-ic {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.empty-section h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.empty-section p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }

/* ============ PRODUCT CARDS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(226,0,16,.4); box-shadow: var(--shadow-glow); }

.product-media { position: relative; background: #0a0f16; overflow: hidden; aspect-ratio: 1 / 1; }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media img.movable {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--zoom, 125%);
  height: var(--zoom, 125%);
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%) scale(var(--hov, 1));
}
.product-card:hover .product-media img.movable {
  --hov: 1.06;
  transform: translate(-50%, -50%) scale(var(--hov, 1));
}

.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.product-tag.soldout { background: #3b4757; }
.product-tag.new { background: var(--green); }
.product-off {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: rgba(245,158,11,.92);
  color: #1a1206;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
}

.product-quick {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  transform: translateY(100%);
  transition: transform .3s ease;
}
.product-card:hover .product-quick { transform: translateY(0); }
/* Copia de la botonera que se usa EN FLUJO (debajo del precio) en móvil;
   en escritorio se oculta porque la superpuesta (q-overlay) es la activa. */
.product-quick.q-inline { display: none; }

.product-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-cat { font-size: 9.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-dim); overflow-wrap: anywhere; line-height: 1.3; }
.product-name {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 33px;
}
.product-name:hover { color: var(--cyan); }
.product-rating { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-soft); }
.product-rating .stars { color: var(--amber); letter-spacing: 1px; }
/* Cantidad disponible en stock en cada tarjeta de producto */
.product-stock {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--green);
}
.product-stock .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  flex: none;
}
.product-stock.low { color: var(--amber); }
.product-stock.low .dot { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.product-stock.out { color: var(--red); }
.product-stock.out .dot { background: var(--red); box-shadow: 0 0 6px var(--red); }
.product-footer { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; row-gap: 2px; }
.price-row .now { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--cyan); }
.price-row .old { color: var(--text-dim); font-size: 11px; text-decoration: line-through; }
.btn-add {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(226,0,16,.35);
  background: rgba(226,0,16,.08);
  color: var(--cyan);
  font-weight: 600;
  font-size: 13.5px;
  transition: all .2s;
}
.btn-add:hover { background: var(--grad); color: #fff; border-color: transparent; }

.product-quick { display: flex; gap: 6px; }
.btn-buy {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-buy:hover { box-shadow: 0 8px 22px rgba(226,0,16,.4); filter: brightness(1.05); }
.btn-buy:active { transform: scale(.92); filter: brightness(.88); }
.btn-buy.pulse { animation: btnPulse .5s ease; }
.btn-buy.btn-disabled { cursor: not-allowed; opacity: .55; }
.btn-buy.btn-disabled:hover { box-shadow: none; filter: none; }
/* Botón "COMPRAR ART. SIMILAR" (agotados): rojo más oscuro con pulso de onda para
   que se vea claramente en móvil y escritorio. Abre WhatsApp pidiendo opciones. */
.btn-buy.btn-similar {
  background: linear-gradient(135deg, #a3000c, #50000a);
  font-size: 10.5px;
  padding: 8px 6px;
  white-space: normal;
  line-height: 1.2;
  animation: similarPulso 1.8s ease-in-out infinite;
}
.btn-buy.btn-similar:hover { box-shadow: 0 8px 22px rgba(163,0,12,.45); filter: brightness(1.08); }
.btn-buy.btn-similar:active { transform: scale(.92); filter: brightness(.85); }
@keyframes similarPulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163,0,12,.55); }
  50% { box-shadow: 0 0 0 8px rgba(163,0,12,0); }
}
@keyframes btnPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
/* Botón "COMPRAR AHORA": pulso constante (anillo + agrandado) para invitar al
   clic. Se ve en escritorio y móvil; el hover no lo desactiva. */
.comprar-ahora {
  position: relative;
  animation: comprarPulso 1.6s ease-in-out infinite;
}
.comprar-ahora:hover { animation: comprarPulso 1.6s ease-in-out infinite; }
.comprar-ahora:active { animation: none; transform: scale(.93); filter: brightness(.9); }
@keyframes comprarPulso {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226,0,16,.55), 0 10px 30px rgba(143,0,12,.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(226,0,16,0), 0 14px 40px rgba(143,0,12,.5); }
}
/* Botón "COMPRAR ART. SIMILAR" en la página de detalle (agotados) */
.comprar-similar-lg {
  background: linear-gradient(135deg, #a3000c, #50000a);
  animation: similarPulso 1.8s ease-in-out infinite;
}
.comprar-similar-lg:hover { animation: similarPulso 1.8s ease-in-out infinite; filter: brightness(1.08); }
.comprar-similar-lg:active { animation: none; transform: scale(.93); filter: brightness(.9); }
.btn-add-icon {
  position: relative;
  width: 40px;
  flex: none;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.btn-add-icon:hover { background: rgba(255,255,255,.18); }
.btn-add-icon:active { transform: scale(.88); }
.btn-add-icon.btn-disabled { cursor: not-allowed; opacity: .55; }
.badge-plus {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  color: #0a0f16;
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

/* ============ CATEGORIES ============ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 22px;
  min-height: 130px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all .3s;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .3s;
}
.cat-card:hover { border-color: rgba(143,0,12,.5); transform: translateY(-4px); }
.cat-card:hover::before { opacity: 1; }
.cat-card h3 { position: relative; z-index: 1; font-size: 17px; }
.cat-card span { position: relative; z-index: 1; font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.cat-card .cat-ic {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}

/* ============ OFFER BANNER ============ */
.offer-banner {
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 300px at 90% 20%, rgba(143,0,12,.3), transparent 60%),
    radial-gradient(400px 260px at 5% 90%, rgba(226,0,16,.22), transparent 60%),
    var(--surface);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.offer-banner .kicker { color: var(--amber); font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.offer-banner h3 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 8px; }
.offer-banner p { color: var(--text-soft); max-width: 460px; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .3s;
}
.testimonial:hover { border-color: rgba(226,0,16,.35); }
.testimonial .stars { color: var(--amber); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.testimonial-author strong { font-size: 14px; display: block; }
.testimonial-author span { font-size: 12px; color: var(--text-dim); }
.t-badge { font-size: 10px; background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.2); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

.trust-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-item {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.trust-item .big { font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.trust-item span { color: var(--text-dim); font-size: 13.5px; }

/* ============ NEWSLETTER ============ */
.newsletter {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(226,0,16,.1), rgba(143,0,12,.1));
  padding: 44px;
  text-align: center;
}
.newsletter h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.newsletter p { color: var(--text-soft); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--cyan); }
.newsletter-cta { margin: 4px 0 22px; }

/* Estado de carga: texto centrado con pulso suave (tienda) */
.loading-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
  font-size: 15px;
  letter-spacing: .4px;
  animation: loadingPulse 1.4s ease-in-out infinite;
}
.products-grid > .loading-state { grid-column: 1 / -1; }
@keyframes loadingPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--border-soft); background: var(--bg-soft); color: var(--text); margin-top: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; margin: 16px 0 20px; max-width: 280px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: all .2s;
}
.socials a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.footer-contact svg { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer-bottom .dev a { color: var(--text-soft); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.footer-bottom .dev a svg { color: var(--green); flex-shrink: 0; }
.footer-bottom .dev a:hover { color: var(--cyan); }

/* ============ PAGE HEADER ============ */
.page-hero { padding: 46px 0 40px; border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero .crumbs { color: var(--text-dim); font-size: 13.5px; margin-bottom: 10px; }
.page-hero .crumbs a:hover { color: var(--cyan); }
.page-hero p.sub { color: var(--text-soft); margin-top: 8px; }

/* ============ CATALOG ============ */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 40px 20px 70px; }
.filters { position: sticky; top: 90px; align-self: start; }
.filters-close { display: none; }

/* Lista de categorías (menú hamburguesa / panel lateral) */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
}
.cat-item:hover { background: var(--surface-2); color: var(--text); }
.cat-item.active { background: var(--grad-soft); color: var(--cyan); }
.cat-item .ci-check { color: var(--cyan); font-weight: 700; }
#btnAplicar { margin-top: 24px; }

.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.filter-card + .filter-card { margin-top: 16px; }
.filter-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-soft); margin-bottom: 16px; }
.filter-card label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-soft); cursor: pointer; transition: all .15s; }
.filter-card label:hover { background: var(--surface-2); color: var(--text); }
.filter-card label + label { margin-top: 8px; }
.filter-card input[type="checkbox"], .filter-card input[type="radio"] { accent-color: var(--cyan); }

/* Select profesional (Ordenar por) */
.sel-wrap { position: relative; }
.sel-wrap .sort {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.sel-wrap .sort:hover { border-color: rgba(226,0,16,.45); }
.sel-wrap .sort:focus, .sel-wrap.open .sort { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(226,0,16,.14); }
.sel-chev { color: var(--text-dim); pointer-events: none; transition: transform .2s; flex-shrink: 0; }
.sel-wrap.open .sel-chev { transform: rotate(180deg); }
.sel-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sel-wrap.open .sel-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sel-menu .sel-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .12s;
}
.sel-menu .sel-opt:hover { background: var(--surface-2); color: var(--text); }
.sel-menu .sel-opt.active { background: var(--grad-soft); color: var(--cyan); font-weight: 600; }
.sel-menu .sel-opt.active::after { content: "✓"; font-weight: 700; }
.sel-menu .sel-opt + .sel-opt { margin-top: 2px; }

/* Precio máximo */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .5px;
}
.price-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(226,0,16,.14);
  margin-right: 2px;
}
.price-badge span { font-size: 26px; }
.filter-card input[type="range"] { width: 100%; margin-top: 14px; cursor: pointer; }
input[type="range"].red-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  outline: none;
  cursor: pointer;
}
input[type="range"].red-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; }
input[type="range"].red-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--cyan);
  box-shadow: 0 2px 10px rgba(143,0,12,.5);
  margin-top: -7px;
  cursor: pointer;
  transition: transform .15s;
}
input[type="range"].red-range:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"].red-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-2); }
input[type="range"].red-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--cyan);
  box-shadow: 0 2px 10px rgba(143,0,12,.5);
  cursor: pointer;
}
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.price-chips .chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.price-chips .chip:hover { border-color: rgba(226,0,16,.45); color: var(--text); }
.price-chips .chip.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(143,0,12,.4); }

.catalog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-top .count { color: var(--text-soft); font-size: 14px; }
.filter-toggle { display: none; }
.search-results-empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.search-results-empty svg { margin-bottom: 16px; color: var(--text-dim); opacity: .5; }

/* ============ PRODUCT DETAIL ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 46px 0 70px; }
.product-detail .gallery {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0a0f16;
  overflow: hidden;
  position: sticky;
  top: 90px;
  align-self: start;
}
.product-detail .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-info h1 { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 10px; }
.detail-info .cat-line { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.detail-rating { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; margin-bottom: 18px; }
.detail-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0; }
.detail-price .now { font-family: var(--font-head); font-size: 38px; font-weight: 700; color: var(--cyan); }
.detail-price .old { font-size: 20px; color: var(--text-dim); text-decoration: line-through; }
.detail-price .save { background: rgba(245,158,11,.12); color: var(--amber); border: 1px solid rgba(245,158,11,.25); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.detail-desc { color: var(--text-soft); font-size: 15px; margin-bottom: 22px; }
.detail-desc-first { color: var(--text); font-weight: 600; font-size: 16px; }
.detail-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 22px; }
.detail-stock .ok { color: var(--green); }
.detail-stock .out { color: var(--red); }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: fit-content; margin-bottom: 22px; }
.qty button { width: 44px; height: 46px; background: var(--surface); border: none; color: var(--text); font-size: 18px; transition: all .15s; }
.qty button:hover { background: var(--surface-2); color: var(--cyan); }
.qty input { width: 60px; text-align: center; background: var(--surface); border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text); font-size: 16px; height: 46px; outline: none; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.detail-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail-perk {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: var(--surface);
}
.detail-perk svg { color: var(--cyan); margin-bottom: 8px; }
.detail-perk strong { font-size: 13px; display: block; }
.detail-perk span { font-size: 11.5px; color: var(--text-dim); }

/* ============ CART ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 40px 20px 70px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  align-items: center;
}
.cart-item img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; background: #0a0f16; }
.cart-item h4 { font-size: 15px; margin-bottom: 6px; }
.cart-item .meta { font-size: 13px; color: var(--text-dim); }
.cart-item .price { font-family: var(--font-head); font-weight: 700; color: var(--cyan); font-size: 18px; }
.cart-item .remove { color: var(--text-dim); background: none; border: none; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; transition: color .2s; }
.cart-item .remove:hover { color: var(--red); }
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
  align-self: start;
}
.cart-summary h3 { margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; color: var(--text-soft); }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; font-size: 19px; font-weight: 700; color: var(--text); }
.sum-row.total span { color: var(--cyan); font-family: var(--font-head); }
.sum-row.free { color: var(--green); }
.cart-summary .btn { margin-top: 18px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty svg { opacity: .4; margin-bottom: 18px; }
.cart-empty h3 { font-size: 24px; margin-bottom: 10px; }
.cart-empty p { color: var(--text-dim); margin-bottom: 26px; }

/* ============ TRACKING ============ */
.track-box {
  max-width: 640px;
  margin: 40px auto 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  text-align: center;
}
.track-box h2 { margin-bottom: 8px; }
.track-box p { color: var(--text-soft); margin-bottom: 26px; }
.track-form { display: flex; gap: 10px; }
.track-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 15px;
}
.track-form input:focus { border-color: var(--cyan); }
.track-result { margin-top: 30px; text-align: left; display: none; }
.track-result.show { display: block; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.t-step { position: relative; padding: 0 0 28px 0; }
.t-step::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  z-index: 1;
}
.t-step.active::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px rgba(226,0,16,.6); }
.t-step.active .t-title { color: var(--text); font-weight: 700; }
.t-step .t-title { font-size: 15px; color: var(--text-dim); }
.t-step .t-date { font-size: 12.5px; color: var(--text-dim); }
.t-status-card {
  background: var(--grad-soft);
  border: 1px solid rgba(226,0,16,.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-status-card svg { color: var(--cyan); }

/* ============ OFFERS ============ */
.offers-hero {
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(245,158,11,.25), transparent 60%),
    radial-gradient(400px 260px at 5% 100%, rgba(226,0,16,.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
.offers-hero .kicker { color: var(--amber); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.offers-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0; }
.offers-hero p { color: var(--text-soft); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 50px 20px 80px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .25s;
}
.contact-card:hover { border-color: rgba(226,0,16,.35); }
.contact-card .cic {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.contact-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-card p { color: var(--text-soft); font-size: 14px; }
.contact-card a { color: var(--cyan); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { color: var(--text-dim); margin-bottom: 24px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-soft); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 14.5px;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--cyan); }
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%200%2024%2024'%20fill='none'%20stroke='%2398a1b3'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  font-weight: 600;
  cursor: pointer;
}
.form-group select:hover { border-color: rgba(226,0,16,.45); }
.form-group select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(226,0,16,.14); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  top: 130px; left: 50%;
  transform: translateX(-50%) translateY(-140px);
  background: var(--surface-2);
  border: 1px solid rgba(226,0,16,.4);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 400;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--cyan); flex-shrink: 0; }
.toast.err { border-color: rgba(248,113,113,.5); }
.toast.err svg { color: var(--red); }

/* Toast de compra finalizada: mensaje de agradecimiento + acciones */
.toast.toast-compra {
  flex-direction: column; align-items: stretch; gap: 12px;
  width: calc(100vw - 32px); max-width: 430px;
  border-color: rgba(47,208,111,.45);
  padding: 18px;
}
.toast-compra > svg { align-self: flex-start; color: #2fd06f; }
.toast-compra span { font-size: 13.5px; line-height: 1.5; }
.toast-compra-acciones { display: grid; gap: 8px; margin-top: 2px; }

/* Toast de artículos pendientes en el carrito (al volver de WhatsApp) */
.toast.toast-carrito {
  flex-direction: column; align-items: stretch; gap: 12px;
  width: calc(100vw - 32px); max-width: 430px;
  border-color: rgba(226,0,16,.5);
  padding: 18px;
}
.toast-carrito > svg { align-self: flex-start; color: var(--cyan); }
.toast-carrito span { font-size: 13.5px; line-height: 1.5; }
.toast-carrito-acciones { display: grid; gap: 8px; margin-top: 2px; }

/* ============ POPUP CENTRALIZADO ============ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4,7,12,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.popup-overlay.open { display: flex; }
.popup {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-glow);
  padding: 24px 22px 20px;
  text-align: center;
  animation: popupIn .28s cubic-bezier(.2,.9,.3,1.15) both;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-ic {
  width: 54px; height: 54px; border-radius: 15px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.popup-ic.ok { background: rgba(52,211,153,.14); color: var(--green); }
.popup-ic.err { background: rgba(248,113,113,.14); color: var(--red); }
.popup-ic.info { background: var(--grad-soft); color: var(--cyan); }
.popup-title {
  font-family: var(--font-head);
  font-size: 16px; margin-bottom: 6px;
}
.popup-msg { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; margin-bottom: 18px; }
.popup-msg.err { color: var(--red); }
.popup-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  margin-bottom: 16px;
  outline: none;
}
.popup-input:focus { border-color: var(--cyan); }
.popup-actions { display: flex; gap: 10px; }
.popup-actions .btn { flex: 1; padding: 11px 12px; }
.popup-actions-col { flex-direction: column; }
.popup-actions-col .btn { flex: 1 1 auto; width: 100%; }

/* ============ PAGE LOADER (entrada con el logo) ============ */
body.loading { overflow: hidden; }
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background:
    radial-gradient(700px 500px at 50% -10%, rgba(143,0,12,.32), transparent 60%),
    radial-gradient(560px 420px at 50% 115%, rgba(226,0,16,.2), transparent 60%),
    #05070a;
  transition: opacity .55s ease, visibility .55s ease;
}
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#pageLoader .pl-logo-wrap {
  animation: plGlow 2.6s ease-in-out infinite;
}
#pageLoader .pl-logo {
  display: block;
  width: min(330px, 66vw);
  animation: plLogoIn 1s cubic-bezier(.16,1,.3,1) both;
}
#pageLoader .pl-bar {
  width: min(230px, 52vw);
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.09);
  animation: plFade .8s ease .25s both;
}
#pageLoader .pl-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #e20010 0%, #8f000c 100%);
  border-radius: 999px;
  animation: plBar 1.15s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes plLogoIn {
  0% { opacity: 0; transform: scale(.6) translateY(26px) rotate(-5deg); filter: blur(8px); }
  55% { opacity: 1; transform: scale(1.07) translateY(-3px) rotate(.6deg); filter: blur(0); }
  75% { transform: scale(.98) translateY(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0); filter: blur(0); }
}
@keyframes plGlow {
  0%, 100% { filter: drop-shadow(0 14px 34px rgba(226,0,16,.22)); }
  50% { filter: drop-shadow(0 20px 52px rgba(226,0,16,.5)); }
}
@keyframes plBar {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes plFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SKELETON (carga del catálogo) ============ */
.sk-card { pointer-events: none; }
.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(139,155,176,.12) 40%, rgba(139,155,176,.22) 50%, rgba(139,155,176,.12) 60%);
  background-size: 200% 100%;
  animation: skShine 1.2s linear infinite;
}
.sk-img { width: 100%; height: 100%; min-height: 220px; border-radius: 0; }
.sk-line { height: 14px; margin: 10px 0 8px; }
.product-body .sk-line { width: 70%; }
.product-body .sk-line:last-child { margin-top: 14px; }
@keyframes skShine {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============ MODAL (checkout) ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4,7,12,.85); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 30px 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  margin: auto;
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-head h3 { font-family: var(--font-head); font-size: 20px; }
.modal-head p { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--cyan); border-color: var(--cyan); }
.modal-body { padding: 22px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 7px; }
.modal-body input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.modal-body input:focus { border-color: var(--cyan); }
.modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.modal-actions .btn { flex: 1; }
.co-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  max-height: 180px;
  overflow-y: auto;
}
.co-summary .co-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-soft); padding: 4px 0; }
.co-summary .co-row.total { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 8px; color: var(--text); font-weight: 700; }
.co-summary .co-row span:last-child { text-align: right; }

/* ============ RESPONSIVE ============ */
/* Evita desbordes horizontales en grids y textos largos */
.footer-grid > *, .testimonials-grid > *, .trust-strip > *, .products-grid > *, .cat-grid > *, .features-grid > *, .product-detail > * { min-width: 0; }
.footer-brand p, .footer-contact li, .footer-contact a, .trust-item .big, .testimonial p { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-nav.prev { left: 6px; }
  .hero-nav.next { right: 6px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  /* Barra de navegación inferior fija en pantallas móviles */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: rgba(10,12,17,.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 30px rgba(0,0,0,.45);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 7px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-soft);
    transition: color .2s;
  }
  .bottom-nav a.active, .bottom-nav a:active { color: var(--cyan); }
  .bottom-nav a svg { width: 21px; height: 21px; }
  body { padding-bottom: 56px; }
}
@media (max-width: 860px) {
  .products-grid, .cat-grid, .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; min-width: 0; }
  .product-detail > * { min-width: 0; }
  .product-detail .gallery { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0,0,0,.97);
    padding: 24px;
    overflow-y: auto;
    z-index: 120;
    transform: translateX(-100%);
    transition: transform .3s;
  }
  .filters.open { transform: translateX(0); }
  .filters-close {
    display: flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    margin-left: auto;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .filter-toggle {
    display: inline-flex;
    align-items: center; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .offer-banner { grid-template-columns: 1fr; }
  .nav-search { max-width: none; }
  /* Móvil: logo arriba y centrado en su propia fila para dar todo el ancho a la barra de búsqueda */
  .nav { flex-wrap: wrap; gap: 10px; }
  .logo { flex-basis: 100%; justify-content: center; order: -1; }
  .nav-search { flex: 1 1 auto; min-width: 0; }
  /* Móvil: la botonera "Comprar / Compartir" pasa a estar DEBAJO del precio (en flujo,
     dentro del cuerpo de la tarjeta), para no tapar la imagen del producto.
     La copia superpuesta sobre la imagen (q-overlay) se oculta. */
  .product-quick.q-overlay { display: none; }
  .product-quick.q-inline {
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    background: none;
    transform: none;
    transition: none;
    display: flex;
    gap: 8px;
  }
  .product-quick.q-inline .btn-add-icon {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
  }
  /* Botón Comprar con efecto suave de agrandar/achicar en móvil */
  .product-quick .btn-buy:not(.btn-disabled):not(.btn-similar) { animation: buyPulse 2.4s ease-in-out infinite; }
  .product-quick .btn-buy.pulse { animation: btnPulse .5s ease; }
  @keyframes buyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  .section-head { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .products-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 90px 1fr; }
  .cart-item img { width: 90px; height: 90px; }
  .cart-item .right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .section { padding: 28px 0; }
  .section-head { margin-bottom: 18px; }
  .page-hero { padding: 26px 0 22px; }
  .hero { padding: 12px 0 16px; }
  .detail-price { flex-wrap: wrap; gap: 10px; }
  .detail-price .now { font-size: 30px; }
  .detail-perks { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; }
  .catalog-layout { padding: 22px 20px 40px; }
  .catalog-top { margin-bottom: 14px; gap: 10px; }
  .contact-grid { padding: 22px 20px 40px; }
  .footer-grid { padding: 28px 0 20px; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col li { margin-bottom: 8px; }
  .socials a { width: 34px; height: 34px; }
  .footer-contact li { margin-bottom: 10px; }
  .nav { gap: 10px; padding: 10px 20px; }
  .logo img { height: 44px; }
  .nav-search { flex: 1; min-width: 0; padding: 8px 12px; }
  .nav-search input { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
  .hero-content { min-width: 0; }
  .hero-visual { min-width: 0; }
  .hero-image { padding: 0; min-height: 0; }
  .hero-image img { width: 100%; max-width: 100%; max-height: 180px; height: auto; transform: none; }
  .hero-slide .hero-image img.hs-img { width: 100%; max-width: 100%; max-height: 160px; height: auto; object-fit: contain; transform: none; }
  .hero-slide .hero-image.hs-frame { padding: 8px; border-radius: 18px; }
  .hs-off-tag { top: 14px; left: 14px; font-size: 11px; padding: 4px 10px; }
  .hs-stock-tag { bottom: 14px; left: 14px; font-size: 9.5px; padding: 4px 9px; gap: 5px; }
  .hero-product .hs-cat { font-size: 9px; letter-spacing: 1px; margin-bottom: 2px; }
  .hero-product .hs-meta { gap: 5px 10px; margin-bottom: 8px; }
  .hero-product .hs-meta span { font-size: 9.5px; gap: 4px; }
  /* El título del hero se ve más grande que el segundo párrafo, como en escritorio */
  .hero h1 { font-size: clamp(17px, 4.8vw, 23px); margin-bottom: 4px; line-height: 1.2; letter-spacing: -.01em; }
  .hero .lead, .hero p.lead { font-size: 10.5px; margin-bottom: 6px; max-width: none; margin-left: 0; margin-right: 0; line-height: 1.3; }
  /* Móvil: se oculta la descripción del producto en el hero de destacados para reducir el scroll */
  .hero-product .lead { display: none; }
  .hero-badge { margin-bottom: 5px; padding: 3px 7px; font-size: 8.5px; }
  .hero-slide .hs-price { margin-bottom: 6px; gap: 5px; }
  .hero-slide .hs-price .now { font-size: 15px; }
  .hero-slide .hs-price .old { font-size: 10px; }
  .hero-slide .hs-rating { font-size: 9.5px; gap: 4px; margin-bottom: 4px; }
  .hero-cta { gap: 5px; margin-bottom: 6px; justify-content: flex-start; flex-wrap: wrap; }
  .hero-cta .btn { flex: none; padding: 6px 9px; font-size: 9.5px; }
  .hero-stats { gap: 6px; justify-content: flex-start; flex-wrap: wrap; }
  .stat .num { font-size: 11px; }
  .stat .lbl { font-size: 8px; }
  .cat-card { padding: 14px; min-height: 92px; }
  .cat-card h3 { font-size: 15px; }
  .cat-card span { font-size: 11.5px; margin-top: 2px; }
  .cat-card .cat-ic { width: 32px; height: 32px; top: 10px; right: 10px; border-radius: 9px; }
  .feature { gap: 10px; }
  .feature .fic { width: 40px; height: 40px; }
  .feature strong { font-size: 13.5px; }
  .feature span { font-size: 11.5px; }
  .offer-banner { padding: 24px 20px; gap: 20px; }
  .offers-hero { padding: 24px 18px; margin-bottom: 24px; }
  .trust-strip { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .trust-item { padding: 12px 6px; }
  .trust-item .big { font-size: 22px; }
  .trust-item span { font-size: 12px; }
  .testimonials-grid .testimonial:nth-child(n+4) { display: none; }
  .testimonial { padding: 18px; }
  .t-badge { display: none; }
  .newsletter { padding: 20px 16px; }
  .newsletter p { margin-bottom: 16px; }
  .newsletter-form { flex-direction: column; }
  .modal-overlay { padding: 16px 10px; }
  .modal-body { padding: 16px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .products-grid { gap: 12px; }
  .product-body { padding: 10px 12px; }
  .product-name { font-size: 12.5px; min-height: 31px; }
  .price-row .now { font-size: 14px; }
  .btn-add { font-size: 12.5px; padding: 10px 6px; }
  .btn-buy { font-size: 11.5px; padding: 8px 6px; }
  .btn-add-icon { width: 36px; }
  .product-tag, .product-off { font-size: 10px; padding: 4px 8px; }
  .product-quick { padding: 0 10px 10px; }
  /* Evita el zoom automático de iOS al tocar inputs */
  input, select, textarea { font-size: 16px; }
  .cart-summary { padding: 18px; }
  .qty input { font-size: 16px; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Selects nativos con el mismo estilo del "Ordenar por" */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%200%2024%2024'%20fill='none'%20stroke='%2398a1b3'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  font-weight: 600;
  cursor: pointer;
}
select:hover { border-color: rgba(226,0,16,.45); }
select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(226,0,16,.14); }
