/* SmartHome_Vpar — estilos de la tienda pública.
   Los colores base (--bg, --surface, --primary, --accent, --text) y las fuentes
   se definen desde Panel → Apariencia y se inyectan en cada página. */
:root {
  --bg: #05080f;
  --surface: #0d1522;
  --primary: #1e7bff;
  --accent: #22d3ee;
  --text: #e6edf7;
  --font-body: system-ui, sans-serif;
  --font-heading: system-ui, sans-serif;

  --surface-2: color-mix(in srgb, var(--surface) 82%, white 4%);
  --border: color-mix(in srgb, var(--text) 11%, transparent);
  --border-strong: color-mix(in srgb, var(--accent) 38%, transparent);
  --muted: color-mix(in srgb, var(--text) 66%, var(--bg));
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 40px -10px color-mix(in srgb, var(--primary) 55%, transparent);
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --ok: #34d399;
  --warn: #fbbf24;
  --off: #f87171;
  --info: #93c5fd;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 24px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.icon { flex-shrink: 0; vertical-align: middle; }
.rot90 { transform: rotate(90deg); }

/* ---------------------------------------------------------- Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -10px var(--primary); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px var(--accent); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-wa:hover { box-shadow: 0 10px 30px -10px var(--wa); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { border-color: var(--border-strong); text-decoration: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------- Encabezado */
.adminbar { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px 16px; background: #111a2b; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.adminbar a { font-weight: 600; }
.adminbar-warn { color: var(--warn) !important; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop-btn { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > a:hover, .main-nav > a.active, .nav-drop-btn:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 80%, transparent); text-decoration: none; }
.main-nav > a.active { color: var(--accent); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 50px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .92rem; }
.nav-drop-menu a .icon { color: var(--accent); }
.nav-drop-menu a:hover { background: var(--surface-2); text-decoration: none; }
.header-search { flex: 1; display: flex; max-width: 420px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 44px; padding: 0 48px 0 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); color: var(--text);
}
.header-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #031018; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > a, .nav-drop-btn { padding: 14px 12px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; min-width: 0; margin: 4px 0 8px; }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-drop:hover .nav-drop-menu { display: none; }
  .nav-drop.open:hover .nav-drop-menu { display: block; }
}
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .hide-sm { display: none !important; }
  .brand span { font-size: 1.05rem; }
  :root { --header-h: 120px; }
}

/* ---------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 680px); display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, color-mix(in srgb, var(--bg) 25%, transparent) 75%), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero-content { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero-content > * { max-width: 620px; animation: rise .7s ease both; }
.hero-content > :nth-child(2) { animation-delay: .06s; }
.hero-content > :nth-child(3) { animation-delay: .12s; }
.hero-content > :nth-child(4) { animation-delay: .18s; }
.hero-content > :nth-child(5) { animation-delay: .24s; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); margin: 18px 0 10px; background: linear-gradient(90deg, #fff 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; font-family: var(--font-heading); margin-bottom: 10px; }
.hero-text { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.hero-chips .icon { color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-bg img { object-position: 78% center; opacity: .55; }
  .hero-content { padding-top: 48px; padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------- Secciones */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 45%, transparent), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }
.section-head h2 { margin-bottom: 6px; }
.section-head h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--grad); margin-bottom: 14px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center h2::before { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .section { padding: 44px 0; } }

.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Categorías */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.category-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--border-strong); }
.category-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #070c15; }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-media img { transform: scale(1.06); }
.category-icon { position: absolute; left: 14px; bottom: -18px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px var(--primary); }
.category-body { padding: 28px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.category-body h3 { margin-bottom: 6px; }
.category-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.category-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; }
@media (max-width: 560px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-body { padding: 24px 12px 12px; }
  .category-body p { display: none; }
  .category-body h3 { font-size: .95rem; }
  .category-icon { width: 38px; height: 38px; left: 10px; bottom: -16px; }
}

/* Productos */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--border-strong); }
.product-media { position: relative; display: block; aspect-ratio: 1; background: #070c15; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.no-image { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.no-image.big { aspect-ratio: 1; text-align: center; align-content: center; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge-sale { background: #ff3d6e; color: #fff; }
.badge-new { background: var(--accent); color: #031018; }
.badge-feat { background: color-mix(in srgb, var(--primary) 85%, black); color: #fff; }
.badge-demo { background: #fbbf24; color: #241800; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.product-title { font-size: 1rem; margin: 0; font-family: var(--font-body); font-weight: 600; }
.product-title a { color: var(--text); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: #fff; }
.price-old { color: var(--muted); font-size: .9rem; }
.price-row.big .price { font-size: 2rem; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; }
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.avail-ok { color: var(--ok); } .avail-warn { color: var(--warn); } .avail-off { color: var(--off); } .avail-info { color: var(--info); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.card-actions .btn { flex: 1; padding-left: 10px; padding-right: 10px; }
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px; }
  .product-title { font-size: .9rem; }
  .price { font-size: 1.05rem; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; }
}

/* Promociones */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.promo-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; border: 1px solid var(--border); display: flex; align-items: flex-end; background: var(--surface); }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 30%, transparent)); }
.promo-content { position: relative; z-index: 1; padding: 24px; max-width: 460px; }
.promo-content h3 { font-size: 1.4rem; margin: 10px 0 6px; }
.promo-content p { color: var(--muted); }
.promo-dates { font-size: .85rem; }
@media (max-width: 560px) { .promo-grid { grid-template-columns: 1fr; } }

/* Beneficios */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.benefit { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 65%, transparent); }
.benefit h3 { margin-top: 14px; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }
.benefit-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--border-strong); box-shadow: 0 0 24px -8px var(--accent); }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: 24px; border: 1px solid var(--border-strong); background: radial-gradient(600px 200px at 0% 0%, color-mix(in srgb, var(--primary) 28%, transparent), transparent), var(--surface); }
.cta-box p { color: var(--muted); margin: 0; }
@media (max-width: 560px) { .cta-box { padding: 24px; } .cta-box .btn { width: 100%; } }

/* ---------------------------------------------------------- Pie de página */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 45%, var(--bg)); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-brand p { color: var(--muted); margin-top: 14px; font-size: .92rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: 3px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.07); }

/* ---------------------------------------------------------- Catálogo */
.page-head { position: relative; padding: 28px 0 28px; border-bottom: 1px solid var(--border); overflow: hidden; }
.page-head.with-image { padding: 40px 0; }
.page-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-head.with-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, transparent); }
.page-head .container { position: relative; z-index: 1; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin: 18px 0 14px; }
.breadcrumbs a { color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip-sm { padding: 4px 10px; font-size: .78rem; color: var(--accent); }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 20px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; margin: 0; }
.filters-close, .filters-open { display: none !important; }
.filter-group { border: 0; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--border); display: grid; gap: 6px; }
.filter-title { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; margin-bottom: 4px; }
.filter-group input[type="search"], .filter-group input[type="text"], .sort-form select, .stack input, .stack textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.check { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check .count { margin-left: auto; color: var(--muted); font-size: .8rem; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.filter-actions { display: grid; gap: 8px; padding-top: 16px; }
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { margin: 0; color: var(--muted); }
.sort-form { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort-form select { width: auto; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 8px; }
.page-num { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text); }
.page-num.current { background: var(--grad); color: #fff; border-color: transparent; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.empty .icon { color: var(--accent); }
.empty h2, .empty h1 { color: var(--text); margin: 0; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.big-empty { margin: 60px 0; }
.filters-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 59; }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-close, .filters-open { display: inline-flex !important; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(340px, 88vw); max-height: none; border-radius: 0 var(--radius) var(--radius) 0; transform: translateX(-105%); transition: transform .25s ease; }
  .filters.open { transform: none; }
  .sort-form { margin-left: 0; width: 100%; }
  .sort-form select { flex: 1; }
}

/* ---------------------------------------------------------- Ficha de producto */
.notice { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: .92rem; border: 1px solid; }
.notice-info { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); color: #fde68a; }
.notice-warn { border-color: color-mix(in srgb, var(--off) 45%, transparent); background: color-mix(in srgb, var(--off) 10%, transparent); color: #fecaca; }
.notice-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); color: #bbf7d0; display: block; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin-bottom: 32px; }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #070c15; }
.gallery-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery-zoom img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.zoom-hint { position: absolute; right: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .8rem; color: #fff; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 78px; height: 78px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); background: #070c15; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 14px -4px var(--accent); }
.product-info h1 { margin-top: 8px; }
.product-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.brand-model { color: var(--muted); }
.price-box { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin: 18px 0; display: grid; gap: 8px; }
.price-box p { margin: 0; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-actions .btn { flex: 1 1 260px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; height: 52px; }
.qty button { width: 46px; height: 100%; border: 0; background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.qty input { width: 52px; height: 100%; text-align: center; border: 0; background: var(--bg); color: var(--text); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.feature-pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text); font-size: .85rem; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.feature-pills .icon { color: var(--accent); }
.product-tabs { display: grid; gap: 18px; }
.detail-block { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.detail-block h2 { font-size: 1.25rem; }
.prose p { color: color-mix(in srgb, var(--text) 88%, var(--bg)); white-space: pre-line; }
.prose p:last-child { margin-bottom: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list .icon { color: var(--ok); }
.mobile-buy { display: none; }
.page-body { margin-bottom: 20px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.contact-card { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.contact-card span:last-child { color: var(--muted); word-break: break-word; }
a.contact-card:hover { border-color: var(--border-strong); text-decoration: none; box-shadow: var(--glow); }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .mobile-buy > div { display: grid; }
  .mobile-buy .price { font-size: 1.15rem; }
  body:has(.mobile-buy) .wa-float { bottom: 86px; }
  body:has(.mobile-buy) .site-footer { padding-bottom: 96px; }
  .detail-block { padding: 18px; }
  .spec-table th { width: 45%; }
}

/* Galería ampliada */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 4, 8, .94); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; object-fit: contain; border-radius: 12px; touch-action: pan-y; }
.lightbox figcaption { color: var(--muted); font-size: .9rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: rgba(13, 21, 34, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------- Carrito */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-bottom: 40px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-bottom: 12px; }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { font-size: 1rem; margin: 0 0 4px; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 36px; }
.cart-item .qty input { width: 40px; }
.cart-item-side { display: grid; gap: 8px; justify-items: end; }
.link-btn { background: none; border: 0; color: var(--off); cursor: pointer; font-size: .85rem; padding: 4px; }
.cart-summary { padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; font-size: 1.2rem; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.stack { display: grid; gap: 12px; margin-top: 16px; }
.stack label { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.form-error { color: var(--off); margin: 0; font-size: .9rem; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item-side { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; }
}

/* Aviso temporal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--glow); font-weight: 500; max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.price, .price-old { white-space: nowrap; }
