/* =============================================================================
   LLANTAS SOTO · Estilos
   Paleta derivada del logo oficial (muestreo de píxeles):
     azul marino #031A43 · amarillo #F9BA00
   ============================================================================= */

/* ---------- Fuentes (autoalojadas, licencia OFL) ---------- */
@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-latin-800-italic.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../assets/fonts/saira-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../assets/fonts/saira-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #010c22;
  --navy-900: #031a43;
  --navy-850: #05214f;
  --navy-800: #082a5e;
  --navy-700: #0f3a7a;
  --yellow: #f9ba00;
  --yellow-300: #ffd34d;
  --yellow-700: #c99600;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #eceff4;
  --gray-200: #dde3ec;
  --gray-400: #9aa7bb;
  --ink: #0a1730;
  --ink-soft: #4a5a74;
  --on-dark-soft: #b4c1d6;
  --danger: #c62828;
  --danger-dark: #ff8a80;

  --font-display: "Saira", "Arial Black", "Segoe UI", sans-serif;
  --font-cond: "Saira Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-card: 0 24px 60px -24px rgba(1, 12, 34, .45);
  --shadow-soft: 0 10px 30px -12px rgba(3, 26, 67, .25);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  --gutter: clamp(18px, 5vw, 40px);
  --section-y: clamp(72px, 11vw, 136px);
  --container: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.accent { color: var(--yellow); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--navy-900);
  padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible, .section-steel :focus-visible { outline-color: var(--navy-700); }
.cta-final :focus-visible { outline-color: var(--navy-900); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--yellow); --btn-fg: var(--navy-900);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-cond); font-weight: 800; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; line-height: 1.1;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn::after { /* barrido de brillo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 12px 30px -12px rgba(249, 186, 0, .7); }
.btn-primary:hover { background: var(--yellow-300); }
.btn-wa { --btn-bg: var(--yellow); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-dark { --btn-bg: var(--navy-900); --btn-fg: var(--white); }
.btn-dark:hover { background: var(--navy-800); }
.btn-outline-dark { --btn-bg: transparent; --btn-fg: var(--navy-900); border-color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .95em 1.7em; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.3em; height: 1.3em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s, height .35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(3, 26, 67, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 30px -18px rgba(0,0,0,.6);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; transition: height .35s var(--ease-out); }
.main-nav { display: none; margin-left: auto; }
.nav-list { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav-list a {
  position: relative; display: block; padding: 8px 2px;
  color: var(--white); text-decoration: none;
  font-family: var(--font-cond); font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: .85; transition: opacity .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-list a:hover, .nav-list a.is-active { opacity: 1; }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
.menu-toggle {
  margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: var(--white);
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%; cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; gap: 28px;
  padding: calc(var(--header-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(249,186,0,.08) 62% 63%, transparent 63%),
    var(--navy-900);
  overflow-y: auto;
  animation: menuIn .4s var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-list { display: grid; gap: 4px; counter-reset: menu; }
.mobile-list li { counter-increment: menu; }
.mobile-list a::before { content: "0" counter(menu); font-family: var(--font-cond); font-style: normal; font-size: .85rem; color: var(--yellow); letter-spacing: .1em; min-width: 1.6em; }
.mobile-list a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.1; text-transform: uppercase;
}
.mobile-list .num { font-family: var(--font-cond); font-style: normal; font-size: .85rem; color: var(--yellow); letter-spacing: .1em; }
.mobile-menu-foot { margin-top: auto; color: var(--on-dark-soft); font-size: .9rem; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; width: 90vmax; height: 90vmax; right: -40vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(15,58,122,.85), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner {
  flex: 1; display: grid; align-content: end;
  padding-top: calc(var(--header-h) + 12px); padding-bottom: 64px;
  position: relative;
}
/* Móvil: la foto es fondo de toda la primera pantalla y el texto se apoya abajo */
.hero-visual { position: absolute; inset: 0; z-index: -1; }
.hero-frame { position: absolute; inset: 0; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,26,67,.55) 0%, rgba(3,26,67,.15) 28%, rgba(3,26,67,.7) 55%, var(--navy-900) 88%),
    linear-gradient(90deg, rgba(3,26,67,.6), transparent 70%);
}
.hero-streak { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-streak path { fill: none; stroke-linecap: round; }
.streak-a { stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 760; stroke-dashoffset: 760; animation: streak 1.4s .5s var(--ease-out) forwards; }
.streak-b { stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 680; stroke-dashoffset: 680; animation: streak 1.4s .75s var(--ease-out) forwards; }
@keyframes streak { to { stroke-dashoffset: 0; } }
.hero-tag { display: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-cond); font-weight: 800; font-size: .95rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--yellow);
}
.eyebrow-bar { width: 34px; height: 3px; background: var(--yellow); transform: skewX(-30deg); }
.hero-title {
  margin-top: 18px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2.75rem, 12.5vw, 6.6rem);
  line-height: .92; letter-spacing: -.01em; text-transform: uppercase;
  text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding-right: .12em; margin-right: -.12em; padding-bottom: .04em; }
.hero-title .line-in { display: inline-block; animation: lineUp 1s var(--ease-out) both; }
.hero-title .line:nth-child(2) .line-in { animation-delay: .09s; }
.hero-title .line:nth-child(3) .line-in { animation-delay: .18s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero-sub { margin-top: 18px; max-width: 30ch; font-size: clamp(1.1rem, 4.2vw, 1.4rem); color: #dbe3f0; }
.hero-actions { margin-top: 28px; display: grid; gap: 12px; }
.hero-points { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-dark-soft); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--yellow); width: 18px; height: 18px; }

.scroll-cue { display: none; }

/* Banda de velocidad */
.speed-band {
  background: var(--yellow); color: var(--navy-900);
  overflow: hidden; transform: skewY(-1.2deg); margin-block: -10px; position: relative; z-index: 2;
  border-block: 3px solid var(--navy-900);
}
.speed-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 14px 0;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  text-transform: uppercase; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.speed-track i { width: 28px; height: 6px; background: var(--navy-900); transform: skewX(-30deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-light { background: var(--gray-50); color: var(--ink); }
.section-steel { background: var(--white); color: var(--ink); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-cond); font-weight: 800; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--yellow-700);
}
.kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.section-dark .kicker { color: var(--yellow); }
.section-title {
  margin-top: 12px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: -.005em;
  text-wrap: balance;
}
.section-lead { margin-top: 16px; max-width: 52ch; font-size: 1.1rem; color: var(--ink-soft); }
.section-dark .section-lead { color: var(--on-dark-soft); }

/* ---------- Cotizador ---------- */
.quote { overflow: hidden; }
.quote::before { /* trazo diagonal decorativo */
  content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 140%;
  background: linear-gradient(115deg, transparent 49.6%, rgba(3,26,67,.05) 49.6% 58%, transparent 58%);
  pointer-events: none;
}
.quote-inner { display: grid; gap: 40px; position: relative; }
.steps { margin-top: 28px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--yellow);
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1rem;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}
.size-guide {
  margin-top: 32px; padding: 22px; border-radius: var(--radius);
  background: var(--navy-900); color: var(--white);
  position: relative; overflow: hidden;
}
.size-guide::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.05);
}
.size-guide-title { font-family: var(--font-cond); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.size-guide p { margin-top: 6px; color: var(--on-dark-soft); font-size: .98rem; }
.size-code {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 6px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
}
.size-code .seg { display: grid; justify-items: center; gap: 6px; }
.size-code b {
  font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1; color: var(--white);
  border-bottom: 3px solid var(--yellow); padding: 0 4px 6px;
}
.size-code small { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .78rem; color: var(--on-dark-soft); white-space: nowrap; }
.size-code .sep { font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1; color: var(--gray-400); }
.size-guide-note { font-size: .9rem !important; }

.quote-card {
  background: var(--white); border-radius: var(--radius-l);
  padding: clamp(20px, 5vw, 36px);
  box-shadow: var(--shadow-card);
  border-top: 6px solid var(--yellow);
  display: grid; gap: 22px;
}
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.label { font-weight: 600; font-size: 1rem; color: var(--ink); padding: 0; }
.req { color: var(--yellow-700); }
.opt { margin-left: 6px; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--radius-s);
  font-size: 1.05rem; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder { color: #8391a7; }
.input:hover { border-color: var(--gray-400); }
.input:focus { outline: none; border-color: var(--navy-700); background: var(--white); box-shadow: 0 0 0 4px rgba(15,58,122,.15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.hint { font-size: .85rem; color: var(--ink-soft); }
.hint-right { text-align: right; margin-top: -2px; }
.field-error { font-size: .9rem; font-weight: 600; color: var(--danger); }
.field-row { display: grid; gap: 22px; }

.vehicle-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vehicle-opt { position: relative; cursor: pointer; }
.vehicle-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vehicle-box {
  display: grid; justify-items: center; gap: 8px;
  padding: 14px 6px 12px; min-height: 92px; align-content: center;
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  background: var(--gray-50); color: var(--navy-900);
  font-family: var(--font-cond); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out), color .2s;
}
.icon-vehicle { width: 58px; height: 29px; }
.icon-vehicle-sq { width: 30px; height: 30px; }
.vehicle-opt:hover .vehicle-box { border-color: var(--gray-400); }
.vehicle-opt input:checked + .vehicle-box { border-color: var(--navy-900); background: var(--navy-900); color: var(--yellow); transform: translateY(-2px); }
.vehicle-opt input:focus-visible + .vehicle-box { outline: 3px solid var(--navy-700); outline-offset: 3px; }
.field-vehicle.has-error .vehicle-box { border-color: var(--danger); }

.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stepper-btn {
  min-height: 52px; border: 2px solid var(--gray-200); border-radius: var(--radius-s);
  background: var(--white); color: var(--navy-900); font-size: 1.5rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.stepper-btn:hover { border-color: var(--navy-900); background: var(--gray-50); }
.stepper-input { text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.3rem; -moz-appearance: textfield; appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.preview { border: 1px dashed var(--gray-400); border-radius: var(--radius-s); padding: 0 14px; }
.preview summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .95rem; color: var(--navy-700); min-height: 44px; display: flex; align-items: center; }
.preview-text {
  margin: 0 0 14px; padding: 14px; border-radius: var(--radius-s);
  background: #e7f5e1; color: #13301a;
  font-family: var(--font-body); font-size: .95rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.btn-submit { margin-top: 2px; }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.form-note .icon { color: var(--navy-700); margin-top: 2px; }
.form-status { font-size: .92rem; font-weight: 600; color: var(--navy-700); min-height: 0; }
.form-status:empty { display: none; }

/* ---------- Servicios ---------- */
.services { overflow: hidden; }
.services::before {
  content: ""; position: absolute; left: -20%; bottom: -30%; width: 70%; height: 80%;
  background: radial-gradient(closest-side, rgba(15,58,122,.6), transparent);
  pointer-events: none;
}
.services-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--yellow) transparent;
  position: relative;
}
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; border-radius: var(--radius-l);
  background: var(--navy-800); color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.service-media { position: absolute; inset: 0; z-index: -2; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .5s; filter: saturate(.85); }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,26,67,.05) 20%, rgba(3,26,67,.75) 55%, rgba(1,12,34,.96) 100%);
}
.service-card:hover .service-media img { transform: scale(1.06); filter: saturate(1); }
.service-body { padding: 22px; display: grid; gap: 10px; }
.service-index { font-family: var(--font-cond); font-weight: 800; color: var(--yellow); letter-spacing: .14em; font-size: .85rem; }
.service-title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.65rem; line-height: 1; text-transform: uppercase; }
.service-desc { color: #d3dceb; font-size: 1rem; }
.service-link {
  justify-self: start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--yellow); text-decoration: none;
  font-family: var(--font-cond); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem;
}
.service-link .icon { transition: transform .3s var(--ease-out); }
.service-link:hover .icon { transform: translateX(5px); }
.service-link::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta clicable */
.service-fallback {
  grid-column: 1 / -1; padding: 32px; border-radius: var(--radius-l);
  background: var(--navy-800); display: grid; gap: 16px; justify-items: start;
}
.swipe-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-cond); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--on-dark-soft);
}
.swipe-hint .icon { color: var(--yellow); }
.noscript-msg { margin-top: 16px; }

/* Etiqueta "Por validar" (solo modo revisión) */
.badge-pending {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #ffe9a8; color: #5a4300; border: 1px dashed #b38600;
  font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .75rem; letter-spacing: .02em; text-transform: none;
  white-space: nowrap; vertical-align: middle;
}
.service-card .badge-pending { position: absolute; top: 14px; left: 14px; }
.stock-label {
  position: absolute; z-index: 3; right: 10px; bottom: 10px; pointer-events: none;
  padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.68); color: #fff;
  font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .7rem; line-height: 1.3; text-transform: none; letter-spacing: 0;
}
.service-card .stock-label, .hero-frame .stock-label { top: 14px; right: 14px; bottom: auto; }
.hero-frame .stock-label { top: auto; bottom: 10px; right: auto; left: 10px; }
@media (min-width: 960px) { .hero-frame .stock-label { top: 12px; bottom: auto; left: auto; right: 12px; } }

/* ---------- Marcas ---------- */
.brands-inner { display: grid; gap: 28px; }
.brands-head .section-head { margin: 0; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand-tile {
  position: relative; display: grid; place-items: center; gap: 8px; text-align: center;
  min-height: 120px; padding: 20px 14px; border-radius: var(--radius);
  background: var(--gray-50); border: 2px solid var(--gray-200); color: var(--navy-900);
  text-decoration: none;
  transition: border-color .25s, transform .3s var(--ease-out), background-color .25s;
}
.brand-tile:hover { border-color: var(--navy-900); transform: translateY(-3px); background: var(--white); }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.35rem, 4vw, 1.75rem); text-transform: uppercase; line-height: 1; }
.brand-cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-cond); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--ink-soft); }
.brand-tile-other { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.brand-tile-other .brand-name { font-size: 1.15rem; color: var(--yellow); }
.brand-tile-other .brand-cta { color: var(--on-dark-soft); }
.brand-tile-other:hover { background: var(--navy-800); }
.brands-note { font-size: .85rem; color: var(--ink-soft); max-width: 70ch; }
.brands-note:empty { display: none; }

/* ---------- Beneficios ---------- */
.benefits { overflow: hidden; isolation: isolate; }
.benefits-media { position: absolute; inset: 0; z-index: -1; }
.benefits-media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.4); }
.benefits-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-900) 0%, rgba(3,26,67,.7) 40%, rgba(3,26,67,.85) 100%); }
.benefits-grid { display: grid; gap: 14px; }
.benefit {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--radius);
  background: rgba(3,26,67,.6); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.benefit-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--yellow); color: var(--navy-900);
}
.benefit-icon .icon { width: 28px; height: 28px; }
.benefit-title { font-family: var(--font-cond); font-weight: 800; font-size: 1.3rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.benefit p { color: var(--on-dark-soft); }

/* ---------- Promociones ---------- */
.promos-grid { display: grid; gap: 18px; }
.promo-card { display: grid; overflow: hidden; border-radius: var(--radius-l); background: var(--white); box-shadow: var(--shadow-soft); }
.promo-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.promo-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.promo-validity { font-family: var(--font-cond); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--yellow-700); }
.promo-title { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; color: var(--navy-900); }
.promo-cond { font-size: .85rem; color: var(--ink-soft); }
.promo-body .btn { justify-self: start; margin-top: 6px; }

/* ---------- Ubicación ---------- */
.location { background: var(--gray-50); }
.location-inner { display: grid; gap: 36px; }
.contact-list { margin-top: 28px; display: grid; gap: 12px; }
.contact-item {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-200);
}
.contact-item dt { display: flex; align-items: center; gap: 8px; font-family: var(--font-cond); font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-item dt .icon { color: var(--navy-700); }
.contact-item dd { font-size: 1.1rem; font-weight: 600; color: var(--navy-900); }
.contact-item dd a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-item .muted { font-weight: 400; color: var(--ink-soft); font-size: 1rem; }
.contact-item .badge-pending { margin-left: 6px; }
.hours { display: grid; gap: 2px; }
.location-actions { margin-top: 24px; display: grid; gap: 12px; }

.map-panel { position: relative; min-height: 340px; border-radius: var(--radius-l); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-card); }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 28px; color: var(--white); }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-lines path { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 10; }
.map-lines path:first-child { stroke: rgba(249,186,0,.35); stroke-width: 6; }
.map-pin {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); color: var(--navy-900);
  box-shadow: 0 0 0 10px rgba(249,186,0,.18), 0 0 0 22px rgba(249,186,0,.08);
}
.map-pin .icon { width: 30px; height: 30px; }
.map-placeholder-copy { position: relative; margin-top: 120px; display: grid; gap: 12px; justify-items: center; max-width: 34ch; }
.map-title { font-family: var(--font-cond); font-weight: 800; font-size: 1.25rem; letter-spacing: .05em; text-transform: uppercase; }
.map-note { font-size: .85rem; color: var(--on-dark-soft); }
.map-panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--yellow); color: var(--navy-900);
  padding-block: clamp(80px, 12vw, 150px);
}
.cta-stripes {
  position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-60deg, transparent 0 46px, rgba(3,26,67,.07) 46px 58px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-inner { display: grid; gap: 32px; justify-items: start; }
.cta-title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 5.4rem); line-height: .95; text-transform: uppercase; max-width: 15ch;
  text-wrap: balance;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-soft); padding-top: 64px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); font-size: .98rem; }
.footer-inner { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 14px; }
.social { margin-top: 18px; display: flex; gap: 10px; }
.social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); color: var(--white); transition: background-color .25s, color .25s, border-color .25s;
}
.social a:hover { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); }
.footer-h { font-family: var(--font-cond); font-weight: 800; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-nav ul, .footer-contact ul { display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-contact .badge-pending { margin-left: 6px; }
.footer-bottom { display: grid; gap: 6px; padding-top: 22px; font-size: .88rem; }
.credit span { font-family: var(--font-cond); font-weight: 800; letter-spacing: .12em; color: var(--white); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); color: var(--navy-900);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,.45), 0 0 0 4px rgba(3,26,67,.9);
  transition: transform .3s var(--ease-out), opacity .3s, visibility .3s;
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--yellow);
  animation: pulse 2.8s ease-out infinite; pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); }

/* ---------- Píldora de revisión ---------- */
.review-pill {
  position: fixed; left: 12px; bottom: 12px; z-index: 85; max-width: min(320px, calc(100vw - 100px));
  display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px;
  background: #ffe9a8; color: #3d2e00; border: 1px dashed #b38600; font-size: .78rem; line-height: 1.35;
  box-shadow: var(--shadow-soft); text-align: left; cursor: pointer; font-family: var(--font-body);
}
.review-pill strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.review-pill span { display: none; }
@media (min-width: 768px) { .review-pill span { display: block; } }

/* ---------- Revelado en scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ============================ Responsive ============================ */
@media (min-width: 540px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { padding-inline: 1em; }
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1.2fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .location-actions { grid-template-columns: repeat(auto-fit, minmax(220px, max-content)); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; }
  .promos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .brand img { height: 46px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { padding-inline: 1.7em; }
  .services-grid {
    grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0; gap: 18px;
  }
  .services-grid.is-odd .service-card:first-child { grid-column: span 2; }
  .service-card { min-height: 400px; }
  .swipe-hint { display: none; }
  .brands-inner { grid-template-columns: 1fr 1.3fr; align-items: center; column-gap: 48px; }
  .brands-note { grid-column: 1 / -1; }
  .map-panel { min-height: 420px; }
}

@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .site-header.is-scrolled { height: 64px; }
  .site-header.is-scrolled .brand img { height: 40px; }

  /* Hero en dos columnas: texto + foto enmarcada en diagonal */
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; align-content: center;
    gap: 40px; padding-top: calc(var(--header-h) + 32px); padding-bottom: 96px;
  }
  .hero-visual { position: relative; inset: auto; z-index: 0; height: min(74svh, 680px); min-height: 480px; }
  .hero-frame {
    inset: 0 0 0 6%;
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
    border-radius: 6px;
  }
  .hero-frame::after { background: linear-gradient(200deg, transparent 40%, rgba(3,26,67,.55)); }
  .hero-frame img { object-position: 50% 50%; }
  .hero-streak { inset: -6% -4% -6% -4%; width: 108%; height: 112%; }
  .hero-tag {
    display: grid; gap: 2px; position: absolute; left: 0; bottom: 12%;
    padding: 14px 18px; border-radius: 12px;
    background: rgba(3,26,67,.85); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .12em;
    animation: tagIn 1s 1s var(--ease-out) both;
  }
  .hero-tag-k { font-size: .75rem; color: var(--on-dark-soft); font-weight: 600; }
  .hero-tag-v { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.9rem; letter-spacing: 0; color: var(--yellow); line-height: 1.05; }
  .hero-tag-k:last-child { color: var(--white); }
  @keyframes tagIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-title { font-size: clamp(3.6rem, 6.6vw, 6.4rem); }
  .hero-sub { max-width: 36ch; }

  .scroll-cue {
    display: block; position: absolute; left: 50%; bottom: 22px; width: 28px; height: 46px; transform: translateX(-50%);
    border: 2px solid rgba(255,255,255,.3); border-radius: 16px;
  }
  .scroll-cue-line { position: absolute; left: 50%; top: 8px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 3px; background: var(--yellow); animation: cue 2s ease-in-out infinite; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

  .quote-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 24px); }

  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid.count-2 { grid-template-columns: repeat(2, 1fr); }

  .location-inner { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
  .map-panel { min-height: 480px; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: end; }
  .promos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { min-height: 440px; }
  .services-grid.is-odd .service-card:first-child .service-title { font-size: 2.1rem; }
}

/* Pantallas bajas en horizontal (móvil girado) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: calc(var(--header-h) + 24px); }
  .hero-title { font-size: clamp(2.4rem, 7vw, 3.6rem); }
}

/* ============================ Movimiento reducido ============================
   Se eliminan desplazamientos, bucles y dibujos; se conservan cambios de color. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .speed-track, .wa-float::before, .scroll-cue-line { animation: none; }
  .hero-title .line-in, .hero-tag, .mobile-menu { animation: none; }
  .streak-a, .streak-b { animation: none; stroke-dashoffset: 0; }
  .js .reveal { transform: none; transition: opacity .3s linear; }
  .btn::after { display: none; }
  .btn:hover, .brand-tile:hover, .vehicle-opt input:checked + .vehicle-box { transform: none; }
  .service-card:hover .service-media img { transform: none; }
}

/* Impresión básica */
@media print {
  .site-header, .wa-float, .speed-band, .review-pill, .mobile-menu { display: none !important; }
  body { background: #fff; }
}

/* Publicación sin mapa mientras la dirección no esté confirmada */
.location-inner.location-no-map { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.map-panel[hidden] { display: none !important; }
