:root {
  --ink: #111820;
  --muted: #68727d;
  --line: #dce1e5;
  --paper: #f5f6f4;
  --red: #e63a2e;
  --red-dark: #bd2c23;
  --green: #157a48;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  height: 82px; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 28px; border-bottom: 1px solid rgba(17,24,32,.12);
  background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
}
.brand-mark { display: flex; align-items: center; gap: 11px; width: max-content; }
.brand-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 13px; font-weight: 900; transform: skew(-7deg); }
.brand-mark > span:last-child { display: grid; line-height: 1; gap: 5px; }
.brand-mark strong { font-size: 15px; letter-spacing: .08em; }
.brand-mark small { font-size: 8px; letter-spacing: .17em; color: var(--muted); }
nav { display: flex; gap: clamp(18px, 2.3vw, 40px); font-size: 13px; font-weight: 700; }
nav a { padding: 30px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--red); }
.header-whatsapp { width: 42px; height: 42px; justify-self: end; display: grid; place-items: center; border: 1px solid var(--ink); transition: .2s; }
.header-whatsapp img { width: 21px; height: 21px; display: block; }
.header-whatsapp:hover { background: var(--ink); color: #fff; }

.hero { min-height: 670px; display: grid; grid-template-columns: 48% 52%; background: var(--paper); overflow: hidden; }
.hero-copy { padding: clamp(72px, 8vw, 125px) clamp(32px, 6vw, 100px) 60px max(4vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 24px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(55px, 6.4vw, 102px); line-height: .91; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { color: var(--red); display: block; }
.hero-lead { max-width: 570px; margin: 31px 0 0; color: #424b53; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px 19px; font-size: 13px; font-weight: 900; }
.button-primary { background: var(--red); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.button-primary:hover { background: var(--red-dark); transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.text-link { border-bottom: 1px solid var(--ink); padding: 8px 0; font-size: 13px; font-weight: 800; }
.text-link span { color: var(--red); margin-left: 8px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 11px 25px; margin-top: 50px; color: #5e6871; font-size: 11px; font-weight: 700; }
.hero-proof span::before { content: '✓'; color: var(--red); margin-right: 7px; font-weight: 900; }
.hero-photo { min-height: 670px; background: linear-gradient(90deg, rgba(17,24,32,.12), transparent 30%), url('/assets/hero.jpg') center/cover; position: relative; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,13,18,.42), transparent 45%); }
.photo-badge { position: absolute; z-index: 1; left: 34px; bottom: 32px; padding: 16px 20px; color: white; border-left: 3px solid var(--red); background: rgba(10,15,20,.78); backdrop-filter: blur(9px); }
.photo-badge small, .photo-badge strong { display: block; }
.photo-badge small { color: #cbd0d3; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.photo-badge strong { font-size: 13px; }

.brand-strip { min-height: 118px; padding: 26px 4vw; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 30px; color: #fff; background: var(--ink); }
.brand-strip p { margin: 0; color: #9ba2a7; font-size: 9px; letter-spacing: .18em; }
.brand-strip div { display: flex; justify-content: space-between; gap: 26px; color: #d9dde0; }
.brand-strip strong { font-size: clamp(15px, 1.5vw, 23px); letter-spacing: -.03em; }
.brand-strip a { color: #b7bdc2; font-size: 11px; border-bottom: 1px solid #596169; padding-bottom: 4px; }
.brand-strip a span { color: var(--red); margin-left: 8px; }

.atlas-photo { background-image: url('/assets/parts-atlas.png'); background-repeat: no-repeat; background-size: 300% 200%; }
.atlas-frenos { background-position: 0 0; }
.atlas-suspension { background-position: 50% 0; }
.atlas-motor { background-position: 100% 0; }
.atlas-filtros { background-position: 0 100%; }
.atlas-electricidad { background-position: 50% 100%; }
.atlas-embrague { background-position: 100% 100%; }

.categories { padding: clamp(85px, 10vw, 150px) 4vw; background: #eef0ef; }
.categories-intro { max-width: 1380px; margin: 0 auto 50px; display: grid; grid-template-columns: 130px 1fr 300px; gap: 30px; align-items: end; }
.big-number { color: transparent; font-size: 116px; font-weight: 900; line-height: .75; letter-spacing: -.09em; -webkit-text-stroke: 1px #b3bac0; }
.categories-intro p { margin: 0 0 12px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.categories-intro h2 { max-width: 790px; margin: 0; font-size: clamp(38px, 4.8vw, 69px); line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.categories-intro .categories-note { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.category-mosaic { max-width: 1380px; height: 720px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr 1fr .9fr; grid-template-rows: 1fr .82fr; gap: 12px; }
.category-tile { min-height: 0; position: relative; overflow: hidden; background: #fff; }
.category-tile:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.category-tile:nth-child(2) { grid-column: 3; grid-row: 1 / span 2; }
.category-tile:nth-child(3) { grid-column: 4; grid-row: 1; }
.category-tile:nth-child(4) { grid-column: 1; grid-row: 2; }
.category-tile:nth-child(5) { grid-column: 2; grid-row: 2; }
.category-tile:nth-child(6) { grid-column: 4; grid-row: 2; }
.category-tile .atlas-photo { position: absolute; inset: 0; transition: transform .45s ease; }
.category-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,17,23,.78), transparent 53%); }
.category-tile:hover .atlas-photo { transform: scale(1.035); }
.category-copy { position: absolute; z-index: 1; left: 23px; right: 55px; bottom: 22px; display: grid; gap: 5px; color: #fff; }
.category-copy strong { font-size: 24px; letter-spacing: -.03em; text-transform: uppercase; }
.category-copy small { color: #d7dcdf; font-size: 11px; }
.category-arrow { position: absolute; z-index: 1; right: 20px; bottom: 20px; width: 29px; height: 29px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.6); }

.about { display: grid; grid-template-columns: 46% 54%; min-height: 720px; background: #fff; }
.about-photo { min-height: 720px; display: flex; align-items: end; padding: 42px 4vw; color: #fff; background: linear-gradient(0deg, rgba(10,15,20,.8), transparent 55%), url('/assets/workshop.jpg') center/cover; }
.about-photo p { margin: 0; font-size: clamp(28px, 2.7vw, 43px); font-weight: 800; line-height: 1.06; letter-spacing: -.04em; }
.about-copy { padding: clamp(62px, 6.5vw, 100px) clamp(35px, 6vw, 96px); align-self: center; }
.about-copy h2 { max-width: 780px; margin: 0; font-size: clamp(37px, 3.7vw, 58px); line-height: 1.04; letter-spacing: -.05em; }
.about-lead { max-width: 720px; margin: 26px 0 14px; color: #3f4952; font-size: 16px; line-height: 1.68; }
.about-body { max-width: 720px; margin: 0 0 27px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.about-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-details strong { font-size: 12px; }
.about-details p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
blockquote { margin: 24px 0 0; padding-left: 18px; color: #49535b; border-left: 3px solid var(--red); font-size: 13px; font-style: italic; line-height: 1.6; }

.advice { min-height: 590px; padding: clamp(75px, 8vw, 120px) 7vw; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 9vw; align-items: center; color: #fff; background: var(--ink); position: relative; overflow: hidden; }
.advice::before { content: ''; position: absolute; width: 420px; height: 900px; left: 38%; top: -170px; background: #1a252e; transform: rotate(18deg); }
.advice-title, .advice-sheet { position: relative; z-index: 1; }
.advice-title > p { color: #9ca7ae; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.advice-title h2 { max-width: 720px; margin: 19px 0; font-size: clamp(43px, 4.8vw, 72px); line-height: 1; letter-spacing: -.055em; }
.advice-title span { color: #b9c0c5; font-size: 17px; }
.advice-sheet { padding: 30px 32px; color: var(--ink); background: #fff; box-shadow: 11px 11px 0 var(--red); }
.advice-sheet > p:first-child { margin: 0 0 18px; font-size: 14px; font-weight: 800; }
.advice-sheet ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.advice-sheet li { min-height: 56px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.advice-sheet li span { color: var(--red); font: 10px monospace; }
.advice-sheet li strong { font-size: 13px; text-transform: uppercase; }
.advice-sheet li small { color: var(--muted); font-size: 10px; }
.advice-tip { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.advice-tip span { margin-right: 7px; padding: 3px 5px; color: #fff; background: var(--red); font-size: 8px; font-weight: 900; }

.catalog-preview { padding: clamp(80px, 9vw, 140px) 4vw; background: #fff; }
.catalog-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 50px; align-items: end; max-width: 1380px; margin: 0 auto 48px; }
.section-index { margin: 0 0 14px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.catalog-heading h2 { max-width: 850px; margin: 0; font-size: clamp(40px, 4.7vw, 68px); line-height: 1; letter-spacing: -.052em; }
.catalog-heading > p { max-width: 440px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.finder { max-width: 1380px; margin: 0 auto 22px; display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px 112px; border: 1px solid #d5dade; background: #fafbfa; }
.finder label { min-height: 56px; padding: 8px 14px; display: grid; align-content: center; gap: 2px; border-right: 1px solid #d5dade; }
.finder label > span:not(.sr-only) { color: #79828a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.finder input, .finder select { width: 100%; min-width: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 13px; font-weight: 600; }
.finder input:focus-visible, .finder select:focus-visible { outline: 2px solid rgba(230,58,46,.32); outline-offset: 3px; }
.search-field { grid-template-columns: 23px 1fr; align-items: center; }
.search-field > span:first-child { grid-row: 1; font-size: 21px !important; color: var(--red) !important; }
.search-field input { grid-column: 2; grid-row: 1; }
.result-count { margin: 0; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.result-count strong { color: var(--ink); font-size: 16px; letter-spacing: -.03em; }
.product-list { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); scroll-margin-top: 105px; }
.product { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.product-image { height: 270px; background-size: cover; position: relative; overflow: hidden; filter: saturate(.72); }
.product-image > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-image.atlas-photo { background-size: 300% 200%; }
.product-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, rgba(15,23,30,.18)); }
.product-image > span { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 7px 9px; background: #fff; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-image > span.on-request { color: #8a6114; }
.product-info { padding: 25px; }
.product-meta { display: flex; gap: 8px; }
.product-meta span { padding: 5px 7px; color: #5e6871; background: #eef0f1; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.product-info h3 { min-height: 52px; margin: 17px 0 4px; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.product-code { margin: 0; color: #8a9299; font: 10px monospace; }
.product-description { min-height: 42px; margin: 18px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-bottom { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.price { font-size: 25px; letter-spacing: -.04em; white-space: nowrap; }
.price-query { font-size: 16px; }
.product-bottom .product-whatsapp { min-width: 116px; height: 43px; flex: 0 0 auto; padding: 0 14px; display: grid; grid-template-columns: 20px auto; place-items: center; gap: 8px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 800; }
.product-whatsapp img { width: 20px; height: 20px; display: block; }
.product-bottom .product-whatsapp:hover { background: #202a33; }
.empty-state { grid-column: 1 / -1; padding: 60px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-state strong { font-size: 22px; }
.empty-state p { color: var(--muted); }

.pagination { max-width: 1380px; margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.pagination > div { display: flex; gap: 6px; }
.pagination button { min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid #d4d9dd; color: #46515a; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.pagination button:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.pagination button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.pagination button:disabled { opacity: .38; cursor: default; }

.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 430px; }
.contact-main { padding: clamp(55px, 5.5vw, 82px) 5vw; color: #fff; background: var(--red); }
.contact-main > p:first-child { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.contact-main h2 { max-width: 720px; margin: 18px 0 16px; font-size: clamp(39px, 4.3vw, 62px); line-height: 1; letter-spacing: -.055em; }
.contact-lead { max-width: 650px; margin: 0 0 28px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.55; }
.contact-main > a { max-width: 280px; padding: 14px 17px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 800; box-shadow: 4px 4px 0 #a6251e; }
.contact-main > a img { width: 21px; height: 21px; display: block; }
.contact-main > a b { font-size: 18px; }
.contact-details { padding: 42px 4vw; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 0 32px; background: #f0f2f1; }
.contact-details > div { min-width: 0; padding: 19px 0; display: grid; align-content: start; gap: 8px; border-top: 1px solid #ccd2d6; }
.contact-details small { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.contact-details strong { font-size: 13px; line-height: 1.5; }
.contact-details a { width: max-content; color: var(--muted); font-size: 11px; border-bottom: 1px solid #aab1b6; }

footer { min-height: 210px; padding: 42px 4vw; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 25px 60px; color: #fff; background: #0b1116; }
.footer-brand .brand-symbol { box-shadow: 4px 4px 0 #3a4147; }
.footer-brand small { color: #89939a; }
footer > p { max-width: 380px; margin: 0; color: #9ca6ad; font-size: 13px; line-height: 1.55; }
footer > div { display: flex; gap: 25px; color: #c6ccd0; font-size: 11px; font-weight: 700; }
footer > small { grid-column: 1 / -1; padding-top: 23px; color: #69747c; border-top: 1px solid #252e35; font-size: 9px; letter-spacing: .08em; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr 45%; }
  .hero-copy { padding-left: 4vw; padding-right: 4vw; }
  .hero h1 { font-size: clamp(52px, 7vw, 74px); }
  .brand-strip { grid-template-columns: 110px 1fr; }
  .brand-strip a { display: none; }
  .categories-intro { grid-template-columns: 100px 1fr; }
  .categories-note { grid-column: 2; }
  .category-mosaic { height: 680px; }
  .about-copy { padding-left: 5vw; padding-right: 5vw; }
  .about-details { grid-template-columns: 1fr; gap: 20px; }
  .advice { gap: 5vw; padding-left: 5vw; padding-right: 5vw; }
  .finder { grid-template-columns: minmax(230px, 1fr) 160px 160px 100px; }
  .result-count strong { font-size: 15px; }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-main { padding-left: 7vw; padding-right: 7vw; }
  .contact-details { padding-left: 7vw; padding-right: 7vw; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header { height: 70px; padding: 0 18px; }
  .brand-symbol { width: 37px; height: 37px; }
  .brand-mark strong { font-size: 13px; }
  .brand-mark small { font-size: 7px; }
  .header-whatsapp { width: 40px; height: 40px; padding: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 66px 20px 55px; }
  .hero h1 { font-size: clamp(49px, 15vw, 68px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-proof { margin-top: 38px; flex-direction: column; }
  .hero-photo { min-height: 400px; }
  .photo-badge { left: 20px; bottom: 20px; }
  .brand-strip { padding: 25px 20px; grid-template-columns: 1fr; gap: 14px; }
  .brand-strip div { overflow: hidden; justify-content: flex-start; gap: 30px; }
  .brand-strip strong:nth-child(n+5) { display: none; }
  .categories { padding: 75px 20px; }
  .categories-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .big-number { font-size: 78px; }
  .categories-intro h2 { font-size: 41px; }
  .categories-note { grid-column: auto; }
  .category-mosaic { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 8px; }
  .category-tile:nth-child(1), .category-tile:nth-child(2), .category-tile:nth-child(3), .category-tile:nth-child(4), .category-tile:nth-child(5), .category-tile:nth-child(6) { min-height: 245px; grid-column: auto; grid-row: auto; }
  .category-tile:first-child, .category-tile:nth-child(5) { grid-column: 1 / -1; min-height: 275px; }
  .category-copy { left: 16px; bottom: 16px; }
  .category-copy strong { font-size: 19px; }
  .category-copy small { display: none; }
  .category-arrow { right: 14px; bottom: 14px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: 430px; padding: 28px 20px; }
  .about-copy { padding: 70px 20px; }
  .about-copy h2 { font-size: 42px; }
  .advice { padding: 75px 20px 85px; grid-template-columns: 1fr; gap: 45px; }
  .advice::before { left: 55%; }
  .advice-title h2 { font-size: 48px; }
  .advice-sheet { padding: 25px 20px; box-shadow: 7px 7px 0 var(--red); }
  .advice-sheet li { grid-template-columns: 36px 1fr; }
  .advice-sheet li small { display: none; }
  .catalog-preview { padding: 75px 20px; }
  .catalog-heading { grid-template-columns: 1fr; gap: 25px; margin-bottom: 32px; }
  .catalog-heading h2 { font-size: 44px; }
  .finder { grid-template-columns: 1fr 1fr; gap: 7px; border: 0; background: transparent; }
  .finder label { min-height: 48px; padding: 7px 11px; border: 1px solid #d5dade; background: #fafbfa; }
  .finder .search-field { min-height: 52px; grid-column: 1 / -1; }
  .finder label > span:not(.sr-only) { font-size: 7px; }
  .finder input, .finder select { font-size: 12px; }
  .result-count { grid-column: 1 / -1; min-height: 18px; justify-content: flex-start; padding: 0 2px; }
  .result-count strong { font-size: 14px; }
  .product-list { grid-template-columns: 1fr; }
  .product-image { height: 240px; }
  .pagination { margin-top: 22px; gap: 8px; }
  .pagination button { min-width: 32px; height: 34px; padding: 0 9px; font-size: 10px; }
  .contact-main { padding: 54px 20px; }
  .contact-main h2 { font-size: 41px; }
  .contact-details { padding: 30px 20px; grid-template-columns: 1fr; }
  footer { padding: 45px 20px; grid-template-columns: 1fr; }
  footer > div, footer > small { grid-column: auto; }
  footer > div { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .65s both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .hero-copy > *:nth-child(4) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
