/* OnElectronic — tienda mayorista. Mobile-first, sin dependencias externas. */
:root {
  /* Paleta: negro y blanco como el logo + un solo color de acento (azul). */
  --ink: #0a0b0d;
  --ink-2: #111317;
  --ink-3: #1b1e24;
  --edge: #2a2e36;
  --accent: #2563eb;
  --accent-d: #1d4ed8;
  --accent-l: #8fb0ff;
  --accent-soft: #eef3ff;
  --sale: #dc2626;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #111318;
  --muted: #5f6673;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --ok: #15803d;
  --err: #dc2626;
  --wa: #25d366;
  --r: 14px;
  --shadow: 0 1px 2px rgba(10, 11, 13, .05), 0 4px 16px rgba(10, 11, 13, .05);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.5; font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3.4vw, 1.7rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Barra superior de confianza ---------- */
.topbar { background: #000; color: #c4c9d2; border-bottom: 1px solid var(--edge); font-size: .78rem; font-weight: 600; letter-spacing: .01em; overflow: hidden; }
.topbar .track { display: flex; gap: 28px; white-space: nowrap; padding: 6px 0; animation: ticker 32s linear infinite; width: max-content; }
.topbar span::before { content: "✓ "; color: var(--accent-l); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .topbar .track { animation: none; } }

/* ---------- Header ---------- */
.header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--edge); }
.header .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.logo-img { height: 50px; width: auto; display: block; }
.logo-tag { font-size: .62rem; font-weight: 800; color: #c4c9d2; background: transparent; border: 1px solid #3a3f49; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; align-self: center; }
.logo-foot .logo-img { height: 64px; }
@media (min-width: 860px) { .logo-img { height: 56px; } }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .95rem; letter-spacing: -.04em; }
.logo small { display: block; font-size: .62rem; font-weight: 600; color: var(--accent-l); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.search { flex: 1; display: none; }
.search form { display: flex; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.search form:focus-within { box-shadow: 0 0 0 3px rgba(37,99,235,.45); }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); outline: none; padding: 10px 16px; font-size: .95rem; min-width: 0; }
.search input::placeholder { color: #6b7280; }
.search input:focus { box-shadow: none; }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 18px; margin: 4px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.search-m { padding: 0 0 10px; }
.search-m .search { display: block; }
.h-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: .9rem; }
.btn-cart .count { background: #fff; color: var(--accent-d); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .75rem; padding: 0 6px; }
.h-link { color: #d1d5db; text-decoration: none; font-size: .9rem; font-weight: 600; display: none; }
.h-link:hover { color: #fff; }
@media (min-width: 860px) {
  .search { display: block; max-width: 520px; }
  .search-m { display: none; }
  .h-link { display: inline; }
}

.catnav { background: var(--ink-2); border-top: 1px solid var(--edge); }
.catnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { flex-shrink: 0; color: #c4c9d2; text-decoration: none; font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); }
.catnav a:hover, .catnav a.on { color: var(--ink); background: #fff; border-color: #fff; }
.catnav a.hot { color: #ff8a8a; border-color: rgba(255,110,110,.45); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 13px 20px; font-size: 1rem; line-height: 1.1; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-cyan { background: var(--accent); color: #fff; }
.btn-cyan:hover { background: var(--accent-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 120% at 100% 0%, #16223d 0%, var(--ink) 58%); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(37,99,235,.20), transparent 65%); pointer-events: none; }
.hero .pill { display: inline-block; background: rgba(255,255,255,.05); color: #d1d5db; border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.7rem, 6vw, 3rem); max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent-l); }
.hero p.lead { color: #b9bfca; font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 620px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero .ctas .btn { flex: 1 1 220px; max-width: 300px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; max-width: 620px; }
.hero-stats div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px; }
.hero-stats b { display: block; font-size: 1.15rem; color: #fff; }
.hero-stats span { font-size: .75rem; color: #9aa1ad; }

/* ---------- Confianza ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust .t { background: var(--card); border-radius: var(--r); padding: 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); }
.trust .t .i { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; flex-shrink: 0; }
.trust .t b { display: block; font-size: .92rem; }
.trust .t span { font-size: .8rem; color: var(--muted); line-height: 1.35; display: block; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .trust { grid-template-columns: repeat(6, 1fr); } .trust .t { flex-direction: column; } }
.trust-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); margin: 12px 0; }
.trust-mini span::before { content: "✓"; color: var(--ok); font-weight: 900; margin-right: 5px; }

/* ---------- Secciones ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; font-weight: 700; color: var(--accent-d); text-decoration: none; white-space: nowrap; }

.promos { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .promos { grid-template-columns: repeat(2, 1fr); } }
.promo { display: block; text-decoration: none; border-radius: var(--r); padding: 20px; color: #fff; background: linear-gradient(135deg, var(--ink-3), var(--ink)); position: relative; overflow: hidden; min-height: 120px; }
.promo:nth-child(2n) { background: linear-gradient(135deg, #15213b, var(--ink)); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.promo > * { position: relative; }
.promo .tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--sale); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.promo h3 { font-size: 1.2rem; margin-bottom: 4px; }
.promo p { color: #c4c9d2; margin: 0 0 8px; font-size: .92rem; }
.promo .go { font-weight: 700; color: var(--accent-l); font-size: .9rem; }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cats a { background: var(--card); border-radius: var(--r); padding: 14px; text-decoration: none; font-weight: 700; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; }
.cats a span { color: var(--muted); font-weight: 500; font-size: .8rem; }
.cats a:hover { outline: 2px solid var(--accent); }

/* ---------- Grilla de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 680px) { .scroller { grid-auto-columns: 31%; } }
@media (min-width: 1000px) { .scroller { grid-auto-columns: 23.5%; } }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.card .media { aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); position: relative; display: block; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--soft), #e7e9ed); color: #8a909b; text-align: center; padding: 12px; }
.ph svg { width: 34%; height: auto; opacity: .55; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; width: fit-content; }
.badge.new { background: var(--accent); color: #fff; }
.badge.offer { background: var(--sale); color: #fff; }
.badge.combo { background: var(--ink-3); }
.badge.out { background: #6b7280; }
.badge.best { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.card h3 { font-size: .92rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { text-decoration: none; }
.card .sku { font-size: .72rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price b { font-size: 1.2rem; font-weight: 900; color: var(--ink); }
.price s { color: var(--muted); font-size: .85rem; }
.price .u { font-size: .72rem; color: var(--muted); }
.card .from { font-size: .75rem; color: var(--ok); font-weight: 700; }
.card .min { font-size: .75rem; color: var(--muted); }
.card .btn { margin-top: 8px; padding: 10px; font-size: .88rem; }
.card-buy { margin-top: 8px; display: grid; gap: 8px; }
.card-buy .btn { margin-top: 0; }
.card-buy .stepper { width: 100%; border-radius: 10px; }
.card-buy .stepper button { width: 42px; flex-shrink: 0; font-size: 1.25rem; padding: 0; }
.card-buy .stepper button:hover { background: #e5e7eb; }
.card-buy .stepper input { flex: 1; width: auto; min-width: 0; padding: 8px 0; font-size: 1rem; }
@media (min-width: 1000px) { .card-buy { grid-template-columns: 1fr 1fr; align-items: stretch; } .card-buy .stepper button { width: 34px; } }

/* ---------- Catálogo ---------- */
.page-head { padding: 22px 0 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 16px; }
.chip { text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters select { margin-left: auto; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .85rem; }
.empty { background: var(--card); border-radius: var(--r); padding: 30px 20px; text-align: center; box-shadow: var(--shadow); }

/* ---------- Página de producto ---------- */
.crumbs { font-size: .8rem; color: var(--muted); padding: 14px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--accent-d); }
.pdp { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; } .pdp .gallery { position: sticky; top: 130px; } }
.gallery .main { background: var(--card); border-radius: var(--r); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); position: relative; }
.gallery .main > * { width: 100%; height: 100%; object-fit: contain; background: #fff; border: 0; }
.gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.gallery .thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; position: relative; }
.gallery .thumbs button.on { border-color: var(--accent); }
.gallery .thumbs img, .gallery .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,18,32,.45); color: #fff; font-size: 1.2rem; }
.real-media { font-size: .78rem; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.buybox { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.buybox h1 { font-size: clamp(1.3rem, 3.6vw, 1.8rem); }
.buybox .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.buybox .meta b { color: var(--text); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--err); }
.bigprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 2px; }
.bigprice b { font-size: 2rem; font-weight: 900; }
.bigprice s { color: var(--muted); }
.bigprice .u { color: var(--muted); font-size: .85rem; }
.iva { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.tiers { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; border-radius: 10px; overflow: hidden; }
.tiers th, .tiers td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.tiers th { background: var(--soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tiers tr.on td { background: var(--accent-soft); font-weight: 800; }
.tiers .save { color: var(--ok); font-weight: 700; font-size: .8rem; }
.qtybox { display: flex; gap: 10px; align-items: stretch; margin: 14px 0 6px; flex-wrap: wrap; }
.stepper { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 46px; border: 0; background: var(--soft); font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.stepper input { width: 74px; text-align: center; border: 0; font-size: 1.1rem; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtybox .btn { flex: 1; min-width: 180px; }
.qty-hint { font-size: .82rem; color: var(--muted); }
.line-total { font-size: .95rem; margin: 8px 0 12px; }
.line-total b { font-size: 1.1rem; }
.actions-col { display: grid; gap: 8px; }
.desc { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-top: 18px; }
.desc ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.desc li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.desc li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 900; }
.desc .text { white-space: pre-line; }
.warranty { background: var(--soft); border: 1px solid var(--line); color: #374151; border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin-top: 10px; }
.restock { background: var(--soft); border-radius: 12px; padding: 14px; margin-top: 10px; }
.restock form { display: grid; gap: 8px; }
@media (min-width: 520px) { .restock form { grid-template-columns: 1fr 1fr auto; } }

/* sticky de compra en celular */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; box-shadow: 0 -6px 20px rgba(11,18,32,.08); transform: translateY(110%); transition: transform .2s; }
.buybar.show { transform: none; }
.buybar .p { flex: 1; min-width: 0; }
.buybar .p b { display: block; font-size: 1.05rem; }
.buybar .p span { font-size: .75rem; color: var(--muted); }
@media (min-width: 900px) { .buybar { display: none; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 12px; }
.form .two { display: grid; gap: 12px; }
@media (min-width: 600px) { .form .two { grid-template-columns: 1fr 1fr; } }
label { font-weight: 700; font-size: .85rem; display: block; margin-bottom: 4px; }
label .opt { font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--ink); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.checks label { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; margin: 0; }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.hp { position: absolute; left: -9999px; }
.panel { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; gap: 18px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1.35fr 1fr; align-items: start; } .cart-layout .summary { position: sticky; top: 130px; } }
.cline { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline .thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cline .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cline h3 { font-size: .95rem; margin: 0 0 2px; }
.cline h3 a { text-decoration: none; }
.cline .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; justify-content: space-between; }
.cline .stepper button { width: 36px; font-size: 1.1rem; }
.cline .stepper input { width: 58px; font-size: 1rem; padding: 6px 0; }
.cline .rm { border: 0; background: none; color: var(--err); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cline .tip { font-size: .78rem; color: var(--ok); margin-top: 4px; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; padding: 12px 0; border-top: 2px solid var(--ink); margin-top: 4px; }
.totals b { font-size: 1.5rem; }
.note { background: var(--accent-soft); border: 1px solid #c7d7fe; color: #1e3a8a; border-radius: 10px; padding: 12px; font-size: .86rem; }

/* ---------- Mensajes ---------- */
.flashes { margin: 14px auto 0; display: grid; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; }
.flash.ok { background: #e9fbf2; color: #0b6b43; border: 1px solid #b6ecd2; }
.flash.error { background: #fdecec; color: #9b1c1c; border: 1px solid #f6c3c3; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: .92rem; z-index: 60; opacity: 0; pointer-events: none; transition: all .2s; display: flex; gap: 12px; align-items: center; width: max-content; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast a { color: var(--accent-l); white-space: nowrap; }
.toast.err { background: var(--err); }

/* ---------- Bloques de captación ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%); }
.cta-band p { color: #b9bfca; margin: 0; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 32px; } .cta-band .btns { justify-content: flex-end; } }
.sub-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.sub-box form { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 760px) { .sub-box form { grid-template-columns: 1fr 1fr auto; align-items: end; } .sub-box form .check { grid-column: 1 / -1; } }
.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps div { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); counter-increment: s; }
.steps div::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 8px; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .88rem; }

/* ---------- Footer y WhatsApp flotante ---------- */
.footer { background: var(--ink); color: #9aa1ad; margin-top: 40px; padding: 30px 0 calc(90px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } .footer { padding-bottom: 30px; } }
.footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.footer a { color: #d1d5db; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .legal { border-top: 1px solid var(--edge); margin-top: 22px; padding-top: 14px; font-size: .78rem; }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .lbl { position: absolute; right: 66px; background: #fff; color: var(--ink); font-weight: 700; font-size: .8rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow); }
body.has-buybar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-buybar .wa-float { bottom: 18px; } }
@media (max-width: 520px) { .wa-float .lbl { display: none; } }

.success { text-align: center; padding: 30px 20px; }
.success .check-ic { width: 72px; height: 72px; border-radius: 50%; background: #e9fbf2; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 2.2rem; font-weight: 900; }
.success .num { display: inline-block; background: var(--ink); color: #fff; font-weight: 900; padding: 8px 16px; border-radius: 10px; font-size: 1.2rem; letter-spacing: .04em; margin: 6px 0 14px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }

/* ---------- Carrusel de redes y canales ---------- */
.social .section-head { align-items: flex-end; }
.car-nav { display: none; gap: 6px; }
.car-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); }
.car-nav button:hover { background: var(--ink); color: #fff; }
@media (min-width: 760px) { .car-nav { display: flex; } }
.car { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.car::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .car { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .car { grid-auto-columns: calc((100% - 36px) / 4); } }
.scard { scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 18px; padding: 18px; min-height: 190px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--edge); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; isolation: isolate; }
.scard:hover { transform: translateY(-2px); border-color: var(--brand, var(--edge)); }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .35; }
.scard::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--brand, #fff); opacity: .10; z-index: -1; }
.scard .s-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand, rgba(255,255,255,.18)); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.scard .s-ic .ico { width: 28px; height: 28px; }
.scard .s-pl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa1ad; }
.scard .s-t { font-size: 1.15rem; line-height: 1.2; }
.scard .s-d { font-size: .88rem; color: #b9bfca; line-height: 1.35; }
.scard .s-b { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .9rem; color: #fff; }
.scard .s-b::before { content: ""; }
.p-whatsapp_channel, .p-whatsapp_group { --brand: #25d366; }
.p-instagram { --brand: #e1306c; }
.p-instagram .s-ic, .soc-icons a.p-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7) !important; }
.p-tiktok { --brand: #fe2c55; }
.p-tiktok .s-ic, .soc-icons a.p-tiktok { background: #000 !important; box-shadow: inset 0 0 0 1px #3a3f49, -2px 0 0 #25f4ee, 2px 0 0 #fe2c55; }
.p-facebook { --brand: #1877f2; }
.p-youtube { --brand: #ff0000; }
.p-telegram { --brand: #2aabee; }
.p-web { --brand: var(--accent); }
.soc-icons a { background: var(--brand, var(--ink-3)); }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.car-dots span { width: 7px; height: 7px; border-radius: 999px; background: #c9d1df; transition: all .2s; }
.car-dots span.on { width: 22px; background: var(--ink); }
.soc-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.soc-icons a { width: 38px; height: 38px; border-radius: 10px; display: grid !important; place-items: center; color: #fff; padding: 0 !important; }
.soc-icons a .ico { width: 20px; height: 20px; }
.scard.s-missing { outline: 3px dashed #ffb400; outline-offset: -3px; }
.scard .s-warn { position: absolute; top: 10px; right: 10px; background: #ffb400; color: #0b1220; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
