:root {
  color-scheme: dark;
  --asphalt: #0d0d0e;
  --panel: #161618;
  --panel-2: #1f1f22;
  --ink: #f3f3f1;
  --muted: #a3a3a8;
  --line: #2e2e33;
  --accent: #e5161d;
  --accent-hot: #ff2e35;
  --white: #fff;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9dbe0 42%, #8b8e95 50%, #e6e7ea 58%, #ffffff 100%);
  --hazard: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #0d0d0e 14px 28px);
  --display: "Anton", "Barlow Condensed", Impact, sans-serif;
  --condensed: "Barlow Condensed", Impact, sans-serif;
  --spray: "Permanent Marker", "Comic Sans MS", cursive;
  --body: "Barlow", "Segoe UI", sans-serif;
  --cut: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { position: relative; margin: 0; overflow-x: clip; background: var(--asphalt); color: var(--ink); font-family: var(--body); }
/* grano de asfalto */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--white); }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 2px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--condensed); font-size: 17px; font-weight: 800; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.brand-logo { width: 66px; height: auto; filter: drop-shadow(0 4px 14px rgb(229 22 29 / 35%)); transition: transform .25s; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand small { display: block; margin-top: 5px; color: var(--accent); font-family: var(--spray); font-size: 13px; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.nav { display: flex; align-items: center; gap: 30px; font-family: var(--condensed); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 0; background: var(--accent); color: var(--white); clip-path: var(--cut); cursor: pointer; font-family: var(--condensed); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.nav-cta:hover, .button:hover { background: var(--white); color: var(--asphalt); transform: translateY(-2px); }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 540px; padding: 56px 0 70px; gap: 52px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-family: var(--spray); font-size: 19px; transform: rotate(-2deg); transform-origin: left; }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 580px; margin: 22px 0 22px; font-family: var(--display); font-size: clamp(60px, 7.6vw, 104px); font-weight: 400; line-height: .92; letter-spacing: .01em; text-transform: uppercase; }
h1 { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 span { position: relative; display: inline-block; background: none; color: var(--accent); -webkit-text-fill-color: var(--accent); text-shadow: 4px 4px 0 #000; }
/* trazo de spray bajo la segunda línea */
h1 span::after { content: ""; position: absolute; bottom: -6px; left: -2%; width: 75%; z-index: -1; height: 14px; border-radius: 50%; background: var(--accent); filter: blur(5px); opacity: .55; transform: rotate(-1.5deg); }
.hero-copy { max-width: 440px; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 3px; font-family: var(--condensed); font-size: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s; }
.text-link:hover { border-color: var(--accent); }
.text-link span { color: var(--accent); font-size: 20px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.hero-visual { position: relative; min-height: 400px; background: var(--panel); transform: rotate(1.5deg); box-shadow: 14px 14px 0 var(--accent); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(.35) contrast(1.15) brightness(.85); }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 70%)); }
/* trozo de cinta adhesiva */
.hero-visual::after { content: ""; position: absolute; top: -14px; left: 38%; z-index: 3; width: 110px; height: 30px; background: rgb(240 240 235 / 78%); transform: rotate(-4deg); }
.spray-tag { position: absolute; top: 22px; right: -10px; z-index: 2; color: var(--accent-hot); font-family: var(--spray); font-size: clamp(42px, 5vw, 64px); line-height: 1; text-shadow: 3px 3px 0 #000; transform: rotate(-9deg); }
.visual-label { position: absolute; right: 18px; bottom: 18px; left: 18px; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 16px 20px; background: var(--white); color: var(--asphalt); clip-path: var(--cut); transform: rotate(-2deg); }
.visual-label strong { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.visual-label span { color: var(--accent); font-family: var(--spray); font-size: 15px; line-height: 1.15; text-align: right; }

/* cinta de precaución en movimiento */
.ticker { position: relative; width: 104%; margin-left: -2%; overflow: hidden; border-block: 6px solid transparent; border-image: var(--hazard) 6; background: var(--accent); color: var(--white); transform: rotate(-1.5deg); }
.ticker-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.ticker-inner { display: flex; align-items: center; min-height: 62px; gap: 48px; padding-right: 48px; }
.ticker-item { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 24px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ticker-item b { color: var(--asphalt); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 104px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 40px; }
.section-head h2, .market-intro h2, .battery-content h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
.section-head h2 { max-width: 560px; margin: 16px 0 0; font-size: clamp(46px, 5.4vw, 70px); line-height: .95; }
.section-intro { max-width: 330px; margin: 0 0 3px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { position: relative; display: flex; flex-direction: column; min-height: 310px; padding: 28px 26px 24px; border: 2px solid var(--line); border-top: 6px solid var(--accent); background: var(--panel); transition: border-color .2s, transform .2s, box-shadow .2s; }
.service:hover { transform: translate(-4px, -4px); border-color: var(--accent); box-shadow: 8px 8px 0 var(--accent); }
.service-number { color: var(--accent); font-family: var(--spray); font-size: 20px; transform: rotate(-3deg); transform-origin: left; }
.service h3 { max-width: 270px; margin: 26px 0 12px; font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1.02; text-transform: uppercase; }
.service p { max-width: 290px; margin-bottom: 26px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 2px dashed var(--line); }
.price-row span { color: var(--muted); font-family: var(--condensed); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
/* precio tipo pegatina */
.price-row strong { padding: 6px 14px 4px; background: var(--white); color: var(--asphalt); font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1; transform: rotate(-4deg); box-shadow: 4px 4px 0 var(--accent); }
.price-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.battery-band { position: relative; padding: 46px 0; background: var(--accent); color: var(--white); }
.battery-band::before, .battery-band::after { content: ""; position: absolute; right: 0; left: 0; height: 12px; background: var(--hazard); }
.battery-band::before { top: 0; }
.battery-band::after { bottom: 0; }
.battery-content { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 45px; }
.battery-band .eyebrow { color: var(--white); }
.battery-band .eyebrow::before { background: var(--white); }
.battery-content h2 { margin: 12px 0 8px; font-size: 50px; line-height: .96; text-shadow: 4px 4px 0 rgb(0 0 0 / 35%); }
.battery-content p { max-width: 470px; margin: 0; font-size: 15px; line-height: 1.55; }
.battery-price { padding: 14px 22px; background: var(--asphalt); transform: rotate(3deg); box-shadow: 6px 6px 0 rgb(0 0 0 / 35%); }
.battery-price span { display: block; color: var(--muted); font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.battery-price strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 46px; font-weight: 400; line-height: 1; }
.button-light { background: var(--asphalt); color: var(--white); white-space: nowrap; }
.button-light:hover { background: var(--white); color: var(--asphalt); }

.market { padding-bottom: 110px; }
.market-layout { display: grid; grid-template-columns: minmax(260px, .72fr) 1.28fr; gap: 55px; align-items: start; }
.market-intro h2 { margin: 16px 0 18px; font-size: 64px; line-height: .92; }
.market-intro > p { max-width: 345px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.local-note { display: flex; gap: 10px; align-items: start; margin-top: 23px; padding: 14px; border-left: 4px solid var(--accent); background: var(--panel); color: var(--muted); font-size: 13px; line-height: 1.55; }
.local-note b { color: var(--accent); font-family: var(--spray); font-size: 18px; }
.owner-tools { grid-column: 1 / -1; margin-top: 14px; border-top: 2px solid var(--line); }
.owner-tools summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; font-family: var(--condensed); font-size: 16px; font-weight: 700; letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.owner-tools summary::-webkit-details-marker { display: none; }
.owner-tools summary::after { color: var(--accent); content: "+"; font-size: 26px; line-height: 1; }
.owner-tools[open] summary::after { content: "−"; }
.owner-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.listing-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 0; outline: 0; background: var(--panel); color: var(--ink); font-size: 15px; }
.field input::placeholder, .field textarea::placeholder, .listing-search::placeholder { color: #6c6c72; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input[type="file"] { padding: 9px; font-size: 13px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.form-message { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; }

.market-board { border-top: 4px solid var(--accent); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.board-head h3 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 400; text-transform: uppercase; }
.board-count { color: var(--accent); font-family: var(--spray); font-size: 15px; }
.listing-search { width: min(230px, 46%); height: 40px; padding: 0 12px; border: 2px solid var(--line); border-radius: 0; outline: 0; background: var(--panel); color: var(--ink); font-size: 14px; }
.listing-search:focus { border-color: var(--accent); }
.listing { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--line); animation: arrive .32s ease both; }
.listing-image { display: grid; width: 130px; aspect-ratio: 1.3; place-items: center; overflow: hidden; border: 2px solid var(--line); background: var(--panel-2); color: var(--muted); font-family: var(--spray); font-size: 15px; text-align: center; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-title { margin: 0 0 6px; font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.listing-meta { margin: 0; color: var(--muted); font-family: var(--condensed); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.listing-desc { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.listing-side { display: flex; flex-direction: column; align-items: end; gap: 13px; }
.listing-price { padding: 5px 12px 3px; background: var(--accent); color: var(--white); font-family: var(--display); font-size: 28px; font-weight: 400; white-space: nowrap; transform: rotate(-3deg); }
.remove-button { padding: 5px 0; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--condensed); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.remove-button:hover { border-color: var(--accent); color: var(--accent); }
.empty-state { padding: 46px 15px; border-bottom: 2px solid var(--line); color: var(--muted); font-family: var(--spray); font-size: 20px; line-height: 1.5; text-align: center; transform: rotate(-1deg); }

footer { position: relative; background: #050505; color: var(--white); }
footer::before { content: ""; display: block; height: 12px; background: var(--hazard); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 130px; gap: 20px; }
.brand-logo-lg { width: 90px; }
.footer-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.reveal { animation: arrive .65s ease both; }
@keyframes arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 800px) {
  .nav { gap: 18px; }
  .nav a:nth-child(2) { display: none; }
  .hero { gap: 34px; min-height: 420px; }
  .hero-visual { min-height: 330px; }
  .section { padding: 80px 0; }
  .battery-content { grid-template-columns: 1fr auto; gap: 26px; }
  .battery-content .button { grid-column: 1 / -1; justify-self: start; }
  .market-layout { grid-template-columns: 1fr; gap: 35px; }
  .market-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: end; }
  .market-intro .eyebrow, .market-intro h2 { grid-column: 1; }
  .market-intro > p { grid-column: 2; grid-row: 1 / span 2; }
  .local-note { grid-column: 1 / -1; }
  .owner-tools { grid-column: 1 / -1; }
  .listing-form { max-width: 540px; }
}
@media (max-width: 580px) {
  .wrap { width: min(100% - 32px, 460px); }
  .topbar { min-height: 72px; gap: 12px; }
  .brand { font-size: 13px; gap: 9px; }
  .brand small { display: none; }
  .brand-logo { width: 52px; }
  .nav { gap: 12px; font-size: 14px; }
  .nav a:nth-child(1) { display: none; }
  .nav-cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 50px; gap: 36px; }
  h1 { max-width: 430px; font-size: clamp(58px, 16vw, 80px); }
  .hero-copy { font-size: 16px; }
  .hero-visual { min-height: 270px; margin-right: 10px; box-shadow: 9px 9px 0 var(--accent); }
  .spray-tag { right: 6px; }
  .visual-label strong { font-size: 21px; }
  .ticker-inner { min-height: 52px; gap: 32px; padding-right: 32px; }
  .ticker-item { font-size: 19px; }
  .section { padding: 68px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head h2 { font-size: 50px; }
  .section-intro { margin-top: 14px; font-size: 15px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service { min-height: 240px; padding: 22px 20px; }
  .service h3 { margin-top: 20px; font-size: 29px; }
  .service p { margin-bottom: 20px; }
  .battery-band { padding: 40px 0; }
  .battery-content { grid-template-columns: 1fr auto; gap: 18px 12px; }
  .battery-content h2 { font-size: 40px; }
  .battery-content p { font-size: 14px; }
  .battery-price { padding: 10px 14px; }
  .battery-price strong { font-size: 36px; }
  .battery-content .button { width: 100%; }
  .market-intro { display: block; }
  .market-intro h2 { font-size: 54px; }
  .listing-form { grid-template-columns: 1fr 1fr; gap: 12px 9px; }
  .field label { font-size: 13px; }
  .listing { grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
  .listing-image { width: 82px; aspect-ratio: 1; font-size: 12px; }
  .listing-title { font-size: 21px; }
  .listing-price { font-size: 21px; }
  .listing-side { gap: 9px; }
  .listing-meta { font-size: 13px; }
  .listing-desc { grid-column: 2 / -1; }
  .board-head { flex-wrap: wrap; }
  .listing-search { width: 100%; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding: 26px 0; }
  .brand-logo-lg { width: 72px; }
  .footer-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
