:root {
  color-scheme: dark;
  --bg: #050a0f;
  --panel: #09121b;
  --panel-2: #0d1822;
  --line: rgba(164, 188, 211, .18);
  --line-strong: rgba(202, 219, 233, .32);
  --text: #f4f7fa;
  --muted: #aab7c4;
  --red: #80ed1c;
  --red-dark: #488e07;
  --red-glow: rgba(128,237,28, .28);
  --silver: #d9e1e8;
  --sidebar: 252px;
  --topbar: 74px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 80% 0, #122232 0, var(--bg) 38%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: white; color: black; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }

#app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(18,10,14,.98), rgba(4,12,18,.99) 22%, rgba(3,10,15,.99)); border-right: 1px solid rgba(128,237,28,.35); box-shadow: 10px 0 30px rgba(0,0,0,.22); }
.sidebar::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--red); box-shadow: 0 -2px 18px var(--red); }
.sidebar-top { min-height: 146px; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { width: 188px; height: 128px; background: url("referencia-site.png") -51px -3px / 1600px 1000px no-repeat; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
.brand img { width: 100%; height: 128px; object-fit: contain; opacity: 0; }
.icon-button { border: 0; color: var(--text); background: transparent; font-size: 1.45rem; }
.menu-close { display: none; position: absolute; top: 12px; right: 12px; }
.side-nav { flex: 1 1 auto; padding: .35rem 0; overflow: visible; }
.nav-item { min-height: 43px; padding: .6rem 1.55rem; display: flex; align-items: center; gap: .85rem; color: #ccd5df; border-left: 3px solid transparent; font-size: .86rem; transition: .2s ease; }
.nav-item:hover { background: rgba(255,255,255,.045); color: white; }
.nav-item.active { color: white; border-left-color: var(--red); background: linear-gradient(90deg, rgba(128,237,28,.28), rgba(128,237,28,.06)); box-shadow: inset 0 0 28px rgba(128,237,28,.05); }
.nav-icon { width: 24px; text-align: center; font-size: 1.05rem; }
.sidebar-map { flex: 0 0 auto; padding: .55rem 1.5rem .75rem; display: flex; flex-direction: column; color: #8999a8; text-transform: uppercase; letter-spacing: .12rem; font-size: .5rem; line-height: 1.4; }
.sidebar-map strong { color: #c4ced8; font-weight: 500; }

.page-shell { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; min-height: var(--topbar); padding: .9rem 2.6rem; display: flex; align-items: center; gap: 1.4rem; background: rgba(6,14,22,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.menu-open { display: none; }
.search { max-width: 640px; flex: 1; height: 42px; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: .45rem; overflow: hidden; background: rgba(3,9,15,.72); }
.search > span { padding: 0 .8rem; font-size: 1.5rem; transform: rotate(-20deg); }
.search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: white; background: transparent; font-size: .9rem; }
.search button { width: 48px; height: 100%; border: 0; color: white; background: linear-gradient(135deg, #91ff2b, #60c800); font-size: 1.35rem; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 1.3rem; }
.language-control { display: flex; align-items: center; gap: .35rem; }
.language-control select { padding: .45rem .4rem; color: white; border: 0; background: transparent; font-weight: 700; }
.language-control option { color: #111; }
.account-link { display: flex; align-items: center; gap: .65rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.account-link small, .account-link b { display: block; white-space: nowrap; }
.account-link small { font-size: .75rem; color: var(--muted); }
.account-link b { margin-top: .15rem; font-size: .72rem; }
.account-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #dce4eb; background: #253442; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cart-button { position: relative; border: 0; color: white; background: transparent; font-size: 1.25rem; }
.cart-button em { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font: 700 .65rem Inter; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: #7aff00; box-shadow: 0 0 9px rgba(122,255,0,.7); }
#main-content { min-height: 74vh; outline: 0; }
.page-back-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #a4ff50; border-radius: .5rem; color: white; background: linear-gradient(180deg, #95ff34, #59ba00); box-shadow: 0 3px 8px rgba(128,237,28,.3), inset 0 1px rgba(255,255,255,.25); font-size: 1.4rem; line-height: 1; }
.page-back-button:hover { background: #7eee16; }
.page-back-button:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.hero { position: relative; min-height: 300px; display: flex; align-items: center; overflow: hidden; background-color: #03080d; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 146.154%; background: url("puerto-global.png") right center / cover no-repeat; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,8,13,.88) 0%, rgba(3,8,13,.68) 27%, rgba(3,8,13,.16) 60%, rgba(3,8,13,.35) 100%), linear-gradient(0deg, rgba(3,8,13,.72), transparent 70px); pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: min(660px, 58%); padding: 1.75rem 3rem; }
.eyebrow { margin: 0 0 .75rem; color: #d3dce4; font-size: .76rem; text-transform: uppercase; letter-spacing: .2rem; }
.hero h1 { margin: 0; max-width: 600px; font: 700 clamp(2rem, 3.5vw, 3.5rem)/.86 Rajdhani, sans-serif; text-transform: uppercase; letter-spacing: -.03em; text-shadow: 0 3px 22px black; }
.hero .eyebrow { margin-bottom: .6rem; font-size: .68rem; letter-spacing: .17rem; }
.hero .button { width: 164px; height: 38px; min-height: 38px; padding: .6rem 1rem; font-size: .8rem; }
.hero h1 span { display: block; color: var(--red); text-shadow: 0 0 25px rgba(128,237,28,.35); }
.hero-copy { max-width: 510px; margin: .85rem 0 1rem; color: #d4dce4; font-size: .9rem; line-height: 1.45; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.button { min-height: 42px; padding: .7rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--line-strong); border-radius: .5rem; color: white; background: #101b25; font-weight: 700; font-size: .85rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.5); }
.button-primary { border-color: #98ff39; background: linear-gradient(135deg, #81ef1b, #51a800); box-shadow: 0 9px 30px rgba(128,237,28,.25), inset 0 1px rgba(255,255,255,.2); }
.button-ghost { background: #000; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.benefits { min-height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #101922, #091119); }
.benefit { padding: .85rem 1rem; display: flex; align-items: center; justify-content: center; gap: .75rem; color: #d8e1e9; border-right: 1px solid rgba(255,255,255,.05); font-size: .7rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .07rem; }
.benefit span:first-child { font-size: 1.5rem; color: var(--silver); }
.content-section { padding: 1.45rem 1.35rem; }
.section-heading { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-heading h2, .page-header h1 { margin: 0; font: 700 1.35rem Rajdhani, sans-serif; text-transform: uppercase; letter-spacing: .05rem; }
.section-heading h2::before, .page-header h1::before { content: ""; display: inline-block; width: 34px; height: 2px; margin-right: .85rem; vertical-align: middle; background: var(--red); }
.text-link { color: #d7e0e8; font-size: .78rem; }
.text-link:hover { color: white; }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.offer-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .6rem; background: linear-gradient(180deg, #101a23, #08121a); box-shadow: 0 15px 30px rgba(0,0,0,.18); transition: transform .2s, border-color .2s; }
.offer-card:hover { transform: translateY(-3px); border-color: rgba(128,237,28,.48); }
.offer-visual { position: relative; display: block; height: 168px; overflow: hidden; background-image: linear-gradient(180deg, transparent 45%, rgba(4,9,14,.92)), url("puerto-global.png"); background-size: 760px auto; }
.visual-electronics { background-position: 68% 55%; }
.visual-home { background-position: 54% 63%; filter: saturate(.75) hue-rotate(170deg); }
.visual-toys { background-position: 82% 65%; filter: saturate(1.25); }
.visual-fashion { background-position: 96% 61%; filter: sepia(.18); }
.visual-auto { background-position: 43% 66%; filter: grayscale(.35); }
.visual-tools { background-position: 74% 53%; filter: contrast(1.15); }
.offer-badge { position: absolute; left: .6rem; bottom: .5rem; padding: .26rem .48rem; border-radius: .25rem; background: var(--red); color: white; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.offer-body { padding: .85rem; display: flex; flex-direction: column; }
.offer-title { height: 3.75em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0 0 .7rem; font-size: .88rem; line-height: 1.25; }
.offer-meta { display: flex; flex-wrap: wrap; align-content: flex-start; height: 3.5rem; overflow: hidden; gap: .45rem .8rem; margin-bottom: .85rem; color: #c1ccd6; font-size: .69rem; }
.offer-meta span { white-space: nowrap; }
.offer-footer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: center; height: 44px; gap: 0; }
.offer-footer > .price, .offer-footer > .soldout { min-width: 0; padding-right: .4rem; overflow: hidden; text-overflow: ellipsis; }
.offer-footer > .details-button { width: 100%; height: 36px; padding: .25rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.card-actions { display: flex; justify-content: flex-end; gap: .45rem; margin-top: .65rem; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.08); }
.card-icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: .4rem; background: rgba(12,22,31,.8); color: #dce5ec; cursor: pointer; }
.card-icon-button:hover, .card-icon-button:focus-visible { color: #fff; border-color: #9ec778; background: #436821; }
.card-icon-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.card-icon-button:disabled { opacity: .4; cursor: not-allowed; }
.card-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon-button.is-favorite { color: #a9ff59; border-color: #79b344; }
.card-icon-button.is-favorite svg { fill: currentColor; }
.price { color: #94ff31; font: 700 1.25rem Rajdhani, sans-serif; white-space: nowrap; }
.mini-button { padding: .48rem .72rem; border: 1px solid var(--line-strong); border-radius: .4rem; color: white; background: rgba(12,22,31,.8); font-size: .7rem; font-weight: 700; }
.card-buy-action { width: 100%; min-height: 48px; margin-top: .7rem; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 6px 18px rgba(128,237,28,.3), inset 0 1px rgba(255,255,255,.22); }
.details-button { border-color: #9ec778; background: linear-gradient(180deg, #85a765 0%, #629235 17%, #3e651a 48%, #253e0e 51%, #58872c 100%); color: #fff; text-shadow: 0 1px 2px #28040a; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.5), 0 3px 8px rgba(0,0,0,.35); }
.details-button:hover { filter: brightness(1.15); }
.buy-button { border-color: #7eaa98; background: linear-gradient(180deg, #789d8d 0%, #416f5b 17%, #264d3d 48%, #163629 51%, #386650 100%); color: white; text-shadow: 0 1px 2px #071b11; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.55), 0 5px 14px rgba(0,0,0,.4); }
.buy-button:hover:not(:disabled) { filter: brightness(1.15); }
.buy-button:disabled { opacity: .45; cursor: not-allowed; }
.soldout { color: #a3ff4f; font-weight: 800; letter-spacing: .08rem; }

.lower-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: .9rem; padding: 0 1.35rem 1.5rem; }
.origin-panel, .categories-panel { min-height: 166px; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.origin-panel { display: flex; align-items: center; padding: 1.4rem; background-image: linear-gradient(90deg, rgba(3,8,13,.94), rgba(3,8,13,.35)), url("puerto-global.png"); background-size: cover; background-position: 68% 62%; }
.origin-panel h2 { max-width: 270px; margin: 0 0 .35rem; font: 700 1.65rem/.95 Rajdhani; text-transform: uppercase; }
.origin-panel p { max-width: 310px; margin: 0 0 .9rem; color: #d1d9e1; font-size: .78rem; line-height: 1.45; }
.categories-panel { padding: 1rem; background: #09131b; }
.categories-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.category-tile { min-height: 82px; display: grid; place-items: center; align-content: center; gap: .45rem; text-align: center; border: 1px solid rgba(157,184,206,.14); border-radius: .45rem; background: #0d1922; color: #dbe4eb; font-size: .66rem; transition: .2s; }
.category-tile:hover { border-color: rgba(128,237,28,.5); background: #111f2a; }
.category-tile b { font: 500 1.55rem Rajdhani; color: #f0f4f7; }

.page { padding: 2rem clamp(1rem, 3vw, 3rem) 3rem; }
.page-header { max-width: 1160px; margin: 0 auto 1.4rem; }
.page-header p { margin: .55rem 0 0 3.25rem; color: var(--muted); line-height: 1.5; }
.page .offer-grid { max-width: 1160px; margin: 0 auto; grid-template-columns: repeat(3, minmax(0,1fr)); }
.filters { max-width: 1160px; margin: 0 auto 1.2rem; display: flex; gap: .55rem; flex-wrap: wrap; }
.filter-chip { padding: .48rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: #c9d4dd; background: #0b151e; font-size: .76rem; }
.filter-chip.active { color: white; border-color: var(--red); background: rgba(128,237,28,.18); }
.empty-state { max-width: 620px; margin: 4rem auto; padding: 2rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: .8rem; color: var(--muted); }
.category-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.category-card { min-height: 150px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: .7rem; background: linear-gradient(145deg, #0d1a24, #081119); }
.category-card:hover { border-color: rgba(128,237,28,.5); }
.category-card strong { font: 700 1.1rem Rajdhani; }
.category-card b { font: 500 2.6rem Rajdhani; color: #dfe6ec; }
.category-card small { color: var(--muted); }

.detail-page { max-width: 1180px; margin: auto; padding: 1.6rem clamp(1rem, 3vw, 3rem) 3rem; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: #c6d2dc; font-size: .8rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr); gap: 1.4rem; }
.detail-visual { position: relative; min-height: 510px; border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; background-image: linear-gradient(180deg, rgba(1,5,8,.04), rgba(1,5,8,.75)), url("puerto-global.png"); background-size: cover; background-position: 67% center; }
.detail-visual-label { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .7rem; border-radius: .35rem; background: rgba(4,10,15,.78); color: #d7e1e8; font-size: .75rem; backdrop-filter: blur(10px); }
.detail-info { padding: .25rem 0; }
.detail-info .offer-badge { position: static; display: inline-block; margin-bottom: .8rem; }
.detail-info h1 { margin: 0; font: 700 clamp(2rem, 4vw, 3.3rem)/.98 Rajdhani; text-transform: uppercase; }
.detail-summary { color: #b9c6d1; line-height: 1.6; }
.detail-facts { margin: 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.fact { padding: .8rem; border: 1px solid var(--line); border-radius: .5rem; background: #0a141d; }
.fact small, .fact strong { display: block; }
.fact small { margin-bottom: .25rem; color: #8fa0af; font-size: .68rem; text-transform: uppercase; letter-spacing: .06rem; }
.fact strong { font-size: .86rem; }
.detail-price { margin: 1rem 0; color: #94ff31; font: 700 2.2rem Rajdhani; }
.lot-list { margin: 1rem 0; display: grid; gap: .55rem; }
.lot-option { padding: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; border: 1px solid var(--line); border-radius: .5rem; background: #0b151e; }
.lot-option label { display: flex; gap: .55rem; align-items: center; }
.lot-option small { color: var(--muted); }

.steps { max-width: 1000px; margin: 2rem auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.step { position: relative; padding: 1.25rem; border: 1px solid var(--line); border-radius: .7rem; background: #0a151e; }
.step-number { width: 38px; height: 38px; margin-bottom: 1rem; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--red), var(--red-dark)); font: 700 1rem Rajdhani; }
.step h2 { margin: 0 0 .5rem; font: 700 1.15rem Rajdhani; }
.step p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }

.account-page { max-width: 920px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.account-card { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #09131c; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.account-head { padding: 1.5rem 1.5rem 1rem; background: linear-gradient(135deg, rgba(128,237,28,.12), transparent 42%); }
.account-head h1 { margin: 0; font: 700 2rem Rajdhani; text-transform: uppercase; }
.tabs { display: flex; padding: 0 1.5rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: .85rem 1rem; border: 0; border-bottom: 2px solid transparent; color: #aebbc6; background: transparent; white-space: nowrap; }
.tab.active { color: white; border-color: var(--red); }
.form-panel { padding: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: #c7d2dc; font-size: .78rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: .7rem .75rem; border: 1px solid var(--line-strong); border-radius: .45rem; outline: 0; color: white; background: #061019; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(128,237,28,.12); }
.field option { color: #111; }
.form-actions { margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form-link { border: 0; color: #d6e0e8; background: transparent; font-size: .78rem; text-decoration: underline; }
.cart-remove-button { width: 30px; height: 30px; padding: 6px; display: inline-grid; place-items: center; flex: 0 0 30px; border: 0; border-radius: .35rem; color: white; background: var(--red); cursor: pointer; }
.cart-remove-button:hover { filter: brightness(1.12); }
.cart-remove-button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.cart-remove-button svg { width: 18px; height: 18px; fill: currentColor; }
.inline-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.inline-options label { display: flex; align-items: center; gap: .45rem; }
.status-panel { max-width: 700px; margin: 3rem auto; padding: 2rem; text-align: center; border: 1px solid var(--line); border-radius: .8rem; background: #09141d; }
.status-panel h1 { font: 700 2rem Rajdhani; }
.status-panel p { color: var(--muted); }

.checkout-layout { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; }
.checkout-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: .7rem; background: #09141d; }
.checkout-card h2 { margin-top: 0; font: 700 1.25rem Rajdhani; }
.summary-row { padding: .65rem 0; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); font-size: .82rem; }
.summary-row.total { border: 0; color: white; font: 700 1.15rem Rajdhani; }
.field-error { min-height: 1.2em; margin: .2rem 0 0; color: #bfff84; font-size: .78rem; }
.payment-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; margin: 1rem 0; }
.payment-summary div { padding: .75rem; border: 1px solid var(--line); border-radius: .45rem; background: #061019; }
.payment-summary span,.payment-summary strong { display: block; }.payment-summary span { color: var(--muted); font-size: .7rem; }.payment-summary strong { margin-top: .25rem; color: #64df8d; font-size: .9rem; }

.footer { min-height: 84px; padding: 1.2rem 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line-strong); background: #071018; color: #9eacb9; font-size: .72rem; }
.footer-brand { color: white; font: 700 1rem Rajdhani; }
.footer-brand span { color: var(--red); }
.footer nav { display: flex; gap: 1.1rem; }
.footer nav a:hover { color: white; }
.footer p { padding-left: 1rem; border-left: 3px solid var(--red); text-transform: uppercase; letter-spacing: .18rem; line-height: 1.6; }
.mobile-nav { display: none; }
.toast-region { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; }
.toast { max-width: 360px; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: .55rem; color: white; background: #101d27; box-shadow: 0 18px 50px rgba(0,0,0,.42); animation: toast-in .25s ease; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 1180px) {
  :root { --sidebar: 218px; }
  .topbar { padding-inline: 1.2rem; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page .offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .benefits { grid-template-columns: repeat(3,1fr); }
  .benefit:nth-child(n+4) { display: none; }
  .categories-strip { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  :root { --topbar: 64px; }
  .sidebar { transform: translateX(-102%); width: min(82vw, 300px); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-close { display: block; }
  .page-shell { margin-left: 0; padding-bottom: 64px; }
  .menu-open { display: block; }
  .topbar { gap: .65rem; padding: .65rem .8rem; }
  .search { height: 40px; }
  .account-link { display: none; }
  .top-actions { gap: .5rem; }
  .hero { min-height: 320px; align-items: flex-end; }
  .hero-content { width: 100%; padding: 1.5rem 1.25rem; background: linear-gradient(0deg, rgba(3,8,13,.95), rgba(3,8,13,.2)); }
  .hero h1 { max-width: 620px; }
  .lower-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-visual { min-height: 380px; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .payment-summary { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer p { display: none; }
  .mobile-nav { position: fixed; z-index: 35; inset: auto 0 0; height: 64px; display: grid; grid-template-columns: repeat(5,1fr); background: rgba(6,14,21,.96); border-top: 1px solid var(--line-strong); backdrop-filter: blur(15px); }
  .mobile-link { display: grid; place-items: center; align-content: center; gap: .15rem; color: #aab8c4; font-size: .62rem; }
  .mobile-link span { font-size: 1rem; }
  .mobile-link.active { color: white; box-shadow: inset 0 2px var(--red); }
}

@media (max-width: 580px) {
  .language-control .flag { display: none; }
  .language-control select { font-size: .75rem; }
  .cart-button { font-size: 1rem; }
  .search > span { display: none; }
  .search input { padding-left: .7rem; font-size: .78rem; }
  .search button { width: 42px; }
  .hero { min-height: 300px; }
  .hero h1 { font-size: 2rem; }
  .hero-copy { font-size: .85rem; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(3) { display: none; }
  .content-section { padding-inline: .8rem; }
  .offer-grid, .page .offer-grid { grid-template-columns: 1fr; }
  .lower-grid { padding-inline: .8rem; }
  .categories-strip { grid-template-columns: repeat(2,1fr); }
  .page-header p { margin-left: 0; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 125px; }
  .detail-visual { min-height: 290px; }
  .detail-facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .footer nav { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Customer login and right-side cart */
.commerce-open { overflow: hidden; }
.commerce-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; background: #0009; backdrop-filter: blur(7px); animation: commerce-in .22s ease; }
.commerce-dialog { position: relative; width: min(100%,640px); max-height: 92dvh; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: .8rem; background: #09131c; box-shadow: 0 24px 80px #0008; }
.overlay-close { position: absolute; top: .5rem; right: .7rem; z-index: 2; border: 0; background: transparent; color: white; font-size: 1.8rem; }
.auth-links { display: flex; justify-content: center; gap: 1.5rem; padding: 0 1.5rem 1.5rem; }
.commerce-dialog .account-card { border: 0; }
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer-overlay .commerce-dialog { width: min(100%,480px); height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 1.5rem; animation: drawer-in .22s ease; }
.cart-line { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line p { color: var(--muted); }
.drawer-overlay .button { width: 100%; margin-top: 1rem; }
.payment-options { display: grid; gap: 1rem; margin: 1rem 0; }
.commerce-overlay.closing { opacity: 0; transition: opacity .22s ease; pointer-events: none; }
@keyframes commerce-in { from { opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@media (max-width: 540px) { .commerce-dialog .form-grid { grid-template-columns: 1fr; } .auth-links { flex-wrap: wrap; gap: 1rem; } }
@media (prefers-reduced-motion: reduce) { .commerce-overlay,.drawer-overlay .commerce-dialog { animation: none; } .commerce-overlay.closing { transition: none; } }

/* Responsive hardening */
@media (max-width: 860px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .page-shell, .topbar, .search, .top-actions, #main-content { min-width: 0; }
  .page-shell { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar {
    padding-top: max(.65rem, env(safe-area-inset-top));
    padding-right: max(.8rem, env(safe-area-inset-right));
    padding-left: max(.8rem, env(safe-area-inset-left));
  }
  .menu-open, .top-actions { flex: 0 0 auto; }
  .search { width: auto; }
  .hero::before { width: 100%; background-position: 68% center; }
  .hero-content, .content-section, .lower-grid, .page, .detail-page,
  .account-page, .status-panel, .footer { min-width: 0; }
  .offer-card, .category-card, .step, .checkout-card, .detail-info,
  .detail-visual, .origin-panel, .categories-panel { min-width: 0; }
  .mobile-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }
  .toast-region {
    right: max(.75rem, env(safe-area-inset-right));
    bottom: calc(64px + .75rem + env(safe-area-inset-bottom));
    left: max(.75rem, env(safe-area-inset-left));
  }
  .toast { width: 100%; max-width: none; }
}

@media (max-width: 580px) {
  .topbar { gap: .45rem; }
  .menu-open { width: 30px; padding: 0; }
  .search { height: 38px; }
  .top-actions { gap: .3rem; }
  .language-control select { width: 38px; padding-inline: .15rem; }
  .cart-button { padding-inline: .25rem; }
  .page-back-button { width: 32px; height: 32px; }
  .notice-dot { flex: 0 0 auto; margin-top: .2rem; }

  .hero { min-height: clamp(330px, 94vw, 410px); }
  .hero::before { background-position: 65% center; }
  .hero::after { background: linear-gradient(0deg, rgba(3,8,13,.98) 0%, rgba(3,8,13,.76) 58%, rgba(3,8,13,.18) 100%); }
  .hero-content { padding: 1.35rem .9rem; }
  .hero .eyebrow { line-height: 1.45; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.35rem); line-height: .92; overflow-wrap: anywhere; }
  .hero-copy { margin-block: .75rem .9rem; line-height: 1.4; }

  .benefit { min-width: 0; padding: .75rem .55rem; gap: .45rem; font-size: .62rem; }
  .benefit span:first-child { flex: 0 0 auto; font-size: 1.25rem; }
  .content-section { padding: 1.15rem .75rem; }
  .lower-grid { padding: 0 .75rem 1.25rem; }
  .section-heading { align-items: flex-start; gap: .6rem; }
  .section-heading h2, .page-header h1 { min-width: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
  .section-heading h2::before, .page-header h1::before { width: 22px; margin-right: .5rem; }
  .text-link { flex: 0 0 auto; padding-top: .15rem; }
  .offer-visual { height: clamp(180px, 58vw, 230px); }
  .offer-title { height: auto; min-height: 2.5em; }
  .offer-footer { grid-template-columns: minmax(0, 1fr) minmax(88px, 32%); }
  .origin-panel { min-height: 210px; padding: 1.1rem; }
  .categories-panel { padding: .8rem; }

  .page { padding: 1.25rem .75rem 2rem; }
  .page-header { margin-bottom: 1rem; }
  .page-header p { font-size: .86rem; }
  .filters { flex-wrap: nowrap; margin-right: -.75rem; margin-left: -.75rem; padding: 0 .75rem .35rem; overflow-x: auto; scrollbar-width: thin; }
  .filter-chip { flex: 0 0 auto; }
  .category-card { padding: .9rem; overflow-wrap: anywhere; }
  .detail-page { padding: 1rem .75rem 2rem; }
  .detail-grid { gap: 1rem; }
  .detail-visual { min-height: clamp(230px, 75vw, 300px); }
  .detail-info h1 { font-size: clamp(1.8rem, 9vw, 2.45rem); overflow-wrap: anywhere; }
  .detail-summary { font-size: .9rem; line-height: 1.5; }
  .lot-option { align-items: flex-start; flex-direction: column; }
  .lot-option label, .lot-option label span { min-width: 0; }
  .lot-option small { display: block; overflow-wrap: anywhere; }
  .detail-price { font-size: 1.9rem; overflow-wrap: anywhere; }
  .summary-row { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .summary-row strong { overflow-wrap: anywhere; }

  .account-page { padding: 1rem .75rem 2rem; }
  .account-head { padding: 1.25rem 1rem .85rem; }
  .account-head h1 { padding-right: 1.5rem; font-size: 1.65rem; overflow-wrap: anywhere; }
  .tabs { padding: 0 .5rem; }
  .tab { padding-inline: .7rem; }
  .form-panel { padding: 1rem; }
  .status-panel { margin: 1.25rem .75rem; padding: 1.25rem; }
  .checkout-card { padding: 1rem; }
  .footer { padding: 1.25rem .75rem; }
  .footer nav { row-gap: .7rem; }

  .commerce-overlay { align-items: stretch; padding: 0; }
  .commerce-dialog { width: 100%; max-height: 100dvh; border-width: 0; border-radius: 0; }
  .drawer-overlay .commerce-dialog { padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .auth-links { padding: 0 1rem 1rem; }
  .mobile-link { min-width: 0; padding-inline: .15rem; font-size: clamp(.5rem, 2.3vw, .62rem); overflow: hidden; }
}

@media (max-width: 380px) {
  .language-control { display: none; }
  .hero .button-row { display: grid; grid-template-columns: 1fr; }
  .hero .button { width: 100%; }
  .benefits { grid-template-columns: 1fr; }
  .benefit:nth-child(2) { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .categories-strip { grid-template-columns: 1fr 1fr; }
  .offer-footer { grid-template-columns: 1fr; height: auto; gap: .55rem; }
  .offer-footer > .details-button { width: 100%; }
}

/* Publicaciones por grupo de cuotas */
.quota-card .offer-title{height:auto;min-height:2.5em;font-size:1rem;margin-bottom:.4rem}
.quota-visual{height:240px;background:#fff}
.quota-visual>img{width:100%;height:175px;object-fit:contain;padding:12px 12px 0}
.quota-container{position:relative;width:100%;max-width:320px;margin:auto;line-height:0;text-align:center}
.quota-container svg{width:100%;height:auto;filter:drop-shadow(0 4px 3px #0005)}
.quota-visual .quota-container{position:absolute;bottom:3px;right:6px;width:65%;max-width:215px}
.container-percent{display:inline-block;margin-top:5px;background:#f3f6f5;color:#147b37;border:1px solid #bac5bd;border-radius:20px;padding:5px 9px;font-size:.75rem;font-weight:800;line-height:1.2;box-shadow:0 2px 5px #0002}
.container-fill,.container-critical-fill{transition:width .7s ease}
.container-critical-fill{opacity:0}
.quota-meta{color:#9eacb8;font-size:.66rem;line-height:1.25;margin-bottom:.55rem;text-transform:uppercase;letter-spacing:.04em}
.quota-facts{display:grid;gap:.35rem;font-size:.72rem;color:#aebbc5}
.quota-facts>strong{font-size:.7rem;font-weight:600;color:#aebbc5}
.quota-auction-price{margin-top:.2rem;color:#e2e8ed;font-size:.78rem;font-weight:800;letter-spacing:.025em}.quota-auction-price s{color:#c0ff85}
.quota-value{font-size:1.5rem;line-height:1.05;font-weight:800;color:#47d77b}
.quota-value small{font-size:.68rem;font-weight:600;letter-spacing:.02em}
.quota-counts{display:grid;gap:.28rem;margin-top:.25rem;padding-top:.45rem;border-top:1px solid rgba(255,255,255,.08);font-size:.69rem;line-height:1.25;color:#9fadb8}
.quota-counts strong{color:#e4f5e9}
.quota-tag{display:block;padding:.42rem .5rem;border-radius:5px;font-weight:700;line-height:1.25;background:#193c2b;color:#8af0a5;border:1px solid #398151;font-size:.7rem}
.quota-actions{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:1rem}
.quota-actions button,.quota-actions a{min-height:48px;display:flex;align-items:center;justify-content:center;font-size:.92rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 7px 16px rgba(0,0,0,.42)}
.quota-actions button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.quota-card.attention{border-color:#46ba70}.attention .quota-counts strong{color:#76f39c}
.attention .container-fill{filter:brightness(1.15)}
.quota-card.critical{border-color:#9adf5a}.quota-tag.critical{background:#426e19;color:#fff;border-color:#9edc65}
.critical .container-critical-fill{animation:quota-critical-pulse 3s ease-in-out infinite}
.quota-card.soldout{border-color:#6a737b;filter:saturate(.65)}.quota-tag.soldout{background:#39434c;color:#fff;border-color:#87909a}
@keyframes quota-critical-pulse{0%,100%{opacity:0}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){.critical .container-critical-fill{animation:none;opacity:.2}.container-fill,.container-critical-fill{transition:none}}
@media(max-width:600px){.quota-visual{height:265px}.quota-visual>img{height:195px}.quota-visual .quota-container{max-width:230px;width:68%}.quota-card .offer-body{padding:1rem}.quota-meta{font-size:.66rem}.quota-facts{font-size:.72rem}.quota-counts{font-size:.69rem}.quota-actions button,.quota-actions a{min-height:50px;font-size:.95rem}}

/* Área del cliente */
.customer-area{position:relative}
.customer-logout{display:block;margin:-.5rem 0 1.25rem auto;padding:.55rem .8rem;border:1px solid var(--line-strong);border-radius:.4rem;background:transparent;color:var(--muted)}
.customer-logout:hover{color:#fff;border-color:#fff}
.customer-reservations{display:grid;gap:1rem}
.customer-reservation{padding:1.35rem;border:1px solid var(--line);border-radius:.7rem;background:linear-gradient(135deg,#101d28,#08111a);box-shadow:0 12px 30px #0003}
.customer-reservation-main{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.customer-reservation-code{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#8ee2a7}
.customer-reservation h2{margin:.4rem 0;font:700 1.25rem Rajdhani,sans-serif;text-transform:uppercase}
.customer-reservation-main p{margin:.2rem 0;color:var(--muted);font-size:.85rem}
.customer-reservation-status{padding:.4rem .65rem;border-radius:99px;background:#173a28;color:#90efad;font-size:.72rem;font-weight:800;white-space:nowrap}
.customer-progress{display:grid;grid-template-columns:minmax(200px,320px) 1fr;align-items:center;gap:1.5rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.customer-progress-info{display:grid;gap:.55rem;color:var(--muted);font-size:.85rem}
.customer-progress-info strong{color:#69df8e;font:800 1.5rem Rajdhani,sans-serif}
.customer-progress-info small{color:#e7f5ea;font-size:.82rem;font-weight:700}
@media(max-width:700px){.customer-progress{grid-template-columns:1fr;gap:.4rem}.customer-progress>.quota-container,.customer-progress .quota-container{max-width:280px}.customer-reservation{padding:1rem}.customer-reservation h2{font-size:1.05rem}.customer-reservation-status{font-size:.65rem}}
.customer-finance{margin-bottom:2rem}
.customer-finance-summary{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;margin-bottom:1rem;padding:1rem 1.25rem;border:1px solid var(--line-strong);border-radius:.7rem;background:#101d28}
.customer-finance-summary>span{font-weight:800;color:#77d994}
.customer-finance-summary>div{display:grid;gap:.2rem}
.customer-finance-summary small{color:var(--muted);font-size:.7rem}
.customer-finance-summary strong{font-size:1rem}
.customer-finance-list{display:grid;gap:.7rem}
.customer-finance-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(170px,220px) auto;align-items:center;gap:1rem;padding:1rem 1.2rem;border:1px solid var(--line);border-left:4px solid #b7c0c7;border-radius:.55rem;background:#0d1822}
.customer-finance-row.reserva{border-left-color:#e8ba32}.customer-finance-row.aguardando_saldo{border-left-color:#5aaff5}.customer-finance-row.em_transito{border-left-color:#4bd382}.customer-finance-row.entregue{border-left-color:#9ae257}
.customer-finance-row h3{margin:.3rem 0;font:700 1rem Rajdhani,sans-serif}
.customer-finance-row small{color:var(--muted);font-size:.72rem}
.customer-finance-values{display:grid;gap:.2rem;font-size:.75rem;color:var(--muted)}
.customer-finance-values span{display:flex;justify-content:space-between;gap:.5rem}.customer-finance-values b{color:#fff}
.customer-finance-state{display:grid;justify-items:end;gap:.55rem}
.customer-stage{padding:.35rem .6rem;border-radius:99px;font-size:.7rem;font-weight:800;white-space:nowrap;background:#303b44;color:#d4dbe0}
.customer-stage.reserva{background:#4b3d16;color:#ffdd6f}.customer-stage.aguardando_saldo{background:#173957;color:#8bcbff}.customer-stage.em_transito{background:#173d2c;color:#84e5a4}.customer-stage.entregue{background:#324a1c;color:#ceffa1}
.customer-finance-state button{padding:.35rem .5rem;border:1px solid #6e9ec6;border-radius:.35rem;background:#16334b;color:#e0f2ff;font-size:.7rem}
.customer-finance h3{margin:1.35rem 0 .6rem;font-size:.92rem}.customer-muted{color:var(--muted);font-size:.82rem}
.customer-movements{overflow-x:auto;border:1px solid var(--line);border-radius:.55rem}.customer-movements table{width:100%;border-collapse:collapse;font-size:.78rem}.customer-movements th,.customer-movements td{padding:.7rem .85rem;border-bottom:1px solid var(--line);text-align:left}.customer-movements th{color:var(--muted);font-size:.7rem}.customer-credit{color:#81e5a3;font-weight:800;white-space:nowrap}
@media(max-width:820px){.customer-finance-row{grid-template-columns:1fr}.customer-finance-state{justify-items:start}.customer-finance-summary{gap:1rem}.customer-finance-summary>div{min-width:85px}}
