/* Refacciones América · v2 claro "Tu taller sigue en movimiento" (mockup del cliente, 2026-10-02) */
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #15171A;        /* texto principal */
  --graphite: #1C1F24;   /* pie de página */
  --steel: #5C6168;      /* texto secundario */
  --mist: #EEF0F2;       /* bordes / fondos suaves */
  --paper: #F6F5F3;      /* fondo de sección */
  --white: #FFFFFF;
  --red: #E1251B;        /* Rojo Fricción = rojo del logo */
  --red-hi: #F2461F;
  --orange: #F4621F;     /* degradado de acento */
  --grad: linear-gradient(90deg, var(--red), var(--orange));
  --spark: #FF8A3D;
  --wa: #1FA855;
  --muted: #6B7178;
  --line: #E4E6E9;
  --shadow: 0 18px 50px -20px rgba(21,23,26,.25);
  --font-d: Montserrat, system-ui, sans-serif;
  --font-b: Inter, system-ui, sans-serif;
  --r: 16px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.ico-fill { fill: currentColor; stroke: none; }

.eyebrow { margin: 0 0 14px; font: 600 .78rem/1 var(--font-b); letter-spacing: .26em; text-transform: uppercase; color: var(--steel); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--font-d); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s, background .2s, color .2s; }
.btn svg { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--red { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -12px rgba(225,37,27,.8); }
.btn--red:hover { box-shadow: 0 14px 34px -10px rgba(225,37,27,.85); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { box-shadow: 0 12px 30px -12px rgba(31,168,85,.8); }
.btn--outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .95rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn span[aria-hidden] { font-size: 1.3em; line-height: 0; transform: translateY(-1px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.nav.is-solid { box-shadow: 0 6px 24px -14px rgba(0,0,0,.35); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 86px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand__txt { display: grid; font-family: var(--font-d); text-transform: uppercase; line-height: .98; letter-spacing: -.01em; }
.brand__txt small { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.brand__txt b { font-size: 1.55rem; font-weight: 800; color: var(--red); }
.nav__links { display: flex; gap: 36px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__links a[aria-current] { font-weight: 700; }
.nav__tel { display: flex; align-items: center; gap: 10px; margin-left: 24px; text-decoration: none; }
.nav__tel svg { width: 24px; height: 24px; color: var(--red); }
.nav__tel span { display: grid; line-height: 1.15; }
.nav__tel b { font: 700 1.02rem var(--font-d); }
.nav__tel small { font-size: .76rem; color: var(--muted); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { display: grid; padding: 8px 20px 20px; background: #fff; border-top: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu a { padding: 14px 4px; text-decoration: none; font: 600 1.05rem var(--font-d); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { position: relative; min-height: clamp(460px, 62vh, 620px); display: flex; align-items: center; overflow: hidden; background: var(--paper); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,245,243,.97) 0%, rgba(246,245,243,.88) 30%, rgba(246,245,243,0) 58%), linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 22%); }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__copy { position: relative; padding: 56px 0 120px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 800; }
.hero h1 em { display: block; white-space: nowrap; }
.hero__sub { max-width: 40ch; margin: 20px 0 0; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #2E3237; }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .1s; } .hero__copy > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Vehicle finder */
.finder-wrap { position: relative; z-index: 3; margin-top: -86px; }
.finder { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 28px 22px; border: 1px solid var(--line); }
.finder h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: 18px; }
.finder__row { display: grid; grid-template-columns: 1fr 1fr .8fr auto; gap: 14px; }
.field { position: relative; display: block; }
.field svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink); pointer-events: none; }
.field select { width: 100%; height: 54px; padding: 0 40px 0 50px; border: 1.5px solid #D9DCE0; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  font: 500 1rem var(--font-b); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.field select:hover { border-color: #B9BEC4; }
.field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,37,27,.12); }
.field select:disabled { color: #9AA0A6; cursor: not-allowed; background-color: #FAFAFA; }
.field.is-err select { border-color: var(--red); }
.finder__go { min-height: 54px; padding: 0 30px; font-size: 1.08rem; }
.finder__msg:empty { display: none; }
.finder__msg { margin: 12px 0 0; font-size: .95rem; color: var(--steel); }
.finder__msg b { color: var(--ink); }
.finder__msg.is-err { color: var(--red); }

/* Sections */
.sec { padding: clamp(64px, 9vw, 110px) 0; }
.sec__head { margin-bottom: 40px; }

/* Products */
.products { padding-top: 40px; }
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 22px; transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 8px; transition: transform .5s var(--ease); }
.pcard:hover img { transform: scale(1.05) rotate(-2deg); }
.pcard h3 { font-size: 1.22rem; }
.pcard p { margin: 4px 0 16px; color: var(--steel); font-size: .95rem; line-height: 1.4; }
.pcards.has-car .pcard { border-color: rgba(225,37,27,.35); }
.also { margin: 28px 0 0; color: var(--steel); }
.also a { color: var(--red); font-weight: 600; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.perk { display: flex; align-items: center; gap: 14px; font-size: .92rem; line-height: 1.25; color: #2E3237; }
.perk svg { width: 34px; height: 34px; flex: none; color: var(--ink); stroke-width: 1.5; }
.perk .star { font-size: 30px; color: #F5A623; width: 34px; text-align: center; flex: none; }

/* Segments */
.segs { background: var(--paper); }
.segs__grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: start; }
.seg { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.seg--hl { border-color: var(--red); box-shadow: var(--shadow); }
.seg__k { margin: 0 0 12px; font: 700 .76rem var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.seg h3 { font-size: 1.4rem; margin-bottom: 14px; }
.seg ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; color: #2E3237; }
.seg li { position: relative; padding-left: 26px; }
.seg li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--grad); }
.fleet { display: grid; gap: 12px; }
.fleet__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.fleet label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.fleet input, .fleet select, .fleet textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #D9DCE0; border-radius: 9px; font: 400 1rem var(--font-b); color: var(--ink); background: #fff; }
.fleet textarea { resize: vertical; }
.fleet :is(input, select, textarea):focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,37,27,.12); }

/* Story */
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-left: 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.tl__k { font: 700 .74rem var(--font-b); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--steel); }

/* Contact */
.loc { background: var(--paper); }
.loc__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.loc address { margin: 22px 0; font-style: normal; font-size: 1.1rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours td { text-align: right; }
.hours tr.is-today { color: var(--red); font-weight: 700; }
.open { display: flex; align-items: center; gap: 10px; margin: 18px 0 24px; font-weight: 600; color: var(--steel); }
.open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #B6BBC1; }
.open.is-open { color: #188A45; }
.open.is-open::before { background: #2bd46b; box-shadow: 0 0 0 4px rgba(43,212,107,.18); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.foot { background: var(--graphite); color: #C9CDD2; padding: 48px 0 110px; font-size: .92rem; }
.foot__in { display: grid; gap: 14px; }
.brand--foot .brand__txt small, .brand--foot .brand__txt b { color: #fff; }
.brand--foot img { width: 44px; height: 44px; }
.foot p { margin: 0; }
.foot__small { color: #8B9198; }

/* Mobile dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 8px; border-radius: 14px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 12px 34px -12px rgba(0,0,0,.4); transform: translateY(140%); transition: transform .4s var(--ease); }
.dock.is-on { transform: none; }
.dock .btn { min-height: 48px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .nav__links { gap: 22px; }
  .nav__tel small { display: none; }
  .finder__row { grid-template-columns: 1fr 1fr; }
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav__tel { display: none; }
  .nav__burger { display: block; }
  .nav__in { height: 70px; }
  .brand img { width: 46px; height: 46px; }
  .brand__txt small { font-size: .9rem; } .brand__txt b { font-size: 1.3rem; }
  .hero { min-height: 0; align-items: flex-start; }
  .hero__bg img { object-position: 78% 50%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(246,245,243,.96) 0%, rgba(246,245,243,.8) 42%, rgba(246,245,243,0) 66%), linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 20%); }
  .hero__copy { padding: 30px 0 190px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero__sub { font-size: .98rem; }
  .finder-wrap { margin-top: -70px; }
  .finder { padding: 20px 16px 14px; }
  .finder__row { grid-template-columns: 1fr; gap: 10px; }
  .finder h2 { margin-bottom: 14px; }
  .pcards { gap: 12px; }
  .pcard { padding: 12px 12px 16px; text-align: center; }
  .pcard p { display: none; }
  .pcard h3 { font-size: 1rem; margin-bottom: 10px; }
  .pcard .btn { width: 100%; padding: 0 10px; }
  .segs__grid, .story__grid, .loc__grid { grid-template-columns: 1fr; gap: 24px; }
  .dock { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
