@import url('/fonts/montserrat/montserrat.css');

/* ═══════════════════════════════════════════════════════════════
   Núcleo — tienda de informática con «Arma tu PC», comparador y pedido por WhatsApp
   Estilo 2026 «tech»: claro por defecto (blanco y gris azulado, acento cian profundo) y
   modo noche (grafito y cian eléctrico) que el visitante elige con el botón sol/luna; se
   guarda en su navegador. El dueño decide el tema por defecto en el editor (#themeDefault).
   Re-tematizar = cambiar los tokens de :root (claro) y de [data-theme="dark"] (noche).
   Los iconos de interfaz (.i-*) se generan al final del archivo (build.py).
   ═══════════════════════════════════════════════════════════════ */
:root {
  color-scheme: light;
  --bg: #F5F7FA;
  --bg-2: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6778;      /* sobre blanco: 5,9:1 */
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --accent: #0E7490;     /* cian profundo: texto blanco 5,4:1 */
  --accent-2: #155E75;   /* cian para texto sobre fondo claro: 7:1 */
  --on-accent: #FFFFFF;
  --glow: rgba(14, 116, 144, .18);
  --violet: #6D28D9;
  --on-violet: #FFFFFF;
  --hot: #C2410C;        /* ofertas: texto blanco 5,2:1 */
  --on-hot: #FFFFFF;
  --ok: #047857;
  --ok-text: #065F46;
  --warn: #B45309;
  --bad: #B91C1C;
  --bad-text: #991B1B;
  --wa: #0E7A43;         /* verde WhatsApp oscuro: blanco 5,4:1 */
  --wa-2: #0B6437;
  --wa-text: #0E7A43;
  --fav: #E11D48;
  --star: #D97706;
  --star-off: #CBD5E1;
  --scrim: rgba(15, 23, 42, .5);
  --shade: rgba(15, 23, 42, .18);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 24px 60px -30px var(--shade);
  --wrap: 1240px;
}
/* Modo noche: el visitante lo elige con el botón sol/luna (o el dueño lo pone por defecto) */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0E13;
  --bg-2: #0F131A;
  --surface: #121821;
  --surface-2: #18202B;
  --ink: #E8EEF6;
  --ink-2: #B9C4D3;
  --muted: #95A2B6;      /* sobre --surface: 6,6:1 */
  --line: #243041;
  --line-2: #35445A;
  --accent: #22D3EE;     /* cian eléctrico: siempre con texto --on-accent (11:1) */
  --accent-2: #67E8F9;
  --on-accent: #041A20;
  --glow: rgba(34, 211, 238, .28);
  --violet: #8B7CFF;
  --on-violet: #0C0820;
  --hot: #FF7A45;
  --on-hot: #1F0B02;
  --ok: #34D399;
  --ok-text: #A7F3D0;
  --warn: #FBBF24;
  --bad: #F87171;
  --bad-text: #FECACA;
  --wa-text: #4ADE80;
  --fav: #FF6B8B;
  --star: #FFC247;
  --star-off: #3A4556;
  --scrim: rgba(3, 5, 8, .72);
  --shade: rgba(0, 0, 0, .8);
}

* { font-family: 'Montserrat', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.vt-lock, html.vt-lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--accent); color: var(--on-accent); border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.pd-now, .pd-keys, .stat-n, .hs-n, .step-n, .hc-price, .bld-tot dd, .totals dd, .cmp-table td, .inst { font-variant-numeric: tabular-nums; }

/* ─── Iconos de interfaz (máscaras CSS) ─── */
.i { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ─── Botones (≥ 44 px) ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 1px solid transparent; font-size: .92rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 0 0 4px var(--glow); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-outline { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .i-arrow { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ─── Cinta y cabecera ─── */
.ribbon { background: var(--accent); color: var(--on-accent); font-size: .82rem; font-weight: 700; }
.ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 16px; min-height: 40px; padding: 4px 16px; text-align: center; }
@media (max-width: 599px) { .ribbon-link { display: none !important; } } /* en el celular «Armar PC» está en la barra de abajo */
.ribbon-link { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: 18px; width: min(var(--wrap), 100%); margin-inline: auto; padding: 8px 16px; min-height: 66px; }
@media (min-width: 700px) { .header-inner { padding-inline: 28px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 16px var(--glow); flex: none; }
.main-menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--ink-2); border-radius: var(--r-sm); transition: color .2s, background-color .2s; }
.main-menu a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-menu + .header-actions { margin-left: 0; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .i { width: 22px; height: 22px; }
.cart-count, .cmp-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: .76rem; font-weight: 800; line-height: 20px; text-align: center; }
.cart-count.has-items, .cmp-count.has-items { background: var(--accent); color: var(--on-accent); }
.cmp-count:not(.has-items) { display: none; }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--r); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-menu { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px var(--shade); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { min-height: 50px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 380px) { .header-inner { gap: 8px; padding-inline: 12px; } .icon-btn { width: 44px; } .logo { font-size: 1.25rem; } }

/* ─── Día / noche ─── */
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: inline-block; }
@media (max-width: 420px) { .header-actions .js-cmp-open { display: none; } } /* en el celular, la bandeja «Comparar» basta */
/* Ajustes de la tienda (tema, estrellas): solo se ven en el editor */
.shop-settings { display: none; }
body:not(.tm-preview-mode) #tm-template-container .shop-settings { display: grid; gap: 8px; margin-top: 24px; padding: 12px 14px; border: 1.5px dashed #60eba0; border-radius: var(--r); font-size: .9rem; font-weight: 700; }
.ss-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ss-hint { font-weight: 500; font-size: .82rem; color: var(--muted); }
/* Sin estrellas: la dueña escribió «No» en «Mostrar estrellas en los productos» */
html.no-ratings .pd-rating { display: none; }

/* ─── Secciones ─── */
section[id] { scroll-margin-top: 72px; }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.sec-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.sec-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.sec-lead { font-size: 1.04rem; color: var(--ink-2); max-width: 62ch; }
.stars { --r: 5; position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--star-off) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── Hero ───
   Izquierda: título, frase, 2 botones y una línea de confianza. Derecha: mosaico de 3 fotos de producto
   (la grande, alta, es la PC destacada con su precio; las otras dos llevan a su categoría). */
.hero { position: relative; overflow: hidden; padding: 28px 0 36px; background:
  radial-gradient(600px 380px at 85% 20%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%),
  radial-gradient(520px 360px at 10% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px, var(--bg); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 92%, transparent) 85%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 24px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hero-eyebrow::before { display: none; }
.hero-title { font-size: clamp(2.3rem, 8.5vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; background: linear-gradient(100deg, var(--ink) 35%, var(--accent-2) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 34em; font-size: 1.05rem; color: var(--ink-2); }
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.hero-ctas .btn { padding-inline: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.ht-item { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; }
.ht-item .i { width: 16px; height: 16px; color: var(--ok); }
/* Mosaico */
.hero-visual { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; height: clamp(340px, 88vw, 420px); }
.hv-main { position: relative; min-height: 0; }
.hero-photo { position: relative; height: 100%; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 10px 8px 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.hero-card > p { grid-column: 1; }
.hc-tag { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.hc-name { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.hc-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.hc-price { font-size: 1.1rem; font-weight: 800; }
.hc-price-row .inst { font-size: .78rem; color: var(--accent-2); font-weight: 600; }
.hc-link { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hc-link:hover { transform: translateX(2px); box-shadow: 0 0 0 4px var(--glow); }
.hc-link > span[data-edit] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc-link .i { width: 20px; height: 20px; }
.hv-tiles { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 10px; min-height: 0; }
.hv-tile { position: relative; display: block; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hv-tile:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.hv-img { position: absolute; inset: 0; }
.hv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hv-tile:hover .hv-img img { transform: scale(1.05); }
.hv-label { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); min-height: 36px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); }
.hv-label .cat-name { font-size: .86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-label .i { width: 14px; height: 14px; flex: none; color: var(--accent-2); }
@media (max-width: 559px) {
  .hero-trust { gap: 4px 14px; font-size: .84rem; }
  .hero-visual { grid-template-columns: 1fr 1fr; height: auto; }
  .hv-main { grid-column: 1 / -1; }
  .hero-photo { height: auto; aspect-ratio: 4 / 3; }
  .hv-tiles { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .hv-tile { aspect-ratio: 4 / 3; }
}
@media (max-width: 379px) {
  .hero-ctas .btn { gap: 6px; padding-inline: 8px; font-size: .88rem; }
  .hero-ctas .btn .i { display: none; }
  .hc-price-row .inst { display: none; }
  .hv-label { padding: 6px 10px; }
  .hv-label .i { display: none; }
}
@media (min-width: 980px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; min-height: min(560px, calc(100vh - 170px)); }
  .hero-copy { gap: 20px; }
  .hero-visual { height: 480px; }
  .hero-card { left: 14px; right: 14px; bottom: 14px; padding: 12px 10px 12px 16px; }
  .hc-name { font-size: 1.1rem; }
  .hc-price { font-size: 1.25rem; }
}

/* ─── ¿Para qué la usarás? (debajo de las categorías; llevan a la tienda filtrada) ─── */
.use-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.use-q { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.use-list { display: flex; flex-wrap: wrap; gap: 8px; }
.use-pick { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, box-shadow .2s; }
.use-pick:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 0 3px var(--glow); }
@media (max-width: 699px) {
  .use-list { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .use-list::-webkit-scrollbar { display: none; }
  .use-pick { flex: none; }
}

/* ─── Beneficios ─── */
.benefits { padding: 0 0 8px; background: var(--bg); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); justify-content: center; gap: 12px; margin-top: 12px; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.benefit-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--surface-2); color: var(--accent-2); }
.benefit-title { font-weight: 700; font-size: .94rem; line-height: 1.3; }
.benefit-text { font-size: .84rem; color: var(--muted); }

/* ─── Categorías ─── */
.cats { padding-bottom: 24px; }
/* auto-fill: con 1–2 categorías las tarjetas no se estiran (ver .products) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } }
.cat-tile { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.cat-tile:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.cat-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover .cat-img img { transform: scale(1.05); }
.cat-text { display: grid; gap: 2px; padding: 14px 52px 16px 14px; }
.cat-name { font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 800; letter-spacing: -.02em; }
.cat-sub { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.cat-tile > .i-arrow { position: absolute; right: 14px; bottom: 18px; width: 20px; height: 20px; color: var(--accent-2); }

/* ─── Tienda: herramientas y chips ─── */
.shop { padding-top: 48px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.shop-head .sec-head { margin-bottom: 0; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 320px; justify-content: flex-end; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 400px; }
.search .i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 10px 14px 10px 42px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.sort { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: .86rem; font-weight: 600; color: var(--muted); }
.sort select { min-height: 44px; border: 0; background: transparent; font-weight: 700; color: var(--ink); cursor: pointer; font-size: .92rem; }
.sort select option { background: var(--surface); color: var(--ink); }
.filters { display: grid; gap: 8px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-l { min-width: 76px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chip-grid, .use-grid { display: contents; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; transition: background-color .2s, border-color .2s, color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--accent); }
.chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-fav .i { width: 16px; height: 16px; }
.shop-count { margin: 6px 0 16px; font-size: .86rem; font-weight: 600; color: var(--muted); }

/* ─── Tarjeta de producto ─── */
/* auto-fill (no auto-fit): 1, 2 o 3 productos (un filtro con pocos resultados) mantienen el tamaño */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(155px, 100%), 1fr)); gap: 12px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; } }
.products > .tm-add-btn { order: 9999; }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.product:hover { border-color: var(--line-2); box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -30px color-mix(in srgb, var(--accent) 35%, transparent); }
.pd-media { position: relative; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; cursor: pointer; }
.pd-gallery { position: relative; height: 100%; }
.pd-shot { position: relative; margin: 0; height: 100%; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; }
.product:not(.is-open) .pd-shots { position: absolute; inset: 0; pointer-events: none; }
.product:not(.is-open) .pd-shots .pd-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.product:not(.is-open) .pd-shots .pd-shot ~ .pd-shot { display: none; }
@media (hover: hover) { .product:not(.is-open):hover .pd-shots .pd-shot:first-child { opacity: 1; } }
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-shots { display: none; } /* en el editor: clic en la foto = cambiarla */
.pd-badge { position: absolute; top: 10px; left: 10px; z-index: 2; max-width: calc(100% - 70px); padding: 4px 9px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .03em; line-height: 1.3; border: 1px solid var(--line-2); }
.pd-badge:empty { display: none; }
.pd-badge.is-sale { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
.pd-badge.is-hot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pd-badge.is-new { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.pd-fav { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--ink); cursor: pointer; transition: transform .15s; }
.pd-fav:active { transform: scale(.9); }
.pd-fav[aria-pressed="true"] { color: var(--fav); }
.pd-fav[aria-pressed="true"] .i { --i: var(--i-heart-on); }
.pd-open { position: absolute; left: 50%; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
.pd-open .i { width: 16px; height: 16px; }
@media (hover: hover) {
  .product:not(.is-open) .pd-open { opacity: 0; transform: translate(-50%, 8px); }
  .product:not(.is-open):hover .pd-open, .product:not(.is-open) .pd-open:focus-visible { opacity: 1; transform: translate(-50%, 0); }
}
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-open { opacity: 1; transform: translate(-50%, 0); }
.pd-info { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 12px 12px 14px; }
@media (min-width: 700px) { .pd-info { padding: 16px 16px 16px; } }
.pd-line { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-cat { color: var(--accent-2); }
.pd-name { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.28; cursor: pointer; }
.pd-keys { font-size: .8rem; font-weight: 600; color: var(--ink-2); line-height: 1.4; padding: 6px 8px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.pd-rating .stars { font-size: .82rem; letter-spacing: 1px; }
.rt-c { color: var(--muted); font-weight: 600; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.pd-now { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.pd-was { font-size: .86rem; font-weight: 600; color: var(--muted); }
.pd-was:empty { display: none; }
.pd-price:has(.pd-was:not(:empty)) .pd-now { color: var(--hot); }
.pd-price .inst { flex-basis: 100%; font-size: .78rem; font-weight: 600; color: var(--accent-2); }
.pd-price .inst:empty { display: none; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ok); }
.pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pd-stock.is-low { color: var(--warn); }
.pd-short { font-size: .88rem; color: var(--ink-2); display: none; }
.pd-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-buy { min-width: 0; min-height: 44px; padding: 10px 12px; font-size: .86rem; gap: 7px; }
.btn-buy .i { width: 18px; height: 18px; }
@media (max-width: 480px) { .btn-buy { padding: 10px 8px; font-size: .84rem; } .btn-buy .i { display: none; } }
.btn-add-quick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.btn-add-quick:hover { border-color: var(--accent); }
.pd-cmp { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink-2); font-size: .82rem; font-weight: 700; cursor: pointer; }
.pd-cmp .i { width: 18px; height: 18px; }
.pd-cmp:hover { border-color: var(--accent); color: var(--accent-2); }
.pd-cmp[aria-pressed="true"] { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-2); }
.product.is-open .pd-card-actions { display: none; }
.product:not(.is-open) .pd-more, .product:not(.is-open) .pd-bar, .product:not(.is-open) .pd-nav { display: none; }
.shop-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.shop-empty-title { font-weight: 800; font-size: 1.1rem; }

/* ─── Celular: la misma tarjeta que en escritorio, una por fila ───
   En dos columnas de ~170 px los datos clave, el precio y el stock se partían en varias líneas. */
@media (max-width: 559px) {
  .products { grid-template-columns: 1fr; gap: 14px; }
}

/* ─── Inicio vs. página «Catálogo» (/#catalogo; la clase la pone script.js en <html>) ─── */
html:not(.vt-catalog) .only-catalog, html.vt-catalog .only-home { display: none; }
html.vt-catalog main > section:not(#catalogo) { display: none; }
html.vt-catalog .shop { padding-top: 28px; min-height: 70vh; }
html:not(.vt-catalog) .products > .product:nth-child(n+9):not(.is-open) { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 28px; }
.all-count { font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-2); }
/* Dentro del editor: en el inicio se ven también los productos «solo catálogo», marcados */
html:not(.vt-catalog) body:not(.tm-preview-mode) #tm-template-container .products > .product:nth-child(n+9):not(.is-open) { display: flex; opacity: .55; }
html:not(.vt-catalog) body:not(.tm-preview-mode) #tm-template-container .products > .product:nth-child(n+9)::before { content: 'Solo en la tienda completa'; position: absolute; left: 10px; right: 10px; top: 60px; z-index: 3; padding: 8px 10px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 800; text-align: center; pointer-events: none; }
.vt-pages { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-pages { position: fixed; left: 50%; bottom: 20px; z-index: 88; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); box-shadow: 0 12px 30px -10px var(--shade); transform: translateX(-50%); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .vt-pages { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.vt-pages-label { padding: 0 8px 0 12px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.vt-pages button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font-size: .85rem; font-weight: 700; cursor: pointer; }
.vt-pages button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
#tm-template-container .pd-cat:focus::after { content: ' ← escribe una categoría del catálogo'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--warn); }
#tm-template-container .pd-type:focus::after { content: ' ← así se llama su paso en «Arma tu PC»'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--warn); }

/* ─── Detalle de producto: la misma tarjeta, abierta como panel ─── */
.pd-backdrop { position: fixed; inset: 0; z-index: 90; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .25s; }
.product.is-open { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; top: auto; display: block; max-height: min(92dvh, calc(100dvh - var(--tm-top, 0px) - 12px)); border-radius: 18px 18px 0 0; border: 1px solid var(--line-2); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -20px 60px -20px var(--shade); animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
.product.is-open:hover { box-shadow: 0 -20px 60px -20px var(--shade); }
.pd-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; height: 0; }
.pd-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 10px 10px 0 0; border: 1px solid var(--line-2); border-radius: 50%; background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--ink); cursor: pointer; }
.product.is-open .pd-media { aspect-ratio: auto; height: min(96vw, 48dvh); cursor: default; }
.product.is-open .pd-fav { right: 62px; top: 10px; }
.product.is-open .pd-open { display: none; }
.product.is-open .pd-gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product.is-open .pd-gallery::-webkit-scrollbar { display: none; }
.product.is-open .pd-shots { display: contents; }
.product.is-open .pd-shot { flex: 0 0 100%; scroll-snap-align: start; }
.product.is-open .pd-shot img { object-fit: contain; background: var(--bg-2); }
.product.is-open .pd-shots > .tm-add-btn { flex: 0 0 auto; align-self: center; margin: 0 16px; }
.pd-nav { position: absolute; top: 50%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line-2); border-radius: 50%; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--ink); cursor: pointer; }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.product.is-open .pd-info { gap: 10px; padding: 20px 16px 0; }
.product.is-open .pd-name { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; cursor: auto; }
.product.is-open .pd-keys { font-size: .9rem; }
.product.is-open .pd-now { font-size: 1.7rem; }
.product.is-open .pd-short { display: block; font-size: 1rem; }
.pd-more { display: grid; gap: 16px; padding-bottom: 20px; }
.pd-meta { display: grid; gap: 2px; padding: 12px 14px; border-left: 2px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--bg-2); }
.pd-meta-k { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pd-use { font-size: .95rem; font-weight: 700; }
.pd-vars { display: grid; gap: 14px; }
.pd-var legend { margin-bottom: 8px; font-size: .86rem; font-weight: 700; }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); font-size: .88rem; font-weight: 600; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-buybox { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 97%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.pd-buybox .pd-buy, .pd-buybox .pd-add { grid-column: 1 / -1; }
.pd-line-total { justify-self: end; font-size: .92rem; font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.qty-btn, .cart-q { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 600; cursor: pointer; border-radius: var(--r); }
.qty-btn:hover, .cart-q:hover { background: var(--line); }
.qty-n { width: 36px; border: 0; background: transparent; text-align: center; font-weight: 800; }
.pd-perks { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.pd-perks:empty { display: none; }
.pd-perks li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; font-size: .86rem; line-height: 1.35; }
.pd-perks li::before { content: '✓'; grid-row: span 2; font-weight: 800; color: var(--ok); }
.pd-perks span { color: var(--muted); }
.pd-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tools:empty { display: none; }
.pd-tools .btn { flex: 1 1 220px; min-height: 44px; font-size: .86rem; }
.pd-to-build { border-color: var(--accent); color: var(--accent-2); }
.pd-acc { border-top: 1px solid var(--line); }
.pd-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--accent-2); transition: transform .2s; }
.pd-acc[open] summary::after { transform: rotate(45deg); }
.pd-long { padding-bottom: 16px; color: var(--ink-2); font-size: .95rem; }
.pd-specs { display: grid; padding-bottom: 16px; }
.spec { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 10px 12px; font-size: .9rem; }
.spec:nth-child(odd) { background: var(--bg-2); border-radius: var(--r-sm); }
.spec-k { font-weight: 700; color: var(--muted); }
.spec-v { color: var(--ink); font-weight: 600; }
.pd-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: .9rem; color: var(--wa-text); }
@media (min-width: 900px) {
  .product.is-open { inset: var(--tm-top, 0px) 0 0 0; margin: auto; width: min(1100px, calc(100vw - 48px)); height: min(800px, calc(100dvh - var(--tm-top, 0px) - 64px)); max-height: none; border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
  .product.is-open .pd-bar { position: absolute; top: 0; right: 0; height: auto; }
  .product.is-open .pd-media { height: 100%; }
  .product.is-open .pd-fav { top: 14px; right: 14px; }
  .product.is-open .pd-info { overflow-y: auto; overscroll-behavior: contain; padding: 36px 36px 0; }
  .pd-buybox { margin: 0 -36px; padding: 14px 36px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ─── Arma tu PC ─── */
.build { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.build-head { display: grid; gap: 24px; margin-bottom: 32px; align-items: end; }
.build-head .sec-head { margin-bottom: 0; }
.build-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.build-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .build-head { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.build-grid { display: grid; gap: 20px; align-items: start; }
.bld-slots { display: grid; gap: 10px; counter-reset: slot; }
.bld-slot { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); counter-increment: slot; transition: border-color .2s; }
.bld-slot::before { content: counter(slot, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font-size: .9rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.bld-slot.is-set { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.bld-slot.is-set::before { content: '✓'; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bld-body { display: grid; gap: 6px; min-width: 0; }
.bld-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.bld-hint { font-size: .84rem; color: var(--muted); }
.bld-sel { width: 100%; min-height: 48px; padding: 10px 40px 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; font-size: .95rem; font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.bld-sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.bld-sel option { background: var(--surface); color: var(--ink); }
.bld-sel:disabled { opacity: .6; cursor: not-allowed; }
.bld-info { font-size: .82rem; font-weight: 600; color: var(--accent-2); }
.bld-info:empty { display: none; }
.bld-sum { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.bld-sum-t { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.bld-checks { display: grid; gap: 8px; }
.bld-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); font-size: .88rem; line-height: 1.4; }
.bld-check .i { width: 20px; height: 20px; margin-top: 1px; }
.bld-check.is-ok .i { color: var(--ok); }
.bld-check.is-warn { background: color-mix(in srgb, var(--warn) 8%, transparent); } .bld-check.is-warn .i { color: var(--warn); }
.bld-check.is-bad { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad-text); } .bld-check.is-bad .i { color: var(--bad); }
.bld-check.is-info .i { color: var(--accent-2); }
.bld-tot { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.bld-tot div, .totals div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.bld-tot dt { color: var(--muted); font-weight: 600; }
.bld-tot dd { font-weight: 800; }
.bld-tot .total-row { margin-top: 4px; font-size: 1.25rem; }
.bld-tot .total-row dt { color: var(--ink); font-weight: 800; }
.bld-tot .total-row dd { color: var(--accent-2); }
.bld-inst { min-height: 1.2em; font-size: .84rem; font-weight: 600; color: var(--muted); text-align: right; }
.bld-actions { display: grid; gap: 10px; }
.bld-actions.has-bad #bldAdd { opacity: .6; }
/* En el editor, los botones del resumen siempre se ven para poder editar sus textos */
.bld-actions.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .bld-actions.is-empty { display: grid; opacity: .7; }
.bld-more { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bld-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .88rem; font-weight: 700; color: var(--accent-2); text-decoration: none; }
.bld-link .i { width: 18px; height: 18px; }
.bld-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bld-fine { font-size: .8rem; color: var(--muted); }
@media (min-width: 980px) { .build-grid { grid-template-columns: 1.25fr .75fr; gap: 28px; } .bld-sum { position: sticky; top: calc(84px + var(--tm-top, 0px)); } }
@media (min-width: 700px) and (max-width: 979px) { .bld-slots { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

/* ─── Servicio técnico ─── */
.svc-head { display: grid; gap: 24px; margin-bottom: 32px; align-items: center; }
.svc-head .sec-head { margin-bottom: 16px; }
.svc-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.svc-note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok-text); font-weight: 700; font-size: .92rem; }
@media (min-width: 900px) { .svc-head { grid-template-columns: .8fr 1.2fr; gap: 56px; } .svc-photo { aspect-ratio: 4 / 3.4; } }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); justify-content: center; gap: 12px; }
.svc-card { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s; }
.svc-card:hover { border-color: var(--line-2); }
.svc-ic { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--surface-2); color: var(--accent-2); }
.svc-title { font-size: 1.04rem; font-weight: 800; }
.svc-price { font-size: .9rem; font-weight: 700; color: var(--accent-2); }
.svc-text { grid-column: 1 / -1; margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.svc-wa { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; margin-top: 4px; font-weight: 700; font-size: .9rem; color: var(--wa-text); text-decoration: none; }
.svc-wa .i { width: 18px; height: 18px; }
.svc-wa:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Cómo comprar ─── */
.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); justify-content: center; gap: 12px; }
.step { display: grid; gap: 10px; align-content: start; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.step-n { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent-2); }
.step-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.step-text { color: var(--ink-2); font-size: .95rem; }
.pay-box { display: grid; gap: 16px; margin-top: 24px; }
.inst-rule { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-2); font-weight: 700; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pay-label { font-weight: 800; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); font-size: .86rem; font-weight: 600; }

/* ─── Opiniones ─── */
.rev-layout { display: grid; gap: 20px; }
.rev-summary { align-self: start; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.rev-score { display: flex; align-items: center; gap: 12px; }
.rev-score-n { font-size: 3.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.rev-summary .stars { font-size: 1.2rem; }
.rev-count { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; }
.bar-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .8s; }
.bar-pct { text-align: right; color: var(--muted); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); justify-content: center; gap: 12px; }
.review { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rev-verified { font-size: .76rem; font-weight: 700; color: var(--ok); }
.rev-text { font-size: .98rem; color: var(--ink); }
.rev-meta { display: grid; margin-top: auto; }
.rev-name { font-weight: 800; }
.rev-place { font-size: .84rem; color: var(--muted); }
.rev-reply { padding: 12px 14px; border-left: 2px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--bg-2); font-size: .88rem; color: var(--ink-2); }
.rev-reply-t { font-weight: 800; color: var(--ink); margin-bottom: 2px; }
@media (min-width: 980px) { .rev-layout { grid-template-columns: 300px 1fr; gap: 28px; } }

/* ─── Nosotros ─── */
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-img { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: grid; gap: 16px; }
.about-p { color: var(--ink-2); font-size: 1.02rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-item { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: .86rem; font-weight: 600; }
.trust-item .i { width: 16px; height: 16px; color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 0; margin-top: 8px; border-top: 1px solid var(--line-2); }
.stats li { display: grid; gap: 2px; align-content: start; padding: 16px 12px 0 0; }
.stat-n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; color: var(--accent-2); }
.stat-l { font-size: .84rem; color: var(--muted); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }

/* ─── Envíos ─── */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); justify-content: center; gap: 12px; }
.ship-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ship-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--surface-2); color: var(--accent-2); }
.ship-title { font-size: 1.08rem; font-weight: 800; }
.ship-meta { display: grid; gap: 2px; }
.ship-time { font-weight: 600; }
.ship-price { font-weight: 800; color: var(--accent-2); }
.ship-text { font-size: .92rem; color: var(--ink-2); }

/* ─── FAQ (componente del editor: .faq-list > .faq-item) ─── */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent-2); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 18px 18px; color: var(--ink-2); max-width: 70ch; }

/* ─── Contacto ─── */
.contact { padding-top: 24px; }
.contact .wrap { display: grid; gap: 24px; align-items: center; width: min(calc(var(--wrap) - 56px), calc(100% - 32px)); padding: 36px 22px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: radial-gradient(500px 260px at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(420px 260px at 0% 100%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 70%), var(--surface); }
.contact-copy { display: grid; gap: 12px; }
.contact-actions { display: grid; gap: 12px; justify-items: start; }
.contact-hours { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 1.4fr 1fr; padding: 56px; } .contact-actions { justify-items: end; } }

/* ─── Pie ─── */
.footer { margin-top: 64px; padding: 56px 0 24px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 28px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.footer-text { font-size: .92rem; color: var(--muted); }
.social { display: flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink); }
.social a:hover { border-color: var(--accent); color: var(--accent-2); }
.footer-h { margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ─── Comparador ─── */
.cmp-tray { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 72; display: none; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 24px); padding: 8px 8px 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 96%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); transform: translateX(-50%); }
.cmp-tray.is-on { display: flex; }
html.vt-lock .cmp-tray { display: none; }
.cmp-thumbs { display: flex; }
.cmp-thumbs img { width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--surface); object-fit: cover; background: var(--bg-2); }
.cmp-thumbs img:first-child { margin-left: 0; }
.cmp-go { min-height: 44px; padding: 8px 16px; font-size: .86rem; white-space: nowrap; }
.cmp-clear { min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 700; cursor: pointer; }
.cmp-clear:hover { color: var(--ink); }
@media (min-width: 769px) { .cmp-tray { bottom: 24px; } }
.cmp-modal { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); animation: fade .2s; }
.cmp-panel { display: flex; flex-direction: column; width: min(1040px, 100%); max-height: calc(100% - 24px); border: 1px solid var(--line-2); border-radius: 18px 18px 0 0; background: var(--surface); box-shadow: var(--shadow); animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 900px) { .cmp-modal { align-items: center; padding: 24px; } .cmp-panel { border-radius: var(--r-lg); max-height: 100%; } }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.cmp-title { flex: 1 1 200px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.cmp-diff { order: 3; flex-basis: 100%; }
@media (min-width: 600px) { .cmp-diff { order: 0; flex-basis: auto; } }
.cmp-scroll { overflow: auto; overscroll-behavior: contain; }
.cmp-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.cmp-table thead th { position: sticky; top: 0; z-index: 2; padding: 14px 12px; background: var(--surface); border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp-table thead th img { width: 72px; height: 72px; margin-bottom: 8px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-2); }
.cmp-corner { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp-name { display: block; min-height: 44px; padding: 0; border: 0; background: none; font-size: .95rem; font-weight: 800; text-align: left; line-height: 1.3; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.cmp-name:hover { text-decoration-color: var(--accent); }
.cmp-price { display: block; font-size: 1.05rem; font-weight: 800; color: var(--accent-2); }
.cmp-rm { min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 700; cursor: pointer; }
.cmp-rm:hover { color: var(--bad); }
.cmp-table tbody th { position: sticky; left: 0; z-index: 1; width: 150px; padding: 10px 12px; background: var(--surface); font-weight: 700; color: var(--muted); text-align: left; vertical-align: top; }
.cmp-table td { padding: 10px 12px; vertical-align: top; color: var(--ink); }
.cmp-table tbody tr:nth-child(odd) th, .cmp-table tbody tr:nth-child(odd) td { background: var(--bg-2); }
.cmp-table tbody tr.is-diff td { color: var(--ink); font-weight: 700; }
.cmp-table tbody tr.is-diff th { color: var(--accent-2); }
.cmp-empty { padding: 32px 20px; text-align: center; color: var(--muted); }

/* ─── Pedido (panel lateral) ─── */
.drawer { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 100; display: flex; justify-content: flex-end; background: var(--scrim); animation: fade .2s; }
.drawer-panel { display: flex; flex-direction: column; width: min(440px, 100%); height: 100%; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -20px 0 60px -30px var(--shade); animation: slide-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 22px 24px; display: grid; gap: 18px; align-content: start; }
.ship-meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ship-msg { font-size: .86rem; font-weight: 700; }
.ship-track { display: block; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ship-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .4s; }
.cart-list { display: grid; gap: 10px; }
.cart-list:empty { display: none; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 32px; gap: 12px; align-items: start; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-2); }
.cart-line:not(:has(img)) { grid-template-columns: 1fr 32px; }
.cart-line-info { display: grid; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.cart-line-opts { font-size: .8rem; color: var(--muted); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cart-line-price { font-weight: 800; }
.qty-sm .cart-q { width: 40px; height: 40px; }
.qty-v { min-width: 22px; text-align: center; font-weight: 800; }
.cart-rm { position: relative; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.cart-rm::before { content: ''; position: absolute; inset: 7px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
.cart-rm::after { content: ''; position: absolute; inset: -6px; }
.cart-rm:hover { color: var(--bad); }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 12px; text-align: center; }
.cart-empty > .i { width: 44px; height: 44px; color: var(--muted); }
.cart-empty-title { font-weight: 800; font-size: 1.1rem; }
/* Pedido vacío: sin formulario. En el editor se ve igual, para editar sus textos. Es una clase y no
   [hidden] porque en el editor el reset de Tailwind (`[hidden] { display: none !important }` en
   @layer base) gana a cualquier regla de la plantilla, aunque lleve !important. */
.checkout.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .checkout.is-empty { display: grid; opacity: .75; }
.checkout { display: grid; gap: 14px; padding-top: 4px; }
.co-title { font-weight: 800; font-size: 1.02rem; }
.field { display: grid; gap: 6px; }
.field label, .co-group legend { font-size: .84rem; font-weight: 700; }
.co-group legend { margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 1rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.js-ruc.is-off { display: none; }
body:not(.tm-preview-mode) #tm-template-container .js-ruc.is-off { display: grid; opacity: .7; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 700; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.pay-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-opts .opt { font-size: .84rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.drawer-foot { display: grid; gap: 10px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.totals { display: grid; gap: 4px; }
.totals dt { color: var(--muted); font-weight: 600; }
.totals dd { font-weight: 800; }
.totals .total-row { margin-top: 4px; font-size: 1.1rem; }
.totals .total-row dt { color: var(--ink); font-weight: 800; }
.cart-inst { min-height: 1.2em; font-size: .82rem; font-weight: 600; color: var(--accent-2); text-align: right; }
.ship-rule { font-size: .8rem; color: var(--muted); }
.cart-fine { font-size: .8rem; color: var(--muted); text-align: center; }

/* ─── Aviso, barra móvil y botón flotante ─── */
.vt-toast { position: fixed; left: 50%; bottom: calc(146px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 700; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.vt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.vt-lock .vt-toast { top: calc(var(--tm-top, 0px) + 16px); bottom: auto; }
.vt-toast:empty { display: none; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mbar a, .mbar button { white-space: nowrap; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: transparent; color: var(--ink-2); font-size: .76rem; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: var(--r); }
.mbar .i { width: 22px; height: 22px; }
.mbar a[data-whatsapp-btn] { color: var(--wa-text); }
.mbar .cart-count { top: 2px; right: calc(50% - 26px); }
body { padding-bottom: 72px; }
.wa-fab { display: none; }
@media (min-width: 769px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
  .vt-toast { bottom: 96px; }
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(14, 122, 67, .7); transition: transform .2s; }
  .wa-fab:hover { transform: scale(1.06); }
  .wa-fab .i { width: 28px; height: 28px; }
  html.vt-lock .wa-fab { display: none; }
}

/* ─── Movimiento: funcional y discreto, solo si el usuario no pidió reducirlo ─── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cat-tile, .svc-card, .step, .review, .ship-card, .bld-slot { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
  .bld-check { animation: rise .3s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ─── Información legal (ventanas que se abren desde el pie) ─── */
.info-modal { position: fixed; inset: var(--tm-top, 0px) 0 0 0; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; background: var(--scrim); overflow-y: auto; overscroll-behavior: contain; }
.info-modal[hidden] { display: none; }
.info-panel { position: relative; width: min(720px, 100%); margin: auto 0; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .info-panel { padding: 40px 44px 36px; } }
.info-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.info-close:hover { border-color: var(--accent); }
.info-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.info-title { margin: 6px 48px 4px 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.info-updated { font-size: .82rem; color: var(--muted); }
.info-body { display: grid; gap: 10px; margin-top: 22px; }
.info-h { margin-top: 10px; font-size: 1rem; font-weight: 800; }
.info-p { font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.info-business { padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font-size: .9rem; font-weight: 700; }
.info-note { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.claim-form { display: grid; gap: 14px; margin: 8px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.claim-kind { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; border: 0; }
.claim-kind legend { margin-bottom: 4px; font-size: .84rem; font-weight: 700; }
.claim-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.claim-error { font-size: .88rem; font-weight: 700; color: var(--bad); }
.claim-form .field.is-bad input, .claim-form .field.is-bad textarea { border-color: var(--bad); }
/* «Editar» junto a cada enlace legal: solo en el editor */
.vt-open-info { display: none; }
body:not(.tm-preview-mode) #tm-template-container .vt-open-info { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; padding: 2px 10px; border: 1.5px dashed #60eba0; border-radius: 999px; background: transparent; color: #60eba0; font: 700 .75rem/1 system-ui, sans-serif; cursor: pointer; vertical-align: middle; }
/* ═══ Kit ecommerce — docs/template-kit/ecommerce/ecommerce.css ═══
   Lo agrega el generador al styles.css de la plantilla cuando ECOMMERCE = True.
   Envío gratis según la decisión del dueño (ecommerce.js › applyShipMode → <html data-free-ship>):
   sin el atributo (la página antes de su script) se ve el modo «desde un monto». */
.fs-none, .fs-always { display: none; }
[data-free-ship="none"] .fs-none, [data-free-ship="always"] .fs-always { display: inline; }
[data-free-ship="none"] .fs-free, [data-free-ship="none"] .fs-min { display: none; }
[data-free-ship="always"] .fs-min, [data-free-ship="always"] .fs-paid { display: none; }
/* Medidor «te faltan S/ X para el envío gratis»: se oculta cuando no hay envío gratis */
.ship-track[hidden] { display: none; }

/* ─── Iconos de interfaz: generados por build.py (máscaras CSS, no son <svg> editables) ─── */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  --i-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  --i-bag-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2M12 11.5v6M9 14.5h6'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-heart-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E");
  --i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --i-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --i-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-compare: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='7' height='14' rx='1.5'/%3E%3Crect x='14' y='5' width='7' height='14' rx='1.5'/%3E%3Cpath d='M5.5 9h2M16.5 9h2M5.5 12h2M16.5 12h2'/%3E%3C/svg%3E");
  --i-cpu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E");
  --i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3Cpath d='M19 16l.8 2.2L22 19l-2.2.8L19 22l-.8-2.2L16 19l2.2-.8z'/%3E%3C/svg%3E");
  --i-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.5-4.5L4 8'/%3E%3Cpath d='M4 3v5h5'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.5 4.5L20 16'/%3E%3Cpath d='M20 21v-5h-5'/%3E%3C/svg%3E");
  --i-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E");
  --i-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
  --i-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E");
  --i-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.6a8.5 8.5 0 0 1-12.6 7.5L3.5 20.5l1.5-4.2a8.5 8.5 0 1 1 15.5-4.7z'/%3E%3Cpath d='M9 8.6c.3 2.9 2.6 5.3 5.6 5.8l1-1.3-1.8-.9-.8.8c-1-.4-1.9-1.3-2.3-2.3l.8-.8-.9-1.8z'/%3E%3C/svg%3E");
}
.i-search { --i: var(--i-search); }
.i-bag { --i: var(--i-bag); }
.i-bag-plus { --i: var(--i-bag-plus); }
.i-heart { --i: var(--i-heart); }
.i-heart-on { --i: var(--i-heart-on); }
.i-close { --i: var(--i-close); }
.i-chev-l { --i: var(--i-chev-l); }
.i-chev-r { --i: var(--i-chev-r); }
.i-eye { --i: var(--i-eye); }
.i-arrow { --i: var(--i-arrow); }
.i-home { --i: var(--i-home); }
.i-grid { --i: var(--i-grid); }
.i-check { --i: var(--i-check); }
.i-compare { --i: var(--i-compare); }
.i-cpu { --i: var(--i-cpu); }
.i-spark { --i: var(--i-spark); }
.i-refresh { --i: var(--i-refresh); }
.i-ok { --i: var(--i-ok); }
.i-warn { --i: var(--i-warn); }
.i-bad { --i: var(--i-bad); }
.i-info { --i: var(--i-info); }
.i-moon { --i: var(--i-moon); }
.i-sun { --i: var(--i-sun); }
.i-wa { --i: var(--i-wa); }
