/* Motorsur · demo de taller automotriz */

/* Fuentes alojadas en el sitio (subconjunto latino, variables) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --soft: #F4F5F7;
  --ink: #14181F;
  --steel: #1E2530;
  --steel-2: #29313D;
  --muted: #5A6472;
  --line: #DDE1E7;
  --accent: #F28C28;
  --accent-dark: #DE7712;
  --accent-text: #A04D0A;
  --on-accent: #14181F;
  --ok: #15803D;
  --wa: #25D366;
  --radius: 14px;
  --shadow: 0 24px 48px -28px rgba(20, 24, 31, .45);
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.muted { color: var(--muted); }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 8px var(--gutter); background: #0B0E13; color: #C9D1DC; font-size: .82rem; text-align: center; }
.demo-bar p { margin: 0; }
.demo-bar strong { color: #fff; }
.demo-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.2rem; border: 1.5px solid transparent; border-radius: 10px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 10px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--accent); }
.logo-mark .icon { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--head); font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.logo-text small { font-size: .72rem; font-weight: 600; color: var(--muted); }

.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.menu-btn .i-close { display: none; }
.header.is-open .menu-btn .i-open { display: none; }
.header.is-open .menu-btn .i-close { display: block; }
.nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
.nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.nav .nav-cta { margin-top: 12px; border: 0; }
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .5rem .75rem; border: 0; border-radius: 8px; color: var(--muted); }
  .nav a:hover { background: var(--soft); color: var(--ink); }
  .nav .nav-cta { margin: 0 0 0 8px; color: var(--on-accent); }
  .nav .nav-cta:hover { background: var(--accent-dark); color: var(--on-accent); }
}

/* Hero */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(82vh, 700px); padding: 72px 0 56px; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 18, 24, .94) 0%, rgba(14, 18, 24, .8) 45%, rgba(14, 18, 24, .35) 100%); }
@media (max-width: 759px) { .hero::after { background: linear-gradient(180deg, rgba(14, 18, 24, .55) 0%, rgba(14, 18, 24, .92) 60%); } .hero { align-items: end; } }
.kicker { margin: 0 0 1rem; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 15ch; margin-bottom: 1rem; font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 33em; margin: 0 0 1.75rem; font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem); color: #D3DAE3; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 459px) { .hero-ctas .btn { flex: 1 1 100%; } }
.trust { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; color: #D3DAE3; font-size: .92rem; }
@media (min-width: 760px) { .trust { display: flex; flex-wrap: wrap; gap: 10px 24px; } }
.trust li { display: inline-flex; align-items: center; gap: .5rem; }
.trust .icon { color: var(--accent); }

/* Secciones */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--soft); }
.section-dark { background: var(--steel); color: #fff; }
.section-dark p { color: #C9D1DC; }
.section-head { max-width: 700px; margin-bottom: 32px; }
.section-head p:last-child { margin: .8rem 0 0; }
.section h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.eyebrow { margin: 0 0 .6rem; color: var(--accent-text); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .eyebrow { color: var(--accent); }

/* Servicios */
.services { display: grid; gap: 14px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.service:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #FFF1E3; color: var(--accent-text); }
.service-icon .icon { width: 22px; height: 22px; }
.service h3 { font-size: 1.1rem; }
.service p { margin: 0; flex: 1; color: var(--muted); font-size: .9rem; }
.service-price { font-weight: 700; font-size: .92rem; }
.service-price span { color: var(--muted); font-weight: 500; }

/* Cotizador */
.quote { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .quote { grid-template-columns: 1fr 360px; gap: 28px; } }
.quote-form { display: grid; gap: 18px; min-width: 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--steel-2); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.field input, .field textarea, .select select { width: 100%; padding: .75rem .85rem; border: 1px solid #3A4453; border-radius: 10px; background: #161B23; color: #fff; font-weight: 400; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8893A2; }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #F87171; }
.select { position: relative; display: block; }
.select select { padding-right: 2.4rem; appearance: none; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #AEB7C4; border-bottom: 2px solid #AEB7C4; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.checks, .radios { min-width: 0; margin: 0; padding: 0; border: 0; }
.checks legend, .radios legend { margin-bottom: 10px; font-size: .86rem; font-weight: 600; }
.checks-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .checks-grid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1px solid #3A4453; border-radius: 10px; background: #161B23; font-size: .9rem; cursor: pointer; }
.check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #161B23); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check span { flex: 1; }
.check small { color: #AEB7C4; font-size: .8rem; white-space: nowrap; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.radios label { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.radios input { accent-color: var(--accent); }

.estimate { position: sticky; top: 88px; padding: 24px; border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.estimate h3 { margin-bottom: 14px; font-size: 1.3rem; }
.estimate-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .92rem; }
.estimate-list li { display: flex; justify-content: space-between; gap: 12px; }
.estimate-list .muted { display: block; }
.estimate-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.section-dark .estimate p { color: var(--muted); }
.estimate-total span { font-weight: 600; }
.section-dark .estimate .estimate-total span { color: var(--ink); }
.estimate-total strong { font-family: var(--head); font-size: 1.8rem; }
.estimate-note { margin: 0 0 16px; font-size: .82rem; }
.form-error { margin: 0 0 12px; padding: .6rem .8rem; border-radius: 10px; background: #FDECEC; font-size: .86rem; }
.section-dark .estimate .form-error { color: #9B1C1C; }

/* Seguimiento y mantenimiento */
.tracker { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .tracker { grid-template-columns: 1fr 1fr; gap: 56px; } }
.tracker .muted { margin: .8rem 0 1.4rem; }
.plate-form { display: flex; flex-wrap: wrap; gap: 10px; }
.plate { width: 190px; padding: .55rem .9rem; border: 3px solid var(--ink); border-radius: 10px; background: #FFD43B; font-family: var(--head); font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.plate::placeholder { color: rgba(20, 24, 31, .35); }
.plate:focus { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.hint { margin: .7rem 0 0; color: var(--muted); font-size: .85rem; }
.status-card, .oil-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); }
.status-empty { margin: 0; color: var(--muted); text-align: center; }
.status-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 18px; }
.status-head h3 { font-size: 1.25rem; }
.status-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.steps { display: grid; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.steps li.done:not(:last-child)::before { background: var(--ok); }
.step-dot { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); color: #fff; }
.step-dot .icon { width: 14px; height: 14px; }
.steps li.done .step-dot { border-color: var(--ok); background: var(--ok); }
.steps li.current .step-dot { border-color: var(--accent); background: #FFF1E3; box-shadow: 0 0 0 4px rgba(242, 140, 40, .2); }
.steps strong { display: block; font-size: .95rem; }
.steps small { color: var(--muted); font-size: .84rem; }
.steps li:not(.done):not(.current) strong { color: var(--muted); }

.oil-form { display: grid; gap: 12px; max-width: 420px; }
.oil-form .field input, .oil-form .select select { border-color: var(--line); background: var(--bg); color: var(--ink); }
.oil-form .field input::placeholder { color: #8A94A3; }
.oil-form .select::after { border-color: var(--muted); }
.oil-km { margin: 0; font-family: var(--head); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 800; line-height: 1; }
.oil-km.is-late { color: #B42318; }
.oil-text { margin: .5rem 0 1rem; color: var(--muted); }
.bar { height: 12px; margin-bottom: 18px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .3s; }
.bar span.is-warn { background: var(--accent); }
.bar span.is-late { background: #B42318; }

/* Por qué nosotros */
.why { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1fr; gap: 56px; } }
.why-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why-photos img:last-child { margin-top: 36px; }
.why-list { display: grid; gap: 16px; margin: 22px 0 26px; padding: 0; list-style: none; }
.why-list li { display: flex; gap: .8rem; color: var(--muted); }
.why-list strong { color: var(--ink); }
.why-list .icon { width: 24px; height: 24px; margin-top: .1em; color: var(--accent-text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats p { margin: 0; padding: 14px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: .84rem; line-height: 1.3; }
.stats strong { display: block; font-family: var(--head); font-size: 1.6rem; color: var(--ink); }

/* Ubicación */
.location { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .location { grid-template-columns: 1fr 1fr; gap: 48px; } }
.location > div > p:not(.eyebrow) { margin: .8rem 0 1.3rem; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hours { padding: 22px; border-radius: var(--radius); background: var(--steel-2); }
.hours h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: 10px; font-size: 1.2rem; }
.hours h3 .icon { color: var(--accent); }
.hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid #3A4453; text-align: left; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: #C9D1DC; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 700; }

/* Footer */
.footer { padding: 28px 0 96px; border-top: 1px solid var(--line); font-size: .88rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--accent-text); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); }
.wa-float .icon { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
