:root {
  --bg: #F5F0E3; --panel: #FFFFFF; --card: #FFFFFF; --text: #1B1A17; --muted: #5E5848; --line: #E2DAC6; --field: #E6DEC9;
  --accent: #FFCC00; --onAccent: #1B1A17; --star: #C99700; --starOff: #D8D0BB; --ok: #1F6B34; --bad: #A3271B; --focus: #1A5FB4; --photo: #EFE8D4; --shadow: 0 1px 2px rgba(27,26,23,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16181D; --panel: #1E2128; --card: #262A33; --text: #F2F0EA; --muted: #A9ADB8; --line: #343944; --field: #0F1115; --accent: #FFCC00; --onAccent: #14130F; --star: #FFCC00; --starOff: #4A4F5C; --ok: #5CC77A; --bad: #F08A7E; --focus: #7DB3F5; --photo: #2F343F; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 3rem 1rem; } .small { font-size: .85rem; }
.wm { font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.5px; line-height: 1; text-decoration: none; }
.wm .a { color: #F2B700; } .wm .b { color: var(--text); }

.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .in { max-width: 72rem; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 .4rem 0 1.1rem; border-radius: 999px; background: var(--field); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: .95rem; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.go { border: 0; border-radius: 999px; background: var(--accent); color: var(--onAccent); font-weight: 600; height: 38px; padding: 0 1.1rem; cursor: pointer; }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.pill.on { background: var(--accent); color: var(--onAccent); border-color: transparent; font-weight: 600; }

main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hero { padding: 2.5rem 0 .5rem; text-align: center; display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; font-weight: 600; max-width: 22ch; }
.hero p { max-width: 40ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.band { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; border: 0; background: var(--accent); color: var(--onAccent); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.plain { background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.sec h2 { font-size: 1.2rem; font-weight: 600; } .sub { margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.fam { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
.famc { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; box-shadow: var(--shadow); }
.famc[aria-pressed="true"] { border-color: var(--accent); outline: 2px solid var(--accent); }
.famc b { font-weight: 600; font-size: .9rem; } .famc span { font-size: .78rem; color: var(--muted); }
.foot { font-size: .78rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.card:hover { border-color: var(--accent); }
.ph { position: relative; aspect-ratio: 1 / 1; background: var(--photo); display: grid; place-items: center; color: var(--muted); }
.ph svg { width: 2.5rem; height: 2.5rem; opacity: .5; }
.dist { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: 999px; background: rgba(20,19,15,.78); color: #fff; font-size: .7rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb { display: flex; flex-direction: column; gap: .35rem; padding: .75rem .65rem .85rem; flex: 1; }
.ct { font-size: .9rem; font-weight: 500; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); min-width: 0; }
.shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver { color: var(--ok); font-weight: 600; }
.rate { font-size: .78rem; color: var(--muted); } .rate .st { color: var(--star); letter-spacing: 1px; }
.price { margin-top: auto; font-weight: 600; }

.msg { padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.msg.err { border-color: var(--bad); color: var(--bad); }
.recruit { border-color: var(--accent); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }

.auth { max-width: 26rem; margin: 4vh auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.4rem; font-weight: 600; }
.auth label { font-weight: 500; font-size: .9rem; }
.auth input { width: 100%; height: 48px; padding: 0 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); }
footer { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 520px) { .top .in { flex-wrap: wrap; gap: .5rem; } .wm { font-size: 22px; margin-right: auto; } .search { order: 3; flex-basis: 100%; } .pill .lbl { display: none; } .pill.near { padding: 0 .85rem; } .grid { gap: .65rem; } }

.auth.wide { max-width: 34rem; }
.auth select, .auth textarea { width: 100%; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; }
.auth select { height: 48px; padding: 0 .8rem; }
.auth textarea { resize: vertical; min-height: 7rem; }
.auth .row, .reqcard .row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.reqform label { display: block; margin-top: .5rem; }
.reqform .row input { flex: 1; min-width: 8rem; }
.reqcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--shadow); }
.tag { display: inline-block; border-radius: 1rem; padding: 0 .6rem; font-size: .8rem; border: 1px solid var(--line); }
.tag.ok { color: var(--ok); border-color: var(--ok); }

.stack { display: flex; flex-direction: column; gap: .75rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact { border-color: var(--ok); }
.contact .btn { min-height: 44px; }

/* the shop wizard (D-198 7) */
.wizard { max-width: 44rem; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: .85rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.step { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .75rem; color: var(--muted); text-align: center; }
.step .n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
.step.on { color: var(--text); font-weight: 600; } .step.on .n { background: var(--accent); color: var(--onAccent); border-color: transparent; }
.step.done .n { background: var(--ok); color: #fff; border-color: transparent; }
.wcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow); }
.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .3rem; } .flabel { font-weight: 500; font-size: .9rem; } .hint { color: var(--muted); font-size: .8rem; margin: 0; }
.inp { width: 100%; min-height: 44px; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: inherit; }
textarea.inp { resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; } .opt { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.opt.on { background: var(--accent); color: var(--onAccent); border-color: transparent; font-weight: 600; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; } .check input { width: 1.4rem; height: 1.4rem; margin-top: .1rem; flex: none; }
.upl { display: flex; gap: .8rem; align-items: flex-start; border: 1px dashed var(--line); border-radius: 14px; padding: .8rem; } .upl.solid { border-style: solid; align-items: center; }
.logo { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: var(--onAccent); font-weight: 700; flex: none; }
.thumb { max-width: 100%; max-height: 8rem; border-radius: 10px; margin-top: .5rem; display: block; } .preview { margin-top: .4rem; }
.mapbox { display: grid; place-items: center; gap: .3rem; min-height: 8rem; border-radius: 14px; background: var(--photo); text-align: center; padding: 1rem; } .pinmark { font-size: 2.2rem; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; background: var(--field); word-break: break-all; }
.qr { width: 9rem; height: 9rem; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; list-style: none; padding: 0; } .list .warn { color: var(--bad); }
.wnav { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; } .wnav .btn:last-child { margin-left: auto; }
.msg.warn { border-color: var(--star); }

/* Mis productos */
.eh { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: flex-end; }
.plist { display: flex; flex-direction: column; gap: .6rem; }
.prod { display: grid; grid-template-columns: 4rem 1fr; gap: .4rem .8rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; box-shadow: var(--shadow); }
.pthumb { width: 4rem; height: 4rem; border-radius: 10px; object-fit: cover; background: var(--photo); } .ph0 { display: grid; place-items: center; color: var(--muted); } .ph0 svg { width: 1.6rem; height: 1.6rem; opacity: .5; }
.pt1 { display: flex; flex-direction: column; min-width: 0; } .pt1 b { overflow-wrap: anywhere; }
.pmeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .pmeta .price { font-weight: 600; margin-right: auto; }
.pe { display: grid; gap: 1rem; grid-template-columns: 1fr; } .prevcol { order: -1; display: flex; flex-direction: column; gap: .6rem; } .prevcol .card { max-width: 14rem; }
@media (min-width: 900px) { .pe { grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; } .prevcol { order: 0; position: sticky; top: 6.5rem; } .prod { grid-template-columns: 4rem 1fr auto; } .pmeta { grid-column: auto; } }
.ecard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow); } .ecard h3 { font-size: 1rem; }
.ehead { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pslots { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .6rem; }
.pslot { position: relative; aspect-ratio: 1 / 1; border: 1px dashed var(--line); border-radius: 12px; background: var(--field); color: var(--muted); display: grid; place-items: center; font: inherit; cursor: pointer; overflow: hidden; padding: 0; } .pslot.fill { border-style: solid; cursor: default; }
.pslot img { width: 100%; height: 100%; object-fit: cover; } .mainb { position: absolute; left: 6px; bottom: 6px; background: rgba(20,19,15,.78); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; }
.x { position: absolute; top: 4px; right: 4px; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 0; background: rgba(20,19,15,.78); color: #fff; cursor: pointer; line-height: 1; } .tag .x { position: static; width: 1.3rem; height: 1.3rem; margin-left: .3rem; background: var(--line); color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; } .results { display: flex; flex-wrap: wrap; gap: .4rem; }
.cover { width: 100%; height: 100%; object-fit: cover; } .lockbox { background: var(--field); border-radius: 12px; padding: .8rem 1rem; }
.msg.ok { border-color: var(--ok); color: var(--ok); } .msg.note { font-size: .85rem; } .tag.bad { color: var(--bad); border-color: var(--bad); } .tag.warn { color: var(--star); border-color: var(--star); }
.btn.danger { color: var(--bad); border-color: var(--bad); } .card .price { margin-top: auto; font-weight: 600; }

/* the public shop and product pages (D-198 4 and 5) */
.shophead { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.banner { height: 9rem; background: var(--photo); } .banner .cover { width: 100%; height: 100%; object-fit: cover; }
.who { display: flex; gap: .9rem; padding: 0 1rem 1rem; margin-top: -2rem; align-items: flex-end; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; border: 4px solid var(--panel); background: var(--accent); color: var(--onAccent); font-weight: 700; font-size: 1.4rem; overflow: hidden; flex: none; }
.avatar.sm { width: 3.2rem; height: 3.2rem; border-width: 2px; font-size: 1rem; } .avatar .cover, .ph .cover { width: 100%; height: 100%; object-fit: cover; }
.btn.wa { background: #1F9D55; color: #fff; } .btn.wa[disabled] { opacity: .6; }
.prodpage { display: grid; gap: 1.25rem; grid-template-columns: 1fr; } .prodpage > section, .prodpage > div:last-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .prodpage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.gallery { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--photo); border: 1px solid var(--line); display: grid; place-items: center; } .gallery .cover { width: 100%; height: 100%; object-fit: cover; }
.ph0.big { width: 100%; height: 100%; } .ph0.big svg { width: 4rem; height: 4rem; }
.strip { display: flex; gap: .5rem; flex-wrap: wrap; } .strip .pslot { width: 4.2rem; height: 4.2rem; aspect-ratio: auto; } .pslot.sel { border: 2px solid var(--accent); }
.price.big { font-size: 1.6rem; font-weight: 600; }
.seller { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; } .seller:hover { border-color: var(--accent); }
.reply { border-left: 3px solid var(--accent); padding-left: .7rem; margin-top: .3rem; }

/* the five sections of TopNica (D-205): the strip under the header, the tag next to the wordmark and the cards on the home of topnica.com */
.portaltag { margin-left: .4rem; font-family: system-ui, sans-serif; font-weight: 600; font-size: .7rem; letter-spacing: 0; padding: .15rem .5rem; border-radius: 999px; background: var(--accent); color: var(--onAccent); vertical-align: middle; }
.sections { border-bottom: 1px solid var(--line); background: var(--panel); }
.sections .in { display: flex; gap: .5rem; padding: .5rem 1rem; overflow-x: auto; max-width: 72rem; margin: 0 auto; scrollbar-width: thin; }
.sections .pill { height: 36px; font-size: .8rem; flex: none; }
.portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.portalc { display: flex; flex-direction: column; gap: 2px; padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.portalc b { font-weight: 600; } .portalc span { font-size: .8rem; color: var(--muted); }
.portalc:hover, .portalc:focus-visible { border-color: var(--accent); }

/* «Denunciar» (founder, 2026-10-27): a quiet link-like button, a short form, nothing loud */
.linkbtn { background: none; border: 0; padding: .25rem 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; min-height: 44px; }
.linkbtn:hover, .linkbtn:focus-visible { color: var(--text); }
.reportblock { margin-top: 1rem; } .reportform .radio { display: flex; gap: .5rem; align-items: flex-start; padding: .35rem 0; } .reportform textarea { width: 100%; font: inherit; padding: .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
