/*
Theme Name: MG Tema
Theme URI: https://mgtechnologycol.com.co
Description: Tema hijo de Hello Elementor para MG Technology: identidad amarilla, tarjetas con foto en fondo blanco y en uso, categorías con filtros instantáneos, ficha con galería, video y WhatsApp, y modo mayorista por link. Hecho para cargar rápido en celulares básicos.
Author: MG Technology
Template: hello-elementor
Version: 1.0.8
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mg-tema
*/

/* Estilos del prototipo (prototipo/assets/app.css) adaptados a WordPress.
   Al final están las piezas propias de WordPress y WooCommerce. */

@font-face { font-family: 'Sora'; src: url('assets/fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('assets/fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --y: #ffc61a;            /* amarillo MG */
  --y-2: #ffd84d;
  --y-3: #fff3c4;
  --y-deep: #e59a00;
  --ink: #111113;
  --ink-2: #4a4a50;
  --ink-3: #85858c;
  --line: #e6e4dd;
  --bg: #ffffff;
  --bg-2: #f7f6f2;
  --bg-3: #efede6;
  --cyan: #19c9f5;
  --deal: #e1251b;
  --ok: #138a3d;
  --wa: #25d366;
  --r: 24px;
  --r-sm: 16px;
  --sh: 0 1px 2px rgba(17, 17, 19, .05), 0 10px 30px rgba(17, 17, 19, .07);
  --sh-lg: 0 6px 16px rgba(17, 17, 19, .08), 0 30px 60px rgba(17, 17, 19, .12);
  --f-h: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --f-b: 'Jakarta', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1280px;
  --g: 16px;
  --hh: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 700px) { :root { --g: 28px; } }
@media (min-width: 1100px) { :root { --g: 40px; --hh: 72px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(17, 17, 19, .35); outline-offset: 2px; border-radius: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--f-h); letter-spacing: -.025em; margin: 0; }
.h-hero { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.0; font-weight: 800; letter-spacing: -.045em; }
.h-xl { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; font-weight: 750; letter-spacing: -.035em; }
.h-lg { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.h-md { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--f-h); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255, 198, 26, .25); }
.muted { color: var(--ink-3); }
.mark { background: linear-gradient(transparent 60%, rgba(255, 255, 255, .85) 60%, rgba(255, 255, 255, .85) 92%, transparent 92%); padding: 0 .06em; }
.mark-y { background: linear-gradient(transparent 60%, var(--y) 60%, var(--y) 92%, transparent 92%); padding: 0 .06em; }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head p { margin: 10px 0 0; }
.link { font: 700 15px/1 var(--f-h); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-bottom: 2.5px solid var(--y); padding-bottom: 4px; transition: gap .3s var(--ease); }
.link:hover { gap: 10px; }
.link svg { width: 16px; height: 16px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--f-h); letter-spacing: -.01em; transition: transform .25s var(--ease), background-color .2s, box-shadow .3s, color .2s; white-space: nowrap; position: relative; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(17, 17, 19, .25); }
.btn-dark:hover { background: #000; box-shadow: 0 12px 30px rgba(17, 17, 19, .35); transform: translateY(-2px); }
.btn-y { background: var(--y); color: var(--ink); box-shadow: 0 8px 22px rgba(229, 154, 0, .35); }
.btn-y:hover { background: var(--y-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(229, 154, 0, .45); }
.btn-ghost { background: rgba(255, 255, 255, .72); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(17, 17, 19, .15); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fbe5a; transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; transition: background-color .2s; position: relative; }
.icon-btn:hover { background: rgba(17, 17, 19, .06); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- barra de progreso, barra superior y header ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 200; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
html[data-mode="mayorista"] .progress { background: var(--y); }
.topbar { background: var(--ink); color: #f4f4f0; font-size: 13px; font-weight: 600; }
.topbar .wrap { height: 36px; display: flex; align-items: center; justify-content: center; gap: 30px; overflow: hidden; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.topbar svg { width: 16px; height: 16px; color: var(--y); }
.topbar .tb-rot { display: none; }
@media (max-width: 899px) { .topbar .tb-all { display: none; } .topbar .tb-rot { display: inline-flex; } }
html[data-mode="mayorista"] .topbar { background: var(--y); color: var(--ink); }
html[data-mode="mayorista"] .topbar svg { color: var(--ink); }

.header { position: sticky; top: 0; z-index: 60; height: var(--hh); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(17, 17, 19, .06); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 8px 30px rgba(17, 17, 19, .07); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand .logo-mark { height: 44px; width: auto; flex: none; transition: transform .5s var(--spring); overflow: visible; }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.brand b { font: 800 14px/1 var(--f-h); letter-spacing: .2em; }
.badge-wh { background: var(--ink); color: var(--y); font: 800 11px/1 var(--f-h); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.nav { display: none; gap: 2px; margin-left: 8px; }
.nav a { font: 600 14px/1 var(--f-h); color: var(--ink-2); padding: 10px 11px; border-radius: 999px; transition: color .2s, background-color .2s; letter-spacing: -.01em; }
.nav a:hover { color: var(--ink); background: rgba(17, 17, 19, .05); }
.nav a.on { color: var(--ink); background: var(--y); }
.nav a.deal { color: var(--deal); }
.nav a.deal.on { color: #fff; background: var(--deal); }
.h-search { display: none; flex: 0 1 230px; min-width: 150px; margin-left: auto; white-space: nowrap; height: 44px; border-radius: 999px; background: var(--bg-2); align-items: center; gap: 10px; padding: 0 16px; color: var(--ink-3); font-size: 14px; transition: background-color .2s, box-shadow .2s; }
.h-search:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.h-search svg { width: 18px; height: 18px; flex: none; }
.h-search span { overflow: hidden; text-overflow: ellipsis; }
.h-search kbd { margin-left: auto; font: 700 11px/1 var(--f-h); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.h-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--y); color: var(--ink); font: 800 11px/19px var(--f-h); text-align: center; transform: scale(0); transition: transform .35s var(--spring); }
.cart-count.on { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
.menu-btn { display: inline-grid; }
@media (min-width: 1240px) {
  .nav { display: flex; }
  .h-search { display: flex; }
  .h-actions { margin-left: 0; }
  .h-actions .s-btn, .menu-btn { display: none; }
}

/* menú flotante (aparece con 300 ms de espera, recomendación de Baymard) */
.flyout { position: absolute; left: 0; right: 0; top: 100%; background: rgba(255, 255, 255, .98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px rgba(17, 17, 19, .08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.flyout.on { opacity: 1; visibility: visible; transform: none; }
.flyout .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding-top: 28px; padding-bottom: 32px; }
.fly-intro { border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; background: var(--tint, var(--y-3)); min-height: 220px; }
.fly-intro img { width: 140px; height: 150px; object-fit: contain; position: absolute; right: 4px; bottom: 0; }
.fly-intro h3 { font-size: 26px; margin-bottom: 6px; }
.fly-intro p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; max-width: 140px; }
.fly-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { display: block; border-radius: var(--r-sm); padding: 10px; transition: background-color .2s, transform .3s var(--ease); }
.mini:hover { background: var(--bg-2); transform: translateY(-2px); }
.mini .ph { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-2); margin-bottom: 10px; }
.mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.mini .ph.white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mini .ph.white img { object-fit: contain; }
.mini b { display: block; font: 600 14px/1.3 var(--f-h); letter-spacing: -.01em; }
.mini span { font: 700 13px/1.3 var(--f-h); }
.mini s { color: var(--ink-3); font-weight: 500; margin-left: 4px; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--y); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(17, 17, 19, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 19, .07) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: blob 16s ease-in-out infinite; }
.hero .b1 { width: 520px; height: 520px; right: 4%; top: -10%; background: rgba(255, 255, 255, .7); }
.hero .b2 { width: 420px; height: 420px; right: 30%; bottom: -30%; background: rgba(255, 150, 0, .45); animation-delay: -5s; }
.hero .b3 { width: 300px; height: 300px; left: -8%; top: 10%; background: rgba(255, 240, 170, .8); animation-delay: -9s; }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.94); } }
.hero .wrap { display: grid; gap: 6px; align-items: center; padding-top: 34px; padding-bottom: 16px; }
.hero-copy .kicker { background: rgba(255, 255, 255, .78); color: var(--ink); padding: 9px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .06em; }
.hero-copy .kicker i { background: var(--ok); box-shadow: 0 0 0 4px rgba(19, 138, 61, .18); }
.hero-copy .lead { color: rgba(17, 17, 19, .78); margin: 18px 0 26px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; font: 600 14px/1.2 var(--f-b); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; }
.hero-stage { position: relative; height: 430px; }
.hero-bot { position: absolute; inset: 0 10%; }
.hero-bot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; animation: bot-flota 4.6s ease-in-out infinite; }
@keyframes bot-flota { 50% { translate: 0 -12px; } }
.bubble { position: absolute; left: 52%; top: 2%; background: #fff; color: var(--ink); font: 700 14px/1.2 var(--f-h); padding: 11px 15px; border-radius: 16px 16px 16px 4px; box-shadow: var(--sh); white-space: nowrap; z-index: 3; opacity: 0; transform: translateY(8px) scale(.85); transition: opacity .35s, transform .45s var(--spring); pointer-events: none; }
.bubble.on { opacity: 1; transform: none; }
.float-card { position: absolute; z-index: 2; background: rgba(255, 255, 255, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; padding: 10px 14px 10px 10px; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px; transition: transform .5s var(--ease), box-shadow .3s; animation: drift 7s ease-in-out infinite; }
.float-card:hover { box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.float-card img { width: 66px; height: 66px; object-fit: contain; border-radius: 12px; background: #fff; }
.float-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 13px/1.2 var(--f-h); max-width: 120px; }
.float-card span { font: 800 15px/1.2 var(--f-h); }
.float-card s { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 500; }
.float-card .off { position: absolute; top: -9px; right: -9px; background: var(--deal); color: #fff; font: 800 12px/1 var(--f-h); padding: 6px 8px; border-radius: 999px; }
.fc1 { left: -2%; top: 60%; }
.fc2 { right: -3%; top: 46%; animation-delay: -2.5s; }
.fc3 { left: -4%; top: 6%; animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 -10px; } }
@media (max-width: 899px) { .fc3 { display: none; } .fc1 { top: 68%; } .fc2 { top: 40%; } .float-card img { width: 46px; height: 46px; } .float-card b { max-width: 88px; font-size: 11.5px; } .float-card span { font-size: 13px; } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.02fr 1fr; min-height: min(80vh, 740px); padding-top: 40px; padding-bottom: 40px; }
  .hero-stage { height: min(70vh, 620px); }
}

/* ---------- marquesina ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { display: inline-flex; align-items: center; padding: 20px 0; font: 700 clamp(16px, 2vw, 22px)/1 var(--f-h); letter-spacing: -.01em; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--y); font-size: .8em; margin: 0 26px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.y { background: var(--y); color: var(--ink); }
.marquee.y span::after { color: var(--ink); }

/* ---------- carriles ---------- */
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--g) 34px; margin: 0 calc(var(--g) * -1); scroll-padding: 0 var(--g); scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.track > * { flex: none; scroll-snap-align: start; }
/* Flechas del carril: sobre las tarjetas, a los lados y a media altura (el carril tiene 8 px arriba y 34 abajo).
   Solo con mouse y pantalla ancha; en celular se desliza y la siguiente tarjeta asoma. */
.scroller { position: relative; }
.sc-btn { display: none; position: absolute; z-index: 3; top: calc(50% - 13px); translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh), inset 0 0 0 1.5px var(--line); place-items: center; transition: box-shadow .2s, background-color .2s, scale .2s; }
.sc-btn:hover { background: var(--y); box-shadow: var(--sh), inset 0 0 0 1.5px var(--ink); scale: 1.06; }
.sc-btn svg { width: 20px; height: 20px; }
.sc-prev { left: -20px; }
.sc-next { right: -20px; }
@media (min-width: 900px) and (hover: hover) { .sc-btn { display: grid; } .sc-btn[hidden] { display: none; } }

/* ---------- tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); isolation: isolate; }
.card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px transparent, var(--sh-lg); }
.card.rail { width: min(62vw, 270px); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 1; border-radius: calc(var(--r) - 6px); margin: 6px 6px 0; overflow: hidden; background: var(--bg-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.card-media.white { background: #fff; }
.card-media.white img.m1 { object-fit: contain; }
.card-media img.m2 { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media img.m1 { transform: scale(1.06); }
  .card:hover .card-media.has2 img.m2 { opacity: 1; transform: scale(1.03); }
  .card:hover .card-media.has2 img.m1 { opacity: 0; }
}
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.bdg { font: 800 11.5px/1 var(--f-h); padding: 7px 9px; border-radius: 999px; letter-spacing: .02em; display: inline-flex; gap: 4px; align-items: center; }
.bdg svg { width: 13px; height: 13px; }
.bdg.off { background: var(--deal); color: #fff; font-size: 13px; }
.bdg.new { background: var(--ink); color: var(--y); }
.bdg.out { background: rgba(255, 255, 255, .94); color: var(--ink-2); }
.card.is-out .card-media img { filter: grayscale(.7); opacity: .6; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font: 700 10.5px/1 var(--f-h); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.card-body h3 { font: 600 15px/1.3 var(--f-h); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; }
.price-row b { font: 800 19px/1.1 var(--f-h); letter-spacing: -.02em; }
.price-row s { font-size: 13px; color: var(--ink-3); }
.price-row .unit { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.save { font: 700 12.5px/1.2 var(--f-b); color: var(--ok); }
.save.wh { color: var(--ink-3); font-weight: 600; }
.quick-add { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; z-index: 3; box-shadow: 0 6px 16px rgba(229, 154, 0, .4); transition: transform .35s var(--spring), background-color .2s, opacity .25s; }
.quick-add svg { width: 20px; height: 20px; }
.quick-add:hover { transform: scale(1.12) rotate(90deg); }
.quick-add.done { background: var(--ok); color: #fff; }
@media (hover: hover) and (min-width: 900px) { .quick-add { opacity: 0; transform: scale(.6); } .card:hover .quick-add { opacity: 1; transform: none; } }
@media (min-width: 700px) { .card-body h3 { font-size: 16px; } .price-row b { font-size: 21px; } }

/* ---------- ofertas ---------- */
.deals { background: var(--bg-2); }
.deal-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--deal); color: #fff; font: 800 12px/1 var(--f-h); letter-spacing: .12em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; margin-bottom: 14px; }
.deal-chip svg { width: 15px; height: 15px; }

/* ---------- categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.cat-card { --rx: 0deg; --ry: 0deg; position: relative; border-radius: var(--r); background: radial-gradient(120% 90% at 85% 5%, rgba(255, 255, 255, .9), transparent 55%), var(--tint); min-height: 210px; padding: 18px; overflow: hidden; isolation: isolate; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column; justify-content: space-between; }
.cat-card:hover { box-shadow: var(--sh-lg); }
.cat-card::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -14%; bottom: -16%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 198, 26, .95), rgba(255, 198, 26, 0) 68%); z-index: -1; transition: transform .6s var(--ease); }
.cat-card:hover::before { transform: scale(1.25); }
.cat-card img { position: absolute; right: -2%; bottom: 0; width: 64%; height: 78%; object-fit: contain; object-position: right bottom; z-index: -1; transition: transform .6s var(--spring); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18)); }
.cat-card:hover img { transform: translateY(-10px) rotate(-4deg) scale(1.06); }
.cat-card h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 750; max-width: 62%; }
.cat-card small { display: block; font: 600 13px/1.3 var(--f-b); color: var(--ink-2); margin-top: 4px; max-width: 52%; }
.cat-card .go { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .4s var(--spring), background-color .2s, color .2s; }
.cat-card .go svg { width: 18px; height: 18px; }
.cat-card:hover .go { transform: rotate(-45deg) scale(1.08); background: var(--y); color: var(--ink); }
.cat-card.big { grid-column: span 2; min-height: 260px; }
@media (min-width: 800px) { .cat-card { min-height: 280px; padding: 24px; } .cat-card.big { grid-column: span 2; grid-row: span 2; } .cat-card.big h3 { font-size: 44px; } .cat-card.big small { font-size: 16px; } .cat-card.big img { width: 72%; height: 84%; } }

/* ---------- plancha: historia con el scroll ---------- */
.spot { position: relative; background: radial-gradient(1000px 600px at 75% 40%, rgba(232, 170, 150, .3), transparent 60%), linear-gradient(160deg, #1c1517 0%, #2b1f21 50%, #120e10 100%); color: #fff; }
.spot-scroll { height: 300vh; position: relative; }
.spot-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.spot-sticky .wrap { display: grid; gap: 10px; align-items: center; height: 100%; padding-top: calc(var(--hh) + 6px); padding-bottom: 20px; }
@media (min-width: 900px) { .spot-sticky .wrap { grid-template-columns: .9fr 1.1fr; gap: 40px; } }
.spot .kicker { color: #e8b4a6; }
.spot .kicker i { background: #e8b4a6; box-shadow: 0 0 0 4px rgba(232, 180, 166, .25); }
.spot h2 { color: #fff; margin: 14px 0 0; }
.spot-steps { position: relative; margin-top: 24px; min-height: 150px; }
.spot-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease); }
.spot-step.on { opacity: 1; transform: none; }
.spot-step b { display: block; font: 800 clamp(34px, 4.4vw, 60px)/1 var(--f-h); letter-spacing: -.045em; background: linear-gradient(135deg, #ffe0d3, #e8a089); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot-step p { margin: 10px 0 0; color: rgba(255, 255, 255, .72); font-size: 17px; max-width: 430px; }
.spot-dots { display: flex; gap: 8px; margin: 14px 0 26px; }
.spot-dots i { width: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: background-color .3s, width .3s; }
.spot-dots i.on { background: #e8b4a6; width: 46px; }
.spot-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spot-buy .p { font: 800 26px/1 var(--f-h); margin-right: 4px; }
.spot-buy .demo { width: 100%; font-size: 12px; color: rgba(255, 255, 255, .45); }
.spot-buy .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.spot-buy .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.spot-visual { position: relative; height: min(64vh, 580px); }
.spot-marcas { position: absolute; inset: 0; pointer-events: none; }
.spot-marcas i { position: absolute; left: 0; right: 0; }
.spot-foto { position: absolute; inset: 0; display: grid; place-items: center; }
.spot-foto img { width: min(78%, 460px); height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 32px; padding: 6%; rotate: -4deg; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .spot-scroll { view-timeline-name: --spot; }
    .spot-foto img { animation: spot-gira linear both; animation-timeline: --spot; animation-range: contain 0% contain 100%; }
    @keyframes spot-gira { from { rotate: 6deg; scale: .9; } to { rotate: -10deg; scale: 1.06; } }
  }
}
.spot-visual .halo { position: absolute; inset: 10% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 198, .32), transparent 65%); filter: blur(10px); }
@media (max-width: 899px) { .spot-scroll { height: 250vh; } .spot-visual { height: 40vh; order: -1; } .spot-steps { min-height: 128px; } .spot-step p { font-size: 15px; } }

/* ---------- tarjetas grandes "Lo último" ---------- */
.latest { background: var(--bg-2); }
.bigcard { width: min(78vw, 380px); background: #fff; border-radius: 28px; box-shadow: var(--sh); display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bigcard:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.bigcard .bc-media { height: 300px; padding: 22px; }
.bigcard .bc-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.bigcard:hover .bc-media img { transform: scale(1.07) rotate(-2deg); }
.bigcard .bc-body { padding: 0 28px 30px; }
.tags { display: flex; gap: 10px; font: 800 11px/1 var(--f-h); letter-spacing: .12em; text-transform: uppercase; min-height: 14px; }
.tag-new { color: #c2410c; } .tag-off { color: var(--deal); } .tag-wh { color: #8a5a00; } .tag-out { color: var(--ink-3); }
.bigcard h3 { font-size: 25px; line-height: 1.12; margin: 10px 0 8px; font-weight: 700; }
.bigcard .tag-line { font-weight: 600; margin: 0 0 18px; color: var(--ink-2); }
.bigcard .bc-price { font-size: 15px; color: var(--ink-2); margin: 0; }
.bigcard .bc-price b { font: 800 19px/1 var(--f-h); color: var(--ink); }

/* ---------- pasos ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; border-radius: var(--r); padding: 26px 24px; min-height: 290px; overflow: hidden; isolation: isolate; background: var(--bg-2); }
.step:nth-child(2) { background: var(--y-3); }
.step:nth-child(3) { background: #fde9c9; }
.step .n { font: 800 70px/1 var(--f-h); color: rgba(17, 17, 19, .07); position: absolute; right: 18px; top: 8px; letter-spacing: -.05em; }
.step h3 { font-size: 25px; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--ink-2); max-width: 56%; font-size: 15px; }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: 58%; }
.step .chips span { background: #fff; font: 700 12px/1 var(--f-h); padding: 7px 10px; border-radius: 999px; }
.step img { position: absolute; right: 2%; bottom: 0; height: 78%; width: 44%; object-fit: contain; object-position: right bottom; z-index: -1; transition: transform .6s var(--spring); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .15)); }
.step:hover img { transform: translateY(-8px) rotate(-3deg); }

/* ---------- bento ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 18px; } .bento .b-big { grid-column: span 2; grid-row: span 2; } .bento .b-wide { grid-column: span 2; } }
.b-tile { position: relative; border-radius: var(--r); overflow: hidden; min-height: 200px; isolation: isolate; background: var(--bg-3); }
.b-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.b-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72)); }
.b-tile:hover img { transform: scale(1.07); }
.b-tile .bt { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.b-tile h3 { font-size: 23px; }
.b-tile p { margin: 4px 0 0; font-size: 14px; opacity: .85; }
.b-tile .go { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; transform: scale(.7); opacity: 0; transition: transform .4s var(--spring), opacity .3s; }
.b-tile .go svg { width: 18px; height: 18px; }
.b-tile:hover .go { transform: none; opacity: 1; }
@media (min-width: 900px) { .b-big h3 { font-size: 42px; } }

/* ---------- confianza y CTA ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.trust > div { background: #fff; border-radius: var(--r-sm); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.trust svg { width: 30px; height: 30px; margin-bottom: 12px; padding: 0; }
.trust b { display: block; font: 700 16px/1.2 var(--f-h); margin-bottom: 4px; }
.trust span { font-size: 14px; color: var(--ink-2); }
.cta-wa { position: relative; overflow: hidden; border-radius: 34px; background: var(--y); padding: 38px 26px; display: grid; gap: 16px; isolation: isolate; }
.cta-wa::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(17, 17, 19, .12) 1.2px, transparent 1.2px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-wa img { position: absolute; right: 4%; bottom: 0; height: 112%; max-height: 380px; z-index: -1; transition: transform .6s var(--spring); }
.cta-wa:hover img { transform: rotate(-4deg) translateY(-6px); }
.cta-wa .lead { color: rgba(17, 17, 19, .78); max-width: 520px; }
.cta-wa > div { max-width: 640px; }
@media (max-width: 799px) { .cta-wa img { opacity: .22; } }
@media (min-width: 800px) { .cta-wa { padding: 60px; } }

/* ---------- mayorista ---------- */
.tiers { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: #fff; border-radius: var(--r-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tiers th, .tiers td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tiers tr:last-child td { border-bottom: 0; }
.tiers th { background: var(--bg-2); font: 700 11px/1 var(--f-h); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tiers td b { font: 800 16px/1 var(--f-h); }
.tiers tr.on td { background: var(--y-3); }
.wh-banner { display: grid; gap: 20px; background: var(--ink); color: #fff; border-radius: 32px; padding: 32px 26px; }
.wh-banner h2 { color: #fff; }
.wh-banner p { color: rgba(255, 255, 255, .72); margin: 10px 0 0; }
.wh-banner .tiers { color: var(--ink); }
@media (min-width: 900px) { .wh-banner { grid-template-columns: 1fr 1fr; align-items: center; padding: 48px; } }

/* ---------- página de categoría ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 16px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.c-hero { position: relative; overflow: hidden; border-radius: 32px; margin-top: 14px; padding: 28px 22px; min-height: 230px; background: radial-gradient(110% 120% at 85% 0%, rgba(255, 255, 255, .85), transparent 55%), var(--tint, var(--y-3)); isolation: isolate; display: grid; align-content: end; }
.c-hero::before { content: ""; position: absolute; right: -6%; bottom: -34%; width: 440px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 198, 26, .95), rgba(255, 198, 26, 0) 68%); z-index: -1; }
.c-hero img.bot { position: absolute; right: 2%; bottom: 0; height: 92%; max-height: 360px; width: 42%; object-fit: contain; object-position: right bottom; z-index: -1; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .2)); animation: floaty 4.2s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.c-hero h1 { max-width: 60%; }
.c-hero .lead { max-width: 52%; margin-top: 8px; }
.c-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 62%; }
.c-stats span { background: rgba(255, 255, 255, .82); border-radius: 999px; padding: 9px 12px; font: 700 13px/1 var(--f-h); }
.c-stats span.off { background: var(--deal); color: #fff; }
@media (min-width: 900px) { .c-hero { padding: 48px; min-height: 330px; } }
@media (max-width: 599px) { .c-hero h1, .c-hero .lead, .c-stats { max-width: 62%; } .c-hero img.bot { width: 46%; height: 78%; } }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px var(--g) 8px; margin: 0 calc(var(--g) * -1); }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 14px/1 var(--f-h); display: inline-flex; align-items: center; gap: 8px; background: #fff; transition: box-shadow .2s, background-color .2s, color .2s; white-space: nowrap; letter-spacing: -.01em; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.deal { color: var(--deal); }
.chip.deal.on { background: var(--deal); color: #fff; }
.chip small { opacity: .6; font-size: 12px; }
.chip img { width: 28px; height: 28px; object-fit: contain; margin-left: -8px; }
.toolbar { position: sticky; top: var(--hh); z-index: 30; background: rgba(255, 255, 255, .93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.toolbar .wrap { display: flex; gap: 8px; align-items: center; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.toolbar .wrap::-webkit-scrollbar { display: none; }
.toolbar .count { font: 700 14px/1 var(--f-h); white-space: nowrap; margin-right: 6px; }
.toolbar select { height: 42px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 36px 0 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; font: 600 14px/1 var(--f-h); appearance: none; -webkit-appearance: none; margin-left: auto; flex: none; }
.empty { text-align: center; padding: 60px 0; }
.empty img { width: 170px; margin: 0 auto 16px; }

/* ---------- página de producto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 12px 0 40px; }
.pdp > * { min-width: 0; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding-top: 18px; } }
.stage { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--bg-2); }
.stage.white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.stage > img, .stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.white > img { object-fit: contain; }
.stage.zoom > img { cursor: zoom-in; transition: transform .25s ease-out; }
.stage.zoom.zooming > img { transform: scale(1.9); cursor: zoom-out; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 78px; height: 78px; border-radius: 16px; overflow: hidden; background: var(--bg-2); position: relative; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .3s var(--ease); }
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.white { background: #fff; }
.thumb.white img { object-fit: contain; }
.thumb.on { box-shadow: inset 0 0 0 2.5px var(--ink); }
.thumb .tl { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 17, 19, .55); color: #fff; }
.thumb .tl svg { width: 24px; height: 24px; }
@media (min-width: 960px) { .pdp-info { position: sticky; top: calc(var(--hh) + 24px); align-self: start; } }
.pdp-info h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -.035em; margin: 10px 0 8px; font-weight: 750; }
.pdp-info .tag-line { font-size: 18px; font-weight: 600; color: var(--ink-2); margin: 0 0 18px; }
.buybox { background: var(--bg-2); border-radius: var(--r); padding: 20px; margin-bottom: 14px; }
.pdp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.pdp-price .p { font: 800 36px/1 var(--f-h); letter-spacing: -.035em; }
.pdp-price s { color: var(--ink-3); font-size: 16px; }
.pdp-save { color: var(--ok); font-weight: 700; margin-top: 8px; }
.addi-line { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.addi-line b { color: #2f55ff; }
.demo-note { font-size: 12px; color: var(--ink-3); margin: 8px 0 0; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ok); margin: 16px 0 12px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(19, 138, 61, .15); }
.stock.out { color: var(--deal); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 10px; }
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; height: 54px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--bg-2); }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 38px; text-align: center; border: 0; background: none; font: 800 16px/1 var(--f-h); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; font-size: 15px; align-items: start; font-weight: 600; }
.perks li svg { width: 22px; height: 22px; flex: none; }
.perks li span { color: var(--ink-3); display: block; font-size: 13.5px; font-weight: 500; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 700 16px/1 var(--f-h); cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.acc[open] summary svg { transform: rotate(45deg); }
.acc .acc-in { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.acc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.claims div { background: var(--bg-2); border-radius: var(--r); padding: 28px 10px; }
.claims b { display: block; font: 800 clamp(38px, 6vw, 70px)/1 var(--f-h); letter-spacing: -.05em; background: linear-gradient(135deg, #b9774f, #e8b4a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.claims span { font: 600 15px/1.2 var(--f-h); color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 800px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.specs div { background: #fff; padding: 22px 18px; }
.specs b { display: block; font: 800 26px/1.1 var(--f-h); letter-spacing: -.03em; }
.specs span { font-size: 14px; color: var(--ink-3); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .45s var(--ease); }
.buybar.on { transform: none; }
.buybar .bb { flex: 1; min-width: 0; }
.buybar .bb b { display: block; font: 600 13px/1.2 var(--f-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .bb span { font: 800 17px/1.2 var(--f-h); }
.buybar .bb s { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
@media (min-width: 960px) { .buybar { display: none; } }

/* ---------- carrito, menú, búsqueda, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 19, .35); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; box-shadow: -20px 0 60px rgba(0, 0, 0, .12); }
.drawer.left { left: 0; right: auto; transform: translateX(-100%); }
.drawer.on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.li-img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--bg-2); display: block; }
.li-img img { width: 100%; height: 100%; object-fit: cover; }
.li-img.white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.li-img.white img { object-fit: contain; }
.line-item b { font: 600 14px/1.3 var(--f-h); display: block; }
.line-item .li-meta { font-size: 13px; color: var(--ink-3); }
.line-item .qty { height: 36px; margin-top: 6px; }
.line-item .qty button { width: 34px; }
.line-item .qty input { width: 28px; font-size: 14px; }
.line-item .rm { font-size: 12px; color: var(--ink-3); text-decoration: underline; }
.line-item .li-total { font: 800 15px/1.2 var(--f-h); text-align: right; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { font: 800 19px/1.2 var(--f-h); }
.sum-row.save-row { color: var(--ok); font-weight: 700; }
.min-order { background: var(--y-3); border-radius: 14px; padding: 12px; font-size: 13.5px; }
.min-order .bar { height: 6px; background: rgba(0, 0, 0, .08); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.min-order .bar i { display: block; height: 100%; background: var(--y-deep); border-radius: 99px; transition: width .5s var(--ease); }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); font: 700 17px/1.2 var(--f-h); }
.menu-list img { width: 52px; height: 52px; object-fit: contain; }
.menu-list span { margin-left: auto; color: var(--ink-3); font: 500 14px/1 var(--f-b); }
.menu-list a.deal { color: var(--deal); }
.search { position: fixed; inset: 0 0 auto 0; z-index: 90; background: #fff; transform: translateY(-104%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; max-height: 100dvh; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0, 0, 0, .12); }
.search.on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.search-bar { display: flex; align-items: center; gap: 10px; height: 74px; border-bottom: 1px solid var(--line); }
.search-bar svg { width: 24px; height: 24px; color: var(--ink-3); flex: none; }
.search-bar input { flex: 1; border: 0; font: 600 22px/1 var(--f-h); outline: none; background: none; min-width: 0; letter-spacing: -.02em; }
.search-res { overflow-y: auto; padding: 16px 0 28px; }
.search-res h4 { font: 700 12px/1 var(--f-h); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 8px 0 12px; }
.search-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; }
.search-row:hover { background: var(--bg-2); }
.search-row .li-img { width: 60px; height: 60px; }
/* Buscador: esqueletos mientras llega el catálogo (nunca el panel vacío). */
.s-cargando { margin: 14px 8px 6px; }
.search-row.sk .li-img, .search-row.sk b, .search-row.sk span { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--bg-2) 25%, #fff 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.search-row.sk b { height: 14px; width: 70%; margin-bottom: 8px; }
.search-row.sk span { height: 11px; width: 40%; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .search-row.sk .li-img, .search-row.sk b, .search-row.sk span { animation: none; } }
.search-row b { font: 600 15px/1.3 var(--f-h); }
.search-row mark { background: var(--y-3); color: inherit; border-radius: 3px; }
.search-row span { font-size: 13px; color: var(--ink-3); display: block; }
.search-row .pr { font: 800 15px/1.2 var(--f-h); text-align: right; }
.search-row .pr s { display: block; font: 500 12px/1.2 var(--f-b); color: var(--ink-3); }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; left: 50%; top: calc(var(--hh) + 50px); z-index: 120; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; display: flex; gap: 12px; align-items: center; box-shadow: var(--sh-lg); transition: transform .45s var(--spring), opacity .3s; width: max-content; max-width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; }
.toast span { flex: 1; min-width: 0; }
.toast a { color: var(--y); font-weight: 800; white-space: nowrap; }

/* ---------- asistente flotante ---------- */
.assist { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: end; gap: 10px; transition: bottom .4s var(--ease); }
body.has-buybar .assist { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body.has-buybar .assist { bottom: 24px; } .assist { right: 24px; bottom: 24px; } }
.assist-btn { width: 70px; height: 70px; border-radius: 50%; background: var(--y); box-shadow: 0 10px 26px rgba(229, 154, 0, .5); display: grid; place-items: center; transition: transform .4s var(--spring); position: relative; }
.assist-btn:hover { transform: scale(1.08) rotate(-8deg); }
.assist-btn .mascot-head { width: 58px; height: 58px; margin-top: 4px; animation: nod 5s ease-in-out infinite; }
@keyframes nod { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-10deg); } 82% { transform: rotate(8deg); } 88% { transform: rotate(-4deg); } }
.assist-btn .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--y); animation: ping 2.6s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.assist-label { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); background: #fff; padding: 9px 13px; border-radius: 12px; box-shadow: var(--sh); font: 700 14px/1 var(--f-h); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.assist-btn:hover .assist-label { opacity: 1; }
.assist-pop { background: #fff; border-radius: 22px; box-shadow: var(--sh-lg); padding: 14px; width: 280px; transform-origin: bottom right; transform: scale(.85) translateY(8px); opacity: 0; visibility: hidden; transition: transform .4s var(--spring), opacity .25s, visibility .25s; }
.assist.on .assist-pop { transform: none; opacity: 1; visibility: visible; }
.assist-pop p { margin: 2px 6px 10px; font: 700 15px/1.3 var(--f-h); }
.assist-pop a, .assist-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600; text-align: left; }
.assist-pop a:hover, .assist-pop button:hover { background: var(--bg-2); }
.assist-pop svg { width: 20px; height: 20px; flex: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; position: relative; overflow: hidden; }
.footer .wrap { padding-top: 64px; padding-bottom: 30px; position: relative; }
.f-top { display: grid; gap: 34px; }
@media (min-width: 900px) { .f-top { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.f-logo { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 20px; padding: 12px 18px 12px 14px; }
.f-logo .logo-mark { height: 46px; width: auto; }
.f-logo b { font: 800 13px/1 var(--f-h); letter-spacing: .2em; }
.f-brand p { margin: 16px 0 0; max-width: 320px; }
.footer h4 { color: #fff; font: 700 13px/1 var(--f-h); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--y); }
.pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pays span { background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 7px 10px; font: 700 12px/1 var(--f-h); color: #fff; }
.f-bot { width: 170px; margin-top: 18px; transition: transform .6s var(--spring); }
.f-bot:hover { transform: rotate(-5deg) translateY(-6px); }
.f-big { font: 800 clamp(56px, 13vw, 200px)/.8 var(--f-h); letter-spacing: -.06em; color: rgba(255, 255, 255, .05); margin: 40px 0 0; white-space: nowrap; user-select: none; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 18px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* ---------- animaciones ligadas al scroll ----------
   Se usa la API nativa (animation-timeline) cuando existe; si no, una entrada simple con IntersectionObserver.
   Según NN/g: solo en imágenes y bloques secundarios, nunca en precios ni textos clave, y quedan quietas al terminar. */
/* Respaldo sin animation-timeline: mg.js marca .reveal solo lo que está por debajo de la pantalla. */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal.in { opacity: 1; translate: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }
    .sd-rise { animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    @keyframes sd-rise { from { opacity: 0; translate: 0 70px; scale: .96; } to { opacity: 1; translate: none; scale: none; } }
    .sd-par { animation: sd-par linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes sd-par { from { translate: 0 30px; } to { translate: 0 -30px; } }
    .sd-zoom { animation: sd-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes sd-zoom { from { scale: .9; opacity: .4; } to { scale: none; opacity: 1; } }
    .sd-slide { animation: sd-slide linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes sd-slide { from { opacity: 0; translate: 90px 0; } to { opacity: 1; translate: none; } }
    .hero-stage { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes hero-out { to { translate: 0 80px; scale: .94; opacity: .3; } }
    .f-big { animation: sd-big linear both; animation-timeline: view(); }
    @keyframes sd-big { from { translate: 10% 0; } to { translate: -12% 0; } }
  }
}
.site-main { min-height: 60vh; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-group(hero-img) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; translate: none; }
  .spot-scroll { height: auto; }
  .spot-sticky { position: relative; height: auto; }
}

/* header compacto en celulares pequeños */
@media (max-width: 480px) {
  .brand .logo-mark { height: 38px; }
  .brand b { font-size: 12px; letter-spacing: .14em; }
  html[data-mode="mayorista"] .brand b { display: none; }
  .header .wrap { gap: 6px; }
}


/* portada y categorías en celular */
@media (max-width: 899px) {
  .hero .wrap { padding-top: 22px; }
  .h-hero { font-size: clamp(34px, 9.4vw, 46px); }
  .hero-copy .kicker { font-size: 10.5px; padding: 8px 12px; margin-bottom: 14px; }
  .hero-copy .lead { font-size: 16px; margin: 12px 0 18px; }
  .hero-ctas .btn { height: 48px; padding: 0 18px; font-size: 15px; }
  .hero-trust { gap: 6px 14px; margin-top: 16px; font-size: 13px; }
  .hero-stage { height: 360px; }
  .hero-stage { animation: none !important; }
  .bubble { left: 34%; }
}
@media (max-width: 799px) {
  .cat-card:not(.big) small { display: none; }
  .cat-card h3 { max-width: 100%; font-size: 18px; }
  .cat-card:not(.big) img { width: 74%; height: 68%; }
}

/* =========================================================
   Portada estilo tienda colombiana (Alkosto, Falabella, MercadoLibre):
   accesos rápidos, beneficios, pestañas, banners, colecciones y precios bajos.
   ========================================================= */

/* accesos rápidos: tarjeta blanca montada sobre el borde de la portada */
.hero.has-qa .wrap { padding-bottom: 64px; }
@media (min-width: 900px) { .hero.has-qa .wrap { padding-bottom: 84px; } }
.qa-wrap { position: relative; z-index: 3; margin-top: -46px; }
.qa { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: #fff; border-radius: 26px; box-shadow: var(--sh-lg); padding: 16px 8px 12px; scroll-snap-type: x proximity; }
.qa::-webkit-scrollbar { display: none; }
.qa-i { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px 2px; border-radius: 18px; scroll-snap-align: start; text-align: center; }
.qa-c { position: relative; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .95), transparent 62%), var(--tint, var(--y-3)); display: grid; place-items: center; transition: transform .45s var(--spring), box-shadow .3s; }
/* el robot se apoya dentro del círculo y solo sobresale por arriba */
.qa-c img { position: absolute; left: 5%; bottom: 9%; width: 90%; height: 112%; object-fit: contain; object-position: center bottom; transform-origin: 50% 100%; transition: transform .45s var(--spring); filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .16)); }
.qa-i b { font: 650 12px/1.15 var(--f-h); letter-spacing: -.01em; }
@media (hover: hover) {
  .qa-i:hover .qa-c { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(17, 17, 19, .13); }
  .qa-i:hover .qa-c img { transform: translateY(-4px) scale(1.1) rotate(-5deg); }
}
.qa-i.deal .qa-c { background: radial-gradient(circle at 35% 28%, #ff7a5c, transparent 60%), var(--deal); color: #fff; }
.qa-i.deal .qa-c svg { width: 26px; height: 26px; }
.qa-i.deal em { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font: 800 10.5px/1 var(--f-h); font-style: normal; padding: 4px 6px; border-radius: 999px; white-space: nowrap; }
.qa-i.deal b { color: var(--deal); }
@media (min-width: 900px) {
  .qa { padding: 20px 14px 14px; justify-content: space-between; overflow: visible; }
  .qa-i { flex: 1 1 0; min-width: 0; }
  .qa-c { width: 82px; height: 82px; }
  .qa-i b { font-size: 14px; }
}

/* beneficios */
.usp { list-style: none; margin: 12px calc(var(--g) * -1) 0; padding: 0 var(--g) 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--g); }
.usp::-webkit-scrollbar { display: none; }
.usp li { flex: 0 0 auto; max-width: 250px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; background: var(--bg-2); scroll-snap-align: start; }
.usp svg { width: 24px; height: 24px; flex: none; }
.usp b { display: block; font: 700 13px/1.2 var(--f-h); letter-spacing: -.01em; }
.usp span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
@media (min-width: 900px) {
  .usp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--bg-2); border-radius: 22px; padding: 6px; margin: 18px 0 0; overflow: visible; }
  .usp li { max-width: none; background: none; border-radius: 0; padding: 14px 16px; }
  .usp li + li { box-shadow: inset 1px 0 0 var(--line); }
  .usp b { font-size: 14px; }
}
.qa-wrap + .section { margin-top: 40px; }

/* pestañas de ofertas por categoría */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -6px calc(var(--g) * -1) 6px; padding: 2px var(--g) 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .chip { cursor: pointer; }

/* banners de promoción */
.promos-sec { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) { .promos-sec { padding-top: 72px; padding-bottom: 72px; } }
.promos { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--g) * -1); padding: 4px var(--g) 8px; scroll-padding: 0 var(--g); }
.promos::-webkit-scrollbar { display: none; }
.promo { scroll-snap-align: start; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 6px; min-height: 220px; border-radius: var(--r); padding: 22px; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.promo:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.pr-txt { position: relative; z-index: 1; }
.pr-k { font: 800 11px/1.2 var(--f-h); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.promo h3 { font: 800 clamp(21px, 2.1vw, 28px)/1.05 var(--f-h); letter-spacing: -.035em; margin: 10px 0 8px; }
.promo h3 em { font-style: normal; display: block; font-size: 1.75em; letter-spacing: -.05em; }
.promo p { margin: 0 0 16px; font-size: 13.5px; opacity: .88; line-height: 1.4; }
.pr-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font: 700 14px/1 var(--f-h); background: var(--ink); color: #fff; white-space: nowrap; transition: transform .3s var(--spring); }
.pr-cta svg { width: 16px; height: 16px; flex: none; }
.promo:hover .pr-cta, .coll:hover .pr-cta { transform: translateX(4px); }
.pr-img { position: relative; height: 100%; min-height: 160px; }
.pr-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--spring); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .25)); }
.promo:hover .pr-img > img { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.p-deal { background: radial-gradient(120% 120% at 100% 0%, #ff6b4a 0%, transparent 55%), linear-gradient(135deg, #e1251b, #a90f0a); color: #fff; }
.p-deal .pr-cta { background: #fff; color: var(--deal); }
.p-new { background: radial-gradient(90% 90% at 80% 30%, rgba(232, 170, 150, .45), transparent 60%), linear-gradient(160deg, #2b1f21, #120e10); color: #fff; }
.p-new .pr-k { color: #e8b4a6; }
.p-new .pr-cta { background: #e8b4a6; color: #1c1517; }
.p-pay { background: radial-gradient(100% 100% at 100% 0%, #fff, transparent 60%), linear-gradient(135deg, #dfe9ff, #bcd2ff); color: var(--ink); }
.p-pay .pr-img > img { object-position: center bottom; }
/* fotos de producto en "fichas" blancas (para que el fondo blanco no se vea como un recorte) */
.pr-tiles span, .coll-imgs span { position: relative; display: grid; place-items: center; background: #fff; border-radius: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.pr-tiles span img, .coll-imgs span img { width: 88%; height: 88%; object-fit: contain; }
.pr-tiles span i, .coll-imgs span i { position: absolute; top: -8px; right: -8px; background: var(--deal); color: #fff; font: 800 11px/1 var(--f-h); font-style: normal; padding: 5px 7px; border-radius: 999px; }
.pr-tiles span { position: absolute; width: 64%; aspect-ratio: 1; transition: transform .6s var(--spring); }
.pr-tiles span:nth-child(1) { left: 2%; top: 4%; transform: rotate(-8deg); }
.pr-tiles span:nth-child(2) { right: 0; bottom: 2%; transform: rotate(7deg); }
.pr-tiles.pr-uno span:nth-child(1) { width: 82%; left: 10%; top: 8%; transform: rotate(-7deg); }
.promo:hover .pr-tiles.pr-uno span:nth-child(1) { transform: rotate(-11deg) translateY(-6px); }
.promo:hover .pr-tiles span:nth-child(1) { transform: rotate(-12deg) translateY(-6px); }
.promo:hover .pr-tiles span:nth-child(2) { transform: rotate(10deg) translateY(-4px); }
@media (min-width: 900px) {
  .promos { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; overflow: visible; margin: 0; padding: 0; }
  .promo { min-height: 260px; padding: 26px; }
}

/* colecciones */
.colls { display: grid; gap: 14px; }
@media (min-width: 900px) { .colls { grid-template-columns: 1fr 1fr; gap: 20px; } }
.coll { position: relative; display: grid; gap: 22px; border-radius: var(--r); padding: 24px; background: radial-gradient(120% 90% at 95% 0%, rgba(255, 255, 255, .9), transparent 55%), var(--tint); overflow: hidden; isolation: isolate; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.coll:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.coll > div { min-width: 0; }
.coll h3 { font: 800 clamp(26px, 2.8vw, 36px)/1.05 var(--f-h); letter-spacing: -.04em; margin: 12px 0 8px; }
.coll p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; max-width: 40ch; }
.coll-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.coll-imgs span { aspect-ratio: 1; box-shadow: 0 8px 20px rgba(17, 17, 19, .1); transition: transform .5s var(--spring); }
.coll-imgs span:nth-child(2) { transform: translateY(-12px); }
.coll:hover .coll-imgs span { transform: translateY(-6px); }
.coll:hover .coll-imgs span:nth-child(2) { transform: translateY(-20px); }
@media (min-width: 1100px) { .coll { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; padding: 30px; } }

/* =========================================================
   WordPress y WooCommerce
   ========================================================= */

/* transición suave entre páginas (Chrome, Edge y Safari) */
@view-transition { navigation: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; word-wrap: normal !important; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 300; background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--sh); }
img.emoji { display: inline !important; width: 1em !important; height: 1em !important; vertical-align: -.1em; }
[hidden] { display: none !important; }
.sec-acts { display: flex; gap: 18px; align-items: center; }
.drawer-body.is-loading { opacity: .6; pointer-events: none; transition: opacity .2s; }
.track.is-loading { opacity: .45; transition: opacity .2s; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.drawer-link { text-align: center; font-size: 14px; color: var(--ink-2); text-decoration: underline; }

/* barra de administración de WordPress (solo con sesión iniciada) */
@media (min-width: 601px) { .admin-bar .header { top: 46px; } .admin-bar .toolbar { top: calc(var(--hh) + 46px); } }
@media (min-width: 783px) { .admin-bar .header { top: 32px; } .admin-bar .toolbar { top: calc(var(--hh) + 32px); } }

@media (max-width: 420px) { html[data-mode="mayorista"] .topbar .tb-rot { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; } }

/* precios de WooCommerce dentro de los estilos del prototipo */
.woocommerce-Price-amount { white-space: nowrap; }
.price-row .unit:first-child { margin-right: -4px; }
.pdp-price .muted { font-weight: 600; }

/* mascota en SVG */
.mascot { width: 100%; height: auto; overflow: visible; display: block; }
.mascot * { transform-box: view-box; }
.mascot .mg-bot { animation: mg-float 3.4s ease-in-out infinite; transform-origin: 120px 290px; }
.mascot .mg-shadow { animation: mg-shadow 3.4s ease-in-out infinite; transform-origin: 120px 290px; }
.mascot .mg-head { transform-origin: 120px 140px; transition: transform .5s var(--ease); }
.mascot .mg-eyes, .mascot-head .mg-eyes { transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px)); transition: transform .18s ease-out; }
.mascot .mg-eye-open { transform-origin: 120px 86px; animation: mg-blink 5s infinite; transition: opacity .2s; }
.mascot-head .mg-eye-open { transform-box: view-box; transform-origin: 50px 52px; animation: mg-blink 5.5s infinite 1s; }
.mascot .mg-eye-happy { opacity: 0; transition: opacity .2s; }
.mascot .mg-arm-r { transform-origin: 166px 166px; animation: mg-idle-arm 7s ease-in-out infinite; }
.mascot .mg-cheek { opacity: 0; transition: opacity .3s; }
.mascot:hover .mg-head { transform: rotate(-7deg); }
.mascot:hover .mg-eye-open { opacity: 0; }
.mascot:hover .mg-eye-happy { opacity: 1; }
.mascot:hover .mg-cheek { opacity: .55; }
.mascot:hover .mg-arm-r { animation: mg-wave .42s ease-in-out infinite alternate; }
@keyframes mg-float { 50% { transform: translateY(-7px); } }
@keyframes mg-shadow { 50% { transform: scaleX(.84); opacity: .07; } }
@keyframes mg-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes mg-wave { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes mg-idle-arm { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-8deg); } }
.mascot-sm { width: 150px; margin: 0 auto 16px; }
.mascot-lg { width: 200px; margin: 0 auto 16px; }
.logo-mark .lg-head { transform-box: view-box; transform-origin: 100px 70px; transition: transform .45s var(--ease); }
.logo-mark .lg-hand { transform-box: view-box; transform-origin: 124px 52px; }
.logo-mark .lg-eyes { transform-box: view-box; transform-origin: 100px 42px; animation: mg-blink 6s infinite 1s; }
.brand:hover .lg-hand { animation: mg-wave .35s ease-in-out 3 alternate; }

/* WordPress pone width y height en las imágenes: el reset usa height:auto y cada caja define su alto. */
.quick-add { text-decoration: none; }

/* ---------- ficha del producto: formulario de WooCommerce con el estilo del prototipo ---------- */
.pdp-info .tags { margin-bottom: 2px; }
.pdp-info .tag-line p { margin: 0 0 8px; }
.pdp-info .tag-line { font-size: 16px; font-weight: 500; line-height: 1.5; }
.buybox form.cart { margin: 0 0 10px; }
.buybox form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.quantity { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; height: 54px; box-shadow: inset 0 0 0 1.5px var(--line); }
.quantity .qty-btn { width: 44px; height: 100%; display: grid; place-items: center; border-radius: 999px; }
.quantity .qty-btn:hover { background: var(--bg-2); }
.quantity .qty-btn svg { width: 16px; height: 16px; }
.quantity input.qty { box-shadow: none; height: 100%; border-radius: 0; display: block; width: 42px; text-align: center; border: 0; background: none; font: 800 16px/1 var(--f-h); -moz-appearance: textfield; padding: 0; outline-offset: -2px; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity:has(input[type="hidden"]) { display: none; }
.single_add_to_cart_button, .buybox .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--f-h); background: var(--y); color: var(--ink); box-shadow: 0 8px 22px rgba(229, 154, 0, .35); transition: transform .25s var(--ease), background-color .2s, box-shadow .3s; border: 0; cursor: pointer; white-space: nowrap; }
.single_add_to_cart_button::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.single_add_to_cart_button:hover { background: var(--y-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(229, 154, 0, .45); }
.single_add_to_cart_button:active { transform: scale(.97); }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.single_add_to_cart_button.is-loading { opacity: .7; pointer-events: none; }
@media (max-width: 380px) { .single_add_to_cart_button { padding: 0 14px; font-size: 15px; } .single_add_to_cart_button::before { display: none; } }
/* productos con opciones (variables) */
table.variations { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th label { font: 700 13px/1 var(--f-h); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); display: block; margin: 0 0 8px; }
table.variations td.value { margin-bottom: 12px; }
table.variations select { width: 100%; height: 50px; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 40px 0 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; font: 600 15px/1 var(--f-h); appearance: none; -webkit-appearance: none; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--ink-3); text-decoration: underline; }
.woocommerce-variation-price { margin: 0 0 10px; font: 800 22px/1 var(--f-h); }
.woocommerce-variation-price .price del { font-size: 15px; color: var(--ink-3); font-weight: 500; margin-right: 6px; }
.woocommerce-variation-price .price ins { text-decoration: none; }
.woocommerce-variation-availability { font-size: 14px; color: var(--ok); font-weight: 700; margin: 0 0 10px; }
.woocommerce-variation-availability .out-of-stock { color: var(--deal); }
.woocommerce-variation-description p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
/* tabla de escalones del plugin mayorista (dentro de la caja de compra) */
.mg-mayorista-escalones { margin: 14px 0 4px; }
.mg-mayorista-escalones .tiers { font-size: 14px; }
.mg-mayorista-reglas { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }
/* por mayor, producto sin precio: se consulta por WhatsApp (el botón lo pone el plugin mayorista) */
.price-row b.consultar { font-size: 15px; color: #128c4a; }
/* Más específico que ".woocommerce .button.alt" (que también usa !important) */
.woocommerce .buybox a.button.mg-consultar-precio-boton { width: 100%; background: var(--wa) !important; color: #fff !important; box-shadow: none; }
.woocommerce .buybox a.button.mg-consultar-precio-boton:hover { background: #1fbe5a !important; }
.addi-line b.detal { color: var(--ink); }
.addi-line b.margen { color: var(--ok); }
/* acordeones: descripción en HTML de WooCommerce */
.acc .acc-in h2, .acc .acc-in h3, .acc .acc-in h4 { font-size: 16px; margin: 16px 0 8px; letter-spacing: -.01em; }
.acc .acc-in > :first-child { margin-top: 0; }
.acc .acc-in p { margin: 0 0 10px; }
.acc .acc-in ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.acc .acc-in img { border-radius: 14px; margin: 10px 0; height: auto; }
.acc .acc-in table { width: 100%; border-collapse: collapse; }
.acc .acc-in th, .acc .acc-in td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.acc .acc-in th { width: 40%; font-weight: 700; }
/* galería */
.mg-galeria .stage video { background: #000; }

/* ---------- avisos de WooCommerce (agregado, errores) ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { list-style: none; margin: 16px 0; padding: 14px 18px; border-radius: 16px; background: var(--bg-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; border: 0; }
.woocommerce-message { background: #e8f6ec; }
.woocommerce-error { background: #fde8e6; color: #8f1710; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font: 700 14px/1 var(--f-h); text-decoration: underline; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }

/* ---------- páginas normales (las de Hello Elementor: carrito, pago, mi cuenta, textos legales) ---------- */
body:not(.elementor-page) .site-main:not(.mg-main) { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--g) 64px; }
.site-main:not(.mg-main) .page-header .entry-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 750; letter-spacing: -.035em; margin: 8px 0 24px; }
.page-content > *:first-child { margin-top: 0; }
.page-content a:not(.btn):not(.button):not(.wc-block-components-button) { text-decoration: underline; text-underline-offset: 3px; }
.page-content h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.4em 0 .5em; }
.page-content p, .page-content li { color: var(--ink-2); }
.elementor-page .site-main:not(.mg-main) .page-header { display: none; }
/* Aviso de Addi (en lugar del componente del plugin, que no se puede estilar): franja delgada bajo el encabezado */
addi-home-banner { display: none !important; }
.addi-bar { background: #f2f6fd; border-bottom: 1px solid #e0e9f8; }
.addi-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding-top: 7px; padding-bottom: 7px; }
.addi-bar p { margin: 0; min-width: 0; font: 600 14.5px/1.3 var(--f-b); letter-spacing: -.005em; color: var(--ink); }
.addi-logo { height: 18px; width: auto; flex: none; }
.addi-bar .btn { height: 34px; padding: 0 16px; font-size: 13.5px; box-shadow: none; flex: none; }
@media (max-width: 560px) {
  .addi-bar .wrap { justify-content: space-between; gap: 10px; min-height: 46px; }
  .addi-bar p { flex: 1; font-size: 13px; }
  .addi-logo { height: 15px; }
  .addi-bar .btn { height: 32px; padding: 0 13px; font-size: 12.5px; }
}
/* Páginas hechas con Elementor (el carrito y el pago de la tienda): nada se sale de la pantalla. En el carrito,
   una imagen con márgenes negativos (-295 px) ensanchaba la página a 675 px en celular. Recorta sin crear barras. */
.elementor { overflow-x: clip; }
.elementor-widget-image img { max-width: 100%; height: auto; }

/* ---------- carrito, pago y mi cuenta: el checkout no se cambia, solo se le da estilo ---------- */
.woocommerce-cart .site-main, .woocommerce-checkout .site-main, .woocommerce-account .site-main { font-size: 15px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) { border-radius: 999px !important; font: 700 15px/1 var(--f-h) !important; padding: 15px 22px !important; background: var(--ink) !important; color: #fff !important; border: 0 !important; transition: transform .25s var(--ease), background-color .2s; }
.woocommerce .button:hover, .wc-block-components-button:not(.is-link):hover { background: #000 !important; transform: translateY(-1px); }
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #place_order, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button, .checkout-button { background: var(--y) !important; color: var(--ink) !important; box-shadow: 0 8px 22px rgba(229, 154, 0, .35); }
.woocommerce .button.alt:hover, .woocommerce #place_order:hover, .wc-block-components-checkout-place-order-button:hover, .checkout-button:hover { background: var(--y-2) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-cart table.cart td.actions .coupon .input-text, .select2-container--default .select2-selection--single { border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 14px !important; min-height: 48px; padding: 10px 14px !important; background: #fff; font: 500 15px/1.4 var(--f-b); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { outline: 3px solid rgba(255, 198, 26, .45); outline-offset: 0; }
.woocommerce form .form-row label { font: 600 14px/1.3 var(--f-h); margin-bottom: 6px; }
.woocommerce table.shop_table { border: 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; border-collapse: separate; }
.woocommerce table.shop_table th { font: 700 12px/1.2 var(--f-h); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--bg-2); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top-color: var(--line); padding: 14px 16px; }
.woocommerce table.shop_table img { width: 64px; border-radius: 12px; }
.woocommerce .quantity { height: 46px; }
.woocommerce .quantity .qty-btn { width: 38px; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { font-size: 15px; }
.woocommerce-checkout #payment { background: var(--bg-2) !important; border-radius: var(--r) !important; }
.woocommerce-checkout #payment div.payment_box { background: #fff !important; border-radius: 14px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout h3, .woocommerce-cart h2, .woocommerce-account h2 { font-size: 22px; margin: 20px 0 14px; }
.woocommerce a.remove { border-radius: 50%; color: var(--ink-3) !important; }
.woocommerce a.button.mg-wa-carrito { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; background: var(--wa) !important; color: #fff !important; }
.woocommerce a.button.mg-wa-carrito:hover { background: #1fbe5a !important; }
.mg-wa-carrito svg { width: 20px; height: 20px; }
.woocommerce a.remove:hover { background: var(--deal) !important; color: #fff !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 14px !important; }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar { font-family: var(--f-b); }
.wp-block-woocommerce-checkout h2, .wp-block-woocommerce-cart h2 { font-family: var(--f-h); }
