/* IMPULSO · estilos de la app (misma línea gráfica del Catálogo 2026) */
:root {
  --ink: #0b0b0b; --ink-2: #131313; --card: #171717; --card-2: #1e1e1e; --line: #2a2a2a; --line-2: #3a3a3a;
  --text: #f2f3f5; --muted: #9a9ea5; --silver: #c9ccd1;
  --gold: #d4a945; --gold-hi: #f3dc8a; --gold-ink: #1a1405; --gold-line: #6b5420;
  --ok-bg: #16281a; --ok: #a9d8a0; --bad-bg: #2e1515; --bad: #f3b0a8; --warn-bg: #3a2f12; --warn: #f0d68a;
  --radius: 14px; --radius-sm: 9px;
  --font: "Barlow", "Bahnschrift", "Segoe UI", Arial, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Bahnschrift", "Segoe UI", Arial, sans-serif;
  --maxw: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--ink); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tipografia de marca */
.metal { background: linear-gradient(180deg, #fff 0%, #c9ccd1 48%, #8f949b 60%, #f2f3f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.gold { color: var(--gold-hi); }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--font-cond); line-height: 1.1; letter-spacing: .3px; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }

/* estructura */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* barra superior */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 11, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--silver); font-size: 15px; }
.nav a.on, .nav a:hover { color: var(--text); background: var(--card); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; }
.cart-btn .count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--ink-2); flex-direction: column; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-flex; }
}

/* botones y etiquetas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .08s ease, background .15s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--card); }
.btn-ghost { color: var(--silver); padding: 8px 10px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); }
.tag-line { border: 1px solid var(--line-2); color: var(--silver); }
.code { position: absolute; top: 8px; left: 8px; background: rgba(11, 11, 11, .88); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 2px 7px; border-radius: 5px; }

/* tarjetas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.grid-coll { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-coll { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* portada */
.hero { position: relative; min-height: min(78vh, 620px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 2px solid var(--gold); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 34px; padding-top: 80px; }
.hero h1 { max-width: 640px; }
.hero p { max-width: 560px; color: var(--silver); margin-top: 10px; font-size: 18px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge-new { display: inline-block; margin-bottom: 14px; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; letter-spacing: 1px; }

/* estadisticas */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: -1px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-family: var(--font-cond); font-size: 34px; line-height: 1; color: var(--gold-hi); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats .stat:last-child { grid-column: span 2; } }

/* aviso oficial */
.official { display: flex; align-items: center; gap: 12px; border: 1px solid var(--gold-line); background: #15120a; border-radius: var(--radius); padding: 14px 16px; }
.official .ico { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--warn-bg); color: var(--gold-hi); display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* galeria de envios */
.shipments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ship { position: relative; border-radius: 12px; overflow: hidden; background: var(--card-2); aspect-ratio: 1; }
.ship img { width: 100%; height: 100%; object-fit: cover; }
.ship .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 12px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
@media (max-width: 760px) { .shipments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

/* nosotros */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.about .photo { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--card-2); }
.about .photo-ph { width: 220px; height: 220px; border-radius: 50%; border: 3px solid var(--gold); background: var(--card-2); display: flex; align-items: center; justify-content: center; }
.about .photo-ph img { width: 60%; opacity: .6; }
@media (max-width: 680px) { .about { grid-template-columns: 1fr; text-align: center; } .about .photo, .about .photo-ph { margin: 0 auto; width: 160px; height: 160px; } }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✔"; color: var(--gold); font-weight: 700; }
@media (max-width: 680px) { .checks li { justify-content: center; text-align: left; } }

/* opiniones */
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review .stars { color: var(--gold-hi); letter-spacing: 2px; }
.review p { margin: 8px 0; }

.tag-fb { background: #16233d; color: #9fbaf0; }
.reply { margin-top: 10px; border-left: 3px solid var(--gold); padding: 6px 10px; background: var(--ink-2); border-radius: 0; font-size: 14px; }
.reply b { color: var(--gold-hi); font-size: 12px; letter-spacing: .5px; display: block; }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.comment + .comment { margin-top: 10px; }
.comment p { margin-top: 6px; }

/* ficha de producto */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 12px; align-items: start; }
@media (max-width: 820px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.pdp-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #eee; border: 1px solid var(--line); }
.pdp-img img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.pdp-img .code { font-size: 13px; top: 12px; left: 12px; }
.tagline { font-size: 18px; color: var(--gold-hi); font-style: italic; margin-top: 6px; }
.chips-q { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips-q button { font-size: 13px; padding: 6px 10px; cursor: pointer; }
.chips-q button:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-wa { background: #1faa53; color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.ask-link { font-size: 13px; color: var(--silver); text-align: center; margin-top: 6px; }
.ask-link:hover { color: var(--gold-hi); }
.mini-prod { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--silver); }
.mini-prod img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* nuestro espacio */
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.space-item { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.space-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.space-item figcaption { padding: 8px 12px; font-size: 14px; color: var(--silver); }

/* catalogo */
.coll-head { background: radial-gradient(120% 140% at 0% 0%, #262626 0%, #0d0d0d 60%); border: 1px solid var(--line); border-bottom: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.coll-head h2 { font-size: clamp(30px, 5vw, 44px); }
.coll-head p { color: #cfd2d6; margin-top: 4px; }
.chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chip { background: #fff; color: #111; border-radius: 10px; padding: 6px 12px; text-align: right; min-width: 140px; }
.chip small { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #555; }
.chip b { font-family: var(--font-cond); font-size: 24px; line-height: 1; }
.chip.gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }
.chip.gold small { color: #4a3a10; }
@media (max-width: 560px) { .chips { flex-direction: row; align-items: stretch; width: 100%; } .chip { flex: 1; min-width: 0; } }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 9px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; color: var(--silver); }
.tab.on { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.search { flex: 1; min-width: 200px; position: relative; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); }
.search span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.mayor-hint { font-size: 14px; color: var(--silver); }
.mayor-hint b { color: var(--gold-hi); }

.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.prod .ph { position: relative; aspect-ratio: 1; background: #eee; overflow: hidden; }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.prod:hover .ph img { transform: scale(1.04); }
.prod .ph .flag { position: absolute; right: 8px; top: 8px; }
.prod.out .ph img { filter: grayscale(1) brightness(.45); }
.prod.out .ph::after { content: "AGOTADO"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 2px; color: #fff; font-size: 18px; }
.prod .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price s { color: var(--muted); font-size: 13px; }
.price b { font-family: var(--font-cond); font-size: 22px; }
.price-mayor { font-size: 12.5px; color: var(--muted); }
.price-mayor b { color: var(--gold-hi); }
.prod .add { margin-top: auto; padding-top: 6px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 38px; font-size: 20px; color: var(--gold-hi); }
.qty span { flex: 1; text-align: center; font-weight: 700; }

/* carrito */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--ink-2); border-left: 1px solid var(--line); z-index: 61; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; } .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 16px; }
.line-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.line-item .qty { width: 110px; } .line-item .qty button { width: 32px; height: 32px; font-size: 18px; }
.drawer footer { padding: 16px; border-top: 1px solid var(--line); background: var(--ink); }
.totals { display: flex; justify-content: space-between; align-items: baseline; }
.totals b { font-family: var(--font-cond); font-size: 30px; color: var(--gold-hi); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transition: width .25s; }

/* formularios */
.field { display: grid; gap: 6px; margin-top: 12px; }
.field label { font-size: 14px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--ink); border: 1px solid var(--line-2); }
.input:focus { border-color: var(--gold); outline: none; }
textarea.input { min-height: 90px; resize: vertical; }
.err { color: var(--bad); font-size: 14px; margin-top: 8px; }
.note { font-size: 13px; color: var(--muted); }

/* rastreo */
.track-box { max-width: 560px; margin: 0 auto; }
.timeline { margin-top: 14px; border-left: 2px solid var(--line-2); padding-left: 18px; display: grid; gap: 14px; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #555; background: var(--ink); }
.step.done::before { background: var(--gold); border-color: var(--gold); }
.step.done { color: var(--text); } .step:not(.done) { color: var(--muted); }
.step small { color: var(--muted); }
.evid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.evid figure { border-radius: 10px; overflow: hidden; background: var(--card-2); }
.evid img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.evid figcaption { font-size: 12px; color: var(--muted); padding: 6px 8px; }

/* pie */
footer.site { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 90px; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site img { height: 30px; margin-bottom: 8px; }
.fab-wa { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #1faa53; color: #fff; border-radius: 30px; padding: 12px 18px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
@media (max-width: 760px) { .fab-wa { padding: 14px; border-radius: 50%; } .fab-wa .fab-label { display: none; } }

/* modal / visor de fotos */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal-bg img { max-height: 88vh; border-radius: 12px; }
.modal { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); width: min(640px, 100%); max-height: 92vh; overflow-y: auto; padding: 18px; }

/* aviso flotante */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: #222; border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 12px; z-index: 90; opacity: 0; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* banda modo demo */
.demo-band { background: #2a1f00; color: var(--warn); text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid var(--gold-line); }
