/* ZapaMania v2 — sistema visual común de la tienda pública (indumentaria y electro).
 * Se carga en include/head.php después de Tailwind. Las páginas usan estas clases (zm-*) en vez de repetir utilidades.
 * Tema: <body data-zm="ind"> (amarillo + rosa, callejero) o <body data-zm="ele"> (cian + azul eléctrico, tech).
 * Si no hay data-zm, se usa el de indumentaria. */

:root {
    --zm-ink: #09090b;          /* fondo */
    --zm-s1: #111114;           /* superficie */
    --zm-s2: #18181c;           /* superficie elevada */
    --zm-line: rgba(255, 255, 255, .08);
    --zm-line-2: rgba(255, 255, 255, .14);
    --zm-text: #f4f4f5;
    --zm-mute: #a1a1aa;
    --zm-dim: #71717a;
    --zm-a: #ffd60a;            /* acento principal */
    --zm-b: #ff2e88;            /* acento secundario */
    --zm-a-ink: #0a0a0a;        /* texto sobre el acento */
    --zm-glow: rgba(255, 214, 10, .28);
    --zm-radius: 28px;
    --zm-ease: cubic-bezier(.2, .8, .2, 1);
    --zm-display: 'Anton', 'Montserrat', sans-serif;
    --zm-body: 'Inter', 'Montserrat', system-ui, sans-serif;
    --zm-brand: 'Permanent Marker', cursive;
}
/* Indumentaria anidada dentro de Electro (p. ej. un producto de indumentaria en una página electro): vuelve a sus colores */
[data-zm="ind"] {
    --zm-ink: #09090b; --zm-s1: #111114; --zm-s2: #18181c;
    --zm-line: rgba(255, 255, 255, .08); --zm-line-2: rgba(255, 255, 255, .14);
    --zm-a: #ffd60a; --zm-b: #ff2e88; --zm-a-ink: #0a0a0a; --zm-glow: rgba(255, 214, 10, .28);
    --zm-display: 'Anton', 'Montserrat', sans-serif;
}
[data-zm="ele"] {
    --zm-ink: #05070d;
    --zm-s1: #0b0f1a;
    --zm-s2: #111827;
    --zm-line: rgba(120, 200, 255, .1);
    --zm-line-2: rgba(120, 200, 255, .2);
    --zm-a: #00e5ff;
    --zm-b: #3d5afe;
    --zm-a-ink: #001018;
    --zm-glow: rgba(0, 229, 255, .3);
    --zm-display: 'Space Grotesk', 'Montserrat', sans-serif;
}

/* ---------- Base ---------- */
.zm { background: var(--zm-ink); color: var(--zm-text); font-family: var(--zm-body); }
.zm-display { font-family: var(--zm-display); font-weight: 400; letter-spacing: .005em; line-height: .92; text-transform: uppercase; }
[data-zm="ele"] .zm-display { font-weight: 700; letter-spacing: -.02em; line-height: .95; }
.zm-brand { font-family: var(--zm-brand); }
.zm-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 800 11px/1 var(--zm-body); letter-spacing: .28em; text-transform: uppercase; color: var(--zm-a); }
.zm-eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.zm-mute { color: var(--zm-mute); }
.zm-accent { color: var(--zm-a); }
.zm-grad { background: linear-gradient(100deg, var(--zm-a), var(--zm-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zm-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.zm-wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: max(1rem, env(safe-area-inset-left)); }
@media (min-width: 768px) { .zm-wrap { padding-inline: 2rem; } }

/* Ruido sutil y resplandor de fondo para secciones */
.zm-noise { position: relative; isolation: isolate; }
.zm-noise::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.zm-aura { position: absolute; pointer-events: none; border-radius: 9999px; filter: blur(90px); opacity: .35; background: radial-gradient(circle, var(--zm-a), transparent 70%); }
.zm-aura.b { background: radial-gradient(circle, var(--zm-b), transparent 70%); }

/* ---------- Botones ---------- */
.zm-btn { --bg: var(--zm-a); --fg: var(--zm-a-ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px; background: var(--bg); color: var(--fg); font: 800 13px/1 var(--zm-body); letter-spacing: .14em; text-transform: uppercase; overflow: hidden; transition: transform .35s var(--zm-ease), box-shadow .35s var(--zm-ease), background .3s; box-shadow: 0 10px 30px -14px var(--zm-glow); white-space: nowrap; }
.zm-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--zm-glow); }
.zm-btn:active { transform: translateY(0) scale(.98); }
.zm-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--zm-ease); }
.zm-btn:hover::after { transform: translateX(120%); }
.zm-btn .zm-arrow { transition: transform .35s var(--zm-ease); }
.zm-btn:hover .zm-arrow { transform: translateX(4px); }
.zm-btn.ghost { --bg: rgba(255, 255, 255, .04); --fg: var(--zm-text); box-shadow: inset 0 0 0 1px var(--zm-line-2); }
.zm-btn.ghost:hover { --bg: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--zm-a); }
.zm-btn.pink { --bg: var(--zm-b); --fg: #fff; }
.zm-btn.light { --bg: #fff; --fg: #0a0a0a; }
.zm-btn.sm { padding: .7rem 1.1rem; font-size: 11px; }
.zm-btn.block { display: flex; width: 100%; }   /* .block de Tailwind lo pasaba a display:block */

/* ---------- Píldoras / chapitas ---------- */
.zm-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; font: 800 10px/1 var(--zm-body); letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .06); color: var(--zm-text); box-shadow: inset 0 0 0 1px var(--zm-line-2); }
.zm-pill.a { background: var(--zm-a); color: var(--zm-a-ink); box-shadow: none; }
.zm-pill.b { background: var(--zm-b); color: #fff; box-shadow: none; }
.zm-pill.red { background: #ef233c; color: #fff; box-shadow: none; }
.zm-pill.dark { background: rgba(10, 10, 12, .78); color: #fff; backdrop-filter: blur(8px); }

/* ---------- Encabezado de sección ---------- */
.zm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.zm-head h2 { font-family: var(--zm-display); text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .92; }
[data-zm="ele"] .zm-head h2 { font-weight: 700; letter-spacing: -.02em; }
.zm-nav-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--zm-text); box-shadow: inset 0 0 0 1px var(--zm-line-2); transition: all .3s var(--zm-ease); cursor: pointer; }
.zm-nav-btn:hover { background: var(--zm-a); color: var(--zm-a-ink); box-shadow: none; }
.zm-nav-btn.swiper-button-disabled { opacity: .3; pointer-events: none; }
.zm-link { font: 800 11px/1 var(--zm-body); letter-spacing: .2em; text-transform: uppercase; color: var(--zm-mute); transition: color .25s; }
.zm-link:hover { color: var(--zm-a); }

/* ---------- Tarjeta de producto ---------- */
.zm-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--zm-radius); background: linear-gradient(180deg, var(--zm-s2), var(--zm-s1)); box-shadow: inset 0 0 0 1px var(--zm-line); overflow: hidden; transition: transform .45s var(--zm-ease), box-shadow .45s var(--zm-ease); }
.zm-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zm-a) 45%, transparent), 0 40px 80px -40px rgba(0, 0, 0, .95), 0 24px 60px -36px var(--zm-glow); }
.zm-card-media { position: relative; margin: 10px 10px 0; border-radius: calc(var(--zm-radius) - 8px); aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #f1f1f3 60%, #e4e4e7 100%); display: grid; place-items: center; }
[data-zm="ele"] .zm-card-media { background: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #eef6ff 60%, #dbe7f5 100%); }
.zm-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12%; mix-blend-mode: multiply; transition: transform .7s var(--zm-ease), opacity .3s; }
.zm-card:hover .zm-card-media img { transform: scale(1.06); }
.zm-card-tags { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.zm-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.zm-card-brand { font: 800 10px/1 var(--zm-body); letter-spacing: .2em; text-transform: uppercase; color: var(--zm-dim); }
.zm-card-title { margin-top: 8px; font: 700 15px/1.25 var(--zm-body); color: var(--zm-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.zm-card:hover .zm-card-title { color: var(--zm-a); }
.zm-price { font: 800 24px/1 var(--zm-body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--zm-text); }
.zm-price-label { font: 800 9px/1 var(--zm-body); letter-spacing: .2em; text-transform: uppercase; color: var(--zm-dim); }
.zm-tier { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.zm-tier + .zm-tier { margin-top: 5px; }
.zm-tier b { font: 800 16px/1 var(--zm-body); color: var(--zm-a); font-variant-numeric: tabular-nums; }
.zm-tier span { font: 700 11px/1.2 var(--zm-body); color: var(--zm-mute); text-transform: capitalize; }
.zm-tier small { font: 700 9px/1 var(--zm-body); color: var(--zm-dim); white-space: nowrap; }
.zm-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 3; }
.zm-dots i { width: 6px; height: 6px; border-radius: 9px; background: rgba(0, 0, 0, .2); transition: all .3s; }
.zm-dots i.on { width: 16px; background: #0a0a0a; }

/* Botón de favorito sobre la foto */
.zm-card .js-wishlist-toggle { background: rgba(255, 255, 255, .9) !important; color: #0a0a0a !important; border: 0 !important; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.zm-card .js-wishlist-toggle.is-active { color: #ef233c !important; }

/* ---------- Banner lateral de una sección ---------- */
.zm-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; height: 100%; border-radius: var(--zm-radius); overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px var(--zm-line); }
.zm-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--zm-ease); }
.zm-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .85) 85%); }
.zm-banner:hover img { transform: scale(1.08); }

/* ---------- Hero de cada tienda ---------- */
.zm-hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(92svh, 860px); display: flex; align-items: center; }
.zm-hero-bg { position: absolute; inset: 0; z-index: -2; }
.zm-hero-bg .swiper-slide > div, .zm-hero-bg img { animation: zm-kenburns 14s ease-in-out infinite alternate; }
.zm-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--zm-ink) 0%, color-mix(in srgb, var(--zm-ink) 82%, transparent) 38%, transparent 75%), linear-gradient(0deg, var(--zm-ink) 0%, transparent 30%); }
@keyframes zm-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* ---------- Cinta de categorías ---------- */
.zm-ticker { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.zm-ticker-track { display: flex; width: max-content; gap: 14px; animation: zm-ticker 50s linear infinite; }
.zm-ticker:hover .zm-ticker-track { animation-play-state: paused; }
@keyframes zm-ticker { to { transform: translateX(-50%); } }

/* ---------- Superficies y vidrio ---------- */
.zm-panel { border-radius: var(--zm-radius); background: linear-gradient(180deg, var(--zm-s2), var(--zm-s1)); box-shadow: inset 0 0 0 1px var(--zm-line); }
.zm-glass { background: color-mix(in srgb, var(--zm-ink) 62%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: inset 0 0 0 1px var(--zm-line); }
.zm-input { width: 100%; border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--zm-text); padding: .8rem 1rem; box-shadow: inset 0 0 0 1px var(--zm-line-2); outline: none; transition: box-shadow .25s; }
.zm-input:focus { box-shadow: inset 0 0 0 1.5px var(--zm-a); }

/* ---------- Aparición al hacer scroll (zm-v2.js agrega .zm-in) ---------- */
.zm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--zm-ease), transform .9s var(--zm-ease); transition-delay: var(--zm-d, 0s); }
.zm-reveal.zm-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .zm-reveal { opacity: 1; transform: none; }
    .zm-hero-bg .swiper-slide > div, .zm-hero-bg img, .zm-ticker-track { animation: none !important; }
    .zm-card, .zm-card-media img, .zm-btn { transition: none; }
}

/* ---------- Menús (include/navbar_*.php) ---------- */
.zm-navlink { position: relative; padding: .45rem .1rem; font: 700 12px/1 var(--zm-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); transition: color .25s; }
.zm-navlink::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--zm-a), var(--zm-b)); transition: left .35s var(--zm-ease), right .35s var(--zm-ease); }
.zm-navlink:hover { color: #fff; }
.zm-navlink:hover::after { left: 0; right: 0; }
.zm-navlink.hot { color: var(--zm-a); }
.zm-topbar { background: #000; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.zm-topbar .animate-marquee-urban { color: rgba(255, 255, 255, .62) !important; }
.zm-topbar .animate-marquee-urban i { color: var(--zm-a) !important; font-size: 10px; }
.zm-topbar .animate-marquee-urban { animation-duration: 80s; }
.zm-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: #fff; transition: background .25s, color .25s; }
.zm-icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--zm-a); }
.zm-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font: 800 10px/1 var(--zm-body); background: var(--zm-b); color: #fff; box-shadow: 0 0 0 2px var(--zm-ink); }
.zm-menu-pop { border-radius: 18px; padding: .5rem; background: rgba(12, 12, 14, .92); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--zm-line-2), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.zm-menu-pop a { border-radius: 12px; }
/* El menú de indumentaria en todas las páginas igual que en la portada: vidrio negro translúcido y, en escritorio,
   con el mismo alto. index.php le da fondo blanco a body.is-indumentaria; todas las páginas públicas ya son
   oscuras, así que se pasa a negro para que el vidrio no se vea gris. */
body.is-indumentaria:not(.home-page) { background-color: #09090b; }
body:not(.home-page) .wrapper-indumentaria nav { background: rgba(0, 0, 0, .55) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 1024px) {
    body:not(.home-page) .wrapper-indumentaria nav { padding-top: .9rem !important; padding-bottom: .9rem !important; }
}

/* ================= Capa inmersiva (include/zm-inmersivo.js) ================= */

/* 1. Tarjetas con profundidad */
.zm-inmersivo .zm-card { transform-style: preserve-3d; will-change: transform; }
.zm-inmersivo .zm-card::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: soft-light; }
.zm-inmersivo .zm-card.zm-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) scale(1.015); transition: transform .12s linear, box-shadow .45s var(--zm-ease); }
.zm-inmersivo .zm-card.zm-tilt::after { opacity: 1; }
.zm-inmersivo .zm-card.zm-tilt .zm-card-media img { translate: var(--px, 0) var(--py, 0); scale: 1.1; transition: translate .12s linear, scale .6s var(--zm-ease); }
.zm-inmersivo .zm-card .zm-card-media img { transition: translate .6s var(--zm-ease), scale .6s var(--zm-ease); }
.zm-tactil .zm-card { transform: perspective(900px) rotateX(var(--zm-drx, 0deg)) rotateY(var(--zm-dry, 0deg)); transition: transform .3s ease-out; }
.zm-tactil .zm-card .zm-card-media img { translate: calc(var(--zm-dry, 0deg) / 1deg * -1px) calc(var(--zm-drx, 0deg) / 1deg * 1px); }

/* 2. Scroll cinematográfico */
.zm-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.zm-w > span { display: inline-block; transform: translateY(105%) rotate(5deg); transition: transform 1.1s var(--zm-ease); transition-delay: calc(var(--i, 0) * 65ms); }
.zm-cine-in .zm-w > span { transform: none; }
.zm-inmersivo .zm-hero { --zm-p: 0; --zm-mx: 0; --zm-my: 0; }
.zm-inmersivo .zm-hero .zm-hero-bg { scale: calc(1 + var(--zm-p) * .22); filter: brightness(calc(1 - var(--zm-p) * .55)) saturate(calc(1 - var(--zm-p) * .3)); transform-origin: 60% 40%; }
.zm-inmersivo .zm-hero > .zm-wrap { translate: calc(var(--zm-mx) * -12px) calc(var(--zm-p) * -110px + var(--zm-my) * -8px); opacity: calc(1 - var(--zm-p) * 1.4); }
.zm-inmersivo .zm-hero .zm-ind-hero-figure,
.zm-inmersivo .zm-hero .zm-ele-shot { translate: calc(var(--zm-mx) * 26px) calc(var(--zm-p) * -190px + var(--zm-my) * 20px); transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.zm-inmersivo .zm-hero .zm-ind-sticker,
.zm-inmersivo .zm-hero .zm-ele-shot ~ .zm-glass { translate: calc(var(--zm-mx) * 46px) calc(var(--zm-p) * -280px + var(--zm-my) * 34px); transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.zm-inmersivo .zm-banner img { translate: 0 var(--zm-py, 0px); scale: 1.14; }

/* 3. Vista 3D de la ficha */
.zm-det-stage.zm-3d { perspective: 1200px; cursor: grab; touch-action: pan-y; --trx: 0deg; --try: 0deg; --tsx: 0px; --lx: 50%; --ly: 30%; }
.zm-det-stage.zm-3d.zm-3d-arrastra { cursor: grabbing; }
.zm-det-stage.zm-3d #mainImage { transform: rotateX(var(--trx)) rotateY(var(--try)) translateZ(30px); transition: transform .6s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .18)); }
.zm-det-stage.zm-3d:hover #mainImage { transform: rotateX(var(--trx)) rotateY(var(--try)) translateZ(30px) scale(1.03); }
.zm-det-stage.zm-3d.zm-3d-arrastra #mainImage { transition: transform .08s linear; }
.zm-det-stage.zm-3d.zm-3d-gira #mainImage { transition: transform .26s cubic-bezier(.5, 0, .75, 0); }
.zm-det-stage.zm-3d.zm-3d-sin-trans #mainImage { transition: none !important; }
.zm-det-stage.zm-3d::before { translate: var(--tsx) 0; transition: translate .6s cubic-bezier(.2, .8, .2, 1); }
.zm-det-stage.zm-3d::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(600px circle at var(--lx) var(--ly), rgba(255, 255, 255, .55), transparent 40%); mix-blend-mode: soft-light; }
.zm-det-stage.zm-3d.zm-3d-lupa { cursor: zoom-out; }
.zm-det-stage.zm-3d.zm-3d-lupa #mainImage { transform: scale(2.3); transition: transform .45s cubic-bezier(.2, .8, .2, 1); filter: none; }
.zm-3d-pista { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; font: 700 11px/1 var(--zm-body); letter-spacing: .08em; color: #0a0a0a; background: rgba(255, 255, 255, .75); backdrop-filter: blur(10px); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); pointer-events: none; transition: opacity .5s, translate .5s; white-space: nowrap; }
.zm-3d-pista.fuera { opacity: 0; translate: -50% 8px; }

/* 1b. Botones inmersivos */
.zm-inmersivo .zm-btn,
.zm-inmersivo .js-quick-add-trigger { translate: var(--bx, 0px) var(--by, 0px); transition: translate .45s cubic-bezier(.2, .9, .25, 1.4), transform .35s var(--zm-ease), box-shadow .35s var(--zm-ease), background .3s, color .3s; }
.zm-inmersivo .zm-btn::before,
.zm-inmersivo .js-quick-add-trigger::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(90px circle at var(--bgx, 50%) var(--bgy, 50%), rgba(255, 255, 255, .55), transparent 70%); mix-blend-mode: soft-light; }
.zm-inmersivo .zm-btn:hover::before,
.zm-inmersivo .js-quick-add-trigger:hover::before { opacity: 1; }
.zm-inmersivo .js-quick-add-trigger { position: relative; overflow: hidden; }
.zm-inmersivo .zm-btn:active,
.zm-inmersivo .js-quick-add-trigger:active { transform: translateY(1px) scale(.96); box-shadow: inset 0 3px 10px rgba(0, 0, 0, .35), 0 6px 16px -10px var(--zm-glow); transition-duration: .08s; }
.zm-onda { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .15) 40%, transparent 65%); transform: scale(0); opacity: 1; animation: zm-onda .7s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes zm-onda { to { transform: scale(1); opacity: 0; } }

/* ================= Tipo app (include/zm-app.php + zm-app.js) ================= */

/* Barra inferior del celular */
.zm-appbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px; background: rgba(12, 12, 14, .72); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -20px rgba(0, 0, 0, .9); view-transition-name: zm-appbar; }
.zm-appbar-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 0 6px; border-radius: 20px; color: rgba(255, 255, 255, .62); font: 700 10px/1 var(--zm-body); letter-spacing: .04em; transition: color .25s, background .25s, transform .2s; }
.zm-appbar-item i { font-size: 18px; transition: transform .35s cubic-bezier(.2, .9, .25, 1.4); }
.zm-appbar-item:active { transform: scale(.92); }
.zm-appbar-item.activo { color: var(--zm-a-ink); background: var(--zm-a); box-shadow: 0 8px 24px -10px var(--zm-glow); }
.zm-appbar-item.activo i { transform: translateY(-1px) scale(1.08); }
.zm-appbar-count { position: absolute; top: -7px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; font: 800 9.5px/1 var(--zm-body); background: var(--zm-b); color: #fff; box-shadow: 0 0 0 2px #0c0c0e; }
@media (max-width: 1023px) {
    body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    /* El globo de ZapaBot (viene del CRM) sube por encima de la barra */
    #universo-chat { position: relative; z-index: 95; }
    html:not(.zm-spot-abierto) #universo-chat { translate: 0 calc(-78px - env(safe-area-inset-bottom)); }
}

/* Buscador tipo Spotlight */
.zm-spot { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.zm-spot[hidden] { display: none; }
.zm-spot-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.zm-spot-caja { position: relative; width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--zm-line-2), 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 120px -40px var(--zm-glow); opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .25, 1.15); }
.zm-spot.visible .zm-spot-fondo { opacity: 1; }
.zm-spot.visible .zm-spot-caja { opacity: 1; transform: none; }
.zm-spot-barra { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--zm-line); color: var(--zm-mute); font-size: 18px; }
.zm-spot-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--zm-text); font: 600 21px/1.2 var(--zm-body); letter-spacing: -.01em; }
.zm-spot-input::placeholder { color: var(--zm-dim); }
.zm-spot-input::-webkit-search-cancel-button { display: none; }
.zm-spot.cargando .zm-spot-barra > .fa-magnifying-glass { animation: zm-latido .8s ease-in-out infinite; color: var(--zm-a); }
@keyframes zm-latido { 50% { opacity: .35; transform: scale(.9); } }
.zm-spot kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; font: 700 10.5px/1 var(--zm-body); color: var(--zm-mute); background: rgba(255, 255, 255, .06); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--zm-line); }
.zm-spot-secciones { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--zm-line); }
.zm-spot-secciones button { padding: 7px 14px; border-radius: 999px; font: 800 11px/1 var(--zm-body); letter-spacing: .12em; text-transform: uppercase; color: var(--zm-mute); transition: all .25s; }
.zm-spot-secciones button.on { background: var(--zm-a); color: var(--zm-a-ink); }
.zm-spot-resultados { overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 10px; }
.zm-spot-resultados:empty { display: none; }
.zm-spot-titulo { padding: 12px 10px 6px; font: 800 10px/1 var(--zm-body); letter-spacing: .24em; text-transform: uppercase; color: var(--zm-dim); }
.zm-spot-prod, .zm-spot-fila { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 14px; color: var(--zm-text); transition: background .15s; }
.zm-spot-prod img, .zm-spot-sinfoto { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; object-fit: contain; padding: 5px; background: radial-gradient(120% 90% at 50% 15%, #fff, #e9e9ee); display: grid; place-items: center; color: #999; }
.zm-spot-prod b { display: block; font: 700 14.5px/1.25 var(--zm-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-spot-prod small { display: block; margin-top: 3px; font: 700 10px/1 var(--zm-body); letter-spacing: .16em; text-transform: uppercase; color: var(--zm-dim); }
.zm-spot-prod em { margin-left: auto; font: 800 15px/1 var(--zm-body); font-style: normal; color: var(--zm-a); white-space: nowrap; font-variant-numeric: tabular-nums; }
.zm-spot-fila i { width: 20px; text-align: center; color: var(--zm-dim); }
.zm-spot-fila span { font: 600 14.5px/1.2 var(--zm-body); }
.zm-spot-prod:hover, .zm-spot-fila:hover, .zm-spot-prod.sel, .zm-spot-fila.sel { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--zm-line-2); }
.zm-spot-vacio { padding: 36px 10px; text-align: center; color: var(--zm-mute); }
.zm-spot-vacio i { font-size: 26px; color: var(--zm-dim); }
.zm-spot-vacio p { margin-top: 10px; font-weight: 700; color: var(--zm-text); }
.zm-spot-pie { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--zm-line); font: 600 11px/1 var(--zm-body); color: var(--zm-dim); }
.zm-spot-pie kbd { margin-right: 3px; }
@media (max-width: 640px) { .zm-spot { padding: 10px 10px 0; } .zm-spot-caja { max-height: calc(100svh - 20px); } .zm-spot-input { font-size: 18px; } .zm-spot-pie { display: none; } }

/* Transiciones entre páginas (navegación entre documentos; si el navegador no las soporta, no pasa nada) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: zm-vt-salida .35s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: zm-vt-entrada .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes zm-vt-salida { to { opacity: 0; transform: scale(.985); filter: blur(3px); } }
@keyframes zm-vt-entrada { from { opacity: 0; transform: translateY(14px) scale(1.01); } }
.zm-vt-prod, .zm-det-stage #mainImage { view-transition-name: zm-prod; }
::view-transition-group(zm-prod) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
body:not(.home-page) .wrapper-indumentaria nav, body:not(.home-page) .wrapper-electro nav { view-transition-name: zm-nav; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Una sola barra de desplazamiento: con una ventana abierta (body.overflow-hidden) la página no scrollea, y las
   ventanas de acceso mayorista no se desbordan de costado (antes se veían dos barras verticales y una horizontal). */
html:has(body.overflow-hidden) { overflow: hidden; }
#modalMayorista, #modalMayoristaElectro { overflow-x: hidden; scrollbar-width: none; }
#modalMayorista::-webkit-scrollbar, #modalMayoristaElectro::-webkit-scrollbar { display: none; }
html { scrollbar-color: rgba(255, 255, 255, .2) #09090b; }
