/* ==========================================================================
   ACEADVANCE — Rediseño (tokens + componentes compartidos)
   Usado por: CYM/index.php (y luego listado, detalle y carrito)
   ========================================================================== */
:root {
    --ace-bg: #F4F6FB;
    --ace-surface: #FFFFFF;
    --ace-hover: #F7F9FF;
    --ace-hover-2: #EEF2FF;
    --ace-border: #E4E8F2;
    --ace-border-input: #D9DFEC;
    --ace-border-btn: #D2D9E8;
    --ace-border-check: #B8C1D4;
    --ace-text: #0E1630;
    --ace-text-2: #4A5470;
    --ace-text-2b: #5A6480;
    --ace-text-2c: #5F6984;
    --ace-text-3: #6B7590;
    --ace-text-3b: #8A93AA;
    --ace-primary: #1F3FE6;
    --ace-primary-hover: #1631C4;
    --ace-tint: #E8EDFF;
    --ace-navy: #0A1A5C;
    --ace-ok: #16A34A;
    --ace-overlay: rgba(10, 20, 60, .45);
    --ace-shadow-card: 0 12px 32px rgba(14, 22, 48, .08);
    --ace-shadow-arrow: 0 4px 16px rgba(14, 22, 48, .12);
    --ace-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ace-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
.ace-page { margin: 0; background: var(--ace-bg); color: var(--ace-text); font-family: var(--ace-font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.ace-page *, .ace-page *::before, .ace-page *::after { box-sizing: border-box; }
.ace-page a { color: var(--ace-text); text-decoration: none; }
.ace-page a:hover { color: var(--ace-primary); }
.ace-page img { max-width: 100%; }
.ace-page button { font-family: inherit; }
.ace-page input::placeholder { color: var(--ace-text-3); }
[v-cloak] { display: none !important; }
.ace-mono { font-family: var(--ace-mono); }
.ace-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ace-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ace-page :focus-visible { outline: 2px solid var(--ace-primary); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.ace-topbar { background: var(--ace-surface); border-bottom: 1px solid var(--ace-border); color: var(--ace-text-2b); font: 12px/1.4 var(--ace-mono); }
.ace-topbar__in { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; }
.ace-topbar strong { color: var(--ace-text); font-weight: 500; }
.ace-topbar__links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.ace-page .ace-topbar a { color: var(--ace-text-2b); }
.ace-page .ace-topbar a:hover { color: var(--ace-primary); }
.ace-topbar__tc b { color: var(--ace-primary); font-weight: 500; }

/* ---------- Header ---------- */
.ace-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--ace-border); }
/* el blur va en un pseudo-elemento: backdrop-filter en el header rompería el drawer (position:fixed) */
.ace-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ace-header__main { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 20px; }
.ace-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ace-logo img { height: 46px; width: auto; display: block; }
.ace-searchbox { flex: 1 1 320px; position: relative; min-width: 0; }
.ace-search { width: 100%; display: flex; align-items: center; background: var(--ace-surface); border: 1px solid var(--ace-border-input); border-radius: 12px; overflow: hidden; margin: 0; }
.ace-search:focus-within { border-color: var(--ace-primary); }
.ace-page .ace-search input:focus-visible { outline: none; }
.ace-search:focus-within { box-shadow: 0 0 0 3px rgba(31, 63, 230, .12); }
body.ace-suggest-open .ace-float { display: none; }
.ace-search__prompt { padding-left: 16px; font: 13px var(--ace-mono); color: var(--ace-primary); }
.ace-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ace-text); font: inherit; font-size: 15px; padding: 13px 12px; }
.ace-search button { background: var(--ace-primary); color: #fff; border: 0; font-weight: 700; font-size: 14px; padding: 13px 22px; cursor: pointer; align-self: stretch; }
.ace-search button:hover { background: var(--ace-primary-hover); }
.ace-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ace-actions__link { font-size: 14px; font-weight: 600; padding: 11px 14px; border-radius: 10px; white-space: nowrap; }
.ace-page .ace-actions__link:hover { background: var(--ace-hover-2); }
.ace-cartbtn { display: flex; align-items: center; gap: 10px; background: var(--ace-surface); border: 1px solid var(--ace-border-input); color: var(--ace-text); border-radius: 12px; padding: 8px 14px 8px 8px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.ace-cartbtn:hover { border-color: var(--ace-primary); }
.ace-cartbtn__count { background: var(--ace-primary); color: #fff; border-radius: 8px; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; font: 700 13px var(--ace-mono); }
.ace-cartbtn__total { font: 13px var(--ace-mono); white-space: nowrap; }

/* sugerencias del buscador */
.ace-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 16px; box-shadow: 0 20px 48px rgba(14, 22, 48, .16); overflow: hidden; max-height: 560px; overflow-y: auto; }
.ace-suggest__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ace-border); font: 11px var(--ace-mono); letter-spacing: .08em; color: var(--ace-text-3); text-transform: uppercase; }
.ace-suggest__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--ace-border); color: var(--ace-text); }
.ace-page a.ace-suggest__item:hover, .ace-suggest__item.is-active { background: var(--ace-hover); color: var(--ace-text); }
.ace-suggest__thumb { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--ace-border); background: #fff; display: grid; place-items: center; overflow: hidden; }
.ace-suggest__thumb img { width: 88%; height: 88%; object-fit: contain; }
.ace-suggest__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ace-suggest__brand { font: 10px var(--ace-mono); letter-spacing: .08em; color: var(--ace-text-3); text-transform: uppercase; }
.ace-suggest__name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-suggest__name mark { background: var(--ace-tint); color: var(--ace-primary); border-radius: 3px; padding: 0 1px; }
.ace-suggest__stock { display: flex; align-items: center; gap: 6px; font: 11px var(--ace-mono); color: var(--ace-text-2c); }
.ace-suggest__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ace-ok); }
.ace-suggest__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.ace-suggest__price strong { font-size: 16px; font-weight: 800; }
.ace-suggest__price del { font-size: 12px; color: var(--ace-text-3b); }
.ace-suggest__all { display: flex; justify-content: center; padding: 14px 16px; font-weight: 700; font-size: 14px; color: var(--ace-primary); background: var(--ace-hover); position: sticky; bottom: 0; border-top: 1px solid var(--ace-border); }
.ace-page a.ace-suggest__all:hover, .ace-suggest__all.is-active { background: var(--ace-tint); color: var(--ace-primary); }
@media (min-width: 861px) {
    .ace-suggest__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ace-suggest__grid .ace-suggest__item { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 6px 14px; }
    .ace-suggest__grid .ace-suggest__thumb { grid-row: span 2; }
    .ace-suggest__grid .ace-suggest__item:nth-child(odd) { border-right: 1px solid var(--ace-border); }
    .ace-suggest__grid .ace-suggest__price { grid-column: 2; flex-direction: row; gap: 8px; align-items: baseline; justify-content: flex-start; }
    .ace-suggest__grid .ace-suggest__price strong { font-size: 17px; color: var(--ace-primary); }
    .ace-suggest { max-height: 620px; }
}
.ace-suggest__msg { padding: 22px 16px; text-align: center; color: var(--ace-text-2c); font-size: 14px; }
.ace-suggest__loading { display: flex; gap: 6px; justify-content: center; padding: 22px; }
.ace-suggest__loading i { width: 7px; height: 7px; border-radius: 50%; background: var(--ace-primary); animation: aceDot 1s infinite ease-in-out; }
.ace-suggest__loading i:nth-child(2) { animation-delay: .15s; }
.ace-suggest__loading i:nth-child(3) { animation-delay: .3s; }
@keyframes aceDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .ace-suggest__item { grid-template-columns: 52px minmax(0, 1fr); padding: 10px 12px; gap: 12px; }
    .ace-suggest__thumb { width: 52px; height: 52px; }
    .ace-suggest__price { grid-column: 2; flex-direction: row; gap: 8px; align-items: baseline; justify-content: flex-start; }
    .ace-suggest__price strong { font-size: 15px; }
}

/* barra de categorías */
.ace-catbar { background: var(--ace-navy); position: relative; }
.ace-catbar__in { max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; }
.ace-catbar__all { background: var(--ace-primary); color: #fff; font-weight: 800; font-size: 14px; padding: 0 22px; display: flex; align-items: center; gap: 10px; white-space: nowrap; border: 0; cursor: pointer; min-height: 52px; }
.ace-catbar__all:hover { background: var(--ace-primary-hover); }
.ace-catbar__burger { display: inline-grid; gap: 3px; }
.ace-catbar__burger i { display: block; width: 14px; height: 2px; background: #fff; border-radius: 1px; }
.ace-catbar__nav { flex: 1 1 auto; min-width: 0; display: flex; gap: 4px; padding: 8px 12px; font-size: 13px; font-weight: 600; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.ace-catbar__nav::-webkit-scrollbar { display: none; }
.ace-pill { white-space: nowrap; padding: 9px 11px; border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .08); display: flex; gap: 8px; align-items: center; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.2; }
.ace-page a.ace-pill { color: #fff; }
.ace-page a.ace-pill:hover, .ace-pill:hover, .ace-pill[aria-expanded="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
.ace-pill span { opacity: .6; }
.ace-page a.ace-pill span { display: none; } /* sin chevron en los enlaces: deja espacio al botón Arma tu PC */
.ace-pill--hot { background: rgba(31, 63, 230, .55); }

/* botón destacado "Arma tu PC" (siempre visible al final de la barra) */
.ace-catbar__cta { position: relative; flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-right: 12px; padding: 0 16px; border-radius: 10px; color: #0A1A5C; font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: linear-gradient(100deg, #22D3EE 0%, #FFFFFF 45%, #22D3EE 90%); background-size: 220% 100%; box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: aceCtaShine 3.2s linear infinite, aceCtaPulse 2.2s ease-out infinite; }
.ace-page a.ace-catbar__cta, .ace-page a.ace-catbar__cta:hover { color: #0A1A5C; }
.ace-catbar__cta:hover { transform: translateY(-1px); }
.ace-catbar__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes aceCtaShine { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes aceCtaPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .65); } 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
@media (prefers-reduced-motion: reduce) { .ace-catbar__cta { animation: none; background: #22D3EE; } }
@media (max-width: 640px) { .ace-catbar__cta { height: 36px; padding: 0 12px; margin-right: 8px; font-size: 12px; } .ace-catbar__all { padding: 0 16px; } .ace-catbar__all-txt { display: none; } .ace-catbar__nav { padding: 8px; } }

/* paneles desplegables (categorías / distribución) */
.ace-pop { position: absolute; top: 100%; left: 0; z-index: 70; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 0 0 16px 16px; box-shadow: var(--ace-shadow-card); display: none; }
.ace-pop.is-open { display: block; }
.ace-pop--cats { left: 50%; transform: translateX(-50%); width: min(1320px, 100%); padding: 20px 24px 24px; }
.ace-pop--cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.ace-pop--cats a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ace-page .ace-pop--cats a:hover { background: var(--ace-hover-2); }
.ace-pop--cats code { margin-left: auto; font: 11px var(--ace-mono); color: var(--ace-text-3b); }
.ace-pop--menu { min-width: 220px; padding: 8px; border-radius: 0 0 12px 12px; }
.ace-pop--menu a { display: block; padding: 11px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.ace-page .ace-pop--menu a:hover { background: var(--ace-hover-2); }

/* ---------- Drawer del carrito ---------- */
.ace-drawer { position: fixed; inset: 0; z-index: 200; display: none; justify-content: flex-end; }
body.ace-drawer-open .ace-drawer { display: flex; }
body.ace-drawer-open { overflow: hidden; }
.ace-drawer__overlay { position: absolute; inset: 0; background: var(--ace-overlay); }
.ace-drawer__panel { position: relative; width: min(420px, 100%); height: 100%; background: var(--ace-surface); border-left: 1px solid var(--ace-border); display: flex; flex-direction: column; animation: aceSlide .22s ease; }
@keyframes aceSlide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.ace-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--ace-border); }
.ace-drawer__title { font-size: 18px; font-weight: 800; }
.ace-drawer__title small { font: 500 13px var(--ace-mono); color: var(--ace-text-2c); }
.ace-iconbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ace-border-btn); background: transparent; color: var(--ace-text); font-size: 18px; cursor: pointer; }
.ace-iconbtn:hover { border-color: var(--ace-primary); }
.ace-drawer__body { flex: 1; overflow-y: auto; }
.ace-drawer__empty { padding: 48px 22px; text-align: center; color: var(--ace-text-2c); }
.ace-drawer__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--ace-border); }
.ace-drawer__thumb { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: #fff; }
.ace-drawer__thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.ace-drawer__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ace-drawer__name { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-drawer__qty { font: 12px var(--ace-mono); color: var(--ace-text-2c); }
.ace-drawer__rm { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--ace-text-3); cursor: pointer; }
.ace-drawer__rm:hover { color: var(--ace-text); background: var(--ace-hover-2); }
.ace-drawer__foot { padding: 20px 22px; border-top: 1px solid var(--ace-border); display: flex; flex-direction: column; gap: 12px; }
.ace-drawer__sub { display: flex; justify-content: space-between; align-items: baseline; }
.ace-drawer__sub span { font-weight: 600; }
.ace-drawer__sub strong { font-size: 22px; font-weight: 900; }
.ace-drawer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Botones ---------- */
.ace-btn { height: 50px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; text-align: center; }
.ace-page a.ace-btn--primary, .ace-btn--primary { background: var(--ace-primary); color: #fff; }
.ace-page a.ace-btn--primary:hover, .ace-btn--primary:hover { background: var(--ace-primary-hover); color: #fff; }
.ace-page a.ace-btn--ghost, .ace-btn--ghost { background: transparent; color: var(--ace-text); border: 1px solid var(--ace-border-btn); font-weight: 600; }
.ace-page a.ace-btn--ghost:hover, .ace-btn--ghost:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-page a.ace-btn--tint, .ace-btn--tint { height: 44px; border-radius: 10px; background: var(--ace-tint); color: var(--ace-primary); }
.ace-page a.ace-btn--tint:hover, .ace-btn--tint:hover { background: var(--ace-primary); color: #fff; }

/* ---------- Hero ---------- */
.ace-hero { position: relative; background: var(--ace-bg); }
.ace-hero__stage { position: relative; height: clamp(260px, 34vw, 500px); overflow: hidden; background: var(--ace-border); }
.ace-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.ace-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.ace-hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.ace-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(244, 246, 251, 0), var(--ace-bg)); pointer-events: none; }
.ace-hero__arrow { position: absolute; top: 36%; width: 56px; height: 56px; border-radius: 28px; border: 0; background: rgba(255, 255, 255, .85); color: var(--ace-text); font-size: 22px; cursor: pointer; box-shadow: var(--ace-shadow-arrow); transform: translateY(-50%); z-index: 2; }
.ace-hero__arrow:hover { background: #fff; }
.ace-hero__arrow--prev { left: clamp(12px, 4vw, 64px); }
.ace-hero__arrow--next { right: clamp(12px, 4vw, 64px); }
.ace-hero__dots { position: absolute; left: 0; right: 0; bottom: 47%; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.ace-hero__dot { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(14, 22, 48, .15); cursor: pointer; transition: width .2s ease; }
.ace-hero__dot.is-active { width: 22px; background: var(--ace-primary); box-shadow: none; }
.ace-hero__cards { position: relative; z-index: 3; margin-top: clamp(-170px, -10vw, -60px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.ace-hero--noslides .ace-hero__cards { margin-top: 32px; }
.ace-hcard { background: var(--ace-surface); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--ace-shadow-card); border: 1px solid var(--ace-border); min-width: 0; }
.ace-hcard__title { font-size: 17px; font-weight: 800; }
.ace-hcard__img { position: relative; height: 150px; display: grid; place-items: center; }
.ace-hcard__img img { max-width: 78%; max-height: 140px; object-fit: contain; mix-blend-mode: multiply; }
.ace-hcard__off { position: absolute; top: 0; right: 0; background: var(--ace-tint); color: var(--ace-primary); font-size: 13px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.ace-hcard__name { font-size: 13px; color: var(--ace-text-2c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ace-page a.ace-hcard__name { color: var(--ace-text-2c); }
.ace-hcard__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ace-hcard__price strong { font-size: 19px; font-weight: 800; }
.ace-hcard__price del { font-size: 13px; color: var(--ace-text-3b); }
.ace-hcard .ace-btn--tint { margin-top: auto; width: 100%; }

/* ---------- Secciones ---------- */
.ace-main { padding-top: 40px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 56px; }
.ace-sec { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ace-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ace-sec__title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.ace-kicker { font: 12px var(--ace-mono); letter-spacing: .1em; color: var(--ace-primary); text-transform: uppercase; }
.ace-sec__titles { display: flex; flex-direction: column; gap: 6px; }
.ace-page a.ace-more { font: 13px var(--ace-mono); color: var(--ace-primary); white-space: nowrap; }
.ace-page a.ace-more:hover { text-decoration: underline; }

/* categorías */
.ace-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ace-cat { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 18px; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 14px; min-height: 112px; }
.ace-page a.ace-cat:hover { border-color: var(--ace-primary); background: var(--ace-hover); color: var(--ace-text); }
.ace-cat__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ace-cat__code { font: 11px var(--ace-mono); color: var(--ace-text-3b); }
.ace-cat { --c: var(--ace-primary); }
.ace-page a.ace-cat:hover { border-color: var(--c); }
/* íconos de categoría (color por categoría) */
.ace-ci { --c: var(--ace-primary); --l: color-mix(in srgb, var(--c) 70%, #0E1630); --f: var(--c); --fo: .9; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, #FFFFFF); display: grid; place-items: center; transition: transform .2s ease; }
.ace-ci svg { width: 32px; height: 32px; display: block; }
.ace-ci img { width: 30px; height: 30px; object-fit: contain; }
.ace-ci--sm { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
.ace-ci--sm svg { width: 24px; height: 24px; }
.ace-ci--sm img { width: 22px; height: 22px; }
.ace-page a.ace-cat:hover .ace-ci { transform: scale(1.06); }
.ace-ci--021 { --c: #2563EB; } .ace-ci--001 { --c: #7C3AED; } .ace-ci--002 { --c: #0D9488; } .ace-ci--003 { --c: #EA580C; } .ace-ci--004 { --c: #16A34A; }
.ace-ci--005 { --c: #D97706; } .ace-ci--006 { --c: #DB2777; } .ace-ci--007 { --c: #4F46E5; } .ace-ci--008 { --c: #0891B2; } .ace-ci--009 { --c: #0284C7; }
.ace-ci--010 { --c: #9333EA; } .ace-ci--011 { --c: #E11D48; } .ace-ci--012 { --c: #F97316; } .ace-ci--013 { --c: #CA8A04; } .ace-ci--014 { --c: #475569; }
.ace-ci--015 { --c: #0F766E; } .ace-ci--016 { --c: #8B5CF6; } .ace-ci--017 { --c: #DC2626; } .ace-ci--018 { --c: #059669; } .ace-ci--019 { --c: #06B6D4; } .ace-ci--020 { --c: #C026D3; }
.ace-cat__name { font-size: 15px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.ace-cats-toggle { display: none; align-self: center; }
.ace-cat__name::first-letter, .ace-pop--cats a span::first-letter { text-transform: uppercase; }

/* tabs segmentados */
.ace-tabs { display: flex; gap: 4px; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.ace-tab { border: 0; background: transparent; color: var(--ace-text-2); font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.ace-tab:hover { color: var(--ace-text); }
.ace-tab.is-active { background: var(--ace-primary); color: #fff; font-weight: 700; }
.ace-tabpanel[hidden] { display: none; }

/* grilla de productos */
.ace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ace-empty { padding: 40px 20px; border: 1px dashed var(--ace-border-btn); border-radius: 14px; text-align: center; color: var(--ace-text-2c); }

/* ProductCard */
.ace-card { position: relative; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s ease; min-width: 0; }
.ace-card:hover { border-color: var(--ace-primary); }
.ace-card__media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 20px; background: #fff; }
.ace-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .25s ease; }
.ace-card__media .ace-card__img2 { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); opacity: 0; }
.ace-card:hover .ace-card__img2 { opacity: 1; }
.ace-card:hover .ace-card__media--has2 .ace-card__img1 { opacity: 0; }
.ace-card__off { position: absolute; top: 12px; left: 12px; background: var(--ace-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; z-index: 1; }
.ace-card__body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ace-card__brand { font: 11px var(--ace-mono); letter-spacing: .08em; color: var(--ace-text-3); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ace-card__name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ace-card__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.ace-card__prices { display: flex; flex-direction: column; min-width: 0; }
.ace-card__prices del { font-size: 13px; color: var(--ace-text-3b); }
.ace-card__prices strong { font-size: 20px; font-weight: 800; white-space: nowrap; }
.ace-card__add { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ace-border-btn); background: #fff; color: var(--ace-primary); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ace-card__add:hover { background: var(--ace-primary); border-color: var(--ace-primary); color: #fff; }
.ace-page a.ace-card__add:hover { color: #fff; }
.ace-stock { display: flex; align-items: center; gap: 8px; font: 12px var(--ace-mono); color: var(--ace-text-2c); }
.ace-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ace-ok); flex: 0 0 8px; }
.ace-stock--out::before { background: #DC2626; }

/* tile promocional (banners del admin dentro de una grilla) */
.ace-promo { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--ace-border); background: var(--ace-surface); }
.ace-promo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* banners secundarios */
/* ofertas con cuenta regresiva */
.ace-deals__nav { display: flex; align-items: center; gap: 8px; }
.ace-deals__nav .ace-more { margin-right: 8px; }
.ace-deals { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.ace-deals::-webkit-scrollbar { display: none; }
.ace-deals:has(> .ace-deal:only-child) { grid-auto-columns: 100%; }
.ace-deal { scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); background: var(--ace-surface); border: 2px solid var(--ace-primary); border-radius: 20px; overflow: hidden; min-width: 0; }
.ace-deal__media { position: relative; display: grid; place-items: center; background: #fff; padding: 20px; border-right: 1px solid var(--ace-border); }
.ace-deal__media img { width: 100%; max-height: 300px; aspect-ratio: 1 / 1; object-fit: contain; }
.ace-deal__body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ace-deal__name { font-size: 17px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-deal__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ace-deal__price strong { font-size: 26px; font-weight: 900; color: var(--ace-primary); letter-spacing: -.01em; }
.ace-deal__price del { font-size: 14px; color: var(--ace-text-3b); }
.ace-deal__save { font-size: 12px; font-weight: 700; color: var(--ace-primary); background: var(--ace-tint); padding: 4px 8px; border-radius: 6px; }
.ace-deal__stock { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ace-text-2); }
.ace-deal__stock b { color: var(--ace-text); }
.ace-deal__bar { height: 10px; border-radius: 5px; background: var(--ace-hover-2); overflow: hidden; }
.ace-deal__bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--ace-primary), #4F6BFF); }
.ace-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ace-countdown span { background: var(--ace-navy); color: #fff; border-radius: 12px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ace-countdown b { font: 700 24px/1 var(--ace-mono); font-variant-numeric: tabular-nums; }
.ace-countdown small { font: 10px var(--ace-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ace-countdown.is-ending span { background: #B91C1C; }
.ace-countdown.is-over { display: block; text-align: center; padding: 12px; border-radius: 12px; background: var(--ace-hover-2); font: 13px var(--ace-mono); color: var(--ace-text-2); }
.ace-deal__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.ace-deal__actions .ace-btn { height: 46px; font-size: 14px; }

/* fila de banners del admin: tarjetas iguales, banner completo sobre su propio fondo difuminado */
.ace-promos { --n: 3; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
.ace-pcard { position: relative; display: grid; place-items: center; height: clamp(220px, 23vw, 320px); border-radius: 16px; overflow: hidden; background: var(--ace-navy); border: 1px solid var(--ace-border); isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.ace-pcard__bg { position: absolute; inset: -32px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.25); opacity: .85; z-index: -1; transform: scale(1.08); }
.ace-pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 26, 92, .05), rgba(10, 26, 92, .25)); }
.ace-pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 24px rgba(10, 20, 60, .25)); }
.ace-page a.ace-pcard:hover { transform: translateY(-3px); box-shadow: var(--ace-shadow-card); border-color: var(--ace-primary); }

/* marcas */
.ace-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); border-top: 1px solid var(--ace-border); border-left: 1px solid var(--ace-border); background: var(--ace-surface); }
.ace-brand { display: grid; place-items: center; min-height: 76px; padding: 18px 16px; border-right: 1px solid var(--ace-border); border-bottom: 1px solid var(--ace-border); font: 500 13px var(--ace-mono); color: var(--ace-text-2); text-align: center; transition: background .15s ease; }
.ace-brand img { max-height: 40px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .15s ease, opacity .15s ease; }
.ace-page a.ace-brand:hover { background: var(--ace-primary); color: #fff; }
.ace-page a.ace-brand--logo:hover { background: var(--ace-hover-2); }
.ace-page a.ace-brand:hover img { filter: none; opacity: 1; }
.ace-brands.is-collapsed .ace-brand:nth-child(n+25) { display: none; }
.ace-brands-toggle { align-self: center; }

/* tienda física */
.ace-store { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.ace-store__info { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 20px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.ace-store__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.ace-store__addr { margin: 0; color: var(--ace-text-2); font-size: 16px; line-height: 1.5; }
.ace-store__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 6px; }
.ace-store__links a { padding: 14px 16px; border: 1px solid var(--ace-border-btn); border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.ace-page .ace-store__links a:hover { border-color: var(--ace-primary); }
.ace-store__map { min-height: 320px; border-radius: 20px; border: 1px solid var(--ace-border); overflow: hidden; background: repeating-linear-gradient(135deg, #EEF1F8 0 10px, #F6F8FC 10px 20px); }
.ace-store__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* newsletter */
.ace-news { background: var(--ace-navy); color: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 32px; align-items: center; }
.ace-news h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.ace-news p { margin: 0; color: rgba(255, 255, 255, .72); }
.ace-news form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.ace-news input { flex: 1 1 220px; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 16px; font: inherit; outline: 0; }
.ace-news input::placeholder { color: rgba(255, 255, 255, .6); }
.ace-news input:focus { border-color: #fff; }

/* beneficios + arma tu pc */
.ace-build { display: flex; flex-direction: column; gap: 20px; }
.ace-ticker { overflow: hidden; background: var(--ace-navy); border-radius: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ace-ticker__track { display: flex; width: max-content; animation: aceTick 36s linear infinite; }
.ace-ticker:hover .ace-ticker__track { animation-play-state: paused; }
.ace-ticker span { display: flex; align-items: center; gap: 14px; padding: 0 22px; height: 56px; white-space: nowrap; color: #fff; font: 13px var(--ace-mono); letter-spacing: .06em; text-transform: uppercase; }
.ace-ticker i { width: 7px; height: 7px; border-radius: 50%; background: #4F6BFF; box-shadow: 0 0 10px #4F6BFF; }
@keyframes aceTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ace-build__card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 24px; padding: 28px 28px 28px 48px; }
.ace-build__text { display: flex; flex-direction: column; gap: 18px; }
.ace-build__title { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.03; font-weight: 900; letter-spacing: -.03em; }
.ace-build__lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ace-text-2); max-width: 440px; }
.ace-build__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ace-build__feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ace-text-2); }
.ace-build__feats li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ace-ok); flex: 0 0 8px; }
.ace-build__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ace-build__viz { position: relative; height: 480px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #1F3FE6 0%, #0A1A5C 55%, #060F3A 100%); }
.ace-build__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }
.ace-build__glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -60px; top: -80px; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%); animation: acePulse 4s ease-in-out infinite; }
@keyframes acePulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.ace-build__stage { position: absolute; left: 50%; top: 0; width: 532px; height: 420px; margin-left: -266px; }
.ace-build__board { position: absolute; left: 96px; top: 36px; width: 340px; height: 368px; border-radius: 22px; border: 2px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.ace-build__board i { position: absolute; background: rgba(79,107,255,.35); border-radius: 2px; }
.ace-build__slot { position: absolute; width: 84px; height: 84px; border-radius: 18px; border: 2px dashed rgba(255,255,255,.28); animation: aceSlot 7s ease infinite; }
.ace-build__chip { position: absolute; width: 84px; height: 84px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(3,8,40,.45); animation: aceSnap 7s cubic-bezier(.2,.8,.2,1) infinite; }
.ace-build__chip .ace-ci { width: 58px; height: 58px; flex-basis: 58px; }
.ace-build__chip .ace-ci svg { width: 36px; height: 36px; }
.ace-build__chip small { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 10px var(--ace-mono); letter-spacing: .08em; color: rgba(255,255,255,.75); text-transform: uppercase; }
.ace-build--d1 { animation-delay: 0s; } .ace-build--d2 { animation-delay: .35s; } .ace-build--d3 { animation-delay: .7s; } .ace-build--d4 { animation-delay: 1.05s; } .ace-build--d5 { animation-delay: 1.4s; }
.ace-build--k1 { --dx: -220px; --dy: -60px; } .ace-build--k2 { --dx: 240px; --dy: -80px; } .ace-build--k3 { --dx: -240px; --dy: 90px; } .ace-build--k4 { --dx: 250px; --dy: 100px; } .ace-build--k5 { --dx: 0px; --dy: 200px; }
@keyframes aceSnap { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(-8deg) scale(.85); } 10% { opacity: 1; } 30% { transform: translate(0, 0) rotate(0) scale(1.06); } 36%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.94); } }
@keyframes aceSlot { 0%, 28% { border-color: rgba(255,255,255,.28); box-shadow: none; } 36%, 84% { border-color: #4F6BFF; box-shadow: 0 0 0 6px rgba(79,107,255,.18), 0 0 26px rgba(79,107,255,.45); } 94%, 100% { border-color: rgba(255,255,255,.28); box-shadow: none; } }
.ace-build__status { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.ace-build__status b { font: 500 12px var(--ace-mono); letter-spacing: .06em; white-space: nowrap; }
.ace-build__bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.ace-build__bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4F6BFF, #22D3EE); animation: aceFill 7s ease infinite; }
@keyframes aceFill { 0% { width: 0; } 78%, 86% { width: 100%; } 100% { width: 0; } }
@media (max-width: 1024px) {
    .ace-build__card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 640px) {
    .ace-build__card { padding: 20px; border-radius: 20px; }
    .ace-build__viz { height: 362px; }
    .ace-build__status { bottom: 14px; left: 14px; right: 14px; }
    .ace-build__stage { transform: scale(.72); transform-origin: 50% 0; top: 4px; }
    .ace-build__actions .ace-btn { flex: 1 1 100%; }
    .ace-ticker span { height: 48px; font-size: 12px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ace-ticker__track, .ace-build__glow, .ace-build__slot, .ace-build__chip, .ace-build__bar i { animation: none; }
    .ace-ticker { overflow-x: auto; }
    .ace-build__bar i { width: 100%; }
}

/* ---------- Footer ---------- */
.ace-footer { border-top: 1px solid var(--ace-border); margin-top: 72px; background: var(--ace-surface); font-size: 14px; }
.ace-footer__grid { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.ace-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ace-footer__col--brand { gap: 14px; }
.ace-footer__col--brand img.ace-footer__logo { height: 36px; width: auto; align-self: flex-start; }
.ace-footer__col p { margin: 0; color: var(--ace-text-2c); line-height: 1.5; }
.ace-footer__label { font: 11px var(--ace-mono); letter-spacing: .1em; color: var(--ace-text-3); text-transform: uppercase; }
.ace-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ace-text-2c); }
.ace-footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.ace-footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ace-border-btn); display: grid; place-items: center; color: var(--ace-text-2); }
.ace-page .ace-footer__social a:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.ace-footer__libro img { max-width: 150px; height: auto; display: block; }
.ace-footer__bottom { background: var(--ace-navy); border-top: 3px solid var(--ace-primary); }
.ace-footer__bottom .ace-container { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font: 12px var(--ace-mono); color: rgba(255, 255, 255, .72); }
.ace-page .ace-footer__bottom a { color: #FFFFFF; }
.ace-page .ace-footer__bottom a:hover { color: #22D3EE; }

/* ---------- Contacto flotante (WhatsApp / Messenger / Telegram) ---------- */
.ace-float { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ace-float__btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: 0 8px 20px rgba(14, 22, 48, .18); color: #fff; }
.ace-float__btn img { width: 28px; height: 28px; object-fit: contain; }
.ace-float__btn svg { width: 28px; height: 28px; fill: #fff; }
.ace-float__btn--wa { background: #25D366; }
.ace-float__btn--ms { background: var(--ace-primary); }
.ace-float__btn--tg { background: #229ED9; }
.ace-float__panel { position: fixed; right: 88px; bottom: 20px; z-index: 101; width: 290px; max-width: calc(100vw - 108px); max-height: 380px; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 16px; box-shadow: var(--ace-shadow-card); overflow: hidden; color: var(--ace-text); }
.ace-float__panel h4 { margin: 0; padding: 16px 18px; font-size: 15px; font-weight: 800; border-bottom: 1px solid var(--ace-border); }
.ace-float__list { max-height: 320px; overflow-y: auto; padding: 8px; }
.ace-float__list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; font-size: 13px; line-height: 1.3; }
.ace-page .ace-float__list a:hover { background: var(--ace-hover-2); }
.ace-float__list i { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; display: grid; place-items: center; }
.ace-float__list i svg { width: 18px; height: 18px; fill: #fff; }
.ace-float__list .is-wa { background: #25D366; }
.ace-float__list .is-tg { background: #229ED9; }
.ace-float__list small { display: block; font: 11px var(--ace-mono); color: var(--ace-text-3); }
body.ace-drawer-open .ace-float { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .ace-header__main { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "search search"; gap: 12px 12px; padding-top: 10px; padding-bottom: 12px; }
    .ace-logo { grid-area: logo; }
    .ace-logo img { height: 38px; }
    .ace-actions { grid-area: actions; justify-self: end; }
    .ace-searchbox { grid-area: search; }
    .ace-suggest { max-height: min(70vh, 520px); }
    .ace-actions__link { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 1024px) {
    .ace-deals { grid-auto-columns: 100%; }
}
@media (max-width: 640px) {
    .ace-container { padding: 0 16px; }
    .ace-topbar__links { display: none; }
    .ace-hero__stage { height: 56vw; min-height: 200px; }
    .ace-hero__arrow { width: 40px; height: 40px; font-size: 18px; top: 40%; }
    .ace-hero__dots { bottom: 30%; }
    .ace-hero__cards { margin-top: -40px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ace-hcard { padding: 14px; gap: 8px; border-radius: 14px; }
    .ace-hcard__title { font-size: 15px; }
    .ace-hcard__img { height: 110px; }
    .ace-hcard__img img { max-height: 104px; }
    .ace-hcard__price strong { font-size: 16px; }
    .ace-main { gap: 44px; padding-top: 32px; }
    .ace-sec__title { font-size: 24px; }
    .ace-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ace-cat { min-height: 96px; gap: 14px; padding: 14px; }
    .ace-cats .ace-ci { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
    .ace-cats .ace-ci svg { width: 28px; height: 28px; }
    .ace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ace-card__media { padding: 12px; }
    .ace-card__media .ace-card__img2 { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
    .ace-card__body { padding: 0 12px 12px; }
    .ace-card__name { font-size: 13px; }
    .ace-card__prices strong { font-size: 16px; }
    .ace-card__add { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; }
    .ace-stock { font-size: 11px; }
    .ace-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .ace-tabs::-webkit-scrollbar { display: none; }
    .ace-tab { flex: 1 0 auto; padding: 9px 12px; white-space: nowrap; }
    .ace-cats.is-collapsed .ace-cat:nth-child(n+9) { display: none; }
    .ace-cats-toggle { display: inline-flex; }
    .ace-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ace-deals { grid-auto-columns: 88%; gap: 12px; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
    .ace-deal { grid-template-columns: 1fr; }
    .ace-deal__media { border-right: 0; border-bottom: 1px solid var(--ace-border); padding: 14px; }
    .ace-deal__media img { max-height: 170px; }
    .ace-deal__body { padding: 16px; gap: 10px; }
    .ace-deal__name { font-size: 15px; }
    .ace-deal__price strong { font-size: 22px; }
    .ace-countdown b { font-size: 20px; }
    .ace-deals__nav .ace-iconbtn { display: none; }
    .ace-promos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .ace-promos::-webkit-scrollbar { display: none; }
    .ace-pcard { flex: 0 0 86%; height: 220px; scroll-snap-align: center; }
    .ace-promos[style*="--n:1"] .ace-pcard { flex-basis: 100%; }
    .ace-brands.is-collapsed .ace-brand:nth-child(n+16) { display: none; }
    .ace-cartbtn__total { display: none; }
    .ace-float { right: 14px; bottom: 14px; }
    .ace-float__btn { width: 48px; height: 48px; }
    .ace-float__panel { right: 72px; bottom: 14px; }
}
@media (max-width: 380px) {
    .ace-hero__cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ace-hero__slide, .ace-card__media img, .ace-pcard, .ace-drawer__panel { transition: none; animation: none; }
}

/* ==========================================================================
   ARMA TU PC (CYM/arma-tu-pc.php)
   ========================================================================== */
.ace-pc { padding-top: 32px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.ace-pc__hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
.ace-pc__hero h1 { margin: 6px 0 8px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; font-weight: 900; letter-spacing: -.03em; }
.ace-pc__hero p { margin: 0; color: var(--ace-text-2); font-size: 16px; max-width: 560px; }
.ace-pc__progress { min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.ace-pc__progress span { font: 12px var(--ace-mono); color: var(--ace-text-2c); text-transform: uppercase; letter-spacing: .06em; }
.ace-pc__progress b { color: var(--ace-primary); }
.ace-pc__pbar { height: 10px; border-radius: 5px; background: var(--ace-hover-2); overflow: hidden; }
.ace-pc__pbar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--ace-primary), #22D3EE); transition: width .35s ease; }

.ace-pc__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* pasos */
.ace-pc__steps { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 18px; padding: 10px; position: sticky; top: 150px; }
.ace-pc__steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ace-pc__steps li.is-opt-first { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ace-border); }
.ace-pc__steps li.is-opt-first::before { content: "Periféricos (opcional)"; display: block; padding: 0 10px 6px; font: 10px var(--ace-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ace-text-3); }
.ace-pc__step { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; color: var(--ace-text); }
.ace-pc__step:hover { background: var(--ace-hover); }
.ace-pc__step.is-active { background: var(--ace-hover-2); border-color: color-mix(in srgb, var(--ace-primary) 35%, transparent); }
.ace-pc__step .ace-ci { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
.ace-pc__step .ace-ci svg { width: 26px; height: 26px; }
.ace-pc__step-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ace-pc__step-name { font-size: 14px; font-weight: 700; }
.ace-pc__step-sel { font-size: 12px; color: var(--ace-text-2c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ace-pc__step.is-done .ace-pc__step-sel { color: var(--ace-text); }
.ace-pc__check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ace-border-check); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.ace-pc__step.is-done .ace-pc__check { background: var(--ace-ok); border-color: var(--ace-ok); }

/* selector de productos */
.ace-pc__picker { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ace-pc__phead { display: flex; flex-direction: column; gap: 6px; }
.ace-pc__phead h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ace-pc__phead p { margin: 0; font-size: 14px; color: var(--ace-text-2); line-height: 1.5; }
.ace-pc__tools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.ace-pc__tools input, .ace-pc__tools select { height: 44px; border: 1px solid var(--ace-border-input); border-radius: 10px; background: #fff; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ace-text); min-width: 0; }
.ace-pc__tools input:focus, .ace-pc__tools select:focus { outline: none; border-color: var(--ace-primary); box-shadow: 0 0 0 3px rgba(31, 63, 230, .12); }
.ace-pc__compat { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--ace-hover-2); font-size: 13px; color: var(--ace-text-2); }
.ace-pc__compat label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ace-text); cursor: pointer; }
.ace-pc__compat input { width: 18px; height: 18px; accent-color: var(--ace-primary); }
.ace-pc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ace-pc__item { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ace-border); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.ace-pc__item:hover { border-color: var(--ace-primary); }
.ace-pc__item.is-selected { border: 2px solid var(--ace-primary); box-shadow: 0 0 0 4px rgba(31, 63, 230, .1); }
.ace-pc__item-img { aspect-ratio: 4 / 3; padding: 14px; display: grid; place-items: center; }
.ace-pc__item-img img { width: 100%; height: 100%; object-fit: contain; }
.ace-pc__badge { position: absolute; top: 10px; left: 10px; background: var(--ace-ok); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.ace-pc__item-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ace-pc__item-name { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.ace-pc__item-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ace-pc__item-price strong { font-size: 18px; font-weight: 800; }
.ace-pc__item-price del { font-size: 12px; color: var(--ace-text-3b); }
.ace-pc__item-actions { display: flex; gap: 6px; align-items: center; }
.ace-pc__item-actions .ace-btn { height: 40px; flex: 1; font-size: 13px; padding: 0 10px; border-radius: 10px; }
.ace-pc__qty { display: inline-flex; align-items: center; border: 1px solid var(--ace-border-btn); border-radius: 10px; overflow: hidden; height: 40px; }
.ace-pc__qty button { width: 34px; height: 100%; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: var(--ace-text); }
.ace-pc__qty button:hover { background: var(--ace-hover-2); }
.ace-pc__qty span { min-width: 26px; text-align: center; font: 700 14px var(--ace-mono); }
.ace-pc__msg { padding: 40px 20px; text-align: center; color: var(--ace-text-2c); border: 1px dashed var(--ace-border-btn); border-radius: 14px; }
.ace-pc__nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.ace-pc__nav .ace-btn { height: 46px; font-size: 14px; }

/* resumen */
.ace-pc__summary { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 18px; padding: 20px; position: sticky; top: 150px; display: flex; flex-direction: column; gap: 14px; }
.ace-pc__summary h2 { margin: 0; font-size: 20px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
.ace-pc__summary h2 small { font: 500 12px var(--ace-mono); color: var(--ace-text-2c); }
.ace-pc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; }
.ace-pc__line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ace-border); }
.ace-pc__line img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--ace-border); background: #fff; }
.ace-pc__line-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ace-pc__line-cat { font: 10px var(--ace-mono); letter-spacing: .08em; color: var(--ace-text-3); text-transform: uppercase; }
.ace-pc__line-name { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-pc__line-price { font: 700 13px var(--ace-mono); white-space: nowrap; text-align: right; }
.ace-pc__line-price small { display: block; font-weight: 400; color: var(--ace-text-3); }
.ace-pc__empty { padding: 18px 0; color: var(--ace-text-2c); font-size: 14px; text-align: center; }
.ace-pc__assembly { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--ace-border); border-radius: 12px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.ace-pc__assembly:hover { border-color: var(--ace-primary); }
.ace-pc__assembly input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ace-primary); flex: 0 0 18px; }
.ace-pc__assembly b { display: block; font-size: 14px; }
.ace-pc__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.ace-pc__total span { font-weight: 600; }
.ace-pc__total strong { font-size: 28px; font-weight: 900; letter-spacing: -.01em; }
.ace-pc__usd { margin-top: -10px; text-align: right; font: 12px var(--ace-mono); color: var(--ace-text-2c); }
.ace-pc__btns { display: flex; flex-direction: column; gap: 8px; }
.ace-pc__btns .ace-btn { width: 100%; height: 50px; }
.ace-pc__links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ace-pc__links button, .ace-pc__links a { background: none; border: 0; padding: 4px 0; color: var(--ace-primary); font-weight: 700; font-size: 13px; cursor: pointer; }
.ace-pc__note { margin: 0; font-size: 12px; color: var(--ace-text-3); line-height: 1.45; }
.ace-pc__links .is-muted { color: var(--ace-text-3); }

/* compatibilidad en el resumen */
.ace-pc__badge--no { background: #DC2626; }
.ace-pc__step.is-warn .ace-pc__check { background: #DC2626; border-color: #DC2626; font-size: 0; }
.ace-pc__step.is-warn .ace-pc__check::before { content: "!"; font-size: 13px; }
.ace-pc__chk { border: 1px solid var(--ace-border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--ace-hover); }
.ace-pc__chk[hidden] { display: none; }
.ace-pc__chk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ace-pc__chk-head b { font-size: 14px; }
.ace-pc__chk-pill { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--ace-hover-2); color: var(--ace-text-2); white-space: nowrap; }
.ace-pc__chk-pill.is-ok { background: #DCFCE7; color: #15803D; }
.ace-pc__chk-pill.is-warn { background: #FEF3C7; color: #B45309; }
.ace-pc__chk-pill.is-error { background: #FEE2E2; color: #B91C1C; }
.ace-pc__chk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ace-pc__chk-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12.5px; line-height: 1.4; }
.ace-pc__chk-list i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: var(--ace-text-3); }
.ace-pc__chk-list .is-ok i { background: var(--ace-ok); }
.ace-pc__chk-list .is-warn i { background: #D97706; }
.ace-pc__chk-list .is-error i { background: #DC2626; }
.ace-pc__chk-list .is-info i { background: var(--ace-primary); font-family: Georgia, serif; }
.ace-pc__chk-list b { display: block; font-size: 13px; color: var(--ace-text); }
.ace-pc__chk-list .is-error b { color: #B91C1C; }
.ace-pc__chk-list small { display: block; color: var(--ace-text-2); font-size: 12px; }
.ace-pc__watt { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: var(--ace-surface); border: 1px solid var(--ace-border); }
.ace-pc__watt[hidden] { display: none; }
.ace-pc__watt-txt { font-size: 13px; }
.ace-pc__watt-txt small { display: block; font: 11px var(--ace-mono); color: var(--ace-text-3); margin-top: 2px; }
.ace-pc__watt-bar { height: 8px; border-radius: 4px; background: var(--ace-hover-2); overflow: hidden; }
.ace-pc__watt-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ace-primary); transition: width .3s ease; }
.ace-pc__watt-bar i.is-ok { background: var(--ace-ok); }
.ace-pc__watt-bar i.is-warn { background: #D97706; }
.ace-pc__watt-bar i.is-error { background: #DC2626; }

/* acciones: PDF, compartir, guardar */
.ace-pc__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ace-pc__acts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; border: 1px solid var(--ace-border-btn); border-radius: 12px; background: var(--ace-surface); color: var(--ace-text); font: 700 12px var(--ace-font); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.ace-pc__acts button span[aria-hidden] { font-size: 17px; line-height: 1; color: var(--ace-primary); }
.ace-pc__acts button:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-pc__acts button.is-on { background: var(--ace-tint); border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-pc__acts button.is-on span[aria-hidden]::before { content: "♥"; }
.ace-pc__acts button.is-on span[aria-hidden] { font-size: 0; }
.ace-pc__acts button.is-on span[aria-hidden]::before { font-size: 17px; }
.ace-pc__acts button.is-busy, .ace-pc__btns .is-busy { opacity: .6; cursor: progress; }

/* aviso de PC abierta desde un enlace */
.ace-pc__shared { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ace-tint); border: 1px solid color-mix(in srgb, var(--ace-primary) 30%, transparent); }
.ace-pc__shared[hidden] { display: none; }
.ace-pc__shared-ico { font-size: 18px; line-height: 1.3; }
.ace-pc__shared p { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--ace-text); }
.ace-pc__shared-x { border: 0; background: none; color: var(--ace-text-3); font-size: 14px; cursor: pointer; padding: 2px 4px; }
.ace-pc__shared-x:hover { color: var(--ace-text); }

/* barra inferior móvil */
.ace-pc__bar { display: none; }

/* diálogo cotización */
.ace-dialog { border: 0; padding: 0; border-radius: 20px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(10, 20, 60, .35); color: var(--ace-text); font-family: var(--ace-font); }
.ace-dialog::backdrop { background: var(--ace-overlay); }
.ace-dialog form { padding: 24px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ace-dialog h3 { margin: 0; font-size: 20px; font-weight: 800; }
.ace-dialog p { margin: 0; font-size: 14px; color: var(--ace-text-2); }
.ace-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.ace-field input { height: 46px; border: 1px solid var(--ace-border-input); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; }
.ace-field input:focus { outline: none; border-color: var(--ace-primary); box-shadow: 0 0 0 3px rgba(31, 63, 230, .12); }
.ace-dialog__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

.ace-pc__print-head { display: none; }

@media (max-width: 1180px) {
    .ace-pc__layout { grid-template-columns: 240px minmax(0, 1fr); }
    .ace-pc__summary { grid-column: 1 / -1; position: static; }
    .ace-pc__list { max-height: none; }
}
@media (max-width: 860px) {
    .ace-pc__layout { grid-template-columns: minmax(0, 1fr); }
    .ace-pc__steps { position: static; padding: 6px; overflow-x: auto; scrollbar-width: none; }
    .ace-pc__steps::-webkit-scrollbar { display: none; }
    .ace-pc__steps ol { flex-direction: row; gap: 6px; }
    .ace-pc__steps li.is-opt-first { margin: 0 0 0 6px; padding: 0 0 0 8px; border-top: 0; border-left: 1px dashed var(--ace-border); }
    .ace-pc__steps li.is-opt-first::before { display: none; }
    .ace-pc__step { grid-template-columns: 36px auto; width: auto; min-width: 150px; padding: 8px 10px; gap: 8px; }
    .ace-pc__step .ace-ci { width: 36px; height: 36px; flex-basis: 36px; }
    .ace-pc__step .ace-ci svg { width: 22px; height: 22px; }
    .ace-pc__step .ace-pc__check { display: none; }
    .ace-pc__step-sel { max-width: 110px; }
    .ace-pc__tools { grid-template-columns: 1fr 1fr; }
    .ace-pc__tools input { grid-column: 1 / -1; }
    .ace-pc__bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ace-border); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px rgba(14, 22, 48, .08); }
    .ace-pc__bar div { display: flex; flex-direction: column; }
    .ace-pc__bar small { font: 11px var(--ace-mono); color: var(--ace-text-2c); }
    .ace-pc__bar strong { font-size: 20px; font-weight: 900; }
    .ace-pc__bar .ace-btn { height: 46px; font-size: 14px; }
    body.ace-pc-page { padding-bottom: 76px; }
    body.ace-pc-page .ace-float { bottom: 90px; }
}
@media (max-width: 640px) {
    .ace-pc__picker, .ace-pc__summary { padding: 14px; border-radius: 16px; }
    .ace-pc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ace-pc__item-body { padding: 0 10px 10px; }
    .ace-pc__item-actions { flex-wrap: wrap; }
    .ace-pc__item-price strong { font-size: 16px; }
}

/* impresión de la cotización */
@media print {
    body.ace-pc-page * { visibility: hidden; }
    body.ace-pc-page .ace-pc__summary, body.ace-pc-page .ace-pc__summary *, body.ace-pc-page .ace-pc__print-head, body.ace-pc-page .ace-pc__print-head * { visibility: visible; }
    body.ace-pc-page .ace-pc__print-head { display: flex; position: absolute; left: 0; top: 0; right: 0; justify-content: space-between; align-items: center; border-bottom: 2px solid #0A1A5C; padding-bottom: 10px; }
    body.ace-pc-page .ace-pc__print-head img { height: 40px; }
    body.ace-pc-page .ace-pc__summary { position: absolute; left: 0; right: 0; top: 70px; border: 0; padding: 0; }
    body.ace-pc-page .ace-pc__list { max-height: none; overflow: visible; }
    body.ace-pc-page .ace-pc__btns, body.ace-pc-page .ace-pc__links, body.ace-pc-page .ace-pc__assembly input { display: none; }
    body.ace-pc-page .ace-float, body.ace-pc-page .ace-pc__bar { display: none !important; }
}
.ace-pc__compat[hidden] { display: none; }

/* ==========================================================================
   LISTADOS (categoría, búsqueda, marca, ofertas, remates, novedades, laptops)
   ========================================================================== */
.ace-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-page .ace-crumbs a { color: var(--ace-text-3); }
.ace-page .ace-crumbs a:hover { color: var(--ace-primary); }
.ace-crumbs [aria-current] { color: var(--ace-text); }
.ace-list { padding-top: 28px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 20px; }
.ace-list__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.ace-list__title { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ace-list__title h1 { margin: 4px 0 2px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ace-list__count { margin: 0; font: 13px var(--ace-mono); color: var(--ace-text-2c); }
.ace-list__caticon.ace-ci { width: 72px; height: 72px; flex-basis: 72px; border-radius: 20px; }
.ace-list__caticon.ace-ci svg { width: 46px; height: 46px; }
.ace-list__brandlogo { width: 120px; height: 72px; border-radius: 16px; background: #fff; border: 1px solid var(--ace-border); display: grid; place-items: center; padding: 10px; flex: 0 0 120px; }
.ace-list__brandlogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ace-list__tools { display: flex; gap: 8px; align-items: center; }
.ace-select, .ace-input { height: 44px; border: 1px solid var(--ace-border-input); border-radius: 10px; background: #fff; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ace-text); min-width: 0; }
.ace-select { padding-right: 32px; cursor: pointer; }
.ace-select:focus, .ace-input:focus { outline: none; border-color: var(--ace-primary); box-shadow: 0 0 0 3px rgba(31, 63, 230, .12); }
.ace-list__filterbtn { display: none; height: 44px; font-size: 14px; }

.ace-list__layout { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.ace-list__side > * { flex-shrink: 0; }
.ace-list__side { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; scrollbar-width: thin; }
.ace-list__sidehead { display: none; }
.ace-fbox { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ace-fbox[hidden] { display: none; }
.ace-fbox h2 { margin: 0; font: 11px var(--ace-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ace-text-3); }
.ace-fbox .ace-input { width: 100%; }
.ace-fcats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.ace-fcat { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ace-text); cursor: pointer; text-align: left; }
.ace-page a.ace-fcat { color: var(--ace-text); }
.ace-fcat:hover, .ace-page a.ace-fcat:hover { background: var(--ace-hover-2); color: var(--ace-text); }
.ace-fcat > span:not(.ace-ci) { flex: 1; min-width: 0; }
.ace-fcat small { font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-fcat.is-active, .ace-page a.ace-fcat.is-active { background: var(--ace-primary); color: #fff; }
.ace-fcat.is-active small { color: rgba(255, 255, 255, .8); }
.ace-ci--xs { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; }
.ace-ci--xs svg { width: 18px; height: 18px; }
.ace-ci--xs img { width: 18px; height: 18px; }
.ace-fcat.is-active .ace-ci { background: rgba(255, 255, 255, .92); }
.ace-fchecks { display: flex; flex-direction: column; gap: 2px; }
.ace-fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.ace-fcheck:hover { background: var(--ace-hover); }
.ace-fcheck input { width: 18px; height: 18px; accent-color: var(--ace-primary); flex: 0 0 18px; }
.ace-fcheck span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ace-fcheck small { font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-fchecks.is-collapsed .is-extra { display: none; }
.ace-fmore { align-self: flex-start; border: 0; background: none; padding: 6px 4px; color: var(--ace-primary); font: 700 13px var(--ace-font); cursor: pointer; }
.ace-frange { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--ace-text-3); }
.ace-fswitch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.ace-fswitch input { width: 18px; height: 18px; accent-color: var(--ace-primary); }
.ace-list__clear { height: 44px; font-size: 14px; }
.ace-list__apply { display: none; }
.ace-list__overlay { display: none; }

.ace-list__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ace-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ace-chips:empty { display: none; }
.ace-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ace-border-btn); background: #fff; font: 600 13px var(--ace-font); color: var(--ace-text); cursor: pointer; }
.ace-chip:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-chip span[aria-hidden] { font-size: 11px; opacity: .7; }
.ace-chip--clear { border-color: transparent; background: transparent; color: var(--ace-primary); }
.ace-list__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ace-list__empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; }
.ace-list__empty strong { font-size: 18px; color: var(--ace-text); }
.ace-list__empty p { margin: 0; }
.ace-list__more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.ace-list__more[hidden] { display: none; }
.ace-list__more p { margin: 0; font: 12px var(--ace-mono); color: var(--ace-text-2c); }
.ace-list__more .ace-btn { min-width: 240px; }
.ace-skel { height: 380px; border-radius: 14px; border: 1px solid var(--ace-border); background: linear-gradient(90deg, #fff 0%, #F1F4FB 50%, #fff 100%); background-size: 200% 100%; animation: aceSkel 1.2s ease-in-out infinite; }
@keyframes aceSkel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

@media (max-width: 960px) {
    .ace-list__layout { grid-template-columns: minmax(0, 1fr); }
    .ace-list__filterbtn { display: inline-flex; }
    .ace-list__side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 210; width: min(360px, 88vw); max-height: none; padding: 16px; background: var(--ace-bg); box-shadow: 20px 0 50px rgba(10, 20, 60, .25); transform: translateX(-105%); transition: transform .25s ease; }
    body.ace-filters-open .ace-list__side { transform: none; }
    body.ace-filters-open { overflow: hidden; }
    .ace-list__sidehead { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
    .ace-list__apply { display: inline-flex; height: 48px; position: sticky; bottom: 0; flex: 0 0 auto; box-shadow: 0 -10px 20px var(--ace-bg); }
    body.ace-filters-open .ace-float { display: none; }
    .ace-list__overlay { display: block; position: fixed; inset: 0; z-index: 205; background: var(--ace-overlay); }
    .ace-list__overlay[hidden] { display: none; }
}
@media (max-width: 640px) {
    .ace-list__title { gap: 12px; }
    .ace-list__caticon.ace-ci { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; }
    .ace-list__caticon.ace-ci svg { width: 32px; height: 32px; }
    .ace-list__brandlogo { width: 84px; height: 52px; flex-basis: 84px; }
    .ace-list__tools { width: 100%; }
    .ace-list__tools > * { flex: 1; }
    .ace-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ace-skel { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .ace-skel { animation: none; } .ace-list__side { transition: none; } }

/* ==========================================================================
   Ficha de producto (CYM/shop-product-detail*.php → fragment/ace_producto_view.php)
   ========================================================================== */
.ace-pdp { display: flex; flex-direction: column; gap: 28px; padding-top: 20px; padding-bottom: 56px; }
.ace-crumbs__last { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ace-pdp__top { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: start; }

/* Galería */
.ace-gal { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 150px; min-width: 0; }
.ace-gal__stage { position: relative; background: #fff; border: 1px solid var(--ace-border); border-radius: 20px; overflow: hidden; }
.ace-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.ace-gal__track::-webkit-scrollbar { display: none; }
.ace-gal__track:focus-visible { box-shadow: inset 0 0 0 3px var(--ace-tint); }
.ace-gal__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.ace-gal__slide img { width: 86%; height: 86%; object-fit: contain; transition: transform .2s ease; user-select: none; }
.ace-gal__slide.is-zoom img { transform: scale(1.9); }
.ace-gal__off { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ace-primary); color: #fff; font: 700 13px var(--ace-mono); padding: 6px 10px; border-radius: 8px; }
.ace-gal__nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ace-border); background: rgba(255, 255, 255, .92); box-shadow: var(--ace-shadow-arrow); font-size: 22px; line-height: 1; color: var(--ace-text); cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.ace-gal__nav--prev { left: 14px; } .ace-gal__nav--next { right: 14px; }
.ace-gal__stage:hover .ace-gal__nav, .ace-gal__nav:focus-visible { opacity: 1; }
.ace-gal__nav:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-gal__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ace-border); background: rgba(255, 255, 255, .92); color: var(--ace-text-2); display: grid; place-items: center; cursor: pointer; }
.ace-gal__zoom:hover { color: var(--ace-primary); border-color: var(--ace-primary); }
.ace-gal__dots { display: none; position: absolute; left: 0; right: 0; bottom: 14px; justify-content: center; gap: 6px; z-index: 2; }
.ace-gal__dots i { width: 7px; height: 7px; border-radius: 4px; background: #C9D1E3; transition: width .2s ease, background .2s ease; }
.ace-gal__dots i.is-active { width: 20px; background: var(--ace-primary); }
.ace-gal__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ace-gal__thumbs::-webkit-scrollbar { display: none; }
.ace-gal__thumb { flex: 0 0 84px; width: 84px; height: 84px; padding: 6px; border-radius: 12px; background: #fff; border: 2px solid var(--ace-border); cursor: pointer; opacity: .7; transition: opacity .15s ease, border-color .15s ease; }
.ace-gal__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ace-gal__thumb:hover { opacity: 1; }
.ace-gal__thumb.is-active { border-color: var(--ace-primary); opacity: 1; }

/* Información */
.ace-pinfo { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ace-pinfo__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 12px var(--ace-mono); letter-spacing: .06em; color: var(--ace-text-3b); text-transform: uppercase; }
.ace-pinfo__brand { color: var(--ace-primary); font-weight: 700; }
.ace-pinfo__title { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: pretty; }
.ace-pinfo__price { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--ace-border); border-bottom: 1px solid var(--ace-border); }
.ace-pinfo__now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ace-pinfo__now strong { font-size: clamp(34px, 3.4vw, 42px); line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.ace-pinfo__now del { font: 15px var(--ace-mono); color: var(--ace-text-3); }
.ace-pinfo__save { font: 700 12px var(--ace-mono); color: var(--ace-primary); background: var(--ace-tint); padding: 4px 8px; border-radius: 6px; }
.ace-pinfo__note { margin: 0; font-size: 13px; color: var(--ace-text-2c); }
.ace-pinfo__alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; color: var(--ace-text-2); margin-top: 4px; }
.ace-pinfo__alt small { color: var(--ace-text-3); }
.ace-pinfo__usd { font: 12px var(--ace-mono); color: var(--ace-text-3); align-self: center; }
.ace-pinfo__deal { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--ace-hover-2); }
.ace-pinfo__dealtxt { font-size: 14px; color: var(--ace-text-2); }
.ace-pinfo__dealtxt b { color: var(--ace-primary); }
.ace-countdown--sm { gap: 6px; grid-template-columns: repeat(4, 54px); }
.ace-countdown--sm span { padding: 6px 2px 5px; border-radius: 10px; }
.ace-countdown--sm b { font-size: 17px; }
.ace-countdown--sm small { font-size: 9px; }
.ace-countdown--sm.is-over { padding: 8px 12px; }
.ace-pinfo__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ace-pinfo__badges .ace-stock { font-size: 13px; }
.ace-pbadge { font-size: 13px; color: var(--ace-text-2); background: var(--ace-surface); border: 1px solid var(--ace-border); padding: 5px 10px; border-radius: 8px; }
.ace-pinfo__buy { display: flex; flex-wrap: wrap; gap: 10px; }
.ace-qty { display: flex; align-items: center; height: 54px; border: 1px solid var(--ace-border-btn); border-radius: 12px; background: var(--ace-surface); overflow: hidden; }
.ace-qty button { width: 46px; height: 100%; border: 0; background: transparent; color: var(--ace-text); font-size: 20px; cursor: pointer; }
.ace-qty button:hover { background: var(--ace-hover-2); color: var(--ace-primary); }
.ace-qty input { width: 44px; height: 100%; border: 0; background: transparent; text-align: center; font: 700 16px var(--ace-mono); color: var(--ace-text); -moz-appearance: textfield; appearance: textfield; }
.ace-qty input::-webkit-outer-spin-button, .ace-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ace-pinfo__add { flex: 1 1 200px; height: 54px; font-size: 16px; }
.ace-pinfo__now-btn { flex: 1 1 150px; height: 54px; font-size: 16px; }
.ace-pinfo__hint { margin: -8px 0 0; font-size: 12px; color: var(--ace-text-3); }
.ace-page .ace-pinfo__hint a { color: var(--ace-primary); }
.ace-pinfo__ask { padding: 14px 16px; border-radius: 14px; background: #FFF7E6; border: 1px solid #F5DDA8; }
.ace-pinfo__ask p { margin: 0; font-size: 14px; color: #6B4E0F; }
.ace-pinfo__ask--out { background: #FDECEC; border-color: #F6C7C7; }
.ace-pinfo__ask--out p { color: #8A1C1C; }
.ace-page a.ace-pinfo__wa, .ace-pinfo__wa { gap: 10px; height: 50px; background: #E9F9EF; color: #127C3C; border: 1px solid #BFEACD; }
.ace-page a.ace-pinfo__wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.ace-pinfo__svc { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ace-border); border-radius: 14px; background: var(--ace-surface); overflow: hidden; }
.ace-pinfo__svc li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 14px; }
.ace-pinfo__svc li + li { border-top: 1px solid var(--ace-border); }
.ace-pinfo__svc li > div { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ace-pinfo__svc small { font-size: 12px; color: var(--ace-text-2c); }
.ace-pinfo__svcico { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ace-hover-2); font-size: 16px; }
.ace-page .ace-pinfo__svc a { font-size: 13px; color: var(--ace-primary); white-space: nowrap; }

/* Descripción / especificaciones (HTML que viene del admin) */
.ace-pdesc { display: flex; flex-direction: column; gap: 16px; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 20px; padding: 24px; }
.ace-pdesc .ace-tabs { align-self: flex-start; background: var(--ace-bg); }
.ace-rich { font-size: 15px; line-height: 1.6; color: var(--ace-text-2); overflow-x: auto; overflow-wrap: anywhere; }
.ace-rich > :first-child { margin-top: 0; }
.ace-rich h1, .ace-rich h2, .ace-rich h3, .ace-rich h4 { color: var(--ace-text); line-height: 1.25; margin: 1.2em 0 .5em; font-size: 18px; }
.ace-rich img, .ace-rich iframe, .ace-rich video { max-width: 100%; height: auto; border-radius: 12px; }
.ace-rich table { width: 100% !important; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.ace-rich td, .ace-rich th { border: 0 !important; border-bottom: 1px solid var(--ace-border) !important; padding: 10px 12px; text-align: left; vertical-align: top; }
.ace-rich tr:nth-child(odd) td { background: var(--ace-bg); }
.ace-rich td:first-child { font-weight: 600; color: var(--ace-text); width: 34%; }
.ace-rich td:empty { display: none; }
.ace-rich ul, .ace-rich ol { padding-left: 1.2em; }
.ace-rich p:empty, .ace-rich p:has(> br:only-child) { display: none; }

/* Fila horizontal de productos */
.ace-hrow { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.ace-hrow::-webkit-scrollbar { display: none; }
.ace-hrow > * { scroll-snap-align: start; min-width: 0; }

/* Barra fija móvil */
.ace-pbar { display: none; }

/* Visor */
.ace-lightbox { width: min(960px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; background: #fff; }
.ace-lightbox::backdrop { background: var(--ace-overlay); }
.ace-lightbox img { display: block; width: 100%; max-height: 90vh; object-fit: contain; padding: 24px; }
.ace-lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ace-border); background: #fff; font-size: 18px; cursor: pointer; }

@media (max-width: 1100px) {
    .ace-hrow { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
}
@media (max-width: 900px) {
    .ace-pdp__top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ace-gal { position: static; }
    .ace-hrow { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
}
@media (max-width: 640px) {
    .ace-pdp { gap: 22px; padding-top: 14px; padding-bottom: 96px; }
    .ace-crumbs__last { max-width: 22ch; }
    .ace-gal { margin: 0 -16px; }
    .ace-gal__stage { border-radius: 0; border-left: 0; border-right: 0; }
    .ace-gal__nav, .ace-gal__thumbs { display: none; }
    .ace-gal__dots { display: flex; }
    .ace-gal__zoom { top: 14px; bottom: auto; }
    .ace-pinfo__now strong { font-size: 32px; }
    .ace-pinfo__deal { flex-direction: column; align-items: stretch; }
    .ace-countdown--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ace-qty { flex: 1 0 100%; justify-content: space-between; }
    .ace-qty button { width: 64px; }
    .ace-qty input { flex: 1; }
    .ace-pinfo__alt { flex-direction: column; }
    .ace-pinfo__usd { align-self: flex-start; }
    .ace-pdesc { padding: 18px 16px; border-radius: 16px; }
    .ace-pdesc .ace-tabs { align-self: stretch; }
    .ace-rich td:first-child { width: 42%; }
    .ace-hrow { grid-auto-columns: 62%; gap: 10px; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
    .ace-pbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ace-border); box-shadow: 0 -8px 24px rgba(14, 22, 48, .08); transform: translateY(110%); transition: transform .25s ease; }
    .ace-pbar.is-visible { transform: none; }
    .ace-pbar__price { display: flex; flex-direction: column; line-height: 1.1; }
    .ace-pbar__price strong { font-size: 20px; font-weight: 900; }
    .ace-pbar__price del { font-size: 12px; color: var(--ace-text-3); }
    .ace-pbar .ace-btn { height: 46px; flex: 0 0 auto; padding: 0 18px; }
    body.ace-pdp-page .ace-float { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .ace-gal__slide img, .ace-pbar { transition: none; } .ace-gal__track, .ace-hrow { scroll-behavior: auto; } }

/* 404 producto */
.ace-404 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 72px; padding-bottom: 96px; }
.ace-404 h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.ace-404 p { margin: 0; max-width: 52ch; color: var(--ace-text-2); }
.ace-404__search { display: flex; gap: 10px; width: min(560px, 100%); margin-top: 10px; }
.ace-404__search .ace-input { flex: 1; height: 50px; }
.ace-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ==========================================================================
   Páginas informativas (about, contact, banks, delivery, office)
   ========================================================================== */
.ace-info { display: flex; flex-direction: column; gap: 32px; padding-top: 20px; padding-bottom: 64px; }
.ace-info__hero { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.ace-info__hero .ace-crumbs { margin-bottom: 14px; }
.ace-info__hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.ace-info__lead { margin: 4px 0 0; max-width: 64ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--ace-text-2); text-wrap: pretty; }
.ace-info__card { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 20px; padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ace-info__card--navy { background: var(--ace-navy); border-color: var(--ace-navy); color: #fff; }
.ace-info__card--navy .ace-info__h2 { color: #fff; }
.ace-info__h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ace-info__muted { margin: 0; color: var(--ace-text-2); font-size: 14px; }
.ace-info__map { border-radius: 20px; overflow: hidden; border: 1px solid var(--ace-border); background: repeating-linear-gradient(135deg, #EEF1F8 0 10px, #F6F8FC 10px 20px); }
.ace-info__map iframe { display: block; width: 100%; height: 380px; border: 0; }
.ace-page a.ace-btn--wa, .ace-btn--wa { gap: 10px; background: #25D366; color: #fff; }
.ace-page a.ace-btn--wa:hover, .ace-btn--wa:hover { background: #1EB458; color: #fff; }

/* Sobre nosotros */
.ace-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1024px) { .ace-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ace-values { grid-template-columns: minmax(0, 1fr); } }
.ace-value { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: var(--ace-surface); border: 1px solid var(--ace-border); transition: border-color .15s ease, transform .15s ease; }
.ace-page a.ace-value:hover { border-color: var(--ace-primary); color: var(--ace-text); transform: translateY(-2px); }
.ace-value__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ace-hover-2); display: grid; place-items: center; font-size: 22px; margin-bottom: 4px; }
.ace-value b { font-size: 17px; font-weight: 800; }
.ace-value p { margin: 0; font-size: 14px; color: var(--ace-text-2); line-height: 1.5; flex: 1; }
.ace-value__more { font: 12px var(--ace-mono); color: var(--ace-primary); margin-top: 4px; }
.ace-catchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.ace-catchip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ace-surface); border: 1px solid var(--ace-border); font-weight: 600; font-size: 14px; }
.ace-page a.ace-catchip:hover { border-color: var(--ace-primary); }
.ace-catchip .ace-ci { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
.ace-catchip .ace-ci svg { width: 24px; height: 24px; }

/* Bloque de ayuda */
.ace-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.ace-help__cta { background: var(--ace-navy); color: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ace-help__cta .ace-kicker { color: #8FA6FF; }
.ace-help__cta h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.ace-help__cta p { margin: 0 0 8px; color: #C9D2F2; }
.ace-help__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.ace-help__links a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 40px 16px 18px; border-radius: 14px; background: var(--ace-surface); border: 1px solid var(--ace-border); }
.ace-help__links small { color: var(--ace-text-2c); font-size: 13px; }
.ace-help__links span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ace-text-3); }
.ace-page .ace-help__links a:hover { border-color: var(--ace-primary); color: var(--ace-text); }
.ace-page .ace-help__links a:hover span { color: var(--ace-primary); }

/* Contacto */
.ace-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ace-contact__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ace-agents { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ace-agent { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.ace-agent + .ace-agent { border-top: 1px solid var(--ace-border); }
.ace-agent__avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--ace-tint); color: var(--ace-primary); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.ace-agent__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ace-agent__info small { font: 12px var(--ace-mono); color: var(--ace-text-2c); }
.ace-agent__state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ace-text-3); }
.ace-agent__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B8C1D4; }
.ace-agent__state.is-on { color: var(--ace-ok); }
.ace-agent__state.is-on::before { background: var(--ace-ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.ace-agent__btn { height: 42px; padding: 0 16px; font-size: 14px; }
.ace-chan { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.ace-chan__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ace-surface); border: 1px solid var(--ace-border); min-width: 0; }
.ace-page a.ace-chan__item:hover { border-color: var(--ace-primary); color: var(--ace-text); }
.ace-chan__item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ace-chan__item small { font-size: 12px; color: var(--ace-text-2c); }
.ace-chan__item b { font-size: 15px; overflow-wrap: anywhere; }
.ace-chan__ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--ace-hover-2); display: grid; place-items: center; font-size: 18px; font-weight: 800; color: var(--ace-primary); }
.ace-cform form { display: flex; flex-direction: column; gap: 14px; }
.ace-cform__intro { margin: -6px 0 0; font-size: 14px; color: var(--ace-text-2); }
.ace-cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ace-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ace-text-2); min-width: 0; }
.ace-field .ace-input, .ace-field .ace-select { height: 48px; width: 100%; font-weight: 400; }
.ace-textarea { height: auto !important; padding: 12px; resize: vertical; min-height: 120px; line-height: 1.5; }
.ace-field [aria-invalid="true"] { border-color: #DC2626; }
.ace-cform__err { margin: 0; font-size: 13px; color: #B91C1C; }
.ace-cform__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ace-cform__btns .ace-btn { flex: 1 1 200px; }

/* Métodos de pago */
.ace-paymodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ace-paymode { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px; background: var(--ace-surface); border: 1px solid var(--ace-border); }
.ace-paymode__ico { font-size: 24px; margin-bottom: 6px; }
.ace-paymode b { font-size: 16px; }
.ace-paymode p { margin: 0; font-size: 14px; color: var(--ace-text-2); }
.ace-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.ace-bank { background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ace-bank__head { display: flex; align-items: center; gap: 14px; }
.ace-bank__head h3 { margin: 0; font-size: 20px; font-weight: 800; }
.ace-bank__head small { font-size: 13px; color: var(--ace-text-2c); }
.ace-bank__mono { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; background: var(--ace-navy); color: #fff; display: grid; place-items: center; font: 800 15px var(--ace-mono); letter-spacing: .02em; }
.ace-bank__acc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ace-bg); }
.ace-bank__cur { width: 44px; flex: 0 0 44px; font: 700 13px var(--ace-mono); color: var(--ace-primary); }
.ace-bank__num { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ace-bank__num small { font-size: 12px; color: var(--ace-text-2c); }
.ace-bank__num b { font: 700 18px var(--ace-mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.ace-copy { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ace-border-btn); background: #fff; color: var(--ace-primary); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ace-copy:hover { border-color: var(--ace-primary); }
.ace-copy.is-done { background: var(--ace-ok); border-color: var(--ace-ok); color: #fff; }
.ace-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #FFF7E6; border: 1px solid #F5DDA8; color: #6B4E0F; }
.ace-note > span { font-size: 18px; line-height: 1.3; }
.ace-note p { margin: 0; font-size: 14px; line-height: 1.55; }

/* Envíos / delivery */
.ace-steps-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ace-steps-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 150px; }
.ace-steps-side .ace-btn { width: 100%; }
.ace-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ace-step { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.ace-step:last-child { padding-bottom: 0; }
.ace-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--ace-border); }
.ace-step__n { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--ace-primary); color: #fff; display: grid; place-items: center; font: 800 17px var(--ace-mono); }
.ace-step small { font: 11px var(--ace-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ace-primary); }
.ace-step p { margin: 2px 0 0; font-size: 16px; line-height: 1.55; color: var(--ace-text); }
.ace-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ace-checks li { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.5; color: #DCE3FA; }
.ace-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

@media (max-width: 900px) {
    .ace-help, .ace-contact, .ace-steps-wrap { grid-template-columns: minmax(0, 1fr); }
    .ace-steps-side { position: static; }
    .ace-paymodes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ace-paymode { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 16px; }
    .ace-paymode__ico { grid-row: span 2; margin: 0; align-self: center; }
}
@media (max-width: 640px) {
    .ace-info { gap: 24px; padding-top: 14px; padding-bottom: 48px; }
    .ace-help__links { grid-template-columns: minmax(0, 1fr); }
    .ace-cform__row { grid-template-columns: minmax(0, 1fr); }
    .ace-info__map iframe { height: 280px; }
    .ace-agent { flex-wrap: wrap; }
    .ace-agent__btn { flex: 1 0 100%; }
    .ace-bank__acc { flex-wrap: wrap; }
    .ace-copy { flex: 1 0 100%; }
}
.ace-chan__item--wide { grid-column: 1 / -1; }

/* ==========================================================================
   Carrito, checkout y pedido registrado
   ========================================================================== */
.ace-cart, .ace-co, .ace-done { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.ace-cart[v-cloak] { display: none; }
.ace-cart__empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 20px; background: var(--ace-surface); border: 1px dashed var(--ace-border-btn); border-radius: 20px; }
.ace-cart__empty h2 { margin: 0; font-size: 24px; font-weight: 800; }
.ace-cart__empty p { margin: 0; color: var(--ace-text-2); }
.ace-cart__emptyico { font-size: 44px; }
.ace-cart__emptybtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.ace-cart__items { display: flex; flex-direction: column; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 20px; padding: 8px 22px 18px; min-width: 0; }
.ace-cart__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ace-border); }
.ace-cart__head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ace-linkbtn { border: 0; background: none; padding: 6px 0; font: 13px var(--ace-mono); color: var(--ace-text-3); cursor: pointer; }
.ace-linkbtn:hover { color: #B91C1C; }
.ace-citem { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 36px; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ace-border); }
.ace-citem__img { width: 88px; height: 88px; border-radius: 14px; border: 1px solid var(--ace-border); background: #fff; padding: 8px; display: block; }
.ace-citem__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ace-citem__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ace-citem__name { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-citem__unit { font: 13px var(--ace-mono); color: var(--ace-text-2c); }
.ace-citem__max { font-size: 12px; color: #B45309; }
.ace-citem__total { font-size: 17px; font-weight: 800; text-align: right; white-space: nowrap; }
.ace-citem__rm { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ace-text-3); cursor: pointer; font-size: 14px; }
.ace-citem__rm:hover { border-color: #F6C7C7; background: #FDECEC; color: #B91C1C; }
.ace-qty--sm { height: 42px; }
.ace-qty--sm button { width: 38px; font-size: 18px; }
.ace-qty--sm button:disabled { opacity: .35; cursor: not-allowed; background: transparent; color: var(--ace-text); }
.ace-qty__n { min-width: 34px; text-align: center; font: 700 15px var(--ace-mono); }
.ace-page a.ace-cart__back { display: inline-block; margin-top: 14px; font: 13px var(--ace-mono); color: var(--ace-primary); }

/* Resumen */
.ace-sum { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 12px; background: var(--ace-surface); border: 1px solid var(--ace-border); border-radius: 20px; padding: 22px; }
.ace-sum h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.ace-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.ace-sum__row small { color: var(--ace-text-3); font-size: 12px; }
.ace-sum__muted { color: var(--ace-text-3); font-size: 13px; text-align: right; }
.ace-sum__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--ace-border); }
.ace-sum__total span { font-weight: 700; }
.ace-sum__total strong { font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.ace-sum__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ace-text-2c); }
.ace-sum__go { width: 100%; height: 54px; font-size: 16px; }
.ace-sum__go:disabled { opacity: .5; cursor: not-allowed; }
.ace-sum__wa { width: 100%; height: 48px; font-size: 14px; }
.ace-sum__trust { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ace-border); display: flex; flex-direction: column; gap: 8px; }
.ace-sum__trust li { position: relative; padding-left: 22px; font-size: 13px; color: var(--ace-text-2); }
.ace-sum__trust li::before { content: "✓"; position: absolute; left: 0; color: var(--ace-ok); font-weight: 800; }

/* Checkout */
.ace-co-login { display: flex; justify-content: center; }
.ace-co-login .ace-info__card { width: min(480px, 100%); }
.ace-co-login form { display: flex; flex-direction: column; gap: 14px; }
.ace-co-login form[hidden] { display: none; }
.ace-co-login .ace-btn { height: 52px; }
.ace-co-login__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.ace-page .ace-co-login__links a { color: var(--ace-primary); }
.ace-co__form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ace-co__step { gap: 14px; }
.ace-co__h { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 19px; font-weight: 800; }
.ace-co__n { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--ace-primary); color: #fff; display: grid; place-items: center; font: 800 14px var(--ace-mono); }
.ace-co__doc { display: flex; gap: 8px; }
.ace-co__doc .ace-input { flex: 1; }
.ace-co__doc .ace-btn { height: 48px; padding: 0 16px; flex: 0 0 auto; }
.ace-co__hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ace-text-2c); }
.ace-page .ace-co__hint a { color: var(--ace-primary); }
.ace-co__geo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ace-field .ace-select:disabled { background: var(--ace-bg); color: var(--ace-text-3); }
.ace-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ace-opts--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ace-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--ace-border-btn); background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ace-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ace-opt:hover { border-color: var(--ace-primary); }
.ace-opt:has(input:checked) { border-color: var(--ace-primary); background: var(--ace-hover-2); box-shadow: 0 0 0 3px rgba(31, 63, 230, .12); }
.ace-opt:has(input:focus-visible) { outline: 2px solid var(--ace-primary); outline-offset: 2px; }
.ace-opt:has(input[aria-invalid]) { border-color: #DC2626; }
.ace-opt__ico { font-size: 22px; }
.ace-opt__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ace-opt__txt b { font-size: 15px; }
.ace-opt__txt small { font-size: 12px; color: var(--ace-text-2c); }
.ace-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ace-text-2); cursor: pointer; }
.ace-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ace-primary); flex: 0 0 18px; }
.ace-page .ace-check a { color: var(--ace-primary); text-decoration: underline; }
.ace-co__items { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; border-bottom: 1px solid var(--ace-border); }
.ace-co__items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.ace-co__items img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; border: 1px solid var(--ace-border); background: #fff; padding: 4px; }
.ace-co__items span { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.ace-co__items small { font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-co__items b { white-space: nowrap; }
.ace-co__items li.ace-sum__muted { display: block; text-align: left; }

/* Pedido registrado */
.ace-done__main { align-items: flex-start; }
.ace-done__badge { width: 56px; height: 56px; border-radius: 50%; background: var(--ace-ok); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 900; box-shadow: 0 0 0 8px rgba(22, 163, 74, .14); }
.ace-done__wa { height: 56px; font-size: 16px; padding: 0 24px; }
.ace-done__links { display: flex; flex-wrap: wrap; gap: 10px; }
.ace-done__links .ace-btn { height: 44px; font-size: 14px; }
.ace-done__data { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ace-done__data div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.ace-done__data dt { color: var(--ace-text-3); }
.ace-done__data dd { margin: 0; }

@media (max-width: 980px) {
    .ace-cart, .ace-co, .ace-done { grid-template-columns: minmax(0, 1fr); }
    .ace-sum { position: static; }
}
@media (max-width: 640px) {
    .ace-cart__items { padding: 4px 14px 14px; border-radius: 16px; }
    .ace-citem { grid-template-columns: 72px auto minmax(0, 1fr) 32px; grid-template-areas: "img info info rm" "img qty total total"; gap: 8px 12px; }
    .ace-citem__img { grid-area: img; width: 72px; height: 72px; align-self: start; }
    .ace-citem__info { grid-area: info; }
    .ace-citem .ace-qty { grid-area: qty; justify-self: start; }
    .ace-citem__total { grid-area: total; justify-self: end; align-self: center; }
    .ace-citem__rm { grid-area: rm; align-self: start; }
    .ace-co__geo, .ace-opts { grid-template-columns: minmax(0, 1fr); }
    .ace-sum { padding: 18px; border-radius: 16px; }
    .ace-done__wa { width: 100%; }
}

/* ==========================================================================
   Cuenta del cliente: login, registro, recuperar clave, mi cuenta
   ========================================================================== */
.ace-auth-page .ace-info__hero h1, .ace-account-page .ace-info__hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.ace-auth { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 380px); gap: 20px; justify-content: center; align-items: start; }
.ace-auth--solo { grid-template-columns: minmax(0, 520px); }
.ace-auth__card { gap: 18px; }
.ace-auth__panel { display: flex; flex-direction: column; gap: 16px; }
.ace-auth__panel[hidden], .ace-auth__form[hidden], .ace-auth__ok[hidden] { display: none; }
.ace-auth__form { display: flex; flex-direction: column; gap: 14px; }
.ace-auth__form .ace-btn { height: 52px; width: 100%; }
.ace-field small { font-weight: 400; color: var(--ace-text-3); }
.ace-pass { position: relative; display: block; }
.ace-pass .ace-input { padding-right: 76px; }
.ace-pass__ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--ace-hover-2); color: var(--ace-primary); font: 600 13px var(--ace-font); cursor: pointer; }
.ace-pass__ver:hover { background: var(--ace-tint); }
.ace-linkbtn { background: none; border: 0; padding: 0; color: var(--ace-primary); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ace-linkbtn:hover { text-decoration: underline; }
.ace-linkbtn:disabled { color: var(--ace-text-3); cursor: default; text-decoration: none; }
.ace-auth__foot { justify-content: center; padding-top: 14px; border-top: 1px solid var(--ace-border); }
.ace-auth__ok { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 14px; background: #ECFDF3; border: 1px solid #BBF0CF; }
.ace-auth__ok p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ace-text-2); }
.ace-auth__ok p b { color: var(--ace-text); }
.ace-auth__ok .ace-btn { height: 48px; }
.ace-auth__ok--warn { background: #FFF7ED; border-color: #FED7AA; }
.ace-auth__ok--warn .ace-auth__okico { background: #EA580C; box-shadow: 0 0 0 6px rgba(234, 88, 12, .14); }
.ace-auth__okico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--ace-ok); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 900; box-shadow: 0 0 0 6px rgba(22, 163, 74, .14); }
.ace-auth__code { font: 700 26px var(--ace-mono) !important; letter-spacing: .4em; text-align: center; height: 60px !important; }
.ace-auth__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ace-auth__steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ace-text-3); padding-bottom: 10px; border-bottom: 3px solid var(--ace-border); min-width: 0; }
.ace-auth__steps li span { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--ace-bg); border: 1px solid var(--ace-border-btn); display: grid; place-items: center; font: 700 12px var(--ace-mono); }
.ace-auth__steps li.is-on { color: var(--ace-primary); border-color: var(--ace-primary); }
.ace-auth__steps li.is-on span { background: var(--ace-primary); border-color: var(--ace-primary); color: #fff; }
.ace-auth__steps li.is-done { color: var(--ace-ok); border-color: var(--ace-ok); }
.ace-auth__steps li.is-done span { background: var(--ace-ok); border-color: var(--ace-ok); color: #fff; font-size: 0; }
.ace-auth__steps li.is-done span::before { content: "✓"; font-size: 13px; }
.ace-auth__aside { gap: 18px; }
.ace-auth__kicker { color: #8FA4FF; }
.ace-auth__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ace-auth__perks li { display: flex; gap: 14px; align-items: flex-start; }
.ace-auth__perks li > span { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 18px; }
.ace-auth__perks b { display: block; font-size: 15px; }
.ace-auth__perks small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .72); }

/* Mi cuenta */
.ace-acc__welcome { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: #ECFDF3; border: 1px solid #BBF0CF; }
.ace-acc__welcome p { margin: 0; flex: 1 1 260px; font-size: 15px; color: var(--ace-text-2); }
.ace-acc__welcome p b { color: var(--ace-text); }
.ace-acc__welcome .ace-btn { height: 44px; }
.ace-acc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.ace-acc__nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--ace-surface); border: 1px solid var(--ace-border); }
.ace-acc__who { display: flex; align-items: center; gap: 12px; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ace-border); min-width: 0; }
.ace-acc__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ace-acc__who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ace-acc__who small { font-size: 12px; color: var(--ace-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ace-acc__avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--ace-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.ace-page .ace-acc__nav a { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ace-text-2); }
.ace-page .ace-acc__nav a:hover { background: var(--ace-hover); color: var(--ace-text); }
.ace-page .ace-acc__nav a.is-on { background: var(--ace-tint); color: var(--ace-primary); }
.ace-page .ace-acc__nav a.ace-acc__out { margin-top: 6px; border-top: 1px solid var(--ace-border); border-radius: 0 0 12px 12px; color: var(--ace-text-3); }
.ace-acc__count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--ace-bg); display: grid; place-items: center; font: 700 12px var(--ace-mono); color: var(--ace-text-2); }
.ace-acc__pill { margin-left: auto; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ace-acc__pill--ok { background: #DCFCE7; color: #15803D; }
.ace-acc__pill--wait { background: #FEF3C7; color: #B45309; }
.ace-acc__main { min-width: 0; }
.ace-acc__sec[hidden] { display: none; }
.ace-acc__sec h2:focus { outline: none; }
.ace-acc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ace-acc__head > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 280px; }
.ace-acc__head .ace-btn { height: 42px; font-size: 14px; }
.ace-acc__form { max-width: 460px; }
.ace-acc__form .ace-btn { width: auto; align-self: flex-start; padding: 0 28px; height: 48px; }
.ace-acc__hint { margin: 0; font-size: 13px; font-weight: 400; color: var(--ace-text-3); }
.ace-acc__okmsg { margin: 0; font-size: 14px; font-weight: 600; color: var(--ace-ok); }
.ace-acc__okmsg[hidden] { display: none; }
.ace-acc__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 16px; border: 1px dashed var(--ace-border-btn); border-radius: 16px; }
.ace-acc__empty > span { font-size: 36px; }
.ace-acc__empty p { margin: 0; max-width: 380px; color: var(--ace-text-2); font-size: 14px; }
.ace-acc__empty .ace-btn { height: 46px; }
.ace-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ace-order { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--ace-border); background: #fff; }
.ace-order:hover { border-color: var(--ace-border-btn); }
.ace-order__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ace-order__id { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.ace-order__id b { font-size: 16px; }
.ace-order__id small { font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-order__total { font-size: 20px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.ace-status { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ace-status--wait { background: #FEF3C7; color: #B45309; }
.ace-status--ok { background: #DCFCE7; color: #15803D; }
.ace-status--bad { background: #FEE2E2; color: #B91C1C; }
.ace-status--done { background: var(--ace-tint); color: var(--ace-primary); }
.ace-order__thumbs { display: flex; gap: 8px; align-items: center; }
.ace-order__thumbs img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; border: 1px solid var(--ace-border); background: #fff; padding: 4px; }
.ace-order__thumbs span { font: 700 13px var(--ace-mono); color: var(--ace-text-3); }
.ace-order__det summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ace-primary); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.ace-order__det summary::-webkit-details-marker { display: none; }
.ace-order__det summary::after { content: "▾"; transition: transform .15s ease; }
.ace-order__det[open] summary::after { transform: rotate(180deg); }
.ace-order__det .ace-co__items { margin-top: 12px; max-height: none; padding-bottom: 0; border-bottom: 0; }
.ace-order__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ace-order__acts .ace-btn { height: 42px; font-size: 14px; padding: 0 16px; }
.ace-acc__rec { margin: 0; font-size: 14px; color: var(--ace-text-2); line-height: 1.5; }
.ace-acc__resp { padding: 12px 14px; border-radius: 12px; background: var(--ace-bg); }
.ace-acc__resp small { font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-acc__resp p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.ace-acc__vip { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--ace-hover); border: 1px solid var(--ace-border); }
.ace-acc__vip > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ace-acc__vip p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ace-text-2); }
.ace-acc__vip p b { color: var(--ace-text); }
.ace-acc__vip .ace-btn { height: 46px; }
.ace-acc__vipico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: #FEF3C7; display: grid; place-items: center; font-size: 22px; }
.ace-acc__vipico--ok { background: #DCFCE7; }

@media (max-width: 900px) {
    .ace-auth { grid-template-columns: minmax(0, 1fr); }
    .ace-acc { grid-template-columns: minmax(0, 1fr); }
    .ace-acc__nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 8px; gap: 6px; scrollbar-width: none; }
    .ace-acc__nav::-webkit-scrollbar { display: none; }
    .ace-acc__who { display: none; }
    .ace-page .ace-acc__nav a { flex: 0 0 auto; white-space: nowrap; padding: 9px 12px; }
    .ace-page .ace-acc__nav a.ace-acc__out { margin-top: 0; border-top: 0; border-radius: 12px; }
}
@media (max-width: 640px) {
    .ace-auth__steps li { flex-direction: column; align-items: flex-start; font-size: 11px; }
    .ace-order { padding: 14px; }
    .ace-order__total { font-size: 18px; }
    .ace-order__acts .ace-btn { flex: 1 1 100%; }
    .ace-acc__form .ace-btn { width: 100%; }
    .ace-acc__vip { flex-direction: column; }
}
.ace-order__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ace-order__row .ace-order__acts { margin-left: auto; }
@media (max-width: 640px) { .ace-order__row .ace-order__acts { margin-left: 0; width: 100%; } }

/* ==========================================================================
   Listas de precio (Distribución / VIP)
   ========================================================================== */
.ace-plist-page .ace-info__hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.ace-plist { display: flex; flex-direction: column; gap: 16px; }
.ace-plist__tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px 200px auto; gap: 10px; padding: 14px; border-radius: 18px; background: var(--ace-surface); border: 1px solid var(--ace-border); }
.ace-plist__tools .ace-input, .ace-plist__tools .ace-select { height: 48px; width: 100%; }
.ace-plist__tools .ace-btn { height: 48px; padding: 0 22px; }
.ace-plist__search { display: block; min-width: 0; }
.ace-plist__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; color: var(--ace-text-2); }
.ace-plist__meta p { margin: 0; }
.ace-page .ace-plist__meta a { color: var(--ace-primary); }
.ace-plist__note { font: 12px var(--ace-mono); color: var(--ace-text-3); }
.ace-plist__head, .ace-prow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 110px 170px 220px; gap: 16px; align-items: center; }
.ace-plist__head { padding: 0 18px; font: 600 11px var(--ace-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ace-text-3); }
.ace-plist__head span:first-child { grid-column: 1 / 3; }
.ace-plist__head span:nth-child(3) { text-align: right; }
.ace-plist__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ace-prow { padding: 12px 18px; border-radius: 16px; background: var(--ace-surface); border: 1px solid var(--ace-border); transition: border-color .15s ease, box-shadow .15s ease; }
.ace-prow:hover { border-color: var(--ace-border-btn); box-shadow: 0 6px 18px rgba(14, 22, 48, .05); }
.ace-prow__img img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; border: 1px solid var(--ace-border); background: #fff; padding: 6px; display: block; }
.ace-prow__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ace-page a.ace-prow__name { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ace-text); }
.ace-page a.ace-prow__name:hover { color: var(--ace-primary); }
.ace-prow__specs { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ace-text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ace-prow__code { font: 11px var(--ace-mono); color: var(--ace-text-3); }
.ace-prow__stock { display: flex; align-items: center; gap: 6px; font: 700 14px var(--ace-mono); white-space: nowrap; }
.ace-prow__stock small { font: 400 12px var(--ace-font); color: var(--ace-text-3); }
.ace-stockdot { width: 8px; height: 8px; border-radius: 50%; background: var(--ace-ok); flex: 0 0 8px; }
.ace-stockdot.is-low { background: #F59E0B; }
.ace-stockdot.is-ask { background: #DC2626; }
.ace-prow__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.ace-prow__price strong { font-size: 19px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; color: var(--ace-primary); }
.ace-prow__price small { font-size: 12px; color: var(--ace-text-3); white-space: nowrap; }
.ace-prow__price em { font-style: normal; font-weight: 700; color: var(--ace-ok); }
.ace-prow__buy { display: flex; gap: 8px; justify-content: flex-end; }
.ace-prow__buy .ace-qty input { width: 40px; font-size: 14px; }
.ace-prow__add, .ace-prow__ask { height: 42px; padding: 0 16px; font-size: 14px; }
.ace-prow__add.is-done { background: var(--ace-ok); }
.ace-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.ace-pager a, .ace-pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: inline-grid; place-items: center; font: 600 14px var(--ace-font); }
.ace-page .ace-pager a { background: var(--ace-surface); border: 1px solid var(--ace-border); color: var(--ace-text); }
.ace-page .ace-pager a:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-pager span.is-on { background: var(--ace-primary); color: #fff; }
.ace-pager span:not(.is-on) { color: var(--ace-text-3); }
.ace-plist__cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.ace-plist__cta p { margin: 6px 0 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.ace-plist__cta .ace-btn { height: 50px; }
.ace-plist__gate { flex-direction: row; align-items: flex-start; gap: 18px; max-width: 760px; }
.ace-plist__gate > div { display: flex; flex-direction: column; gap: 12px; }
.ace-plist__gatebtns { display: flex; flex-wrap: wrap; gap: 10px; }
.ace-plist__gatebtns .ace-btn { height: 48px; }

@media (max-width: 1100px) {
    .ace-plist__tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ace-plist__search { grid-column: 1 / -1; }
    .ace-plist__tools .ace-btn { grid-column: 1 / -1; }
    .ace-plist__head { display: none; }
    .ace-prow { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img stock price" "buy buy buy"; gap: 10px 14px; }
    .ace-prow__img { grid-area: img; align-self: start; }
    .ace-prow__info { grid-area: info; }
    .ace-prow__stock { grid-area: stock; }
    .ace-prow__price { grid-area: price; }
    .ace-prow__buy { grid-area: buy; justify-content: stretch; }
    .ace-prow__add, .ace-prow__ask { flex: 1; }
}
@media (max-width: 640px) {
    .ace-plist__tools { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .ace-prow { grid-template-columns: 60px minmax(0, 1fr) auto; padding: 12px; }
    .ace-prow__img img { width: 60px; height: 60px; }
    .ace-plist__gate { flex-direction: column; }
    .ace-plist__cta .ace-btn { width: 100%; }
}
.ace-ltag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--ace-tint); color: var(--ace-primary); font: 700 10px var(--ace-font); letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }
.ace-prow__buy .ace-qty { flex: 0 0 auto; width: auto; }
.ace-prow__buy .ace-btn { min-width: 0; }
.ace-prow__buy .ace-qty button { width: 38px; }
.ace-prow__buy .ace-qty input { flex: 0 0 40px; }

/* ==========================================================================
   Términos y condiciones · Libro de Reclamaciones
   ========================================================================== */
.ace-legal-page .ace-info__hero h1, .ace-libro-page .ace-info__hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.ace-legal { max-width: 860px; font-size: 15px; line-height: 1.7; color: var(--ace-text-2); }
.ace-legal h2 { margin: 18px 0 0; font-size: 19px; font-weight: 800; color: var(--ace-text); letter-spacing: -.01em; }
.ace-legal h2:first-child { margin-top: 0; }
.ace-legal h3 { margin: 12px 0 0; font-size: 16px; color: var(--ace-text); }
.ace-legal p, .ace-legal ul, .ace-legal ol { margin: 0; }
.ace-legal ul, .ace-legal ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.ace-legal strong, .ace-legal b { color: var(--ace-text); }
.ace-page .ace-legal a { color: var(--ace-primary); text-decoration: underline; }
.ace-legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ace-legal td, .ace-legal th { border: 1px solid var(--ace-border); padding: 8px 10px; text-align: left; }
.ace-legal__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ace-page .ace-legal__links a { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid var(--ace-border); background: var(--ace-hover); color: var(--ace-text); text-decoration: none; }
.ace-page .ace-legal__links a:hover { border-color: var(--ace-primary); }
.ace-legal__links small { font-size: 13px; color: var(--ace-text-3); }

.ace-libro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ace-libro__form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ace-libro__form.is-enviado { opacity: .7; }
.ace-libro__hoja { flex-direction: row; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px 24px; border-top: 4px solid var(--ace-primary); }
.ace-libro__hoja > div { display: flex; flex-direction: column; gap: 4px; }
.ace-libro__num { font: 700 18px var(--ace-mono); }
.ace-libro__hoja dl { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ace-libro__hoja dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.ace-libro__hoja dt { color: var(--ace-text-3); }
.ace-libro__hoja dd { margin: 0; }
.ace-libro__padre { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--ace-hover); }
.ace-libro__padre[hidden] { display: none; }
.ace-libro .ace-opt__txt small { line-height: 1.4; }
.ace-libro__send { display: flex; flex-direction: column; gap: 12px; }
.ace-libro__send .ace-btn { height: 54px; font-size: 16px; align-self: flex-start; padding: 0 28px; }
.ace-libro__ok { grid-column: 1; border-color: #BBF0CF; background: #F6FEF9; }
.ace-libro__ok p { margin: 0; font-size: 15px; color: var(--ace-text-2); }
.ace-libro__ok[hidden] { display: none; }
.ace-libro__side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
.ace-libro__res { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--ace-border); }
.ace-libro__res p { margin: 0; font-size: 14px; }
.ace-libro__res[hidden] { display: none; }
@media (max-width: 980px) {
    .ace-libro { grid-template-columns: minmax(0, 1fr); }
    .ace-libro__side { grid-column: 1; grid-row: auto; position: static; }
    .ace-libro__ok { grid-column: 1; }
    .ace-libro__send .ace-btn { width: 100%; }
}
@media print {
    .ace-libro-page .ace-header, .ace-libro-page .ace-footer, .ace-libro__side, .ace-libro__ok .ace-cform__btns, .ace-libro__send .ace-btn { display: none !important; }
    .ace-libro { display: block; }
    .ace-libro__form.is-enviado { opacity: 1; }
}

/* Avísame cuando llegue (ficha del producto) */
.ace-aviso { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ace-hover); border: 1px solid var(--ace-border); }
.ace-aviso label { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 14px; }
.ace-aviso label small { font-size: 12px; color: var(--ace-text-2c); }
.ace-aviso__row { display: flex; gap: 8px; }
.ace-aviso__row[hidden] { display: none; }
.ace-aviso__row .ace-input { flex: 1; min-width: 0; height: 44px; }
.ace-aviso__row .ace-btn { height: 44px; padding: 0 16px; font-size: 14px; flex: 0 0 auto; }
.ace-aviso__msg { margin: 0; font-size: 13px; font-weight: 600; }
.ace-aviso__msg.is-ok { color: var(--ace-ok); }
.ace-aviso__msg.is-error { color: #B91C1C; }

/* ==========================================================================
   Comparador de productos
   ========================================================================== */
.ace-card__cmp { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--ace-border); background: rgba(255, 255, 255, .95); color: var(--ace-text-2); font: 600 12px/1 var(--ace-font); cursor: pointer; box-shadow: 0 2px 8px rgba(10, 20, 60, .08); -webkit-appearance: none; appearance: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ace-card__cmpico { font-size: 14px; font-weight: 800; }
.ace-card__cmp:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-card__cmp.is-on { background: var(--ace-primary); border-color: var(--ace-primary); color: #fff; }
.ace-card__cmp.is-on .ace-card__cmpico::before { content: "✓"; }
.ace-card__cmp.is-on .ace-card__cmpico { font-size: 0; }
.ace-card__cmp.is-on .ace-card__cmpico::before { font-size: 13px; }
.ace-pcmp { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ace-border-btn); background: var(--ace-surface); color: var(--ace-text-2); font: 600 13px var(--ace-font); cursor: pointer; }
.ace-pcmp:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-pcmp.is-on { background: var(--ace-tint); border-color: var(--ace-primary); color: var(--ace-primary); }

.ace-cmpbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 18px; background: var(--ace-navy); color: #fff; box-shadow: 0 16px 40px rgba(10, 20, 60, .35); max-width: calc(100vw - 32px); }
.ace-cmpbar[hidden] { display: none; }
.ace-cmpbar__tit { font-size: 14px; white-space: nowrap; }
.ace-cmpbar__items { display: flex; gap: 8px; }
.ace-cmpbar__item { position: relative; width: 48px; height: 48px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.ace-cmpbar__item img { width: 40px; height: 40px; object-fit: contain; }
.ace-cmpbar__item--empty { background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3); }
.ace-cmpbar__x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #DC2626; color: #fff; font-size: 10px; cursor: pointer; display: grid; place-items: center; }
.ace-cmpbar__acts { display: flex; align-items: center; gap: 6px; }
.ace-cmpbar__acts .ace-btn { height: 44px; font-size: 14px; padding: 0 18px; white-space: nowrap; }
.ace-cmpbar__acts .ace-btn.is-disabled { opacity: .55; }
.ace-cmpbar__clear { background: none; border: 0; color: rgba(255, 255, 255, .75); font: 600 13px var(--ace-font); cursor: pointer; padding: 6px; }
.ace-cmpbar__clear:hover { color: #fff; }
body.ace-cmpbar-on .ace-float, body.ace-cmpbar-on .ace-pbar { bottom: 96px; }
@media (max-width: 640px) {
    .ace-cmpbar { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; gap: 8px; padding: 8px 10px; }
    .ace-cmpbar__tit { display: none; }
    .ace-cmpbar__item { width: 40px; height: 40px; }
    .ace-cmpbar__item img { width: 32px; height: 32px; }
    .ace-cmpbar__acts { margin-left: auto; }
    .ace-cmpbar__acts .ace-btn { padding: 0 12px; height: 40px; }
    .ace-cmpbar__clear { display: none; }
}

.ace-cmp-page .ace-info__hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.ace-cmp-empty { align-items: center; text-align: center; padding: 48px 24px; }
.ace-cmp-empty__ico { width: 64px; height: 64px; border-radius: 18px; background: var(--ace-tint); color: var(--ace-primary); display: grid; place-items: center; font-size: 28px; font-weight: 900; }
.ace-cmp-empty p { max-width: 520px; }
.ace-cmp-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ace-cmp-empty__btns .ace-btn { height: 46px; }
.ace-cmp-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ace-cmp-tools p { margin: 0; color: var(--ace-text-2); font-size: 14px; }
.ace-cmp-tools__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ace-cmp-tools__btns .ace-btn { height: 42px; font-size: 14px; }
.ace-cmp { overflow-x: auto; border-radius: 20px; border: 1px solid var(--ace-border); background: var(--ace-surface); -webkit-overflow-scrolling: touch; }
.ace-cmp__tbl { width: 100%; min-width: calc(150px + var(--cmp-n) * 220px); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ace-cmp__tbl th, .ace-cmp__tbl td { padding: 16px; border-bottom: 1px solid var(--ace-border); vertical-align: top; text-align: left; font-size: 14px; }
.ace-cmp__tbl tr:last-child > * { border-bottom: 0; }
.ace-cmp__tbl td + td, .ace-cmp__tbl th + th, .ace-cmp__tbl th + td { border-left: 1px solid var(--ace-border); }
.ace-cmp__lbl { width: 150px; position: sticky; left: 0; z-index: 1; background: var(--ace-hover); font: 600 12px var(--ace-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ace-text-3); }
.ace-cmp__prod { position: relative; font-weight: 400; }
.ace-cmp__prod small { display: block; margin-top: 4px; font: 11px var(--ace-mono); color: var(--ace-text-3); }
.ace-cmp__img { display: grid; place-items: center; height: 150px; margin-bottom: 10px; }
.ace-cmp__img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.ace-page a.ace-cmp__name { display: block; font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--ace-text); }
.ace-page a.ace-cmp__name:hover { color: var(--ace-primary); }
.ace-cmp__rm { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ace-border); background: #fff; color: var(--ace-text-3); cursor: pointer; font-size: 12px; }
.ace-cmp__rm:hover { border-color: #DC2626; color: #DC2626; }
.ace-cmp__add a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 220px; border: 1.5px dashed var(--ace-border-btn); border-radius: 14px; color: var(--ace-text-3); font-weight: 600; text-decoration: none; }
.ace-cmp__add a span { font-size: 28px; color: var(--ace-primary); }
.ace-page .ace-cmp__add a:hover { border-color: var(--ace-primary); color: var(--ace-primary); }
.ace-cmp__void { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--ace-hover) 8px 9px); }
.ace-cmp__tbl td del { display: block; font-size: 12px; color: var(--ace-text-3); }
.ace-cmp__price { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.ace-cmp__tbl td small { display: block; margin-top: 4px; font-size: 12px; color: var(--ace-text-3); }
.ace-cmp__tbl td.is-best { background: #F0FDF4; }
.ace-cmp__badge { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11px; font-weight: 800; }
.ace-cmp__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--ace-text-2); }
.ace-cmp__list--specs { max-height: 320px; overflow: auto; }
.ace-page a.ace-cmp__more { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--ace-primary); }
.ace-cmp__na { color: var(--ace-text-3); font-size: 13px; }
.ace-cmp__actions .ace-btn { width: 100%; height: 46px; font-size: 14px; }
.ace-cmp-note { margin: 0; font-size: 12px; color: var(--ace-text-3); }
@media (max-width: 640px) {
    .ace-cmp__tbl { min-width: calc(110px + var(--cmp-n) * 170px); }
    .ace-cmp__lbl { width: 110px; }
    .ace-cmp__tbl th, .ace-cmp__tbl td { padding: 12px; }
    .ace-cmp__img { height: 110px; }
    .ace-cmp__img img { max-height: 110px; }
}
.ace-page .ace-acc__del:hover { border-color: #DC2626; color: #DC2626; }
.ace-acc__sec { scroll-margin-top: 150px; }

/* ==========================================================================
   Favoritos (corazón)
   ========================================================================== */
.ace-favbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ace-border-input); background: var(--ace-surface); color: var(--ace-text-2); flex: 0 0 auto; }
.ace-favbtn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.ace-page .ace-favbtn:hover { color: #E11D48; border-color: #FDA4AF; }
.ace-favbtn__n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E11D48; color: #fff; font: 700 11px/20px var(--ace-mono); text-align: center; }
.ace-favbtn__n[hidden] { display: none; }
@media (max-width: 640px) { .ace-favbtn { width: 40px; height: 40px; } }

.ace-card__fav { position: absolute; top: 46px; right: 10px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ace-border); background: rgba(255, 255, 255, .95); color: var(--ace-text-3); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(10, 20, 60, .08); -webkit-appearance: none; appearance: none; transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.ace-card__fav svg, .ace-pfav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ace-card__fav:hover { color: #E11D48; border-color: #FDA4AF; }
.ace-card__fav.is-on { color: #E11D48; border-color: #FECDD3; background: #FFF1F2; }
.ace-card__fav.is-on svg, .ace-pfav.is-on svg { fill: currentColor; }
.ace-card__fav:active { transform: scale(.9); }
.ace-pfav.is-on { background: #FFF1F2; border-color: #FDA4AF; color: #E11D48; }
.ace-pfav:hover { border-color: #FDA4AF; color: #E11D48; }

/* Mi cuenta → Mis favoritos */
.ace-favs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ace-favs[hidden] { display: none; }
.ace-fav { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--ace-border); border-radius: 16px; background: var(--ace-surface); }
.ace-fav__img { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--ace-border); background: #fff; }
.ace-fav__img img { max-width: 72px; max-height: 72px; object-fit: contain; }
.ace-fav__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ace-page a.ace-fav__name { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--ace-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ace-page a.ace-fav__name:hover { color: var(--ace-primary); }
.ace-fav__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ace-fav__price strong { font-size: 18px; font-weight: 900; }
.ace-fav__price del { font-size: 12px; color: var(--ace-text-3); }
.ace-fav__drop { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11px; font-weight: 800; }
.ace-fav__off { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #FEE2E2; color: #B91C1C; font-size: 11px; font-weight: 800; }
.ace-fav__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: var(--ace-text-3); }
.ace-fav__alert { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ace-text-2); font-weight: 600; }
.ace-fav__alert input { width: 16px; height: 16px; accent-color: var(--ace-primary); }
.ace-fav__acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ace-fav__acts .ace-btn { height: 40px; font-size: 13px; padding: 0 14px; white-space: nowrap; }
.ace-fav-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ace-tint); font-size: 13px; color: var(--ace-text-2); }
.ace-fav-tools[hidden] { display: none; }
.ace-fav-tools label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ace-text); cursor: pointer; }
.ace-fav-tools input { width: 18px; height: 18px; accent-color: var(--ace-primary); }
@media (max-width: 640px) {
    .ace-fav { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .ace-fav__img { width: 64px; height: 64px; }
    .ace-fav__img img { max-width: 54px; max-height: 54px; }
    .ace-fav__acts { grid-column: 1 / -1; flex-direction: row; }
    .ace-fav__acts .ace-btn { flex: 1; }
}
.ace-acc__empty[hidden] { display: none; }
