/* Fabodiesel — identidad visual: Archivo (Expanded 800 títulos, 400–600 texto), JetBrains Mono datos */
:root {
  --blue-950: #0a1224; --blue-900: #0f1a33; --blue-800: #152547; --blue-700: #1b3163;
  --blue-600: #213e7c; --blue-400: #4f6fb3; --blue-200: #b8c6e6; --blue-50: #eef2fa;
  --orange-800: #8f220f; --orange-700: #c22e14; --orange-500: #f13f23; --orange-300: #f7866f;
  --orange-200: #fbc2b5; --orange-50: #fdece7;
  --text-2: #8a9bc4; --border: #243457; --success: #2fa36b; --warn: #f2a93b;
  --ink: #0f1a33; --muted: #48526a; --line: #dfe3ea; --bg: #f3f4f6; --wa: #25d366; --wa-dark: #1ebe5a;
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: var(--orange-700); text-decoration: none; }
a:hover { color: var(--orange-500); }
button, input, select { font-family: var(--font); }
:focus-visible { outline: 3px solid var(--orange-300); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 32px; }
.display { font-weight: 800; font-stretch: 125%; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-700); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--orange-300); }
.mono { font-family: var(--mono); font-weight: 500; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 4px; padding: 14px 26px; font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; background: var(--orange-500); color: #fff; transition: background .15s; }
.btn:hover { background: var(--orange-700); color: #fff; }
.btn--dark { background: var(--blue-900); } .btn--dark:hover { background: var(--blue-600); }
.btn--wa { background: var(--wa); color: #06361a; } .btn--wa:hover { background: var(--wa-dark); color: #06361a; }

/* Navegación */
.site-header { background: var(--blue-900); color: #fff; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; padding-block: 18px; }
.nav__logo { display: flex; }
.nav__logo img { height: 88px; width: auto; }
@media (max-width: 720px) { .nav__logo img { height: 68px; } }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav__links a { color: #fff; } .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--orange-300); }
.nav__links .btn, .hero .nav__links .btn { margin-top: 0; align-self: auto; padding: 10px 20px; font-size: 14px; } .nav__links .btn:hover { color: #fff; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .15s, background .15s; }
.wa-float:hover { background: var(--wa-dark); transform: scale(1.06); }

/* Footer */
.site-footer { background: var(--blue-950); color: #a9b4cf; padding-block: 28px; font-size: 15px; }
/* deja libre el botón flotante de WhatsApp: abajo en pantallas pequeñas, a la derecha en escritorio */
@media (max-width: 900px) {
  .site-footer { padding-bottom: 104px; }
}
@media (min-width: 901px) {
  .site-footer .wrap { padding-right: 104px; }
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer__logo { display: flex; background: #fff; padding: 6px 10px; border-radius: 4px; }
.site-footer__logo img { height: 34px; width: auto; }
.social { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.social a { display: flex; align-items: center; gap: 8px; color: #dbe2f2; } .social a:hover { color: #fff; }
.social img { width: 22px; height: 22px; object-fit: contain; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; color: #fff; background: linear-gradient(90deg, rgba(10,18,36,.94) 0%, rgba(10,18,36,.78) 38%, rgba(10,18,36,.25) 75%, rgba(10,18,36,.1) 100%), url(../assets/banco-pruebas.jpg) center/cover, var(--blue-900); }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 40px 90px; }
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero__kicker::before { content: ""; width: 40px; height: 3px; background: var(--orange-500); }
.hero h1 { font-size: clamp(38px, 5.6vw, 84px); max-width: 960px; }
.hero h1 em { font-style: normal; color: var(--orange-500); }
.hero p { margin: 28px 0 0; font-size: clamp(18px, 1.6vw, 21px); max-width: 600px; color: #dde3ef; text-wrap: pretty; }
.hero .btn { margin-top: 36px; align-self: flex-start; font-size: 17px; padding: 16px 30px; }
.partners { background: var(--blue-600); }
.partners .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; padding-block: 18px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.partners small { color: #c9d5f0; font-size: 13px; }

/* Secciones */
.section { padding-block: 110px; }
.section--dark { background: var(--blue-900); color: #fff; }
.section--white { background: #fff; }
.section__title { font-size: clamp(30px, 3.6vw, 52px); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section__head .eyebrow { margin-bottom: 12px; }
.section__lead { margin: 0; max-width: 440px; font-size: 18px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,26,51,.06); }
.card__img { aspect-ratio: 4/3; background: var(--blue-600) center/cover; }
.card__body { padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 10px; }
.card__num { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--orange-700); }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; font-stretch: 125%; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; }
.systems { border-top: 1px solid rgba(255,255,255,.14); margin-top: 24px; }
.systems div { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 20px; }
.systems dt { font-weight: 800; font-stretch: 125%; font-size: 17px; margin: 0; }
.systems dd { margin: 0; color: #c3cbe0; }
.symptoms { background: rgba(33,62,124,.4); border: 1px solid rgba(184,198,230,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 6px; padding: 40px; align-self: start; }
.symptoms h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; font-stretch: 125%; line-height: 1.15; }
.symptoms > p { margin: 0 0 26px; color: #dbe2f2; }
.symptoms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.symptoms li { display: flex; align-items: center; gap: 14px; background: rgba(10,18,36,.35); padding: 16px 18px; border-radius: 4px; font-weight: 600; font-size: 17px; }
.symptoms li::before { content: ""; width: 10px; height: 10px; background: var(--orange-500); border-radius: 50%; flex: none; }
.symptoms .btn { margin-top: 28px; }

.engines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.engine { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-600); border-radius: 6px; padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.engine h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 125%; color: var(--blue-600); }
.engine p { margin: 0; color: var(--muted); }
.engine .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--orange-700); }
.engine--cta { background: var(--orange-500); color: #fff; justify-content: space-between; gap: 18px; border: 0; }
.engine--cta:hover { background: var(--orange-700); color: #fff; }
.engine--cta h3 { color: #fff; font-size: 22px; } .engine--cta p { color: #fff; }
.engine--cta span { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.lab { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); background: var(--blue-900); color: #fff; }
.lab img { width: 100%; height: 100%; object-fit: cover; }
.lab__text { padding: 90px clamp(32px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.lab__text h2 { font-size: clamp(28px, 3.2vw, 44px); }
.lab__text p { margin: 0; font-size: 18px; color: #c3cbe0; max-width: 560px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: baseline; }
.steps .n { font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--orange-300); min-width: 28px; }
.steps span:last-child { color: #c3cbe0; } .steps strong { color: #fff; }

.contact { padding-block: 110px; color: #fff; background: linear-gradient(rgba(21,37,71,.93), rgba(21,37,71,.93)), url(../assets/fachada.jpg) center/cover, var(--blue-600); }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(34px, 4.4vw, 62px); margin-bottom: 20px; } .contact h2 em { font-style: normal; color: var(--orange-300); }
.contact p { margin: 0; font-size: 19px; color: #dbe2f2; max-width: 480px; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact__item { background: #fff; color: var(--ink); padding: 26px; border-radius: 6px; display: flex; flex-direction: column; gap: 6px; }
a.contact__item:hover { background: var(--blue-50); color: var(--ink); }
.contact__item svg { width: 28px; height: 28px; stroke: var(--orange-500); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact__item .eyebrow { font-size: 12px; }
.contact__item .val { font-family: var(--mono); font-weight: 500; font-size: 22px; }
.contact__item .val--text { font-family: var(--font); font-weight: 600; font-size: 17px; line-height: 1.4; }
.contact__item small { color: var(--muted); font-size: 15px; }

/* Tienda */
.shop-hero { color: #fff; background: linear-gradient(90deg, rgba(10,18,36,.95) 0%, rgba(10,18,36,.82) 45%, rgba(10,18,36,.4) 100%), url(../assets/inyectores.jpg) center/cover, var(--blue-900); }
.shop-hero .wrap { padding-block: 70px 64px; display: flex; flex-direction: column; gap: 18px; }
.shop-hero h1 { font-size: clamp(32px, 4.6vw, 62px); max-width: 820px; }
.shop-hero p { margin: 0; font-size: 19px; max-width: 600px; color: #dde3ef; }
.search { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 4px; padding: 0 18px; max-width: 620px; margin-top: 10px; }
.search svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.75; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 18px 0; font-size: 17px; color: var(--ink); background: transparent; }
.search:focus-within { outline: 3px solid var(--orange-300); }
.shop { padding-block: 48px 110px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid #cfd5e1; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 20px; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.toolbar label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
select, .field { border: 1px solid #cfd5e1; border-radius: 4px; padding: 10px 14px; font-size: 16px; color: var(--ink); background: #fff; }
.results { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,26,51,.06); }
.product__img { position: relative; aspect-ratio: 4/3; background: var(--blue-600) center/cover; border: 0; padding: 0; width: 100%; cursor: pointer; }
.badge { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 3px; background: var(--orange-700); }
.badge--new { background: var(--blue-600); }
.product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--orange-700); }
.product h3 { margin: 0; font-size: 17px; font-weight: 800; font-stretch: 125%; line-height: 1.2; }
.product h3 button { all: unset; cursor: pointer; } .product h3 button:focus-visible { outline: 3px solid var(--orange-300); }
.sku { font-family: var(--mono); font-size: 13px; color: #5d667c; }
.price { font-family: var(--mono); font-weight: 600; font-size: 22px; color: var(--blue-600); margin-top: auto; padding-top: 6px; }
.product__actions { display: flex; gap: 10px; margin-top: 4px; }
.product__actions .btn { flex: 1; padding: 13px 16px; }
.icon-btn { width: 50px; flex: none; border: 1px solid #cfd5e1; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: #fff; }
.icon-btn:hover { border-color: var(--wa); background: #effbf3; }
.empty { background: #fff; border-radius: 6px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-top: 20px; }
.empty h2 { margin: 0; font-size: 24px; font-weight: 800; font-stretch: 125%; } .empty p { margin: 0; color: var(--muted); max-width: 460px; }
[hidden] { display: none !important; }

.cart-btn { display: inline-flex; align-items: center; gap: 10px; }
.cart-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { background: #fff; color: var(--orange-700); border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.site-header--sticky { position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.08); }

/* Modal y carrito */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,18,36,.7); display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay--cart { justify-content: flex-end; padding: 0; background: rgba(10,18,36,.6); align-items: stretch; }
.modal { background: #fff; border-radius: 8px; max-width: 960px; width: 100%; max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.modal__img { min-height: 320px; background: var(--blue-600) center/cover; }
.modal__body { padding: 36px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.modal__body h2 { margin: 0; font-size: 26px; font-weight: 800; font-stretch: 125%; line-height: 1.1; padding-right: 40px; }
.modal__price { font-family: var(--mono); font-weight: 600; font-size: 30px; color: var(--blue-600); }
.modal__body p { margin: 0; color: var(--muted); }
.close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: var(--bg); border-radius: 50%; cursor: pointer; font-size: 22px; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid #cfd5e1; border-radius: 4px; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 32px; text-align: center; font-family: var(--mono); font-weight: 600; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row .btn { flex: 1; min-width: 180px; }
.drawer { background: #fff; width: min(460px, 100%); display: flex; flex-direction: column; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 24px; font-weight: 800; font-stretch: 125%; }
.drawer__head .close { position: static; }
.drawer__items { flex: 1; overflow: auto; padding: 8px 28px; }
.line { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid #eef0f4; }
.line__img { width: 64px; height: 64px; border-radius: 4px; background: var(--blue-600) center/cover; }
.line__name { font-weight: 700; line-height: 1.3; }
.line__sub { font-size: 13px; color: #5d667c; font-family: var(--mono); }
.line__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.line .qty button { width: 34px; height: 34px; }
.line__total { font-family: var(--mono); font-weight: 600; color: var(--blue-600); }
.link-btn { border: 0; background: none; padding: 0; color: #5d667c; font-size: 14px; text-decoration: underline; cursor: pointer; margin-top: 6px; }
.drawer__foot { padding: 24px 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer__foot .sum { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); }
.drawer__foot .sum b { font-family: var(--mono); font-size: 24px; color: var(--ink); }
.drawer__empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* Checkout */
.checkout { padding-block: 56px 110px; }
.checkout .back { font-weight: 600; color: var(--blue-600); } .checkout .back:hover { color: var(--orange-700); }
.checkout h1 { font-size: clamp(30px, 4vw, 50px); margin: 20px 0 28px; }
.checkout__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; align-items: start; }
.panel { background: #fff; border-radius: 6px; padding: 30px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.panel h2 { margin: 0; font-size: 19px; font-weight: 800; font-stretch: 125%; }
.field { width: 100%; padding: 14px 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.opt { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 6px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.opt b { color: var(--ink); font-size: 17px; }
.opt[aria-pressed="true"] { border-color: var(--orange-500); background: var(--orange-50); }
.note { font-size: 14px; color: #5d667c; }
.summary { background: var(--blue-900); color: #fff; border-radius: 6px; padding: 30px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.summary h2 { margin: 0; font-size: 19px; font-weight: 800; font-stretch: 125%; }
.summary .items { border-top: 1px solid rgba(255,255,255,.14); }
.summary .items div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.summary .items span:first-child { color: #dde3ef; } .summary .mono { white-space: nowrap; }
.summary .sub { display: flex; justify-content: space-between; color: #c3cbe0; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-stretch: 125%; font-size: 22px; }
.summary .total .mono { font-size: 26px; }
.summary .btn { padding: 16px; }
.summary .alt { text-align: center; color: #fff; font-weight: 600; font-size: 15px; } .summary .alt:hover { color: var(--wa); }
.done { max-width: 640px; margin: 110px auto; background: #fff; border-radius: 6px; padding: 56px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.done__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; }
.done__tick svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h1 { margin: 0; font-size: 34px; }
.done .order { font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--blue-600); }
.done p { margin: 0; color: var(--muted); max-width: 460px; }

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .section, .contact { padding-block: 72px; }
  .symptoms { padding: 28px; }
  .systems div { grid-template-columns: 1fr; gap: 6px; }
}
