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

/* ═══ tienda-tecla — computadoras. Claro, sobrio, al estilo de los temas premium de Shopify:
   foto a sangre, mucho blanco, una sola tinta de acento. Movimiento solo con CSS (sin librerías). ═══ */
:root {
  --bg: #FFFFFF;
  --ink: #0B0B0F;
  --text: #1F2329;
  --muted: #5B616E;
  --line: #E4E6EB;
  --tint: #F3F4F6;
  --accent: #2747F5;
  --accent-2: #1B33C4;
  --on-accent: #FFFFFF;
  --sale: #C8281E;
  --ok: #137A3F;
  --wa: var(--accent);
  --r: 12px;
  --r-btn: 8px;
  --wrap: 1280px;
  --head: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, button, input, select, textarea { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
html.vt-lock, html.vt-lock body { overflow: hidden; }
section[id] { scroll-margin-top: calc(var(--head) + 16px); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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 ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn .i { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2D35; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E9EBF0; }
.btn-glass { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: var(--on-accent); }
.btn-wa:hover { background: var(--accent-2); }
.btn .i-arrow { transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }

/* ─── Estrellas (se dibujan desde el número escrito) ─── */
.stars { --r: 5; position: relative; display: inline-block; font-size: .95rem; line-height: 1; letter-spacing: 1px; }
.stars::before { content: '★★★★★'; background: linear-gradient(90deg, var(--ink) calc(var(--r) / 5 * 100%), #C9CDD4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── Cinta superior ─── */
.ann { background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; }
.ann-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; max-width: var(--wrap); margin: 0 auto; padding: 9px 16px; text-align: center; }
.ann-item { display: inline-flex; align-items: center; gap: 0; }
.ann-item + .ann-item::before { content: ''; width: 4px; height: 4px; margin-right: 28px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
@media (max-width: 760px) { .ann-3 { display: none; } .ann-inner { gap: 2px 16px; } .ann-item + .ann-item::before { margin-right: 16px; } }
@media (max-width: 460px) { .ann-item + .ann-item::before { display: none; } }

/* ─── Cabecera ─── */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@supports (backdrop-filter: blur(8px)) { .header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); } }
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; max-width: var(--wrap); height: var(--head); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.logo { flex: none; font-size: 1.45rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
/* Menú (base): en escritorio una fila; en el celular un panel que abre el ☰ */
.main-menu { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: auto; }
.main-menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none; }
.main-menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-menu a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .i { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count:not(.has-items) { display: none; }
.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .main-menu { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px clamp(16px, 4vw, 40px) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .3); }
  .main-menu.menu-open { display: flex; }
  .main-menu a { min-height: 52px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-menu a::after { display: none; }
  .header-actions, .main-menu + .header-actions { margin-left: auto; }
}

/* ─── Portada a sangre ─── */
.hero { position: relative; display: grid; min-height: clamp(540px, calc(100vh - 100px), 780px); overflow: hidden; background: #0E1116; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* Velo para leer el texto sobre cualquier foto (más oscuro si la foto del dueño es clara: script › heroLight) */
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 12, .78) 0%, rgba(8, 9, 12, .45) 45%, rgba(8, 9, 12, 0) 75%), linear-gradient(0deg, rgba(8, 9, 12, .5), rgba(8, 9, 12, 0) 45%); }
.hero.is-light .hero-media::after { background: linear-gradient(90deg, rgba(8, 9, 12, .86), rgba(8, 9, 12, .6) 55%, rgba(8, 9, 12, .3)), linear-gradient(0deg, rgba(8, 9, 12, .55), rgba(8, 9, 12, 0) 50%); }
.hero-overlay { display: flex; align-items: flex-end; pointer-events: none; }
.hero-inner { padding-top: 64px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero-text { max-width: 620px; text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
.hero-text :is([data-edit], a, button) { pointer-events: auto; }
.hero-eyebrow { margin-bottom: 18px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; }
.hero-title .ht-2 { color: rgba(255, 255, 255, .72); }
.hero-lead { max-width: 500px; margin-top: 20px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Entrada: sube suave al cargar (solo CSS; nada en el editor ni con «reducir movimiento») */
.hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-media img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
@keyframes settle { from { transform: scale(1.06); } }
@media (max-width: 700px) {
  .hero { min-height: 0; grid-template-rows: auto; }
  .hero-media { position: relative; inset: auto; height: 62vw; min-height: 260px; z-index: 0; }
  .hero-media::after { background: linear-gradient(0deg, #0E1116 0%, rgba(14, 17, 22, 0) 45%); }
  .hero-overlay { position: relative; }
  .hero-inner { margin-top: -56px; padding-top: 0; padding-bottom: 36px; }
  .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-ctas .btn { padding-inline: 12px; font-size: .92rem; }
}

/* ─── Secciones ─── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.eyebrow { margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sec-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); }
.sec-lead { margin-top: 12px; font-size: 1.05rem; color: var(--muted); }
.link-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-all .i { width: 18px; height: 18px; transition: transform .2s; }
.link-all:hover .i { transform: translateX(3px); }

/* ─── Categorías ─── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.cat-card { position: relative; display: grid; gap: 14px; color: var(--ink); text-decoration: none; }
.cat-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.cat-card:hover .cat-img img { transform: scale(1.04); }
.cat-text { display: grid; gap: 2px; padding-right: 32px; }
.cat-name { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
.cat-line { font-size: .92rem; color: var(--muted); }
.cat-card > .i { position: absolute; right: 2px; bottom: 26px; width: 20px; height: 20px; transition: transform .2s; }
.cat-card:hover > .i { transform: translateX(4px); }
@media (max-width: 639px) {
  /* Celular: una columna de tarjetas horizontales (foto chica a la izquierda), todas a la vista */
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
  .cat-img { aspect-ratio: 1; border-radius: 8px; }
  .cat-card > .i { bottom: auto; top: 50%; right: 16px; margin-top: -10px; }
}

/* ─── Tienda: cabecera, herramientas y chips ─── */
.shop-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.shop-head-row .sec-head { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .88rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumb-name, .crumb-here { color: var(--ink); font-weight: 500; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: -8px 0 16px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 300px; max-width: 460px; }
.search .i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
main .search input { width: 100%; min-height: 48px; padding: 10px 14px 10px 42px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; font-size: 1rem; color: var(--ink); }
main .search input:focus { outline: none; border-color: var(--ink); }
.sort { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: .92rem; }
.sort-label { color: var(--muted); }
main .sort select { min-height: 44px; border: 0; background: transparent; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-grid { display: contents; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-count { margin-bottom: 20px; font-size: .9rem; color: var(--muted); }

/* ─── Grilla de productos ─── */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 40px 20px; }
html:not(.vt-catalog):not(.vt-product) .products > .product:is(:nth-child(n+9):not(.vt-home), .vt-nohome) { display: none; }
@media (max-width: 559px) {
  .products { grid-template-columns: 1fr; gap: 36px; }
  /* «Ajustes › Productos en el celular: 2 por fila» (editor: data-tm-mobile-cols → .is-m2) */
  .products.is-m2 { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .products.is-m2 .pd-name { font-size: .92rem; }
  .products.is-m2 .pd-key, .products.is-m2 .pd-inst { display: none; }
  .products.is-m2 .btn-buy { padding-inline: 8px; font-size: .86rem; }
  .products.is-m2 .btn-buy .i { display: none; }
}
.product { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.product[hidden] { display: none !important; }
.pd-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--tint); cursor: pointer; }
.pd-gallery { position: relative; height: 100%; }
.pd-shot { margin: 0; height: 100%; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; }
/* Tarjeta: al pasar el mouse, la segunda foto (solo CSS) */
.product:not(.is-open) .pd-main img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.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 .4s; }
.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):hover .pd-main img { transform: scale(1.03); }
}
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-shots { display: none; } /* en el editor: clic en la foto = cambiarla */
.product:not(.is-open):has(.pd-main.is-other) .pd-shots .pd-shot:not(.is-other) { display: block; opacity: 1; }
.product:not(.is-open):has(.pd-main.is-other) .pd-shots .pd-shot:not(.is-other) ~ .pd-shot { display: none; }
.pd-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 6px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.pd-badge:empty { display: none; }
.pd-badge.is-new { background: var(--accent); color: var(--on-accent); }
.pd-badge.is-sale { background: var(--sale); color: #fff; }
.pd-badge.is-hot { background: var(--ink); color: #fff; }
#tm-template-container .pd-badge:empty { display: inline-block; min-width: 60px; min-height: 26px; border: 1px dashed var(--muted); background: transparent; }
.pd-open { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); transform: translate(-50%, 0); transition: opacity .25s, transform .25s; }
.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); }
}
@media (hover: none) { .product:not(.is-open) .pd-open { display: none; } }
.product:not(.is-open) .pd-media:has(.tm-editable-image) .pd-open { display: inline-flex; opacity: 1; transform: translate(-50%, 0); }
.pd-nav { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .3); }
.pd-prev { left: 12px; } .pd-next { right: 12px; }
.pd-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(11, 11, 15, .72); color: #fff; font-size: .78rem; font-weight: 600; }
.pd-count:empty, .product:not(.is-open) .pd-count, .product:not(.is-open) .pd-nav, .product:not(.is-open) .pd-thumbs, .product:not(.is-open) .pd-more { display: none; }
.pd-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-cat { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-title { font-size: 1.02rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.pd-link { color: inherit; text-decoration: none; }
.pd-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-key { font-size: .86rem; color: var(--muted); }
.pd-key:empty { display: none; }
#tm-template-container .pd-key:empty { display: block; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.pd-rating .stars { font-size: .8rem; }
.pd-rating .rt-n { font-weight: 600; color: var(--ink); }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.pd-now { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pd-was { font-size: .92rem; color: var(--muted); }
.pd-was:empty { display: none; }
#tm-template-container .pd-was:empty { display: inline; }
.pd-off { font-size: .84rem; font-weight: 700; color: var(--sale); }
.pd-off:empty { display: none; }
.has-off .pd-now { color: var(--sale); }
.pd-inst { font-size: .84rem; color: var(--muted); }
.pd-inst:empty { display: none; }
.pd-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; margin-top: auto; padding-top: 10px; }
.btn-buy { min-height: 48px; padding: 10px 14px; }
.btn-add-quick { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.btn-add-quick:hover { border-color: var(--ink); }
.btn-add-quick .i { width: 22px; height: 22px; }
.product.is-open .pd-card-actions, .product.is-open .pd-open { display: none; }
.shop-more { display: flex; justify-content: center; margin-top: 48px; }
.all-count { font-weight: 400; color: inherit; opacity: .7; }
.shop-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 16px; text-align: center; }
.shop-empty[hidden] { display: none; }
.shop-empty-title { font-size: 1.2rem; font-weight: 650; color: var(--ink); }

/* «Elige tu versión» rápido sobre la foto (lo arma el script) */
.pd-quick { position: fixed; inset: 0; z-index: 105; display: grid; align-content: start; gap: 14px; width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); margin: auto; padding: 18px 20px 20px; overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; background: #fff; box-shadow: 0 0 0 100vmax rgba(11, 11, 15, .5), 0 24px 60px -20px rgba(0, 0, 0, .5); animation: pop .22s ease both; cursor: default; }
.pd-quick:empty, .product.is-open .pd-quick { display: none; }
.pdq-prod { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pdq-prod img { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--tint); }
.pdq-name { font-size: .95rem; font-weight: 600; color: var(--ink); }
.pdq-head { display: flex; align-items: center; justify-content: space-between; }
.pdq-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.pdq-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint); font-size: 1.2rem; cursor: pointer; }
.pdq-label { margin-bottom: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pdq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pdq-opt { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .82rem; font-weight: 500; cursor: pointer; }
.pdq-opt.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 650; }
.pdq-opt[disabled] { text-decoration: line-through; opacity: .5; cursor: not-allowed; }
.pdq-total { font-size: 1rem; font-weight: 700; color: var(--ink); }
.pdq-ok { min-height: 46px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }

/* ─── Vistas: Inicio, Tienda (#catalogo) y página del producto ─── */
html:not(.vt-catalog) .only-catalog, html.vt-catalog .only-home { display: none; }
html:not(.vt-product) .only-product, html.vt-product :is(.only-home, .only-catalog) { display: none; }
html.vt-catalog main > section:not(#catalogo) { display: none; }
html.vt-catalog .shop { padding-top: 24px; min-height: 70vh; }
html.vt-product main > section:not(#catalogo) { display: none; }
html.vt-product .shop { padding-top: 12px; }
html.vt-product .shop-head { display: none; }
html.vt-product .products { display: block; }
html.vt-product .products > :not(.product.is-open),
html.vt-product #tm-template-container .products > :not(.product.is-open) { display: none !important; }

/* ─── Página del producto ─── */
html.vt-product .products > .product.is-open { display: grid; }
.product.is-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 24px; align-items: start; }
.product.is-open .pd-media { aspect-ratio: auto; overflow: visible; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); border-radius: 0; background: transparent; cursor: default; }
.product.is-open .pd-gallery { display: flex; aspect-ratio: 1; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--tint); }
.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-shots > .tm-add-btn { flex: 0 0 auto; align-self: center; margin: 0 16px; }
.product.is-open.is-one-shot .pd-nav { display: none; }
.product.is-open .pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px clamp(16px, 4vw, 40px) 0; }
.product.is-open .pd-thumbs:empty { display: none; }
.pd-thumb { width: 64px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product.is-open .pd-info { gap: 10px; }
.product.is-open .pd-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.product.is-open .pd-link { pointer-events: none; text-decoration: none; }
.product.is-open .pd-key { font-size: 1rem; }
.product.is-open .pd-price { margin-top: 10px; }
.product.is-open .pd-now { font-size: 1.75rem; }
.product.is-open .pd-was { font-size: 1.05rem; }
.product.is-open .pd-off { padding: 3px 8px; border-radius: 6px; background: #FDECEA; }
.product.is-open .pd-inst { font-size: .95rem; color: var(--text); }
.pd-more { display: grid; gap: 18px; margin-top: 10px; }
.pd-short { font-size: 1.02rem; color: var(--text); }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ok); }
.pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.pd-stock.is-low { color: var(--sale); }
.pd-stock:empty { display: none; }
#tm-template-container .pd-stock:empty { display: inline-flex; }
.pd-vars { display: grid; gap: 18px; }
.pd-var { margin: 0; padding: 0; border: 0; min-width: 0; }
.pd-var legend { margin-bottom: 10px; padding: 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 650; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt.has-sw:has(input:checked)::before { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.pd-buybox { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 0; border-block: 1px solid var(--line); }
.pd-line-total { justify-self: end; font-size: .95rem; font-weight: 600; color: var(--ink); }
.pd-buybox .btn { grid-column: 1 / -1; min-height: 54px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-btn); }
.qty-btn { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty-n { width: 36px; border: 0; background: transparent; font-size: 1rem; font-weight: 600; text-align: center; color: var(--ink); }
.pd-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding: 0; list-style: none; }
.pd-perks li { display: grid; gap: 1px; padding-left: 14px; border-left: 2px solid var(--line); font-size: .86rem; color: var(--muted); }
.pd-perks strong { font-size: .9rem; font-weight: 600; color: var(--ink); }
.pd-perks:empty { display: none; }
.pd-acc { border-bottom: 1px solid var(--line); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 1rem; font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; transition: transform .25s; }
.pd-acc[open] summary::after { transform: rotate(45deg); }
.pd-acc > :not(summary) { padding-bottom: 18px; }
.pd-long { font-size: .96rem; color: var(--text); }
.pd-specs { display: grid; }
.spec { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.spec:first-child { border-top: 0; }
.spec-k { color: var(--muted); }
.spec-v { font-weight: 500; color: var(--ink); }
.pd-ask-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pd-ask, .pd-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pd-ask .i, .pd-share .i { width: 18px; height: 18px; }
.pdp-related { margin-top: clamp(56px, 8vw, 96px); }
.related-title { margin-bottom: 24px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 24px 20px; }
.rel-card { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.rel-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rel-card:hover .rel-img img { transform: scale(1.03); }
.rel-name { margin-top: 6px; font-size: .96rem; font-weight: 600; }
.rel-price { font-size: .92rem; color: var(--muted); }
@media (max-width: 559px) { .related { grid-template-columns: 1fr 1fr; gap: 20px 12px; } .rel-name { font-size: .88rem; } }
@media (min-width: 980px) {
  .product.is-open { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: clamp(40px, 5vw, 72px); }
  .product.is-open .pd-media { position: sticky; top: calc(var(--head) + 20px); margin: 0; }
  .product.is-open .pd-gallery { border-radius: var(--r); }
  .product.is-open .pd-thumbs { margin-inline: 0; }
  .product.is-open .pd-count { display: none; }
}
@media (max-width: 979px) {
  /* Celular y tablet: comprar siempre a mano, fijo abajo */
  html.vt-product .mbar { display: none; }
  html.vt-product body { padding-bottom: 84px; }
  html.vt-product .product.is-open .pd-buybox { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; grid-template-columns: auto minmax(0, 1fr) 54px; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border: 0; background: #fff; box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .35); }
  html.vt-product .pd-buybox .pd-line-total { display: none; }
  html.vt-product .pd-buybox .qty-btn { width: 36px; }
  html.vt-product .pd-buybox .qty-n { width: 26px; }
  html.vt-product .pd-buybox .btn { grid-column: auto; min-height: 50px; }
  html.vt-product .pd-buybox .pd-buy { grid-column: 2; grid-row: 1; padding-inline: 10px; font-size: .9rem; }
  html.vt-product .pd-buybox .pd-add { grid-column: 3; grid-row: 1; width: 54px; padding: 0; gap: 0; font-size: 0; }
  html.vt-product .pd-buybox .pd-add .i { width: 22px; height: 22px; }
}
@media (max-width: 360px) { html.vt-product .pd-buybox .qty { display: none; } html.vt-product .product.is-open .pd-buybox { grid-template-columns: minmax(0, 1fr) 54px; } html.vt-product .pd-buybox .pd-buy { grid-column: 1; } html.vt-product .pd-buybox .pd-add { grid-column: 2; } }

/* ─── Imagen con texto ─── */
.ready { background: var(--tint); }
.ready-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.ready-img { margin: 0; overflow: hidden; border-radius: var(--r); aspect-ratio: 1.08; }
.ready-img img { width: 100%; height: 100%; object-fit: cover; }
.ready-text { display: grid; justify-items: start; gap: 6px; }
.ready-list { display: grid; gap: 12px; margin: 22px 0 28px; padding: 0; list-style: none; }
.ready-item { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--ink); }
.ready-item .i { width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
@media (min-width: 900px) { .ready-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 6vw, 96px); } }

/* ─── Beneficios: franja con divisiones ─── */
.benefits { border-block: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.benefit { display: flex; align-items: flex-start; gap: 14px; padding: 28px 24px; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit-ic { flex: none; color: var(--ink); }
.benefit-title { font-size: .98rem; font-weight: 650; color: var(--ink); }
.benefit-text { font-size: .9rem; color: var(--muted); }
@media (max-width: 1060px) { .benefit + .benefit { border-left: 0; } .benefit { border-top: 1px solid var(--line); } .benefit:first-child { border-top: 0; } .benefits-grid { grid-template-columns: 1fr 1fr; } .benefit:nth-child(2) { border-top: 0; } .benefit:nth-child(even) { border-left: 1px solid var(--line); } }
@media (max-width: 600px) { .benefits-grid { grid-template-columns: 1fr; } .benefit:nth-child(even) { border-left: 0; } .benefit:nth-child(2) { border-top: 1px solid var(--line); } .benefit { padding: 20px 4px; } }

/* ─── Opiniones ─── */
.rev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.rev-head .sec-head { margin-bottom: 0; }
.rev-score { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rev-score-n { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.rev-score .stars { font-size: 1.15rem; }
.rev-count { width: 100%; font-size: .9rem; color: var(--muted); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); }
.rev-text { flex: 1; font-size: 1rem; color: var(--ink); }
.rev-meta { display: grid; font-size: .9rem; }
.rev-name { font-weight: 650; color: var(--ink); }
.rev-product { color: var(--muted); }

/* ─── Preguntas ─── */
.faq-wrap { display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); } }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 300; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 32px 20px 0; color: var(--muted); }

/* ─── Asesoría ─── */
.help { padding-top: 0; }
.help-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(36px, 5vw, 56px); border-radius: var(--r); background: var(--ink); color: #fff; padding-inline: clamp(24px, 5vw, 56px); }
.help-card .sec-title { color: #fff; }
.help-card .sec-lead { max-width: 560px; color: rgba(255, 255, 255, .76); }
@media (max-width: 700px) { .help .wrap.help-card { width: calc(100% - 32px); } .help-card .btn { width: 100%; } }

/* ─── Pie ─── */
.footer { padding: 64px 0 24px; background: #0B0B0F; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 36px; }
.footer-brand { grid-column: span 2; max-width: 420px; }
@media (max-width: 700px) { .footer-brand { grid-column: auto; } }
.footer-logo { margin-bottom: 10px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; color: #fff; }
.footer-h { margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.pay-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.pay { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .86); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; color: rgba(255, 255, 255, .62); }

/* ─── Bolsa (panel lateral) ─── */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(11, 11, 15, .45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%); background: #fff; animation: slide-in .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.drawer-close:hover { background: var(--tint); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ship-meter { display: grid; gap: 8px; margin-bottom: 18px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.ship-track { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: var(--tint); }
.ship-fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.cart-list { display: grid; gap: 16px; margin: 0 0 18px; padding: 0; list-style: none; }
.cart-line { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding-right: 36px; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--tint); }
.cart-line-name { font-size: .94rem; font-weight: 600; color: var(--ink); }
.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: 8px; }
.cart-line-price { font-weight: 600; color: var(--ink); }
.qty-sm .cart-q { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.05rem; cursor: pointer; }
.qty-v { min-width: 22px; font-size: .9rem; font-weight: 600; text-align: center; }
.cart-rm { position: absolute; top: -6px; right: -4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cart-rm::before { content: ''; position: absolute; inset: 11px; background: currentColor; -webkit-mask: var(--i-close) center / contain no-repeat; mask: var(--i-close) center / contain no-repeat; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 24px 0 28px; text-align: center; color: var(--muted); }
.cart-empty[hidden] { display: none; }
.cart-empty > .i { width: 40px; height: 40px; }
.cart-empty-title { font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.checkout { display: grid; gap: 16px; }
.checkout.is-empty { display: none; }
body:not(.tm-preview-mode) #tm-template-container .checkout.is-empty { display: grid; opacity: .75; }
.co-title { font-size: 1rem; font-weight: 650; color: var(--ink); }
.field { display: grid; gap: 6px; }
.field.js-address[hidden] { display: none; }
.field > label, .co-extra-l, .co-group legend { font-size: .86rem; font-weight: 600; color: var(--ink); }
:is(.checkout, .claim-form) :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; font-size: 1rem; color: var(--ink); }
:is(.checkout, .claim-form) :is(input, textarea):focus { outline: none; border-color: var(--ink); }
.co-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.co-group legend { margin-bottom: 8px; padding: 0; }
.seg { display: grid; gap: 8px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: .9rem; font-weight: 500; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 650; }
.pay-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-opts .opt { min-height: 42px; font-size: .86rem; }
.totals { display: grid; gap: 6px; margin: 0 0 6px; font-size: .92rem; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; color: var(--ink); }
.save-row dd { color: var(--sale); }
.save-row.is-zero { display: none; }
#tm-template-container .save-row.is-zero { display: flex; }
.total-row { padding-top: 8px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.total-row dt { color: var(--ink); font-weight: 650; }
.cart-inst { margin-bottom: 8px; font-size: .84rem; color: var(--muted); text-align: right; }
.cart-inst:empty { display: none; }
.ship-rule { margin-bottom: 12px; font-size: .8rem; color: var(--muted); }
.cart-fine { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ─── Ventanas legales ─── */
.info-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(11, 11, 15, .5); }
.info-modal[hidden] { display: none; }
.info-panel { position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: #fff; }
.info-close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); cursor: pointer; }
.info-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-title { margin: 6px 0 4px; font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.info-updated { margin-bottom: 18px; font-size: .86rem; color: var(--muted); }
.info-body { display: grid; gap: 10px; }
.info-h { margin-top: 10px; font-size: 1rem; font-weight: 650; color: var(--ink); }
.info-p, .info-note, .info-business { font-size: .94rem; }
.info-note { color: var(--muted); }
.info-business { font-weight: 600; }
.claim-form { display: grid; gap: 14px; margin: 8px 0; }
.claim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.claim-kind { display: flex; gap: 18px; margin: 0; padding: 0; border: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.field.is-bad :is(input, textarea) { border-color: var(--sale); }
.claim-error { color: var(--sale); font-weight: 600; }
.claim-error[hidden] { display: none; }

/* ─── Aviso y barra móvil ─── */
.vt-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; 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); }
.vt-toast:empty { display: none; }
html.vt-lock .vt-toast, html.vt-product .vt-toast { top: calc(var(--tm-top, 0px) + 16px); bottom: auto; }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 4px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; }
.mbar a, .mbar button { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 58px; padding: 8px 4px; border: 0; background: transparent; font-size: .72rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; }
.mbar .i { width: 22px; height: 22px; }
.mbar .cart-count { top: 4px; right: calc(50% - 22px); }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 769px) { .mbar { display: none; } body { padding-bottom: 0; } .vt-toast { bottom: 28px; } }

/* ─── Solo en el editor ─── */
.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: 999px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translateX(-50%); max-width: calc(100vw - 24px); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .vt-pages { bottom: calc(80px + env(safe-area-inset-bottom)); } }
body:not(.tm-preview-mode) #tm-template-container .footer { padding-bottom: calc(var(--vt-pages-room, 84px) + env(safe-area-inset-bottom)); }
@media (max-width: 768px) { body:not(.tm-preview-mode) #tm-template-container .footer { --vt-pages-room: 150px; } }
.vt-pages-label { padding: 0 6px 0 12px; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.vt-pages button { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.vt-pages button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 480px) { .vt-pages-label { display: none; } .vt-pages button { padding-inline: 10px; } }
.vt-pick { position: relative; display: inline-flex; }
.vt-pick .vt-pick-btn { position: relative; max-width: 220px; padding: 6px 34px 6px 16px; overflow: hidden; text-overflow: ellipsis; }
.vt-pick .vt-pick-btn::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vt-pick.is-on .vt-pick-btn { background: #fff; color: var(--ink); }
.vt-pick-list { position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 2; width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 24px)); max-height: min(60vh, 380px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; border-radius: 16px; background: var(--ink); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translateX(-50%); overscroll-behavior: contain; }
.vt-pick-list[hidden] { display: none; }
.vt-pick .vt-pick-list button { display: block; width: 100%; min-height: 40px; padding: 9px 14px; border-radius: 12px; color: #fff; font-size: .9rem; font-weight: 500; text-align: left; white-space: normal; line-height: 1.3; }
.vt-pick .vt-pick-list button:hover { background: rgba(127, 127, 127, .24); }
.vt-pick .vt-pick-list button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 650; }
.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; }
#tm-template-container .pd-cat:focus::after { content: ' ← escribe una categoría de la tienda'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--sale); }
body:not(.tm-preview-mode) #tm-template-container .shop-more { flex-wrap: wrap; }
body:not(.tm-preview-mode) #tm-template-container .shop-more::after { content: 'Tus otros productos se editan en «Tienda» (barra de abajo)'; display: block; flex-basis: 100%; margin-top: 10px; font: 600 .8rem/1.4 system-ui, sans-serif; color: #0f766e; text-align: center; }
/* La regla de cuotas se escribe en la cinta: en el editor se marca para que se note que es una regla */
body:not(.tm-preview-mode) #tm-template-container #instRule { outline: 1px dashed rgba(255, 255, 255, .45); outline-offset: 3px; }
/* En el editor nada se mueve: los textos y las fotos se ven quietos para editarlos */
#tm-template-container .hero-text > *, #tm-template-container .hero-media img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ═══ 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; }
/* Etiquetas de producto: colores extra del menú de etiqueta del editor (además de is-new,
   is-sale, is-hot de la plantilla). Ver ecommerce.py › products_grid_attrs. */
.pd-badge.is-c-green { background: #1D6B45; border-color: #1D6B45; color: #fff; }
.pd-badge.is-c-blue { background: #1F4FD1; border-color: #1F4FD1; color: #fff; }
.pd-badge.is-c-amber { background: #F2B630; border-color: #F2B630; color: #1A1406; }
.pd-badge.is-c-pink { background: #C2185B; border-color: #C2185B; color: #fff; }
/* Editor: el aviso de una sección quitada no sale en la página «Catálogo» (allí solo está el catálogo) */
html.vt-catalog .tm-sec-gone { display: none !important; }

/* ─── Opciones: circulito de color, agotadas y «Elige tu talla» (script: paintGroup) ─── */
.opt.has-sw { gap: 8px; }
.opt.has-sw::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.opt.has-sw:has(input:checked)::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.opt.is-out { cursor: not-allowed; border-style: dashed; color: var(--muted); background: transparent; }
.opt.is-out > span { text-decoration: line-through; opacity: .6; }
.opt.is-out:hover { border-color: var(--line); }
.opt.is-out.has-sw::before { opacity: .45; }
.opt.is-out-combo { cursor: not-allowed; border-style: dashed; color: var(--muted); background: transparent; }
.opt.is-out-combo > span { text-decoration: line-through; opacity: .6; }
.opt.is-out-combo:hover { border-color: var(--line); }
/* Fotos de otras opciones del grupo (otro color): fuera del detalle mientras se elige este */
.product.is-open .pd-shot.is-other { display: none; }
.product.is-open.is-one-shot .pd-nav { display: none; }
.pd-var.is-choose:not(:has(input:checked)) legend::after { content: ' · elige una'; font-weight: 500; color: var(--muted); }
.pd-var-msg { margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: #B42A26; }
.pd-var.is-missing .pd-opts { animation: pd-shake .4s ease; }
.pd-var.is-missing .opt:not(.is-out) { border-color: #B42A26; }
@keyframes pd-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .pd-var.is-missing .pd-opts { animation: none; } }

/* Producto con la etiqueta «Agotado» (kit ecommerce › soldOut) */
.product.is-soldout .pd-media img { filter: grayscale(1); opacity: .75; }
.product.is-soldout :is(.btn-add-quick, .pd-add, .qty) { opacity: .45; }

/* Fotos de ejemplo de la plantilla que el dueño reemplazó: no se ven (editor › «Fotos del producto») */
.pd-shot:has(> img.is-sample) { display: none !important; }

/* Pedido configurable (ecommerce.py › checkout_*) */
.co-fields { display: grid; gap: 14px; }
.co-fields:empty { display: none; }
.co-fields > .tm-add-btn { justify-self: start; }
.seg { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }

/* Guía de tallas (ecommerce.py › size_guide) */
.size-table { display: grid; gap: 0; margin-top: 4px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; overflow: hidden; font-size: .9rem; }
.size-rows { display: grid; }
.size-row { display: grid; grid-template-columns: minmax(64px, 30%) 1fr; gap: 12px; margin: 0; padding: 9px 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.size-head { border-top: 0; background: rgba(0, 0, 0, .04); font-weight: 800; }
.size-row .sz-k { font-weight: 700; }
.size-rows > .tm-add-btn { margin: 8px 14px; justify-self: start; }

/* Filtros por opción del catálogo (ecommerce.js › buildFacets): usan el estilo del «Ordenar» de la plantilla */
#shopFacets { display: contents; }
/* Con filtros la barra va en su propia fila: buscador ancho y filtros alineados (no escalonados a la derecha) */
.shop-tools:has(.facet) { flex: 1 1 100%; justify-content: flex-start; }
.shop-tools:has(.facet) .search { flex: 1 1 280px; max-width: none; }
.shop-tools:has(.facet) .sort { flex: 1 1 auto; min-width: 0; }
.shop-tools:has(.facet) .sort select { flex: 1 1 auto; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 639px) {
  /* Celular: buscador arriba, filtros de dos en dos y «Ordenar» a lo ancho */
  .shop-tools:has(.facet) { display: grid; grid-template-columns: 1fr 1fr; }
  .shop-tools:has(.facet) .search, .shop-tools:has(.facet) > .sort, #shopFacets > .facet:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .shop-tools:has(.facet) .sort { padding-left: 14px; }
  .shop-tools:has(.facet) .sort select { flex: 1 1 auto; width: 0; }
}

/* Opción con pocas unidades (editor › «Disponible: Quedan pocas»): se puede elegir y avisa */
.pd-var .opt.is-low:not(.is-out) > span::after { content: 'Últimas'; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: .68rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }

/* «+ Grupo de opciones» siempre visible dentro del detalle (data-tm-add-inline en .pd-vars): antes solo aparecía bajo
   el mouse y en el celular no se podía agregar «Color» */
.pd-vars > .tm-add-btn { justify-self: start; }

/* ─── 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-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-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%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-share: 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='18' cy='5.5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='18.5' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-4M8.2 13.2l7.6 4'/%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-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-wa { --i: var(--i-wa); }
.i-check { --i: var(--i-check); }
.i-share { --i: var(--i-share); }
