/* Tienda WhatsApp (QubeShop) — estética de la plantilla "modern" de QubeShop.
 * --brand se reemplaza por qubeshop_empresa.color_principal de cada tienda (tiendawa/index.php).
 */
:root {
    --brand: #102a56;
    --on-brand: #ffffff;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --soft: #eef1f5;
    --text: #16181d;
    --muted: #6b7280;
    --border: #e1e5ea;
    --danger: #d85b67;
    --ok: #328862;
    --wa: #1fa855;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 20px 55px rgba(19, 24, 34, .12);
    --shadow-soft: 0 8px 24px rgba(19, 24, 34, .06);
    --header: 68px;
    --max: 1320px;
    --font: var(--font-marca, "Inter"), "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.tw-body {
    margin: 0;
    padding-top: var(--header);
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.tw-sin-scroll { overflow: hidden; }
body.con-barra { padding-bottom: 84px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
small { font-size: 11px; }
.tw-ico { width: 20px; height: 20px; flex: none; }
.tw-ico-sm { width: 15px; height: 15px; }

/* ---------- header ---------- */
.tw-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: box-shadow .2s;
}
.tw-header.is-scroll { box-shadow: 0 10px 30px rgba(21, 25, 33, .07); }
.tw-header-in {
    max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; gap: 16px;
}
.tw-marca { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.tw-marca img { max-height: 40px; max-width: 150px; width: auto; object-fit: contain; }
.tw-marca strong { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-hacciones { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tw-hbtn {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px;
    background: transparent; color: #4b5260; font-size: 13px; font-weight: 650; white-space: nowrap;
}
.tw-hbtn:hover { background: var(--soft); color: var(--text); }
.tw-hbtn.is-may { background: var(--soft); color: var(--text); }
.tw-hbtn.is-may .tw-hbtn-txt { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.tw-hbtn-pedido { background: var(--brand); color: var(--on-brand); }
.tw-hbtn-pedido:hover { background: var(--brand); color: var(--on-brand); filter: brightness(1.08); }
.tw-contador {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--on-brand); color: var(--brand); font-size: 11px; line-height: 20px; text-align: center;
}
.tw-buscar {
    display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
    background: var(--soft); border: 1px solid transparent; border-radius: 14px; color: var(--muted);
    transition: border-color .15s, background .15s;
}
.tw-buscar:focus-within { background: #fff; border-color: var(--brand); }
.tw-buscar input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 15px; color: var(--text);
}
.tw-buscar-desk { flex: 1; max-width: 460px; margin-left: 12px; }
.tw-buscar-mob { display: none; }

/* ---------- botones ---------- */
.tw-btn-pri, .tw-btn-sec, .tw-btn-wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
    font-size: 14px; font-weight: 700; text-decoration: none; transition: filter .15s, transform .1s;
}
.tw-btn-pri { background: var(--brand); color: var(--on-brand); }
.tw-btn-sec { background: #fff; color: var(--text); border-color: var(--border); }
.tw-btn-pri:hover, .tw-btn-wa:hover { filter: brightness(1.08); }
.tw-btn-sec:hover { background: var(--soft); }
.tw-btn-pri:active, .tw-btn-sec:active, .tw-btn-wa:active { transform: scale(.98); }
.tw-btn-ancho { width: 100%; }
.tw-btn-wa { width: 100%; background: var(--wa); color: #fff; font-size: 15px; min-height: 54px; }
.tw-btn-wa:disabled { background: #b9c0c9; cursor: not-allowed; filter: none; }
.tw-link { display: block; margin-top: 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- hero ---------- */
main { display: block; }
.tw-hero { padding: 28px 16px 8px; }
.tw-hero-in {
    max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 36px; overflow: hidden;
    position: relative;
}
.tw-hero-in::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--brand);
}
.tw-hero.sin-img .tw-hero-in { grid-template-columns: 1fr; }
.tw-kicker, .tw-sec-head small, .tw-pedido-head small, .tw-login small, .tw-pdf small, .tw-acerca-txt small {
    display: block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.tw-hero h1 { margin: 10px 0 12px; font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.tw-hero p { margin: 0; color: var(--muted); max-width: 520px; }
.tw-hero-acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tw-hero-media img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 20px; }
.tw-aviso {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px !important; padding: 10px 14px;
    border-radius: 12px; background: var(--soft); color: var(--text) !important; font-size: 13px; font-weight: 600;
}
.tw-aviso.is-may { background: color-mix(in srgb, var(--brand) 12%, #fff); }

/* ---------- secciones ---------- */
.tw-sec { max-width: var(--max); margin: 0 auto; padding: 26px 16px 8px; }
.tw-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tw-sec-head h2 { margin-top: 4px; font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; }
.tw-cuenta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.tw-flechas { display: flex; gap: 6px; }
.tw-flechas button {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
    display: grid; place-items: center;
}
.tw-flechas button:hover { background: var(--soft); }

/* novedades */
.tw-novedades { padding-top: 18px; }
.tw-carrusel {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius);
    scrollbar-width: none; background: var(--surface); border: 1px solid var(--border);
}
.tw-carrusel::-webkit-scrollbar { display: none; }
.tw-nov {
    position: relative; flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: #fff;
    aspect-ratio: 16 / 6; max-height: 420px;
}
.tw-nov img { width: 100%; height: 100%; object-fit: cover; }
.tw-nov-tit {
    position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
    max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .94); color: var(--text); font-weight: 700; font-size: 14px; text-align: left;
    box-shadow: var(--shadow-soft);
}
.tw-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.tw-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #c9cfd8; transition: width .2s; }
.tw-dots button.is-on { width: 22px; background: var(--brand); }

/* rails (destacados / ofertas) */
.tw-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px;
    overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 12px; scrollbar-width: thin;
}
.tw-rail > * { scroll-snap-align: start; }

/* marcas */
.tw-marquee {
    overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 14px 0;
}
.tw-marquee:not(.is-mov) .tw-marquee-track { justify-content: center; flex-wrap: wrap; }
.tw-marquee-track { display: flex; gap: 12px; width: max-content; padding: 0 12px; }
.tw-marquee:not(.is-mov) .tw-marquee-track { width: auto; }
.tw-marquee.is-mov .tw-marquee-track { animation: tw-marquee calc(var(--n) * 3.2s) linear infinite; }
.tw-marquee.is-mov:hover .tw-marquee-track, .tw-marquee.is-mov:focus-within .tw-marquee-track { animation-play-state: paused; }
.tw-marquee-clon { display: contents; }
@keyframes tw-marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
    .tw-marquee.is-mov { overflow-x: auto; }
    .tw-marquee.is-mov .tw-marquee-track { animation: none; }
    .tw-marquee-clon { display: none; }
}
.tw-marca-item {
    flex: none; width: 150px; height: 76px; display: grid; place-items: center; padding: 12px;
    border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: border-color .15s, transform .15s;
}
.tw-marca-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.tw-marca-item img { max-height: 48px; max-width: 120px; object-fit: contain; filter: grayscale(.15); }
.tw-marca-item span { font-weight: 800; font-size: 14px; }

/* ---------- catálogo ---------- */
.tw-filtros {
    position: sticky; top: var(--header); z-index: 20; margin: 0 -16px 16px; padding: 10px 16px;
    background: rgba(245, 246, 248, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tw-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.tw-chips::-webkit-scrollbar { display: none; }
.tw-chip {
    flex: none; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--border); background: #fff;
    font-size: 13px; font-weight: 650; color: #4b5260; white-space: nowrap;
}
.tw-chip small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.tw-chip:hover { border-color: #c5ccd6; }
.tw-chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tw-chip.is-on small { color: inherit; opacity: .75; }
.tw-filtro-activo {
    display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; color: var(--muted); font-size: 13px;
}
.tw-filtro-activo b { color: var(--text); }
.tw-filtro-activo button {
    display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px;
    border: 1px solid var(--border); background: #fff; font-size: 12px; font-weight: 650;
}
.tw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tw-mas { display: flex; justify-content: center; padding: 22px 0 8px; }
.tw-vacio-grid {
    grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--muted);
    background: #fff; border: 1px dashed var(--border); border-radius: var(--radius);
}
.tw-vacio-grid .tw-btn-sec { margin-top: 8px; }

/* tarjeta */
.tw-card {
    display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.tw-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.tw-card-media {
    position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #fff;
    border-bottom: 1px solid #f0f2f5; overflow: hidden;
}
.tw-card-media img, .tw-card-media .tw-sinfoto { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-card-media img { object-fit: contain; padding: 10px; }
.tw-sinfoto {
    display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1;
    background: var(--soft); color: #b3bac5; font-size: 40px; font-weight: 800; text-transform: uppercase;
}
.tw-badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 10px;
    background: var(--danger); color: #fff; font-size: 12px; font-weight: 800;
}
.tw-badge.is-inline { position: static; display: inline-block; vertical-align: middle; }
.tw-ultimos {
    position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px;
    background: rgba(22, 24, 29, .78); color: #fff; font-size: 11px; font-weight: 700;
}
.tw-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 14px 14px; }
.tw-card-nom {
    padding: 0; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 650; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.tw-card-precio, .tw-promo-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-height: 24px; }
.tw-precio, .tw-antes { white-space: nowrap; }
/* precio con transferencia / efectivo */
.tw-transf { display: block; color: var(--ok); font-size: 12px; font-weight: 600; line-height: 1.3; }
.tw-transf b { font-weight: 800; }
.tw-transf.is-ficha { margin: 8px 0 0; font-size: 14px; }
/* formulario del pedido */
.tw-campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tw-opcion-desc { color: var(--ok); font-weight: 800; }
.tw-subtotal { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.tw-subtotal.is-desc { color: var(--ok); font-weight: 650; }
.tw-registrado {
    display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px;
    background: color-mix(in srgb, var(--ok) 10%, #fff); color: #1f5e40; font-size: 13px;
}
.tw-registrado > .tw-ico { flex: none; margin-top: 1px; }
.tw-registrado b { display: block; font-size: 14px; }
.tw-registrado span { display: block; color: #3d6b55; }
.tw-link-btn { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: underline; }
[data-error-envio] { display: grid; gap: 4px; }
/* promo propia de la tienda: título y vigencia */
.tw-promo-chip {
    display: block; align-self: flex-start; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--danger) 12%, #fff);
    color: #b23a48; font-size: 11.5px; font-weight: 650; line-height: 1.35;
}
.tw-promo-chip b { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.tw-promo-chip .tw-ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.tw-promo-chip.is-ficha { display: flex; width: fit-content; margin-top: 8px; font-size: 13px; padding: 5px 10px; }
.tw-promo-prod .tw-promo-chip { margin: 6px 12px 0; }
.tw-precio { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tw-precio.is-chico { font-size: 15px; }
.tw-antes { color: #9aa1ad; font-size: 13px; font-weight: 500; }
.tw-desde { color: var(--muted); font-size: 12px; }
.tw-consultar { font-size: 13px; font-weight: 700; color: var(--muted); }
.tw-card-act { margin-top: auto; padding-top: 4px; }
.tw-btn-agregar, .tw-btn-elegir {
    width: 100%; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 12px; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-size: 13px; font-weight: 750;
}
.tw-btn-agregar:hover, .tw-btn-elegir:hover { background: var(--brand); color: var(--on-brand); }
.tw-btn-elegir .tw-ico { width: 16px; height: 16px; }
.tw-stepper {
    display: flex; align-items: center; justify-content: space-between; height: 42px; border-radius: 12px;
    background: var(--brand); color: var(--on-brand); overflow: hidden;
}
.tw-stepper button { width: 44px; height: 100%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; }
.tw-stepper button:hover { background: rgba(255, 255, 255, .14); }
.tw-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.tw-stepper output { font-weight: 800; font-size: 15px; min-width: 24px; text-align: center; }

/* ---------- portada: bloques entre productos ---------- */
.tw-bloque { margin: 8px 0 34px; }
.tw-sec-acc { display: flex; align-items: center; gap: 10px; }
.tw-link-ver {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.tw-link-ver span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--soft); font-size: 11px; line-height: 22px; text-align: center; }
.tw-link-ver:hover { border-color: var(--brand); color: var(--brand); }
.tw-portada-fin { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 6px 0 10px; }
.tw-grid-bloque { grid-column: 1 / -1; margin: 14px 0; }
.tw-grid-bloque .tw-bloque { margin: 0; }
.tw-chip.is-oferta { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, #fff); }
.tw-chip.is-oferta .tw-ico { vertical-align: -3px; }
.tw-chip.is-oferta.is-on { background: var(--danger); border-color: var(--danger); color: #fff; }

/* categorías con collage */
.tw-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tw-cats-todas { display: none; }
.tw-cat {
    position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: transform .2s, box-shadow .2s;
}
.tw-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tw-cat-fotos {
    display: grid; gap: 2px; width: 100%; aspect-ratio: 4 / 3; flex: none; overflow: hidden; background: #fff;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
}
.tw-cat-fotos.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tw-cat-fotos.n3 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.tw-cat-fotos.n3 img:first-child { grid-row: 1 / 3; }
.tw-cat-fotos img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 8px; background: #fff; }
.tw-cat-fotos.n3 img + img { background: #f7f8fa; padding: 6px; }
.tw-cat-fotos .tw-sinfoto { aspect-ratio: auto; font-size: 46px; }
.tw-cat-txt { display: flex; flex-direction: column; padding: 12px 52px 14px 14px; border-top: 1px solid #f0f2f5; }
.tw-cat-txt b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.tw-cat-txt small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tw-cat-ir {
    position: absolute; right: 12px; bottom: 14px; width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center; background: var(--soft); color: var(--text); transition: background .15s, color .15s;
}
.tw-cat:hover .tw-cat-ir { background: var(--brand); color: var(--on-brand); }
.tw-cat-ir .tw-ico { width: 17px; height: 17px; }

/* tarjeta "Ver los N" al final de cada góndola */
.tw-card-vermas {
    align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; cursor: pointer;
    background: color-mix(in srgb, var(--brand) 7%, #fff); border-style: dashed; border-color: color-mix(in srgb, var(--brand) 35%, #fff);
}
.tw-card-vermas span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.tw-card-vermas b { font-size: 15px; font-weight: 800; }
.tw-card-vermas small { color: var(--muted); }

/* banner de ofertas */
.tw-promo {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: center; padding: 30px;
    border-radius: 28px; color: var(--on-brand); overflow: hidden; position: relative;
    background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .16), transparent 45%), var(--brand);
}
.tw-promo-txt small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tw-promo-txt h2 { margin: 8px 0 10px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.tw-promo-txt h2 span {
    display: inline-block; padding: 0 10px; border-radius: 12px; background: var(--danger); color: #fff;
}
.tw-promo-txt p { margin: 0 0 18px; opacity: .85; }
.tw-btn-promo {
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
    background: #fff; color: #16181d; font-weight: 800; font-size: 14px;
}
.tw-btn-promo:hover { filter: brightness(.95); }
.tw-promo-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tw-promo-prod {
    position: relative; display: flex; flex-direction: column; padding: 0 0 12px; border: 0; border-radius: 18px;
    background: #fff; color: var(--text); text-align: left; overflow: hidden; transition: transform .2s;
}
.tw-promo-prod:hover { transform: translateY(-3px); }
.tw-promo-prod > img, .tw-promo-prod > .tw-sinfoto { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; }
.tw-promo-nom {
    padding: 0 12px; font-size: 13px; font-weight: 650; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tw-promo-precio { padding: 4px 12px 0; }
.tw-promo-precio .tw-precio { font-size: 16px; }

/* novedad como banner ancho */
.tw-banner {
    position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: #fff; aspect-ratio: 16 / 5;
}
.tw-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
button.tw-banner:hover img { transform: scale(1.02); }

/* tarjetas de acción */
.tw-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tw-cta {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.tw-cta-ico {
    grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand);
}
.tw-cta-ico .tw-ico { width: 24px; height: 24px; }
.tw-cta b { font-size: 16px; font-weight: 800; }
.tw-cta p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tw-cta .tw-btn-sec { grid-column: 2; justify-self: start; min-height: 40px; padding: 0 16px; font-size: 13px; }

/* nosotros + pie */
.tw-acerca {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; margin-top: 30px; padding: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: 28px; overflow: hidden;
    max-width: calc(var(--max) - 32px);
}
.tw-acerca-img img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.tw-acerca-txt { padding: 34px; align-self: center; }
.tw-acerca-txt h2 { margin: 8px 0 12px; font-size: 26px; font-weight: 800; }
.tw-acerca-txt p { margin: 0; color: var(--muted); white-space: pre-line; }
.tw-acerca:not(:has(.tw-acerca-img)) { grid-template-columns: 1fr; }
.tw-pie { margin-top: 34px; padding: 28px 16px 36px; background: #fff; border-top: 1px solid var(--border); }
.tw-pie-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tw-pie-contacto { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tw-pie-contacto a { display: inline-flex; align-items: center; gap: 7px; color: #4b5260; text-decoration: none; font-size: 14px; font-weight: 600; }
.tw-pie-contacto a:hover { color: var(--brand); }
.tw-pie-contacto .tw-ico { width: 18px; height: 18px; }
.tw-pie-qs { margin: 0; color: var(--muted); font-size: 12px; }
.tw-pie-qs a { font-weight: 700; }

/* barra inferior "Ver mi pedido" */
.tw-barra {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%);
    width: min(520px, calc(100% - 32px)); height: 58px; padding: 0 10px 0 10px; border: 0; border-radius: 18px;
    display: flex; align-items: center; gap: 12px; background: var(--brand); color: var(--on-brand);
    box-shadow: 0 16px 40px rgba(16, 20, 30, .28); font-weight: 750; font-size: 15px;
    animation: tw-sube .25s ease-out;
}
.tw-barra b { margin-left: auto; padding-right: 8px; font-size: 16px; display: flex; }
.tw-barra-n {
    min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .18); font-weight: 800;
}
@keyframes tw-sube { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ---------- capas ---------- */
.tw-capa { position: fixed; inset: 0; z-index: 100; }
.tw-fondo { position: absolute; inset: 0; background: rgba(14, 17, 23, .5); opacity: 0; transition: opacity .2s; }
.tw-capa.is-on .tw-fondo { opacity: 1; }
.tw-panel {
    position: absolute; background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
    transition: transform .22s ease, opacity .22s ease;
}
.tw-cerrar {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, .95); display: grid; place-items: center;
}
.tw-cerrar:hover { background: var(--soft); }

/* diálogo centrado (login / pdf) */
.tw-capa.es-dialogo .tw-panel {
    top: 50%; left: 50%; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto;
    border-radius: 24px; transform: translate(-50%, -46%); opacity: 0; padding: 28px;
}
.tw-capa.es-dialogo.is-on .tw-panel { transform: translate(-50%, -50%); opacity: 1; }
.tw-login h2, .tw-pdf h2 { margin: 6px 0 8px; font-size: 22px; font-weight: 800; padding-right: 40px; }
.tw-login p, .tw-pdf p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.tw-pdf-acc { display: grid; gap: 10px; margin-top: 18px; }
.tw-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.tw-check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ficha: centrada en escritorio */
.tw-capa.es-ficha .tw-panel {
    top: 50%; left: 50%; width: min(1040px, calc(100% - 48px)); max-height: calc(100% - 48px);
    border-radius: 28px; transform: translate(-50%, -47%); opacity: 0; overflow-y: auto;
}
.tw-capa.es-ficha.is-on .tw-panel { transform: translate(-50%, -50%); opacity: 1; }
.tw-ficha { display: grid; grid-template-columns: 1.05fr 1fr; }
.tw-galeria { background: #fff; border-right: 1px solid var(--border); padding: 18px; }
.tw-galeria-fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.tw-galeria-fotos::-webkit-scrollbar { display: none; }
.tw-galeria-foto { position: relative; flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; overflow: hidden; }
.tw-galeria-foto img, .tw-galeria-foto .tw-sinfoto { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-galeria-foto img { object-fit: contain; }
.tw-miniaturas { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.tw-miniaturas button {
    flex: none; width: 62px; height: 62px; padding: 4px; border-radius: 12px; border: 2px solid var(--border); background: #fff;
}
.tw-miniaturas button.is-on { border-color: var(--brand); }
.tw-miniaturas img { width: 100%; height: 100%; object-fit: contain; }
.tw-ficha-info { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.tw-ficha-cat {
    align-self: flex-start; padding: 5px 11px; border-radius: 10px; border: 0; background: var(--soft);
    color: #4b5260; font-size: 12px; font-weight: 700;
}
.tw-ficha-info h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; padding-right: 36px; }
.tw-ficha-precio .tw-precio { font-size: 28px; }
.tw-ficha-precio .tw-antes { font-size: 16px; }
.tw-vars-tit { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.tw-vars-tit b { color: var(--text); }
.tw-vars-op { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-var {
    position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px;
    border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 650;
}
.tw-var.con-img { padding-left: 4px; }
.tw-var img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.tw-var:hover { border-color: #bfc6d1; }
.tw-var.is-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.tw-var.en-pedido::after {
    content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--ok); border: 2px solid #fff;
}
.tw-ficha-acc { display: grid; gap: 10px; }
.tw-ficha-cant { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; color: var(--muted); }
.tw-ficha-cant .tw-stepper { width: 150px; background: var(--soft); color: var(--text); }
.tw-ficha-cant .tw-stepper button:hover { background: rgba(0, 0, 0, .05); }
.tw-ficha-en { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; }
.tw-ficha-elegi { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: #4b5260; font-size: 14px; }
.tw-stock-bajo { margin: 0; color: #b4572a; font-size: 13px; font-weight: 650; }
.tw-ficha-desc { border-top: 1px solid var(--border); padding-top: 14px; }
.tw-ficha-desc h3 { font-size: 14px; margin-bottom: 6px; }
.tw-ficha-desc p { margin: 0; color: #4b5260; white-space: pre-line; font-size: 14px; }
.tw-compartir {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
    color: var(--muted); font-size: 13px; font-weight: 650;
}
.tw-compartir .tw-ico { width: 16px; height: 16px; }

/* pedido: panel lateral */
.tw-capa.es-lateral .tw-panel {
    top: 0; right: 0; bottom: 0; width: min(460px, 100%); transform: translateX(100%);
    display: flex; flex-direction: column;
}
.tw-capa.es-lateral.is-on .tw-panel { transform: none; }
.tw-pedido { display: flex; flex-direction: column; height: 100%; }
.tw-pedido-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.tw-pedido-head h2 { font-size: 22px; font-weight: 800; margin-top: 2px; }
.tw-pedido-head .tw-cerrar { position: static; }
.tw-pedido-scroll { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.tw-pedido-vacio { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; color: var(--muted); text-align: center; }
.tw-pedido-vacio .tw-ico { width: 44px; height: 44px; color: #c3c9d2; }
.tw-items { list-style: none; margin: 0; padding: 0; }
.tw-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.tw-item-img { width: 58px; height: 58px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.tw-item-img img { width: 100%; height: 100%; object-fit: contain; }
.tw-item-img .tw-sinfoto { font-size: 22px; }
.tw-item-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw-item-nom { padding: 0; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 650; line-height: 1.3; }
.tw-item-det { color: var(--muted); font-size: 12px; font-weight: 600; }
.tw-item-precio { font-size: 13px; color: #4b5260; }
.tw-item .tw-stepper { width: 112px; height: 38px; }
.tw-item .tw-stepper button { width: 36px; }
.tw-item .tw-stepper .tw-ico { width: 17px; height: 17px; }
.tw-vaciar { margin: 10px 0 4px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 650; }
.tw-form { display: grid; gap: 14px; margin-top: 12px; }
.tw-campo { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tw-campo > span, .tw-campo legend { font-size: 13px; font-weight: 700; color: #4b5260; padding: 0; margin-bottom: 0; }
.tw-campo small { color: var(--muted); font-weight: 500; }
.tw-input {
    width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px;
    background: #fff; font: inherit; font-size: 15px; color: var(--text); outline: 0; resize: vertical;
}
.tw-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.tw-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tw-opcion {
    display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border: 1.5px solid var(--border);
    border-radius: 12px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700;
}
.tw-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.tw-opcion:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.tw-opcion:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.tw-campo .tw-input + .tw-input, .tw-opciones + .tw-input, .tw-opciones + .tw-nota-chica { margin-top: 2px; }
.tw-nota-chica { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; }
.tw-pedido-pie { padding: 14px 18px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fff; display: grid; gap: 8px; }
.tw-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; }
.tw-total b { font-size: 22px; font-weight: 800; }
.tw-falta { margin: 0; color: #b4572a; font-size: 13px; font-weight: 650; }

/* aviso flotante */
.tw-toast {
    position: fixed; left: 50%; top: calc(var(--header) + 12px); z-index: 200; transform: translate(-50%, -16px);
    max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: #16181d; color: #fff;
    font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.tw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* página sin tienda */
.tw-vacio { max-width: 480px; margin: 18vh auto; padding: 0 20px; text-align: center; font-family: var(--font); }
.tw-vacio h1 { font-size: 26px; margin-bottom: 8px; }
.tw-vacio p { color: var(--muted); }

/* ---------- celular / tablet ---------- */
@media (max-width: 900px) {
    .tw-hero-in { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
    .tw-hero-media { order: -1; }
    .tw-hero-media img { max-height: 220px; }
    .tw-ficha { grid-template-columns: 1fr; }
    .tw-galeria { border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
    .tw-ficha-info { padding: 20px 18px 24px; }
    .tw-acerca { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
    .tw-acerca-img img { max-height: 220px; }
    .tw-acerca-txt { padding: 24px 22px; }
}
@media (max-width: 720px) {
    :root { --header: 60px; }
    body.tw-body { font-size: 14.5px; }
    .tw-header-in { padding: 0 12px; gap: 8px; }
    .tw-marca img { max-height: 34px; max-width: 120px; }
    .tw-buscar-desk { display: none; }
    .tw-buscar-mob { display: flex; margin-bottom: 10px; }
    .tw-hbtn { height: 40px; padding: 0 10px; }
    .tw-hbtn-txt { display: none; }
    .tw-hbtn.is-may .tw-hbtn-txt { display: inline; max-width: 80px; font-size: 12px; }
    .tw-hbtn .tw-ico-sm { display: none; }
    .tw-hero { padding: 14px 12px 4px; }
    .tw-hero-in { border-radius: 22px; }
    .tw-hero h1 { margin: 6px 0 8px; }
    .tw-hero-acc .tw-btn-pri, .tw-hero-acc .tw-btn-sec { flex: 1; padding: 0 12px; }
    .tw-sec { padding: 20px 12px 6px; }
    .tw-filtros { margin: 0 -12px 12px; padding: 10px 12px; }
    .tw-flechas { display: none; }
    .tw-rail { grid-auto-columns: 46%; gap: 10px; }
    .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tw-card { border-radius: 16px; }
    .tw-card-body { padding: 10px 10px 12px; }
    .tw-card-nom { font-size: 13px; }
    .tw-precio { font-size: 16px; }
    .tw-antes { font-size: 12px; }
    .tw-btn-agregar, .tw-btn-elegir { height: 40px; font-size: 12.5px; }
    .tw-stepper { height: 40px; }
    .tw-stepper button { width: 38px; }
    .tw-nov { aspect-ratio: 16 / 9; }
    .tw-bloque { margin: 4px 0 26px; }
    .tw-link-ver { height: 36px; padding: 0 11px; font-size: 12px; }
    .tw-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tw-cats:not(.is-abierto) .tw-cat:nth-child(n+7) { display: none; }
    .tw-cats-todas { display: flex; width: 100%; margin-top: 10px; }
    .tw-cats.is-abierto .tw-cats-todas { display: none; }
    .tw-cat { border-radius: 16px; }
    .tw-cat-txt { padding: 10px 44px 12px 12px; }
    .tw-cat-txt b { font-size: 14px; }
    .tw-cat-ir { width: 30px; height: 30px; right: 10px; bottom: 12px; }
    .tw-promo { grid-template-columns: 1fr; padding: 22px 18px; border-radius: 22px; gap: 18px; }
    .tw-promo-prods { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
    .tw-promo-prods::-webkit-scrollbar { display: none; }
    .tw-promo-prod { flex: 0 0 44%; scroll-snap-align: start; }
    .tw-banner { aspect-ratio: 16 / 7; border-radius: 18px; }
    .tw-ctas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
    .tw-ctas::-webkit-scrollbar { display: none; }
    .tw-cta { flex: 0 0 82%; scroll-snap-align: start; padding: 16px; }
    .tw-card-vermas { min-width: 0; }
    .tw-marca-item { width: 120px; height: 64px; }
    /* ficha y pedido como hoja desde abajo */
    .tw-capa.es-ficha .tw-panel, .tw-capa.es-lateral .tw-panel {
        top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 94%; height: auto;
        border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1;
    }
    .tw-capa.es-lateral .tw-panel { height: 94%; }
    .tw-capa.es-ficha.is-on .tw-panel, .tw-capa.es-lateral.is-on .tw-panel { transform: none; }
    .tw-galeria-foto { aspect-ratio: 4 / 3; }
    .tw-opciones { grid-template-columns: 1fr; }
    .tw-campos-2 { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .tw-grid { gap: 8px; }
    .tw-hbtn { padding: 0 8px; }
}

/* ---------- cobro online (Mercado Pago) ---------- */
.tw-opciones.is-3 { grid-template-columns: 1fr; }
.tw-opcion small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.tw-opcion.is-mp { grid-column: 1 / -1; }
.tw-mp-logo { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #00b1ea; color: #fff; font-size: 11px; font-weight: 800; }
.tw-btn-wa.is-mp { background: #009ee3; }

/* Bloque "Nosotros": datos destacados y botón */
.tw-acerca-datos { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tw-acerca-datos li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #eef2f7; background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); }
.tw-acerca-datos .tw-ico { width: 15px; height: 15px; }
.tw-acerca-btn { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; }

/* Nave (Galicia) */
.tw-mp-logo.is-nave { background: #6a2bd9; font-size: 9px; }
.tw-btn-wa.is-mp.is-nave { background: #6a2bd9; }
