/* assets/css/market-v4.css — v4 del marketplace: secciones de portada, búsqueda, ficha de producto y
   panel del comprador. Mismos tokens de marca: navy #1D2530, cartón #CD9765/#AB733C, lino #fdf6ea. */
:root { --mk-navy: #1D2530; --mk-navy-2: #2c3644; --mk-carton: #CD9765; --mk-carton-d: #AB733C; --mk-linen: #fdf6ea; --mk-linen-2: #f6ecda;
        --mk-ink: #1f2328; --mk-ink-2: #57606a; --mk-muted: #8b949e; --mk-line: #ececec; --mk-ok: #16a34a; --mk-ease: cubic-bezier(.2,.8,.2,1); }

/* ── Búsquedas populares bajo el buscador de la portada ── */
.mk4-popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--mk-ink-2); }
.mk4-popular > span { font-weight: 600; }
.mk4-popular a { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid #ecdcc4; color: var(--mk-ink); text-decoration: none; transition: all .2s; }
.mk4-popular a:hover { background: #fff; border-color: var(--mk-carton); color: var(--mk-carton-d); transform: translateY(-1px); }

/* ── Secciones genéricas ── */
.mk4-sec { padding: 34px 0; }
.mk4-sec--tight { padding-top: 22px; }
.mk4-sec--alt { background: linear-gradient(180deg, #faf6ef 0%, #fff 100%); }
.mk4-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mk4-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 22px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.02em; color: var(--mk-navy); }
.mk4-head h2 .material-symbols-outlined { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--mk-carton-d); background: var(--mk-linen-2); }
.mk4-head-r { display: flex; align-items: center; gap: 8px; }
.mk4-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; color: var(--mk-carton-d); text-decoration: none; }
.mk4-more:hover { text-decoration: underline; }
.mk4-more .material-symbols-outlined { font-size: 18px; }
.mk4-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--mk-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--mk-ink); transition: all .2s; }
.mk4-arrow:hover { border-color: var(--mk-carton); color: var(--mk-carton-d); }
.mk4-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-carton-d); margin-bottom: 8px; }
.mk4-eyebrow--light { color: #f3cfa9; }
.mk4-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #e3d6c1; background: #fff; color: var(--mk-navy); font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s var(--mk-ease); white-space: nowrap; }
.mk4-btn:hover { border-color: var(--mk-navy); }
.mk4-btn .material-symbols-outlined { font-size: 18px; }
.mk4-btn--solid { border-color: transparent; color: #fff !important; background: linear-gradient(135deg, var(--mk-carton-d), var(--mk-carton)); box-shadow: 0 8px 18px rgba(171,115,60,.28); }
.mk4-btn--solid:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(171,115,60,.36); border-color: transparent; }
.mk4-btn--navy { border-color: transparent; color: #fff !important; background: var(--mk-navy); }
.mk4-btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }

/* ── Categorías destacadas ── */
.mk4-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.mk4-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--mk-line); text-align: center; text-decoration: none; color: var(--mk-ink); transition: transform .3s var(--mk-ease), box-shadow .3s, border-color .3s; animation: mk4Up .5s var(--mk-ease) both; animation-delay: calc(var(--i, 0) * .04s); }
.mk4-cat:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(29,37,48,.08); border-color: #ead9bf; }
.mk4-cat-img { width: 84px; height: 84px; border-radius: 50%; background: var(--mk-linen-2) center/cover no-repeat; display: grid; place-items: center; color: var(--mk-carton-d); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #eee3d2; transition: transform .4s var(--mk-ease); }
.mk4-cat:hover .mk4-cat-img { transform: scale(1.06); }
.mk4-cat b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk4-cat small { font-size: 12px; color: var(--mk-muted); }
@keyframes mk4Up { from { opacity: 0; transform: translateY(12px); } }

/* ── Pestañas ── */
.mk4-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f3f1ee; overflow-x: auto; scrollbar-width: none; }
.mk4-tabs::-webkit-scrollbar { display: none; }
.mk4-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; font: 600 13.5px Inter, sans-serif; color: var(--mk-ink-2); cursor: pointer; white-space: nowrap; transition: all .2s; }
.mk4-tabs button:hover { color: var(--mk-ink); }
.mk4-tabs button.is-on { background: #fff; color: var(--mk-navy); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mk4-tabpane { display: none !important; }
.mk4-tabpane.is-on { display: grid !important; animation: mk4Fade .35s ease both; }
@keyframes mk4Fade { from { opacity: 0; transform: translateY(6px); } }

/* ── Fila horizontal ── */
.mk4-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.mk4-row::-webkit-scrollbar { display: none; }
.mk4-row > * { scroll-snap-align: start; }

/* ── Proveedores ── */
.mk4-sups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.mk4-sup { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--mk-line); transition: box-shadow .3s, transform .3s var(--mk-ease); }
.mk4-sup:hover { box-shadow: 0 18px 36px rgba(29,37,48,.08); transform: translateY(-3px); }
.mk4-sup header { display: flex; gap: 12px; align-items: center; }
.mk4-sup-av { flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 800 16px Manrope, sans-serif; color: #fff; background: linear-gradient(135deg, var(--mk-navy), var(--mk-navy-2)); }
.mk4-sup-id { min-width: 0; }
.mk4-sup-name { display: block; font-weight: 800; font-size: 15.5px; color: var(--mk-navy); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk4-sup-name:hover { color: var(--mk-carton-d); }
.mk4-sup-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 12px; color: var(--mk-muted); align-items: center; }
.mk4-sup-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.mk4-ver { color: #1d4ed8; font-weight: 700; } .mk4-ver .material-symbols-outlined { font-size: 15px; font-variation-settings: 'FILL' 1; }
.mk4-sup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 14px; background: #faf8f5; padding: 10px 4px; text-align: center; }
.mk4-sup-kpis div + div { border-left: 1px solid #efe9df; }
.mk4-sup-kpis b { display: block; font: 800 16px Manrope, sans-serif; color: var(--mk-navy); }
.mk4-sup-kpis small { font-size: 11.5px; color: var(--mk-muted); }
.mk4-sup-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk4-sup-prods a { text-decoration: none; color: var(--mk-ink); }
.mk4-sup-prods span { display: block; aspect-ratio: 1; border-radius: 12px; background: #f5f5f5 center/cover no-repeat; transition: transform .3s var(--mk-ease); }
.mk4-sup-prods a:hover span { transform: scale(1.04); }
.mk4-sup-prods b { display: block; margin-top: 5px; font-size: 12px; }
.mk4-sup footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

/* ── Cómo funciona + app ── */
.mk4-how { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.mk4-how-steps { padding: 30px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--mk-line); }
.mk4-how-steps h2 { margin: 0 0 22px; font: 800 26px/1.2 Manrope, sans-serif; letter-spacing: -.02em; color: var(--mk-navy); }
.mk4-how-steps ol { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.mk4-how-steps li { position: relative; display: flex; flex-direction: column; gap: 12px; counter-increment: s; }
.mk4-how-steps li::after { content: counter(s); position: absolute; top: 0; right: 0; font: 800 34px Manrope, sans-serif; color: #f1e7d7; }
.mk4-how-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--mk-navy), var(--mk-navy-2)); color: var(--mk-carton); box-shadow: 0 10px 20px rgba(29,37,48,.18); }
.mk4-how-steps b { font-size: 15.5px; color: var(--mk-navy); }
.mk4-how-steps p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--mk-ink-2); }
.mk4-how-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.mk4-app { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 30px 32px; border-radius: 24px; text-decoration: none; color: #fff; background: radial-gradient(120% 100% at 100% 0%, #6b4523 0%, #2c2016 45%, var(--mk-navy) 100%); }
.mk4-app b { font: 800 24px/1.2 Manrope, sans-serif; max-width: 260px; }
.mk4-app p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.72); max-width: 260px; }
.mk4-app-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; color: #f3cfa9; }
.mk4-app:hover .mk4-app-cta .material-symbols-outlined { transform: translateX(4px); }
.mk4-app-cta .material-symbols-outlined { transition: transform .25s; }
.mk4-phone { position: absolute; right: 26px; bottom: -40px; width: 150px; height: 250px; border-radius: 26px; background: #fff; border: 6px solid #11161d; box-shadow: 0 30px 60px rgba(0,0,0,.4); padding: 18px 10px; display: flex; flex-direction: column; gap: 8px; transform: rotate(8deg); transition: transform .5s var(--mk-ease); }
.mk4-app:hover .mk4-phone { transform: rotate(4deg) translateY(-8px); }
.mk4-phone-bar { height: 10px; width: 60%; border-radius: 6px; background: linear-gradient(90deg, var(--mk-carton-d), var(--mk-carton)); }
.mk4-phone-card { height: 34px; border-radius: 8px; background: #f3eee6; }
.mk4-phone-card.is-short { width: 70%; }
.mk4-phone-bubble { align-self: flex-end; max-width: 90%; padding: 6px 8px; border-radius: 10px 10px 2px 10px; background: var(--mk-navy); color: #fff; font-size: 9.5px; animation: mk4Bob 3s ease-in-out infinite; }
@keyframes mk4Bob { 50% { transform: translateY(-4px); } }

/* ── Cifras ── */
.mk4-stats { background: var(--mk-navy); color: #fff; padding: 34px 0; margin-top: 10px; }
.mk4-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.mk4-stats b { display: block; font: 800 34px Manrope, sans-serif; color: #f3cfa9; font-variant-numeric: tabular-nums; }
.mk4-stats span { font-size: 13.5px; color: rgba(255,255,255,.7); }

@media (max-width: 1200px) { .mk4-row { grid-auto-columns: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 900px) { .mk4-how { grid-template-columns: 1fr; } .mk4-how-steps ol { grid-template-columns: 1fr; } .mk4-stats-in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mk4-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk4-row { grid-auto-columns: 46%; } .mk4-sups { grid-template-columns: 1fr; } .mk4-head h2 { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .mk4-cat, .mk4-tabpane.is-on, .mk4-phone-bubble { animation: none; } }

/* ═══ Búsqueda ═══════════════════════════════════════════════════════ */
.mk4-price { display: flex; align-items: center; gap: 6px; }
.mk4-price input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #e2e2e8; border-radius: 8px; font-size: 13px; }
.mk4-price span { color: var(--mk-muted); }
.mk4-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.mk4-active-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: #fdf3ea; border: 1px solid #f0d9bd; color: var(--mk-carton-d); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: all .2s; animation: mk4Fade .3s both; }
.mk4-active-chip .material-symbols-outlined { font-size: 16px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.mk4-active-chip:hover { border-color: var(--mk-carton); } .mk4-active-chip:hover .material-symbols-outlined { background: rgba(171,115,60,.15); }
.mk4-active-clear { font-size: 12.5px; font-weight: 700; color: #b42318; text-decoration: none; margin-left: 4px; }
.mk4-active-clear:hover { text-decoration: underline; }
.mk4-layout-toggle { display: inline-flex; margin-left: 6px; flex-shrink: 0; padding: 3px; border-radius: 10px; background: #f3f1ee; gap: 2px; }
.mk4-layout-toggle a { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--mk-muted); transition: all .2s; }
.mk4-layout-toggle a.is-on { background: #fff; color: var(--mk-navy); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.mk-results-head { gap: 10px !important; }
.mk-results-head .mk-results-title { margin-right: auto; }

/* Panel de filtros: barra lateral fija en escritorio (en móvil y tablet sigue siendo un panel deslizable) */
@media (min-width: 1100px) {
    .mk4-search { display: grid !important; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
    .mk4-search > .mk-filter-scrim, .mk4-search .mk-drawer-close, .mk-morefilters-btn { display: none !important; }
    .mk4-search > .mk-filter-drawer { position: sticky; top: 16px; transform: none; width: auto; z-index: 2; border: 1px solid #ececec; border-radius: 16px; box-shadow: none; transition: none; max-height: calc(100vh - 32px); overflow: hidden; background: #fff; }
    .mk4-search > .mk-filter-drawer .mk-drawer-head { padding: 14px 18px; }
    .mk4-search > .mk-filter-drawer .mk-drawer-head h3 { font-size: 15px; }
    .mk4-search > .mk-filter-drawer .mk-drawer-body { padding: 2px 18px; }
    .mk4-search > .mk-filter-drawer .mk-drawer-foot { padding: 12px 18px; }
    .mk4-search .pc-grid--search:not(.pc-grid--list) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #mkFilterForm.is-busy { opacity: .6; pointer-events: none; transition: opacity .2s; }
}
@media (min-width: 1400px) { .mk4-search .pc-grid--search:not(.pc-grid--list) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Vista de lista */
.pc-grid--list { grid-template-columns: 1fr !important; gap: 10px; }
.pc-grid--list .pc-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 12px; }
.pc-grid--list .pc-top + .pc-body { margin-top: 0; }
.pc-grid--list .pc-body { justify-content: center; gap: 2px; }
.pc-grid--list .pc-title { font-size: 16px; -webkit-line-clamp: 1; }
.pc-grid--list .pc-price { font-size: 20px; }
.pc-grid--list .pc-chat { align-self: flex-start; min-width: 160px; }
@media (max-width: 640px) { .pc-grid--list .pc-card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } .pc-grid--list .pc-title { font-size: 14px; } }

/* Sin resultados */
.mk4-empty { text-align: center; padding: 48px 20px 40px; border-radius: 20px; background: #fff; border: 1px solid #ececec; }
.mk4-empty-ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--mk-linen-2); color: var(--mk-carton-d); }
.mk4-empty-ic .material-symbols-outlined { font-size: 36px; }
.mk4-empty h2 { margin: 0 0 8px; font: 800 20px Manrope, sans-serif; color: var(--mk-navy); }
.mk4-empty p { margin: 0 auto; max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--mk-ink-2); }
.mk4-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ═══ Ficha de producto ══════════════════════════════════════════════ */
.pd4-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 4px; font-size: 13px; color: var(--mk-ink-2); }
.pd4-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--mk-ink); text-decoration: none; }
.pd4-rating span:last-child { color: var(--mk-muted); text-decoration: underline; }
.pd4-rating--none { color: var(--mk-muted); } .pd4-rating--none .material-symbols-outlined { font-size: 17px; }
.pd4-stars { --r: 0; position: relative; display: inline-block; width: 80px; height: 15px; background: linear-gradient(90deg, #f5a623 calc(var(--r) / 5 * 100%), #e5e1da 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8z'/%3E%3C/svg%3E") 0 0/16px 15px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8z'/%3E%3C/svg%3E") 0 0/16px 15px repeat-x; }
.pd4-stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.pd4-stock .material-symbols-outlined { font-size: 17px; font-variation-settings: 'FILL' 1; }
.pd4-stock.is-ok { color: #15803d; } .pd4-stock.is-low { color: #b45309; } .pd4-stock.is-out { color: #b42318; }
.pd4-views { display: inline-flex; align-items: center; gap: 4px; color: var(--mk-muted); } .pd4-views .material-symbols-outlined { font-size: 17px; }

.pd4-qty { margin: 18px 0 14px; padding: 14px; border-radius: 14px; background: #faf8f5; border: 1px solid #efe9df; }
.pd4-qty label { display: block; font-size: 13px; font-weight: 700; color: var(--mk-ink); margin-bottom: 8px; }
.pd4-qty label small { font-weight: 500; color: var(--mk-muted); }
.pd4-stepper { display: flex; align-items: stretch; height: 42px; border: 1.5px solid #e3d6c1; border-radius: 11px; background: #fff; overflow: hidden; }
.pd4-stepper button { width: 42px; border: 0; background: none; cursor: pointer; color: var(--mk-navy); display: grid; place-items: center; transition: background .15s; }
.pd4-stepper button:hover { background: var(--mk-linen-2); }
.pd4-stepper input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; text-align: center; font: 700 15px Inter, sans-serif; -moz-appearance: textfield; }
.pd4-stepper input::-webkit-outer-spin-button, .pd4-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd4-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 13px; color: var(--mk-ink-2); }
.pd4-total b { font: 800 20px Manrope, sans-serif; color: var(--mk-navy); }
.pd4-total b.is-bump { animation: pd4Bump .35s var(--mk-ease); }
@keyframes pd4Bump { 40% { transform: translateY(-3px); color: var(--mk-carton-d); } }
.pd4-unit { display: block; margin-top: 4px; font-size: 11.5px; color: var(--mk-muted); line-height: 1.45; }

.pd4-nav { display: flex; align-items: center; gap: 4px; padding: 0 6px; background: #fff; border: 1px solid #ececec; border-radius: 14px; }
.pd-wrap > .pd4-nav { grid-column: 1 / span 2; grid-row: 2; }
.pd-wrap > .pd-description-section { grid-row: 3 !important; }
.pd-wrap > .pd-order-box { grid-row: 1 / span 3 !important; }
.pd4-nav--fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-radius: 0; border-width: 0 0 1px; padding: 0 max(24px, calc((100vw - 1452px) / 2)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-100%); transition: transform .3s var(--mk-ease); }
.pd4-nav--fixed.is-on { transform: none; }
.pd4-nav--fixed .pd4-nav-cta { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 1200px) { .pd-wrap > .pd4-nav, .pd-wrap > .pd-description-section, .pd-wrap > .pd-order-box { grid-column: 1; grid-row: auto !important; } }
.pd4-nav a { position: relative; padding: 16px 14px; font-size: 14px; font-weight: 600; color: var(--mk-ink-2); text-decoration: none; transition: color .2s; }
.pd4-nav a:hover { color: var(--mk-ink); }
.pd4-nav a.is-on { color: var(--mk-navy); }
.pd4-nav a.is-on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mk-carton-d); }
.pd4-nav-cta { margin-left: auto; opacity: 0; transform: translateY(6px); transition: all .3s var(--mk-ease); pointer-events: none; }
.pd4-nav-btn { height: 36px; padding: 0 16px; border: 0; border-radius: 10px; color: #fff; font: 700 13px Inter, sans-serif; cursor: pointer; background: linear-gradient(135deg, var(--mk-carton-d), var(--mk-carton)); }
.pd-description-section, .pd-reviews-section, .pd-supplier-section, .pd-related { scroll-margin-top: 70px; }

#pdMainImgWrap { overflow: hidden; }
#pdMainImgWrap img[data-zoom] { transition: transform .25s ease; cursor: zoom-in; }
#pdMainImgWrap.is-zoom img[data-zoom] { transform: scale(1.9); }
.pd4-expand { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; cursor: pointer; color: var(--mk-ink); z-index: 2; transition: transform .2s; }
.pd4-expand:hover { transform: scale(1.08); }
.pd4-lb { position: fixed; inset: 0; z-index: 10040; background: rgba(12,15,20,.92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.pd4-lb.is-open { opacity: 1; }
.pd4-lb img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 8px; transform: scale(.96); transition: transform .3s var(--mk-ease); }
.pd4-lb.is-open img { transform: none; }
.pd4-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.pd4-lb button:hover { background: rgba(255,255,255,.24); }
.pd4-lb-x { top: 20px; right: 20px; } .pd4-lb-nav.prev { left: 20px; } .pd4-lb-nav.next { right: 20px; }
.pd4-lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 13px; }
@media (max-width: 768px) { .pd4-nav { padding: 0 8px; overflow-x: auto; } .pd4-nav a { padding: 14px 10px; white-space: nowrap; } .pd4-nav-cta { display: none; } }

/* ═══ Área del comprador (Mi cuenta) ═════════════════════════════════ */
body.bv-page { background: #f7f5f1; }
.bv-head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid #ece4d6; }
.bv-head-in { max-width: 1500px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 16px; }
.bv-logo img { height: 28px; width: auto; display: block; }
.bv-head-title { padding-left: 16px; border-left: 1px solid #e6dccb; font: 800 15px Manrope, sans-serif; color: var(--mk-navy); text-decoration: none; white-space: nowrap; }
.bv-search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 14px; border: 1.5px solid #e6dccb; border-radius: 999px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.bv-search:focus-within { border-color: var(--mk-carton); box-shadow: 0 0 0 4px rgba(205,151,101,.15); }
.bv-search > .material-symbols-outlined { color: var(--mk-muted); font-size: 20px; }
body.bv-page .bv-head .bv-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: 0; background: none; font-size: 14px; height: 100%; padding: 0; }
.bv-search button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--mk-linen-2); color: var(--mk-carton-d); cursor: pointer; display: grid; place-items: center; }
.bv-search button .material-symbols-outlined { font-size: 18px; }
.bv-head-actions { display: flex; align-items: center; gap: 4px; }
.bv-ic { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--mk-ink); text-decoration: none; transition: background .2s; }
.bv-ic:hover { background: #f4efe7; }
.bv-ic i { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mk-navy); color: #fff; font: 700 10.5px/18px Inter, sans-serif; font-style: normal; text-align: center; border: 2px solid #fff; }
.bv-ic i.is-hot { background: #d1242f; }
.bv-av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--mk-carton-d), var(--mk-carton)); color: #fff; font: 800 14px Manrope, sans-serif; flex-shrink: 0; }
.bv-av--lg { width: 44px; height: 44px; font-size: 18px; }
.bv-av--xl { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(171,115,60,.3); }
.bv-user { position: relative; margin-left: 6px; }
.bv-user summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.bv-user summary::-webkit-details-marker { display: none; }
.bv-user summary:hover, .bv-user[open] summary { background: #f4efe7; }
.bv-user-name { font-size: 13.5px; font-weight: 700; color: var(--mk-ink); }
.bv-user-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid #ece4d6; box-shadow: 0 20px 44px rgba(29,37,48,.16); animation: mk4Fade .2s both; z-index: 200; }
.bv-user-card { display: flex; gap: 10px; align-items: center; padding: 10px; margin-bottom: 6px; border-radius: 12px; background: #faf6ef; }
.bv-user-card b { display: block; font-size: 14px; } .bv-user-card small { font-size: 12px; color: var(--mk-muted); word-break: break-all; }
.bv-user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--mk-ink); text-decoration: none; }
.bv-user-menu a:hover { background: #f6f2ec; }
.bv-user-menu a .material-symbols-outlined { font-size: 20px; color: var(--mk-muted); }
.bv-user-menu a.is-danger { color: #b42318; border-top: 1px solid #f0ebe3; margin-top: 4px; border-radius: 0 0 10px 10px; } .bv-user-menu a.is-danger .material-symbols-outlined { color: #b42318; }

.bv-wrap { gap: 22px !important; padding-top: 20px !important; padding-bottom: 40px; align-items: flex-start; }
.bv-side { flex: 0 0 236px; position: sticky; top: 84px; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid #ece4d6; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.bv-side-h { margin: 12px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-muted); }
.bv-side-h:first-child { margin-top: 4px; }
.bv-side nav { display: grid; gap: 2px; }
.bv-side a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--mk-ink-2); text-decoration: none; transition: background .2s, color .2s; }
.bv-side a .material-symbols-outlined { font-size: 21px; color: var(--mk-muted); transition: color .2s; }
.bv-side a:hover { background: #f6f2ec; color: var(--mk-ink); }
.bv-side a.is-on { background: #fdf3e7; color: var(--mk-carton-d); }
.bv-side a.is-on .material-symbols-outlined { color: var(--mk-carton-d); font-variation-settings: 'FILL' 1; }
.bv-side a.is-on::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mk-carton-d); }
.bv-side a i { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d1242f; color: #fff; font: 700 11px/20px Inter, sans-serif; font-style: normal; text-align: center; }
.bv-side-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0ebe3; display: grid; gap: 2px; }
.bv-main { flex: 1; min-width: 0; animation: mk4Fade .35s both; }

.bv-eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--mk-carton-d); }
.bv-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px; background: radial-gradient(90% 140% at 100% 0%, #fbe9d3 0%, #fff 60%); border: 1px solid #ece4d6; }
.bv-hero-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.bv-hero h1 { margin: 0; font: 800 26px/1.15 Manrope, sans-serif; letter-spacing: -.02em; color: var(--mk-navy); }
.bv-hero-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--mk-ink-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bv-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bv-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #f1efec; color: var(--mk-ink-2); }
.bv-chip .material-symbols-outlined { font-size: 15px; font-variation-settings: 'FILL' 1; }
.bv-chip--ok { background: #e8f6ed; color: #15803d; } .bv-chip--hot { background: #fdecec; color: #c0262d; } .bv-chip--info { background: #eaf1fe; color: #1d4ed8; } .bv-chip--wait { background: #fdf3e2; color: #b45309; }

.bv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.bv-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid #ece4d6; text-decoration: none; color: var(--mk-ink); transition: transform .3s var(--mk-ease), box-shadow .3s; overflow: hidden; }
.bv-kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(29,37,48,.07); }
.bv-kpi-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--mk-linen-2); color: var(--mk-carton-d); }
.bv-kpi b { font: 800 28px/1 Manrope, sans-serif; color: var(--mk-navy); }
.bv-kpi > span:last-child { font-size: 13px; color: var(--mk-ink-2); }
.bv-kpi.is-hot .bv-kpi-ic { background: #fdecec; color: #c0262d; }
.bv-kpi.is-hot::after { content: ''; position: absolute; top: 16px; right: 16px; width: 10px; height: 10px; border-radius: 50%; background: #d1242f; box-shadow: 0 0 0 0 rgba(209,36,47,.5); animation: bvPulse 2s infinite; }
@keyframes bvPulse { 70% { box-shadow: 0 0 0 10px rgba(209,36,47,0); } 100% { box-shadow: 0 0 0 0 rgba(209,36,47,0); } }

.bv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bv-col { display: grid; gap: 16px; min-width: 0; }
.bv-card { display: block; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #ece4d6; color: inherit; text-decoration: none; }
.bv-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.bv-card-h h2, .bv-card > h2 { margin: 0; font: 800 17px Manrope, sans-serif; color: var(--mk-navy); }
.bv-sub-h { margin: 16px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-muted); }

.bv-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bv-quotes a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .2s; }
.bv-quotes a:hover { background: #faf6ef; }
.bv-q-img { flex: 0 0 52px; height: 52px; border-radius: 12px; background: #f3efe9 center/cover no-repeat; display: grid; place-items: center; font: 800 15px Manrope, sans-serif; color: var(--mk-carton-d); }
.bv-q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bv-q-main b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-q-main small { font-size: 12px; color: var(--mk-muted); }
.bv-q-last { font-size: 13px; color: var(--mk-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bv-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bv-minis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bv-mini { display: flex; flex-direction: column; gap: 4px; color: var(--mk-ink); text-decoration: none; min-width: 0; }
.bv-mini-img { aspect-ratio: 1; border-radius: 12px; background: #f3efe9 center/cover no-repeat; transition: transform .3s var(--mk-ease); }
.bv-mini:hover .bv-mini-img { transform: scale(1.03); }
.bv-mini-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mk-ink-2); }
.bv-mini b { font-size: 13.5px; }
.bv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bv-tags a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #f6f2ec; font-size: 12.5px; color: var(--mk-ink); text-decoration: none; transition: background .2s; }
.bv-tags a:hover { background: #efe4d3; } .bv-tags .material-symbols-outlined { font-size: 15px; color: var(--mk-muted); }

.bv-progress { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; }
.bv-progress h2 { margin: 0 0 4px; font-size: 16px; } .bv-progress p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mk-ink-2); }
.bv-ring { --p: 0; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--mk-carton-d) calc(var(--p) * 1%), #f1ebe2 0); position: relative; animation: bvRing 1s var(--mk-ease) both; }
.bv-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.bv-ring b { position: relative; font: 800 16px Manrope, sans-serif; color: var(--mk-navy); }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes bvRing { from { --p: 0; } }
.bv-checks { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bv-checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mk-ink-2); }
.bv-checks li .material-symbols-outlined { font-size: 19px; color: #cfc6b8; }
.bv-checks li.is-done { color: var(--mk-muted); text-decoration: line-through; } .bv-checks li.is-done .material-symbols-outlined { color: var(--mk-ok); font-variation-settings: 'FILL' 1; }
.bv-checks a { color: var(--mk-carton-d); font-weight: 700; text-decoration: none; } .bv-checks a:hover { text-decoration: underline; }

.bv-empty { text-align: center; padding: 28px 16px; }
.bv-empty > .material-symbols-outlined { width: 60px; height: 60px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 28px; color: var(--mk-carton-d); background: var(--mk-linen-2); margin-bottom: 10px; }
.bv-empty b { display: block; font-size: 15px; color: var(--mk-navy); margin-bottom: 4px; }
.bv-empty p { margin: 0 auto 14px; max-width: 420px; font-size: 13.5px; line-height: 1.55; color: var(--mk-ink-2); }
.bv-empty--sm { padding: 12px 8px; } .bv-empty--sm > .material-symbols-outlined { width: 44px; height: 44px; font-size: 22px; } .bv-empty--sm p { margin: 0; font-size: 12.5px; }
.bv-app { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--mk-navy), #2c3644); color: #fff; border: 0; }
.bv-app > .material-symbols-outlined:first-child { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #f3cfa9; }
.bv-app b { display: block; font-size: 14.5px; } .bv-app small { font-size: 12.5px; color: rgba(255,255,255,.65); } .bv-app span:nth-child(2) { flex: 1; }

/* páginas internas */
.bv-page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bv-page-h h1 { margin: 0; font: 800 26px/1.15 Manrope, sans-serif; letter-spacing: -.02em; color: var(--mk-navy); }
.bv-page-h p { margin: 6px 0 0; font-size: 14px; color: var(--mk-ink-2); }
.bv-crumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--mk-ink-2); text-decoration: none; }
.bv-crumb:hover { color: var(--mk-carton-d); } .bv-crumb .material-symbols-outlined { font-size: 18px; }
.bv-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bv-filter { display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid #ece4d6; gap: 2px; overflow-x: auto; max-width: 100%; }
.bv-filter a, .bv-filter button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: 600 13px Inter, sans-serif; color: var(--mk-ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.bv-filter .is-on { background: var(--mk-navy); color: #fff; }
.bv-filter i { font-style: normal; font-size: 11.5px; opacity: .7; }
.bv-find { flex: 1; min-width: 200px; max-width: 320px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid #ece4d6; }
.bv-find .material-symbols-outlined { color: var(--mk-muted); font-size: 20px; }
.bv-page .bv-find input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: 0; font-size: 14px; background: none; padding: 0; }
.bv-list { display: grid; gap: 10px; }
.bv-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #ece4d6; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s var(--mk-ease), opacity .3s; }
a.bv-row:hover { box-shadow: 0 12px 24px rgba(29,37,48,.06); transform: translateY(-2px); }
.bv-row.is-gone { opacity: 0; transform: scale(.98); }
.bv-row-img { flex: 0 0 64px; height: 64px; border-radius: 14px; background: #f3efe9 center/cover no-repeat; display: grid; place-items: center; font: 800 18px Manrope, sans-serif; color: var(--mk-carton-d); }
.bv-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bv-row-main b { font-size: 15px; color: var(--mk-ink); }
.bv-row-main small { font-size: 12.5px; color: var(--mk-muted); }
.bv-row-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bv-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #ece4d6; background: #fff; color: var(--mk-ink-2); display: grid; place-items: center; cursor: pointer; transition: all .2s; text-decoration: none; }
.bv-icon-btn:hover { border-color: var(--mk-carton); color: var(--mk-carton-d); }
.bv-icon-btn.is-danger:hover { border-color: #f1b8b8; color: #c0262d; background: #fdf3f3; }
.bv-icon-btn .material-symbols-outlined { font-size: 19px; }

.bv-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.bv-pcard { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid #ece4d6; overflow: hidden; transition: box-shadow .25s, transform .3s var(--mk-ease), opacity .3s; }
.bv-pcard:hover { box-shadow: 0 14px 28px rgba(29,37,48,.08); transform: translateY(-3px); }
.bv-pcard.is-gone { opacity: 0; transform: scale(.95); }
.bv-pcard-img { display: block; aspect-ratio: 1; background: #f3efe9 center/cover no-repeat; }
.bv-pcard-body { padding: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.bv-pcard-body a.n { font-size: 13.5px; font-weight: 600; color: var(--mk-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.bv-pcard-body b { font-size: 16px; color: var(--mk-navy); }
.bv-pcard-body small { font-size: 12px; color: var(--mk-muted); }
.bv-pcard-acts { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 0 12px 12px; }
.bv-pcard-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.1); display: grid; place-items: center; cursor: pointer; color: #d1242f; transition: transform .2s; }
.bv-pcard-x:hover { transform: scale(1.1); } .bv-pcard-x .material-symbols-outlined { font-variation-settings: 'FILL' 1; font-size: 19px; }
.bv-day { margin: 18px 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-muted); }
.bv-day:first-child { margin-top: 0; }
.bv-stars { display: inline-flex; gap: 2px; }
.bv-stars button { border: 0; background: none; padding: 0; cursor: pointer; color: #dcd4c7; transition: transform .15s, color .15s; }
.bv-stars button .material-symbols-outlined { font-size: 22px; font-variation-settings: 'FILL' 1; }
.bv-stars button.is-on { color: #f5a623; } .bv-stars button:hover { transform: scale(1.15); }
.bv-stars[aria-disabled="true"] button { cursor: default; } .bv-stars[aria-disabled="true"] button:hover { transform: none; }

.bv-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 10030; padding: 12px 18px; border-radius: 12px; background: var(--mk-navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.25); transition: all .3s var(--mk-ease); pointer-events: none; }
.bv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bv-toast.err { background: #b42318; } .bv-toast.ok { background: #15803d; }

@media (max-width: 1200px) { .bv-grid { grid-template-columns: 1fr; } .bv-head-title { display: none; } }
@media (max-width: 1000px) {
    .bv-wrap { flex-direction: column; padding-top: 0 !important; gap: 12px !important; }
    .bv-side { position: sticky; top: 64px; z-index: 50; flex: none; width: calc(100% + 24px); margin: 0 -12px; padding: 6px 12px; border-radius: 0; border-width: 0 0 1px; max-height: none; display: flex; overflow-x: auto; scrollbar-width: none; background: rgba(255,255,255,.97); }
    .bv-side::-webkit-scrollbar { display: none; }
    .bv-side nav { display: flex; gap: 4px; } .bv-side-h { display: none; }
    .bv-side a { white-space: nowrap; padding: 8px 12px; } .bv-side a.is-on::before { display: none; }
    .bv-side-foot { display: flex; margin: 0 0 0 4px; padding: 0 0 0 4px; border-top: 0; border-left: 1px solid #f0ebe3; }
    .bv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bv-search { display: none; }
}
@media (max-width: 600px) { .bv-hero { padding: 18px; } .bv-hero h1 { font-size: 21px; } .bv-user-name { display: none; } .bv-minis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bv-row { flex-wrap: wrap; } .bv-head-in { padding: 0 12px; gap: 8px; } }
.bv-row-price { font-weight: 800; font-size: 14px; color: var(--mk-navy); white-space: nowrap; }
.bv-howto { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; background: #fbf7f0; }
.bv-howto > .material-symbols-outlined { color: var(--mk-carton-d); }
.bv-howto p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--mk-ink-2); }
[data-items] > [hidden] { display: none !important; }
.bv-myrate { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #fffaf2; border: 1px dashed #efdcc2; font-size: 12.5px; color: var(--mk-ink-2); }
.bv-last { font-size: 12px; color: var(--mk-muted); }
.bv-row--review { align-items: flex-start; }
.bv-rshow p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--mk-ink); }
.bv-rshow small { margin-left: 8px; font-size: 12px; color: var(--mk-muted); }
.bv-rform { display: grid; gap: 8px; margin-top: 8px; }
.bv-rform textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #e6dccb; border-radius: 12px; font: inherit; font-size: 13.5px; resize: vertical; }
.bv-rform-a { display: flex; gap: 8px; justify-content: flex-end; }
.bv-rform[hidden], .bv-rshow[hidden] { display: none !important; }
.bv-idbox { text-align: right; } .bv-idbox small { display: block; font-size: 11.5px; color: var(--mk-muted); margin-bottom: 4px; }
.bv-idbox button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px dashed #e0cfb5; background: #fff; cursor: pointer; font: 700 14px ui-monospace, Menlo, monospace; color: var(--mk-navy); }
.bv-idbox button .material-symbols-outlined { font-size: 17px; color: var(--mk-muted); }
.bv-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 16px 0; }
.bv-set { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #ece4d6; text-decoration: none; color: inherit; transition: transform .3s var(--mk-ease), box-shadow .3s, border-color .3s; animation: mk4Up .45s var(--mk-ease) both; animation-delay: calc(var(--i) * .05s); }
.bv-set:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(29,37,48,.07); border-color: #e3cfae; }
.bv-set-ic { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--mk-navy), var(--mk-navy-2)); color: var(--mk-carton); }
.bv-set-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bv-set-main b { font-size: 15.5px; color: var(--mk-navy); } .bv-set-main small { font-size: 13px; line-height: 1.45; color: var(--mk-ink-2); }
.bv-set-main .bv-chip { margin-top: 4px; }
.bv-set-go { color: #c5bcae; align-self: center; transition: transform .2s; } .bv-set:hover .bv-set-go { transform: translateX(3px); color: var(--mk-carton-d); }
.bv-help { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bv-help > .material-symbols-outlined { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mk-linen-2); color: var(--mk-carton-d); }
.bv-help div { flex: 1; min-width: 220px; } .bv-help b { font-size: 14.5px; } .bv-help p { margin: 2px 0 0; font-size: 13px; color: var(--mk-ink-2); } .bv-help a { color: var(--mk-carton-d); font-weight: 700; }

/* formularios de ajustes */
.bv-form { display: grid; gap: 16px; }
.bv-form .bv-card { padding: 22px 24px; }
.bv-form-h { margin: 0 0 4px; font: 800 17px Manrope, sans-serif; color: var(--mk-navy); } .bv-form-d { margin: 0 0 18px; font-size: 13px; color: var(--mk-ink-2); }
.bv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.bv-f { display: flex; flex-direction: column; gap: 6px; }
.bv-f--full { grid-column: 1 / -1; }
.bv-f > span { font-size: 13px; font-weight: 700; color: var(--mk-ink); } .bv-f > span small { font-weight: 500; color: var(--mk-muted); }
.bv-f input, .bv-f select, .bv-f textarea { height: 46px; padding: 0 14px; border: 1.5px solid #e6dccb !important; border-radius: 12px !important; background: #fff; font: inherit; font-size: 14.5px; color: var(--mk-ink); }
.bv-f input:focus, .bv-f select:focus { border-color: var(--mk-carton) !important; box-shadow: 0 0 0 4px rgba(205,151,101,.15) !important; outline: 0; }
.bv-f input[readonly] { background: #f8f6f2; color: var(--mk-ink-2); }
.bv-f .hint { font-size: 12px; color: var(--mk-muted); }
.bv-f.is-invalid input { border-color: #d1242f !important; box-shadow: 0 0 0 4px rgba(209,36,47,.1) !important; animation: ifShake .35s; }
.bv-f .err { font-size: 12.5px; font-weight: 600; color: #c0262d; }
.bv-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1ebe2; }
.bv-actions .mk4-btn { height: 44px; padding: 0 20px; }
.mk4-btn.is-loading { pointer-events: none; opacity: .7; }
.mk4-btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spinIK .7s linear infinite; }
@keyframes spinIK { to { transform: rotate(360deg); } }
.bv-toggle { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #f1ebe2; cursor: pointer; }
.bv-toggle:first-of-type { border-top: 0; padding-top: 0; }
.bv-toggle > span:first-child { flex: 1; } .bv-toggle b { display: block; font-size: 14.5px; } .bv-toggle small { font-size: 13px; color: var(--mk-ink-2); }
.bv-switch { position: relative; flex: 0 0 46px; height: 26px; } .bv-switch input { position: absolute; opacity: 0; }
.bv-switch i { position: absolute; inset: 0; border-radius: 13px; background: #ddd5c8; transition: background .25s; }
.bv-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--mk-ease); }
.bv-switch input:checked + i { background: var(--mk-carton-d); } .bv-switch input:checked + i::after { transform: translateX(20px); }
.bv-switch input:focus-visible + i { outline: 2px solid var(--mk-navy); outline-offset: 2px; }
.bv-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.bv-opt { position: relative; cursor: pointer; } .bv-opt input { position: absolute; opacity: 0; }
.bv-opt > span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border: 1.5px solid #ece4d6; border-radius: 14px; background: #fff; transition: all .2s; }
.bv-opt .ik-flag { width: 30px; height: 20px; border-radius: 4px; }
.bv-opt b { display: block; font-size: 14px; } .bv-opt small { font-size: 12px; color: var(--mk-muted); }
.bv-opt > span > .material-symbols-outlined { color: var(--mk-muted); }
.bv-opt:hover > span { border-color: #e3cfae; }
.bv-opt input:checked + span { border-color: var(--mk-carton-d); background: #fdf6ec; box-shadow: 0 0 0 3px rgba(205,151,101,.18); }
.bv-opt input:checked + span > .material-symbols-outlined { color: var(--mk-carton-d); }
.bv-opt input:focus-visible + span { outline: 2px solid var(--mk-navy); outline-offset: 2px; }
.bv-danger { border-color: #f3cccc !important; background: #fffafa !important; }
.bv-danger .bv-form-h { color: #b42318; }
.mk4-btn--danger { background: #c0262d; color: #fff !important; border-color: transparent; } .mk4-btn--danger:hover { background: #a11f25; border-color: transparent; }
.bv-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bv-kv div { padding: 12px 14px; border-radius: 12px; background: #faf8f5; } .bv-kv small { display: block; font-size: 11.5px; color: var(--mk-muted); margin-bottom: 2px; } .bv-kv b { font-size: 14px; }
@media (max-width: 640px) { .bv-fields { grid-template-columns: 1fr; } }
.bv-f .ik-select { width: 100%; }
.bv-f .ik-select-trigger { height: 46px !important; padding: 0 14px !important; border: 1.5px solid #e6dccb !important; border-radius: 12px !important; background: #fff !important; font-size: 14.5px !important; color: var(--mk-ink) !important; box-shadow: none !important; }
.mk4-notice { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #e8f6ed; color: #14532d; font-size: 14px; font-weight: 600; animation: mk4Fade .4s both; } .mk4-notice .material-symbols-outlined { color: #16a34a; }

/* ── Área del comprador (estructura original): secciones añadidas ─────────────────────────────── */
.bv-main { padding: 20px 0 40px; }
.bv-tabs { margin-bottom: 14px; }
.bv-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: #f3f6fb; border: 1px solid #dfe7f3; font-size: 13px; color: #334155; }
.bv-note p { margin: 0; line-height: 1.5; } .bv-note .material-symbols-outlined { color: #3b6fb6; font-size: 20px; }
.bv-tipcard { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; }
.bv-tipcard > .material-symbols-outlined { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fdf3e7; color: var(--mk-carton-d); }
.bv-tipcard b { font-size: 14.5px; color: var(--mk-navy); } .bv-tipcard p { margin: 4px 0 0; font-size: 13px; color: var(--mk-ink-2); line-height: 1.5; }
.bv-tipcard a { color: var(--mk-carton-d); font-weight: 700; }
.bv-opt > span > b { font-size: 13.5px; }
.bv-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bv-addr { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bv-addr.is-default { border-color: #e3cfae; box-shadow: 0 0 0 3px rgba(205,151,101,.12); }
.bv-addr header { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .bv-addr header b { font-size: 15px; color: var(--mk-navy); }
.bv-addr p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mk-ink-2); flex: 1; }
.bv-addr footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .bv-addr footer .bv-icon-btn { margin-left: auto; }
.bv-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 22px; border: 0; border-radius: 20px; box-shadow: 0 30px 70px rgba(29,37,48,.28); }
.bv-dialog::backdrop { background: rgba(29,37,48,.45); backdrop-filter: blur(2px); }
.bv-f--check { grid-column: 1 / -1; flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 13.5px; cursor: pointer; }
.bv-f--check input { width: 18px; height: 18px; accent-color: var(--mk-carton-d); }
.bv-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.bv-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 52px; border-radius: 14px; background: #fff; border: 1px solid #ece4d6; }
.bv-steps li .material-symbols-outlined { position: absolute; left: 14px; top: 14px; color: var(--mk-carton-d); }
.bv-steps b { font-size: 13.5px; color: var(--mk-navy); } .bv-steps small { font-size: 12.5px; color: var(--mk-muted); } .bv-steps a { color: var(--mk-carton-d); font-weight: 700; }
.bv-member { display: flex; gap: 18px; align-items: center; }
.bv-member h2 { margin: 0; font: 800 22px Manrope, sans-serif; color: var(--mk-navy); } .bv-member p { margin: 2px 0 10px; color: var(--mk-muted); font-size: 13.5px; }
.bv-member .bv-chip { display: inline-flex; align-items: center; gap: 5px; } .bv-member .bv-chip .material-symbols-outlined { font-size: 15px; }
/* Panel: tarjeta "Orders" con cotizaciones reales */
.bp-order-pill-link { text-decoration: none; } .bp-order-pills span b { margin-left: 4px; font-weight: 700; opacity: .7; }
.bp-quote-list { display: grid; gap: 4px; margin-top: 14px; }
.bp-quote-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .2s; }
.bp-quote-row:hover { background: #faf6ef; }
.bp-quote-img { flex: 0 0 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #f3efe9; display: grid; place-items: center; color: #c5b59c; }
.bp-quote-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-quote-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bp-quote-main b { font-size: 14px; color: #1D2530; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-quote-main small { font-size: 12px; color: #8a8f98; }
@media (max-width: 700px) {
    .bv-steps { grid-template-columns: 1fr; }
    .bv-member { flex-direction: column; text-align: center; } .bv-member .bv-tags { justify-content: center; }
    .bv-main { padding-top: 12px; }
}
.bv-note--ok { background: #e8f6ed; border-color: #bfe5cc; color: #14532d; } .bv-note--ok .material-symbols-outlined { color: #15803d; }
.bv-note--err { background: #fdecea; border-color: #f5c6c2; color: #8c1d18; } .bv-note--err .material-symbols-outlined { color: #c0392b; }
.bv-conn-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f6f3ee; }
.bv-conn-ic svg { width: 22px; height: 22px; }
