:root {
  --red: #e11d2e;
  --red-dark: #b90f20;
  --ink: #0b0d10;
  --ink-2: #161a20;
  --paper: #f4f4f2;
  --white: #fff;
  --muted: #68707b;
  --line: #dcdedb;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(12, 15, 20, .13);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(225,29,46,.75); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { color: #c6cad0; background: #050607; font-size: 12px; letter-spacing: .03em; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a { color: var(--white); }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #46c77a; box-shadow: 0 0 0 4px rgba(70,199,122,.12); }

.site-header { position: sticky; z-index: 50; top: 0; color: var(--white); background: rgba(11,13,16,.92); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { width: 220px; flex: 0 0 auto; }
.brand img { width: 100%; max-height: 55px; object-fit: contain; filter: invert(1) grayscale(1) brightness(2); }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.main-nav > a:not(.nav-cta) { position: relative; color: #d6d9de; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .2s ease; }
.main-nav > a:hover::after { right: 0; }
.nav-cta { padding: 12px 18px; border-radius: 10px; color: var(--white); background: var(--red); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; color: var(--white); background: rgba(255,255,255,.08); }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; min-height: 680px; display: grid; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(5,6,8,.98) 0%, rgba(5,6,8,.9) 37%, rgba(5,6,8,.25) 70%, rgba(5,6,8,.18) 100%), linear-gradient(0deg, rgba(5,6,8,.75), transparent 55%), url('/assets/hero-recambios.webp'); background-size: cover; background-position: center; transform: scale(1.01); }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; align-items: center; padding: 100px 0 130px; }
.hero-copy { max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #f0f1f3; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: var(--red); }
.eyebrow.dark { color: var(--red); }
.hero h1 { margin: 0; font-size: clamp(50px, 6.2vw, 84px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 620px; margin: 28px 0 34px; color: #c7cbd1; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions, .professional-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); box-shadow: 0 12px 30px rgba(225,29,46,.22); }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.button-light { color: var(--ink); background: var(--white); }
.button-icon { color: var(--red); }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin: 32px 0 0; padding: 0; color: #c8ccd2; font-size: 13px; list-style: none; }
.hero-points span { color: var(--red); font-weight: 900; }
.hero-location { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1180px)/2)); bottom: 0; min-width: 290px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; color: var(--white); background: var(--red); }
.location-icon { font-size: 22px; }
.hero-location small, .hero-location strong { display: block; }
.hero-location small { opacity: .75; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-location strong { font-size: 14px; }

.lookup-section { position: relative; z-index: 5; margin-top: 0; padding-top: 22px; }
.lookup-card { display: grid; grid-template-columns: .75fr 1.8fr; gap: 48px; align-items: center; padding: 34px 38px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.lookup-intro h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }
.lookup-intro p:last-child { margin: 8px 0 0; color: var(--muted); }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.lookup-form label span { display: block; margin: 0 0 7px; color: #333943; font-size: 12px; font-weight: 800; }
.lookup-form label small { color: var(--muted); font-weight: 500; }
.lookup-form input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fafafa; transition: border-color .2s ease, box-shadow .2s ease; }
.lookup-form input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,29,46,.09); }
.lookup-submit { border: 0; }
.form-note { grid-column: 1 / -1; margin: 0; color: #777e87; font-size: 11px; }

.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; margin-bottom: 45px; }
.section-heading h2, .process h2, .professional h2, .faq h2 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p { max-width: 470px; margin: 0 0 8px; color: var(--muted); font-size: 17px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 270px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.category-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow); }
.category-card > span { position: absolute; top: 26px; right: 27px; color: #a5aab1; font-size: 11px; font-weight: 800; }
.category-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 40px; border-radius: 12px; color: var(--red); background: #f9e9eb; font-size: 26px; font-weight: 900; }
.category-card h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.category-card p { margin: 8px 0 20px; color: var(--muted); }
.category-card a { position: absolute; left: 28px; bottom: 25px; color: var(--red); font-size: 13px; font-weight: 900; }
.category-card a b { margin-left: 7px; }
.category-card-photo { isolation: isolate; color: var(--white); background: #111; border-color: transparent; }
.category-card-photo::before, .category-card-photo::after { position: absolute; content: ""; inset: 0; pointer-events: none; }
.category-card-photo::before { z-index: -2; background: var(--category-image) center / cover no-repeat; transition: transform .45s ease; }
.category-card-photo::after { z-index: -1; background: linear-gradient(90deg, rgba(5,6,8,.95) 0%, rgba(5,6,8,.72) 46%, rgba(5,6,8,.14) 100%), linear-gradient(0deg, rgba(5,6,8,.62), transparent 55%); }
.category-card-photo:hover::before { transform: scale(1.045); }
.category-card-photo > span { color: rgba(255,255,255,.68); }
.category-card-photo h3 { margin-top: 72px; }
.category-card-photo p { max-width: 250px; color: rgba(255,255,255,.82); }
.category-card-photo a { color: var(--white); }
.category-frenado { --category-image: url('/assets/category-frenado.png'); }
.category-filtracion { --category-image: url('/assets/category-filtracion.png'); }
.category-motor { --category-image: url('/assets/category-motor.png'); }
.category-electricidad { --category-image: url('/assets/category-electricidad.png'); }
.category-suspension { --category-image: url('/assets/category-suspension.png'); }
.category-all { display: flex; flex-direction: column; justify-content: center; color: var(--white); background: var(--red); border-color: var(--red); }
.category-all p { margin: 0; color: rgba(255,255,255,.8); }
.category-all h3 { margin: 4px 0 24px; font-size: 34px; }
.category-all .button { position: static; align-self: flex-start; color: var(--ink); }

.process { color: var(--white); background: var(--ink); }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.process-copy { position: sticky; top: 130px; }
.process-copy > p:not(.eyebrow) { max-width: 480px; color: #aeb4bc; font-size: 17px; }
.text-link { display: inline-flex; gap: 12px; margin-top: 18px; color: var(--white); font-weight: 800; }
.text-link span { color: var(--red); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 25px; padding: 35px 0; border-top: 1px solid rgba(255,255,255,.13); }
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.steps > li > span { color: var(--red); font-size: 13px; font-weight: 900; }
.steps h3 { margin: 0 0 6px; font-size: 25px; }
.steps p { margin: 0; color: #aeb4bc; }

.professional { padding-block: 90px; }
.professional-card { position: relative; display: grid; grid-template-columns: 1fr .8fr; gap: 80px; padding: 68px; overflow: hidden; border-radius: 22px; color: var(--white); background: radial-gradient(circle at 90% 20%, rgba(225,29,46,.28), transparent 30%), linear-gradient(135deg, #171b20, #08090b); box-shadow: var(--shadow); }
.professional-card::before { content: "PRO"; position: absolute; right: -20px; bottom: -80px; color: rgba(255,255,255,.025); font-size: 260px; font-weight: 1000; line-height: 1; }
.professional-copy, .professional-list { position: relative; z-index: 1; }
.professional-copy > p:not(.eyebrow) { max-width: 600px; color: #b7bdc5; font-size: 17px; }
.professional-actions { margin-top: 28px; }
.professional-list { display: grid; align-content: center; gap: 12px; }
.professional-list > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); }
.professional-list span { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--red); }
.professional-list small { color: #9fa6af; }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; align-items: stretch; }
.map-card { position: relative; min-height: 480px; overflow: hidden; border-radius: 18px; background: #e7e7e3; }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #e7e7e3; }
.map-label { position: absolute; z-index: 1; right: 20px; bottom: 20px; left: 20px; padding: 18px 20px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 15px 35px rgba(0,0,0,.12); transition: transform .2s ease, background .2s ease; }
.map-label:hover { background: var(--white); transform: translateY(-2px); }
.map-label small, .map-label strong { display: block; }
.map-label small { color: var(--muted); }
.map-label strong { font-size: 18px; }
.map-label strong span { float: right; color: var(--red); }
.contact-details { display: grid; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: 0; }
.contact-number { color: var(--red); font-size: 11px; font-weight: 900; }
.contact-item small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-item strong { font-size: 20px; }
.contact-item p { margin: 3px 0 0; color: var(--muted); }
.contact-item a:hover { color: var(--red); }

.faq { padding-top: 90px; }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.faq-intro > p:not(.eyebrow) { color: var(--muted); }
.faq-list details { border-top: 1px solid #cfd2d0; }
.faq-list details:last-child { border-bottom: 1px solid #cfd2d0; }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-size: 18px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--red); font-size: 23px; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -8px 50px 25px 0; color: var(--muted); }

.footer { padding: 75px 0 22px; color: #aeb3bb; background: #08090b; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 60px; padding-bottom: 55px; }
.footer-brand img { width: 235px; filter: invert(1) grayscale(1) brightness(2); }
.footer-brand p { max-width: 330px; }
.footer h3 { margin: 0 0 18px; color: var(--white); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer a, .footer p { display: block; margin: 0 0 8px; font-size: 14px; }
.footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.floating-whatsapp { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 999px; color: var(--white); background: #20a85b; box-shadow: 0 12px 32px rgba(0,0,0,.25); font-size: 13px; }
.floating-whatsapp span { font-size: 20px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 40px); padding: 13px 18px; border-radius: 10px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* The content remains readable if JavaScript or the animation observer is unavailable. */
.reveal { opacity: 1; transform: none; }
.has-reveal-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.has-reveal-motion .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .topbar-detail { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 112px 0 auto; max-height: calc(100vh - 112px); display: grid; gap: 0; padding: 18px 20px 28px; background: #0b0d10; border-top: 1px solid rgba(255,255,255,.1); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-cta { margin-top: 14px; text-align: center; border: 0; }
  .hero { min-height: 650px; }
  .hero-backdrop { background-position: 62% center; }
  .lookup-card { grid-template-columns: 1fr; gap: 24px; }
  .lookup-form { grid-template-columns: 1fr 1fr; }
  .lookup-submit { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .professional-card, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .process-copy { position: static; }
  .professional-card { gap: 45px; padding: 50px; }
  .contact-grid { gap: 35px; }
  .map-card { min-height: 380px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  html { scroll-padding-top: 72px; }
  .topbar-inner { min-height: 32px; font-size: 10px; }
  .header-inner { min-height: 66px; }
  .main-nav { inset-block-start: 98px; max-height: calc(100vh - 98px); }
  .brand { width: 170px; }
  .hero { min-height: 690px; }
  .hero-backdrop { background-image: linear-gradient(180deg, rgba(5,6,8,.94) 0%, rgba(5,6,8,.82) 58%, rgba(5,6,8,.9) 100%), url('/assets/hero-recambios.png'); background-position: 68% center; }
  .hero-grid { padding: 72px 0 150px; align-items: start; }
  .hero h1 { font-size: clamp(46px, 14vw, 64px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-points { display: grid; gap: 8px; }
  .hero-location { right: 0; left: 0; min-width: 0; }
  /* En móvil la franja de ubicación necesita quedar completamente visible. */
  .lookup-section { padding-top: 16px; }
  .lookup-card { padding: 26px 20px; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-submit, .form-note { grid-column: auto; }
  .section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .section-heading h2, .process h2, .professional h2, .faq h2 { font-size: 42px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 245px; }
  .process-grid { gap: 45px; }
  .steps li { grid-template-columns: 45px 1fr; gap: 10px; }
  .professional { padding-block: 55px; }
  .professional-card { width: calc(100% - 20px); padding: 34px 24px; border-radius: 18px; }
  .professional-actions { display: grid; }
  .map-card { min-height: 330px; }
  .contact-item { grid-template-columns: 30px 1fr; gap: 10px; }
  .contact-item strong { font-size: 17px; }
  .faq-grid { gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .floating-whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; justify-content: center; padding: 0; }
  .floating-whatsapp b { display: none; }
  .toast { bottom: 80px; width: calc(100% - 28px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .has-reveal-motion .reveal { opacity: 1; transform: none; }
}
