:root {
  --navy: #0b1f4d;
  --blue: #1747c9;
  --blue-2: #2f63f0;
  --sky: #e9efff;
  --red: #e3262f;
  --red-2: #ff4a52;
  --ink: #0b1530;
  --muted: #5a6685;
  --paper: #f4f6fb;
  --white: #fff;
  --line: #d9e0ef;
  --shadow: 0 6px 0 var(--navy);
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.45 "Baloo 2", system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.pixel { font-family: "Silkscreen", monospace; font-weight: 400; letter-spacing: .04em; }
.red { color: var(--red-2); }
.link { color: var(--blue); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 3px solid var(--navy); border-radius: 14px; padding: 10px 18px; font: 800 16px "Baloo 2", sans-serif; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--navy); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn-lg { padding: 14px 24px; font-size: 18px; }
.btn-sm { padding: 6px 12px; font-size: 14px; box-shadow: 0 3px 0 var(--navy); }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost { background: #fff; color: var(--navy); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.logo b { color: var(--red-2); }
.logo-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--red); border: 3px solid #fff; font-family: "Silkscreen", monospace; font-size: 13px; }
.topnav { display: flex; align-items: center; gap: 12px; }
.hud-chip { font-family: "Silkscreen", monospace; font-size: 12px; padding: 4px 10px; border: 2px solid rgba(255,255,255,.4); border-radius: 999px; }

/* Hero */
.hero { position: relative; min-height: min(calc(100vh - 64px), 780px); display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,77,.96) 0%, rgba(11,31,77,.85) 38%, rgba(11,31,77,0) 68%); }
.hero-copy { position: relative; max-width: 560px; padding: 48px 24px 48px max(24px, 6vw); color: #fff; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); margin: 14px 0 16px; }
.hero p { font-size: 19px; color: #d6def5; margin: 0 0 28px; }
.tag { display: inline-block; background: var(--red); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 28px; list-style: none; padding: 0; margin: 36px 0 0; }
.hero-stats b { display: block; font-size: 30px; line-height: 1; }
.hero-stats span { font-family: "Silkscreen", monospace; font-size: 11px; color: #9fb0dc; }

/* Screens */
.screen { padding: 72px 24px; }
.screen-alt { background: var(--sky); }
.screen-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.screen-head h2 { font-size: clamp(34px, 4.5vw, 52px); color: var(--navy); margin: 10px 0 8px; }
.screen-head p { color: var(--muted); margin: 0; font-size: 18px; }
.step { display: inline-block; font-size: 12px; color: var(--blue); background: #fff; border: 2px solid var(--blue); padding: 3px 10px; border-radius: 999px; }

/* Fighter select */
.fighters { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; max-width: 1040px; margin: 0 auto; }
.vs { font-size: 34px; color: var(--red); text-shadow: 3px 3px 0 var(--navy); }
.fighter { position: relative; background: #fff; border: 4px solid var(--navy); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; outline: none; }
.fighter:hover, .fighter:focus-visible { transform: translateY(-6px); box-shadow: 0 12px 0 var(--navy); }
.fighter.on { border-color: var(--red); box-shadow: 0 10px 0 var(--red), 0 0 0 6px rgba(227,38,47,.18); }
.fighter-chip { position: absolute; top: -14px; right: 16px; z-index: 2; background: var(--red); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 2px solid var(--navy); opacity: 0; transform: scale(.6); transition: .15s; }
.fighter.on .fighter-chip { opacity: 1; transform: scale(1); }
.stage { position: relative; height: 240px; border-radius: 14px 14px 0 0; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #c9d6f7 0%, #eef2fc 60%); border-bottom: 4px solid var(--navy); }
.stage img { position: absolute; left: 50%; top: 50%; max-width: 86%; max-height: 88%; transform: translate(-50%, -50%); transition: transform .25s; }
.fighter:hover .stage img, .fighter.on .stage img { transform: translate(-50%, -52%) scale(1.04); }
.fighter-body { padding: 18px 22px 22px; }
.kind { font-size: 12px; color: var(--red); }
.fighter h3 { font-size: 30px; color: var(--navy); margin: 2px 0 14px; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; align-items: center; }
.stats dt { font-family: "Silkscreen", monospace; font-size: 11px; color: var(--muted); }
.stats dd { margin: 0; position: relative; height: 22px; background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; overflow: hidden; }
.stats dd i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: repeating-linear-gradient(90deg, var(--blue) 0 14px, var(--blue-2) 14px 16px); }
.fighter.on .stats dd i { background: repeating-linear-gradient(90deg, var(--red) 0 14px, var(--red-2) 14px 16px); }
.stats dd span { position: relative; padding-left: 8px; font-size: 13px; font-weight: 700; color: #fff; line-height: 18px; text-shadow: 0 1px 0 rgba(0,0,0,.35); white-space: nowrap; }
.fighter h4, .panel h4 { font-size: 13px; font-family: "Silkscreen", monospace; font-weight: 400; color: var(--muted); margin: 0 0 8px; }
.fits { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.fits li { background: var(--sky); color: var(--navy); border-radius: 8px; padding: 2px 10px; font-size: 14px; font-weight: 600; }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "form map" "extras map"; gap: 20px 24px; max-width: 1140px; margin: 0 auto; align-items: start; }
.qform { grid-area: form; }
.qextras { grid-area: extras; }
.map-wrap { grid-area: map; position: sticky; top: 84px; border: 4px solid var(--navy); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
#map { height: 640px; filter: saturate(.85); }
.map-mode { position: absolute; z-index: 500; right: 12px; top: 12px; font-size: 10px; background: #fff; border: 2px solid var(--navy); border-radius: 6px; padding: 2px 6px; pointer-events: none; }
.map-mode.bad { background: var(--red); color: #fff; }
.addr { position: relative; }
.zone { display: block; margin: 4px 0 0 6px; font: 400 10px "Silkscreen", monospace; color: var(--blue); }
.zone:empty { display: none; }
.zone.out { color: var(--red); }
.field:focus-within { border-color: var(--blue); }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1200; list-style: none; margin: 0; padding: 4px; background: #fff; border: 3px solid var(--navy); border-radius: 12px; box-shadow: 0 4px 0 var(--navy); }
.sugg li { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 8px; cursor: pointer; line-height: 1.2; }
.sugg li b { color: var(--navy); }
.sugg li small { color: var(--muted); }
.sugg li.on, .sugg li[data-i]:hover { background: var(--sky); }
.sugg li.empty { cursor: default; color: var(--muted); font-size: 14px; }
.map-hud { position: absolute; z-index: 500; left: 14px; top: 14px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; border: 2px solid #fff; }
.map-hud span { color: var(--red-2); font-size: 18px; }
.mpin { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); font: 800 16px "Baloo 2", sans-serif; color: #fff; }
.mpin.a { background: var(--red); }
.mpin.b { background: var(--blue); }
.leaflet-marker-icon .mpin { line-height: 1; }
.mpin b { transform: rotate(45deg); }
.pin-a, .pin-b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 14px; }
.pin-a { background: var(--red); }
.pin-b { background: var(--blue); }

.panel { background: #fff; border: 4px solid var(--navy); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.picked { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.picked img { width: 76px; height: 56px; object-fit: contain; padding: 3px; background: #eef2fc; border-radius: 10px; border: 2px solid var(--navy); }
.picked div { flex: 1; display: flex; flex-direction: column; }
.picked strong { font-size: 20px; color: var(--navy); line-height: 1.1; }
.field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.field input, .contact input { border: 0; outline: 0; font: 600 16px "Baloo 2", sans-serif; color: var(--ink); width: 100%; background: transparent; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row strong { display: block; line-height: 1.1; }
.row small { color: var(--muted); }
.stepper { display: flex; align-items: center; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--sky); color: var(--navy); font: 800 20px "Baloo 2", sans-serif; cursor: pointer; }
.stepper button:hover { background: var(--blue); color: #fff; }
.stepper output { width: 34px; text-align: center; font-family: "Silkscreen", monospace; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle input { display: none; }
.toggle span { display: inline-block; padding: 5px 12px; border: 2px solid var(--navy); border-radius: 10px; font-weight: 700; cursor: pointer; user-select: none; background: #fff; }
.toggle input:checked + span { background: var(--navy); color: #fff; }
.toggle input:checked + span::before { content: "✓ "; color: var(--red-2); }
.estimate { background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden; }
.estimate::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px); pointer-events: none; }
.estimate .pixel { font-size: 12px; color: var(--red-2); }
.price { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 2px 0; }
.estimate small { color: #9fb0dc; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact input { border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Quote panel: ¿qué llevás? chips + extras in one row */
.qextras h4 { margin: 0; }
.chips { gap: 6px; }
.chips .toggle span, .xrow .toggle span { font-size: 14px; padding: 3px 10px; }
.xrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.xnote { margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.xnote[hidden] { display: none; }
.xs { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14px; }
.xrow .stepper button { width: 28px; height: 28px; font-size: 17px; }
.xrow .stepper output { width: 24px; font-size: 13px; }
.bubble { display: flex; gap: 12px; align-items: center; }
.bubble[hidden] { display: none; }
.bubble .logo-badge { flex-shrink: 0; width: 38px; height: 38px; font-size: 13px; color: #fff; border-color: var(--navy); box-shadow: 0 3px 0 var(--navy); }
.bubble p { position: relative; margin: 0; background: #fff1c9; border: 3px solid var(--navy); border-radius: 14px; padding: 6px 12px; font-weight: 700; color: var(--navy); font-size: 14px; }
.bubble p::before { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -7px; width: 14px; height: 14px; background: #fff1c9; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); }
.from { margin: -10px 0 12px; font-weight: 700; color: var(--muted); }
.from b { color: var(--red); font-size: 20px; }
.price { transition: filter .4s; }
.estimate.locked .price { filter: blur(10px); user-select: none; }
.unlock { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.unlock[hidden] { display: none; }
.unlock label { font-weight: 700; }
.unlock-row { display: flex; gap: 8px; }
.unlock input { flex: 1; min-width: 0; border: 2px solid #fff; border-radius: 10px; padding: 6px 10px; font: 600 16px "Baloo 2", sans-serif; }
.unlock input:focus { outline: 0; border-color: var(--blue-2); }
.unlock input.bad { border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(255,74,82,.35); }
.unlock .btn { box-shadow: 0 3px 0 #000; border-color: #fff; }
.contact.known { grid-template-columns: 1fr; }
.contact.known #cTel { display: none; }
.sendto { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.sendto b { color: var(--navy); }
.wa-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 24px; background: var(--navy); color: #c6d1ef; font-size: 15px; }
.foot .link { color: #fff; }

.toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #fff; border: 4px solid var(--navy); box-shadow: var(--shadow); border-radius: 14px; padding: 12px 18px; font-weight: 700; transition: transform .25s; max-width: calc(100% - 32px); }
.toast .pixel { color: var(--red); margin-right: 6px; }
.toast:not(.show) { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .fighters { grid-template-columns: 1fr; }
  .vs { text-align: center; margin: -6px 0; }
  .quote { grid-template-columns: 1fr; grid-template-areas: "form" "map" "extras"; }
  .map-wrap { position: relative; top: 0; }
  #map { height: 260px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,31,77,.97) 30%, rgba(11,31,77,.55) 70%, rgba(11,31,77,.2)); }
  .hero { align-items: flex-end; }
  .hero-copy { padding: 140px 16px 40px; }
  .hero p { font-size: 17px; }
  .screen { padding: 56px 16px; }
  .topbar { padding: 10px 16px; }
  .hud-chip { display: none; }
  .logo span:last-child { font-size: 15px; }
}
