/* =========================================================
   Boartech · Tienda online
   Usa los tokens y componentes de styles.css (mismo look del sitio)
   Desarrollado por Nifty Agency
   ========================================================= */

[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.full { width: 100%; }
.h-sm { font-size: 20px; margin-bottom: 14px; }
.h-md { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.narrow { max-width: 760px; }
.section.tight { padding: clamp(28px, 4vw, 48px) 0; }
.section.tight-top { padding-top: 8px; padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero.compact { padding: clamp(20px, 3vw, 36px) 0 clamp(16px, 2vw, 24px); }
.page-hero.compact h1 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 8px; }
.page-hero.compact .lead { margin: 0; }
.ico.sm { width: 36px; height: 36px; border-radius: 10px; }
.ico.sm svg { width: 18px; height: 18px; }
.ico svg, .noimg svg, .rubro svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header de tienda ---------- */
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); border: 1px solid rgba(21, 26, 40, .12); transition: background .2s; }
.icon-btn:hover { background: #fff; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.icon-btn .on { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px #fff; }
.cart-btn { position: relative; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--orange); font-size: 12.5px; display: grid; place-items: center; transition: transform .25s; }
.cart-count.bump { transform: scale(1.35); }

.store-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.site-header.scrolled .store-bar { margin-top: 8px; }
.cats-menu { position: relative; flex: none; }
.cats-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 12px 26px -14px rgba(21, 26, 40, .7); }
.cats-menu summary::-webkit-details-marker { display: none; }
.cats-menu summary svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.cats-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: min(640px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .97); border: 1px solid #fff; box-shadow: 0 30px 60px -20px rgba(21, 26, 40, .45); }
.cats-pop a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.cats-pop a:hover { background: var(--bg); }
.cats-pop small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.cats-pop .all { grid-column: 1 / -1; justify-content: center; color: var(--orange); border-top: 1px dashed var(--line); border-radius: 0; margin-top: 4px; padding-top: 12px; }

.search { position: relative; flex: 1; display: flex; align-items: center; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 30px -18px rgba(21, 26, 40, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(248, 90, 0, .14); }
.search button { width: 40px; height: 40px; margin-right: 4px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--orange-2), var(--orange)); display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -20px rgba(21, 26, 40, .45); }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; font-size: 14px; line-height: 1.3; }
.suggest a:hover, .suggest a.hl { background: var(--bg); }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; }
.suggest small { display: block; color: var(--muted); font-size: 12px; }
.suggest b { font-family: var(--f-display); white-space: nowrap; }
.suggest .all { display: block; text-align: center; font-weight: 700; color: var(--orange); }
.bar-perks { display: flex; gap: 16px; flex: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bar-perks span { display: flex; align-items: center; gap: 6px; }
.bar-perks svg { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.flash { margin: 14px 0 0; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash.warn { background: #FFF7ED; color: #9A3412; border-color: #FED7AA; }
.flash.bad { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }

/* ---------- Home ---------- */
.store-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.store-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.store-hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.045em; margin: 20px 0 18px; }
.store-hero .lead { font-size: clamp(16.5px, 1.5vw, 18.5px); color: #4A5367; max-width: 600px; }
.hero-pay { padding: 20px; }
.perk { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 11px 10px; border-radius: 14px; }
.perk + .perk { border-top: 1px dashed rgba(21, 26, 40, .1); }
.perk strong { display: block; font-size: 15px; line-height: 1.3; }
.perk small { color: var(--muted); font-size: 13px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.row-head h2 { font-size: clamp(24px, 3vw, 34px); }
.row-head .kicker { margin-bottom: 6px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.more::after { content: "→"; color: var(--orange); transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.rubro-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.rubro { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); transition: transform .25s, background .25s, box-shadow .25s; }
.rubro:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.rubro strong { font-size: 15.5px; line-height: 1.25; }
.rubro small { color: var(--muted); font-size: 12.5px; margin-top: -6px; }
.store-b2b { display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.store-b2b h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.store-b2b p { margin: 0; }
.store-b2b .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Tarjeta de producto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid.three { grid-template-columns: repeat(3, 1fr); }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius); background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s, box-shadow .25s, background .25s; }
.pcard:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.pimg { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.pimg img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .35s; }
.pimg.ok .noimg { display: none; }
.pcard:hover .pimg img { transform: scale(1.04); }
.noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(80% 80% at 50% 30%, #F5F6F8, #E9ECF1); }
.noimg svg { width: 46%; max-width: 92px; height: auto; stroke: #B8C0CE; stroke-width: 1.1; }
.noimg b { font-family: var(--f-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8E97A8; }
.tag { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; }
.tag.sale { background: linear-gradient(135deg, var(--orange-2), var(--orange)); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7A8397; }
.stock { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0; text-transform: none; font-size: 12.5px; white-space: nowrap; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: #059669; }
.stock.low { color: #D97706; }
.stock.out { color: #9CA3AF; }
.pcard h3 { font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 63px; }
.pcard h3 a:hover { color: var(--navy-2); }
.pcard-price { margin-top: auto; display: flex; flex-direction: column; }
.pcard-price s { font-size: 13px; color: #9AA2B1; }
.pcard-price strong { font-family: var(--f-display); font-size: 23px; letter-spacing: -.03em; line-height: 1.15; }
.pcard-price small { font-size: 12.5px; color: #059669; font-weight: 600; }
.pcard .add { width: 100%; margin-top: 6px; }
.pcard .btn-dark .arr { font-size: 16px; }

/* ---------- Listado ---------- */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { padding: 20px; position: sticky; top: 160px; border-radius: 22px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head strong { font-family: var(--f-display); font-size: 17px; }
.filters-head a { font-size: 13px; font-weight: 700; color: var(--orange); }
.filters fieldset { border: 0; padding: 14px 0; margin: 0; border-top: 1px dashed var(--line); }
.filters legend { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #7A8397; padding: 0; margin-bottom: 8px; }
.opt { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
.opt:hover { background: rgba(255, 255, 255, .8); }
.opt input { accent-color: var(--orange); margin: 0; }
.opt em { font-style: normal; font-size: 12px; color: var(--muted); }
.opts-scroll { max-height: 240px; overflow: auto; padding-right: 4px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range input, .sort select { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(21, 26, 40, .16); background: #fff; color: var(--ink); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; padding: 14px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #CBD2DC; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar .chips { flex: 1; margin: 0; }
.chip.x { background: #fff; }
.chip.x:hover { background: var(--ink); color: #fff; }
.sort select { width: auto; min-width: 180px; height: 44px; }
/* ---------- Filtro: categorías en desplegable ---------- */
.cat-pick { padding: 4px 0 14px; }
.cat-pick-label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #7A8397; margin-bottom: 8px; }
.cat-drop { position: relative; }
.cat-drop summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(21, 26, 40, .55); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.cat-drop summary::-webkit-details-marker { display: none; }
.cat-drop summary:hover, .cat-drop[open] summary { border-color: rgba(248, 90, 0, .45); box-shadow: 0 0 0 4px rgba(248, 90, 0, .10); }
.cat-drop-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cat-drop-txt small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cat-drop-txt strong { font-family: var(--f-display); font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-drop .chev { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.cat-drop[open] .chev { transform: rotate(180deg); }
.cat-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: min(420px, 60vh); overflow: auto; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(21, 26, 40, .55); backdrop-filter: blur(12px); animation: catIn .18s ease-out; }
@keyframes catIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cat-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cat-list a:hover { background: #F3F5F8; color: var(--ink); }
.cat-list a.on { background: rgba(248, 90, 0, .08); color: var(--ink); }
.cat-list a.on em { color: var(--orange); }
.cat-list a em { font-style: normal; font-size: 12px; color: var(--muted); }
.cat-list .ico.sm { width: 30px; height: 30px; border-radius: 9px; }
.cat-list .ico.sm svg { width: 15px; height: 15px; }
.filters-toggle { display: none; }
.filters-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.empty { text-align: center; padding: clamp(32px, 6vw, 64px); border-radius: 24px; }
.empty .ico { margin: 0 auto 16px; }
.empty h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.empty p { color: var(--muted); }
.empty .hero-btns, .hero-btns.center { justify-content: center; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); font-weight: 700; }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pdp-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; padding: 0; background: #fff; }
.pdp-media .pimg img { padding: clamp(24px, 5vw, 56px); }
.pdp-info h1 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.18; letter-spacing: -.03em; margin: 12px 0 20px; }
.buybox { padding: 22px; border-radius: 22px; }
.price-big s { display: block; color: #9AA2B1; font-size: 15px; }
.price-big strong { display: block; font-family: var(--f-display); font-size: clamp(34px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.05; }
.mp-note { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.transfer-note { margin: 10px 0 16px; padding: 10px 14px; border-radius: 12px; background: #ECFDF5; color: #065F46; font-size: 14.5px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.buy > .btn-dark { grid-column: 1 / -1; }
.qty { display: inline-grid; grid-template-columns: 40px 52px 40px; height: 52px; border-radius: 13px; border: 1px solid rgba(21, 26, 40, .16); background: #fff; overflow: hidden; }
.qty button { border: 0; background: transparent; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--bg); }
.qty input { width: 100%; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.ship-calc { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.ship-calc label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.ship-calc .row { display: flex; gap: 8px; }
.ship-calc input { flex: 1; font: inherit; padding: 0 14px; height: 44px; border-radius: 11px; border: 1px solid rgba(21, 26, 40, .16); }
.ship-out { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.ship-out li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ship-out small { display: block; color: var(--muted); font-size: 12.5px; }
.pdp-ticks { margin-top: 22px; }
.pdp-ticks a { text-decoration: underline; text-underline-offset: 3px; }
.pdp-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.detail-card { padding: clamp(22px, 3vw, 32px); }
.detail-card h2 { font-size: 21px; margin-bottom: 14px; }
.detail-card a { text-decoration: underline; text-underline-offset: 3px; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs div:last-child { border: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; word-break: break-word; }
.mobile-buy { display: none; }

/* ---------- Carrito y checkout ---------- */
.cart-grid, .order-grid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.cart-list { padding: 8px 20px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto 120px 32px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-of-type { border: 0; }
.cart-img { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: block; }
.pimg.sm img, .pimg.xs img { padding: 6px; }
.pimg.sm .noimg svg, .pimg.xs .noimg svg { width: 50%; }
.pimg.sm .noimg b, .pimg.xs .noimg b { display: none; }
.cart-info strong { display: block; font-size: 15px; line-height: 1.35; }
.cart-info small { color: var(--muted); font-size: 13px; }
.cart-line { font-family: var(--f-display); font-size: 17px; text-align: right; }
.rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(21, 26, 40, .06); font-size: 18px; color: var(--muted); }
.rm:hover { background: #FEE2E2; color: #B91C1C; }
.summary { padding: 22px; border-radius: 22px; }
.summary.sticky { position: sticky; top: 160px; }
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.sum-row.muted span:last-child { font-size: 13px; text-align: right; }
.sum-row.total { border: 0; padding-top: 14px; font-size: 17px; }
.sum-row.total strong { font-family: var(--f-display); font-size: 26px; letter-spacing: -.03em; }
.summary .btn { margin-top: 10px; }
.summary .transfer-note { margin: 4px 0 6px; font-size: 13.5px; }
.ticks.small li { font-size: 13.5px; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.secure svg { width: 16px; height: 16px; fill: none; stroke: #059669; stroke-width: 2; flex: none; }
.steps-bar { list-style: none; padding: 0; margin: 0 0 6px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: #9AA2B1; }
.steps-bar li { display: flex; align-items: center; gap: 8px; }
.steps-bar li + li::before { content: ""; width: 24px; height: 2px; background: currentColor; opacity: .4; border-radius: 2px; }
.steps-bar .on { color: var(--orange); }
.steps-bar .done { color: var(--ink-2); }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.co-main { display: grid; gap: 18px; }
.co-card { padding: clamp(20px, 3vw, 30px); border-radius: 22px; margin: 0; border: 1px solid rgba(255, 255, 255, .95); min-width: 0; }
.co-card legend { float: left; width: 100%; font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0; }
.co-card legend + * { clear: both; }
.co-card .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--orange-2), var(--orange)); }
.co-card .field + .field { margin-top: 14px; }
.co-card .form-grid .field + .field { margin-top: 0; }
.field input:disabled { background: var(--bg); color: var(--muted); }
.ship-opts { display: grid; gap: 10px; margin: 16px 0; }
.ship-opts.invalid { outline: 2px solid #EA580C; outline-offset: 6px; border-radius: 12px; }
.ship-opt, .pay { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(21, 26, 40, .12); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ship-opt:has(input:checked), .pay:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(248, 90, 0, .12); }
.ship-opt input, .pay input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
.ship-opt strong, .pay strong { display: block; font-size: 15px; }
.ship-opt small, .pay small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ship-opt b { font-family: var(--f-display); white-space: nowrap; }
.addr[hidden] { display: none; }
.pay-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.mp-logo { width: 44px; height: 30px; border-radius: 8px; background: #00B1EA; color: #fff; display: grid; place-items: center; font-size: 13px; letter-spacing: .04em; }
.pct { padding: 4px 10px; border-radius: 20px; background: #ECFDF5; color: #047857; font-size: 13px; }
.co-card .consent { margin-top: 12px; }
.co-card .consent a { text-decoration: underline; }
.consent.invalid { color: #C2410C; }
.co-card > .err, .ship-opts + .err { display: block; font-size: 12.5px; color: #C2410C; }
.mini-items { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.mini-items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.35; }
.mini-items.big li { grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-items .pimg { width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mini-items span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-items.big span { display: block; }
.mini-items small { display: block; color: var(--muted); font-size: 12.5px; }
.mini-items b { font-family: var(--f-display); font-size: 14.5px; white-space: nowrap; }

/* ---------- Pedido ---------- */
.order-main { display: grid; gap: 18px; }
.center-card { text-align: center; }
.center-card h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0 6px; }
.demo-badge { display: inline-block; padding: 6px 14px; border-radius: 20px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.track { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #9AA2B1; }
.track li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: #DCE0E6; z-index: 0; }
.track li:first-child::before { display: none; }
.track li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid #DCE0E6; }
.track li.done, .track li.on { color: var(--ink); }
.track li.done i { background: var(--orange); border-color: var(--orange); box-shadow: inset 0 0 0 4px #fff; }
.track li.done::before, .track li.on::before { background: var(--orange); }
.track li.on i { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(248, 90, 0, .18); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(248, 90, 0, .06); } }
.tracking-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.tracking-box small { display: block; color: var(--muted); font-size: 12.5px; }
.tracking-box strong { font-family: var(--f-display); font-size: 18px; letter-spacing: .02em; }
.bank { font-family: var(--f-body); font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; margin: 0 0 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #F1F3F6; color: #4B5563; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.amber { background: #FFF7ED; color: #C2410C; }
.badge.red { background: #FEF2F2; color: #B91C1C; }
.badge.blue { background: #EFF4FF; color: #2F55C8; }
.badge.violet { background: #F5F3FF; color: #6D28D9; }
.badge.teal { background: #ECFEFF; color: #0E7490; }
.badge.green { background: #ECFDF5; color: #047857; }
.kv { margin: 16px 0; display: grid; gap: 10px; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #7A8397; }
.kv dd { margin: 0; font-size: 14.5px; }

/* ---------- Cuenta ---------- */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.auth-grid .full { grid-column: 1 / -1; margin: 0; }
.auth-grid.one { grid-template-columns: minmax(0, 520px); justify-content: center; }
.auth-grid.one .co-card p { color: var(--muted); }
.auth-grid.one .ico.lg { margin-bottom: 14px; }
.auth-grid .field + .field { margin-top: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tabs a { padding: 9px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
.tabs a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.order-cards { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: 1fr auto 140px 24px; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 18px; transition: background .2s; }
.order-card:hover { background: #fff; }
.order-card small { display: block; color: var(--muted); font-size: 13px; }
.order-card > strong { font-family: var(--f-display); text-align: right; font-size: 17px; }
.order-card .go { color: var(--orange); font-weight: 700; }
.narrow-form { max-width: 860px; }

/* ---------- Franja B2B y toast ---------- */
.b2b-strip { padding: 0 0 clamp(40px, 6vw, 72px); }
.b2b-strip .store-strip-inner p { flex: 1; min-width: 220px; margin: 0; color: var(--muted); font-size: 15.5px; }
.b2b-strip .store-strip-inner p strong { display: block; color: var(--ink); font-family: var(--f-display); font-size: 18px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 14px 14px 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -16px rgba(21, 26, 40, .7); font-size: 14.5px; animation: rise .3s ease-out; }
.toast a { flex: none; padding: 8px 14px; border-radius: 10px; background: linear-gradient(135deg, var(--orange-2), var(--orange)); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rubro-grid { grid-template-columns: repeat(4, 1fr); }
  .bar-perks { display: none; }
}
@media (max-width: 1080px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid.three { grid-template-columns: repeat(2, 1fr); }
  .checkout, .cart-grid, .order-grid { grid-template-columns: 1fr; }
  .summary.sticky, .filters { position: static; }
}
@media (max-width: 920px) {
  .nav-cta .icon-btn, .nav-cta .cart-btn { display: flex; }
  .nav-cta .cart-btn { display: inline-flex; padding: 0 12px; }
  .cart-btn span { display: none; }
  .store-hero-grid, .pdp, .pdp-detail, .store-b2b { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .rubro-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(21, 26, 40, .4); }
  .mobile-buy strong { display: block; font-family: var(--f-display); font-size: 21px; line-height: 1.1; }
  .mobile-buy small { color: #059669; font-size: 12.5px; font-weight: 600; }
  body.store:has(.mobile-buy) .wa-float { bottom: 92px; }
}
@media (max-width: 640px) {
  .store-bar { gap: 8px; }
  .cats-menu summary { padding: 0 14px; font-size: 0; gap: 0; }
  .cats-menu summary svg { width: 20px; height: 20px; }
  .cats-pop { grid-template-columns: 1fr; position: fixed; left: 16px; right: 16px; top: 150px; width: auto; max-height: 70vh; overflow: auto; }
  .search input { font-size: 14px; padding: 0 12px; }
  .pgrid, .pgrid.three { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 12px; }
  .pcard h3 { font-size: 13.5px; min-height: 57px; }
  .pcard-price strong { font-size: 19px; }
  .pcard-meta > span:first-child { display: none; }
  .pcard .btn-sm { height: 40px; padding: 0 10px; font-size: 13.5px; }
  .rubro-grid { grid-template-columns: repeat(2, 1fr); }
  .row-head { flex-direction: column; align-items: flex-start; }
  .cart-row { grid-template-columns: 64px 1fr 32px; grid-template-areas: "img info rm" "img qty line"; gap: 10px 12px; }
  .cart-img { grid-area: img; width: 64px; height: 64px; }
  .cart-info { grid-area: info; }
  .cart-row .qty { grid-area: qty; }
  .cart-line { grid-area: line; }
  .cart-row .rm { grid-area: rm; align-self: start; }
  .auth-grid { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: 1fr auto; }
  .order-card .badge { grid-row: 2; }
  .order-card .go { display: none; }
  .track { grid-template-columns: 1fr; gap: 0; }
  .track li { flex-direction: row; text-align: left; padding: 8px 0; }
  .track li::before { top: -50%; left: 13px; right: auto; width: 3px; height: 100%; }
  .buy { grid-template-columns: 1fr; }
  .buy .qty { width: 100%; grid-template-columns: 52px 1fr 52px; }
  .sort select { min-width: 0; }
  .store-b2b .btn { width: 100%; }
}
.pdp > *, .pdp-detail > *, .shop > *, .cart-grid > *, .checkout > *, .order-grid > *, .store-hero-grid > * { min-width: 0; }
.pdp-info h1 { overflow-wrap: anywhere; }

/* ---------- Galería y ficha técnica de Microglobal ---------- */
.pdp-thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; z-index: 2; }
.pdp-thumbs button { width: 56px; height: 56px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.pdp-thumbs button.on, .pdp-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.specs-h { margin: 22px 0 4px; font-size: 15px; letter-spacing: .02em; }