/* =========================================================
   JR Motors — Landing
   Dirección: fuerza industrial, fotografía real, precisión editorial.
   ========================================================= */

:root {
  --bg: #080808;
  --surface: #171719;
  --surface-2: #101011;
  --ink: #F5F5F2;
  --muted: #B8B8BE;
  --red: #E30613;
  --red-deep: #A90510;
  --red-hover: #C40511;
  --line: rgba(245, 245, 242, .14);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(48px, 6.4vw, 88px);
  --nav-h: 84px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (max-width: 959px) {
  :root { --nav-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 5vw, 72px);
  line-height: .94;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: .01em;
}
.body { font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 52ch; }
.body--lg { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }
.is-red { color: var(--red); }

.line { display: block; overflow: clip; overflow-clip-margin: .08em; padding-bottom: .02em; }
.line__in { display: inline-block; }

@media (max-width: 599px) {
  body, .body { font-size: 16px; }
}

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  font: 600 15px/1 var(--f-text); letter-spacing: .01em;
  text-decoration: none; border-radius: 2px; border: 1.5px solid transparent;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding: 0 16px; font-size: 15px; }
.btn--red { background: var(--red); color: #fff; }
.btn--ghost { border-color: rgba(245, 245, 242, .32); color: var(--ink); }
.btn--black { background: var(--bg); color: #fff; }
.btn--line { border-color: rgba(255, 255, 255, .85); color: #fff; }

.ico--arrow { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
.ico--down { transform: rotate(90deg); }

@media (hover: hover) and (pointer: fine) {
  .btn--red:hover { background: var(--red-hover); }
  .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .btn--black:hover { background: #1f1f22; }
  .btn--line:hover { background: #fff; color: var(--red-deep); border-color: #fff; }
  .btn:hover .ico--arrow { transform: translateX(4px); }
  .btn:hover .ico--down { transform: rotate(90deg) translateX(4px); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink);
  padding-block: 10px; min-height: 44px;
}
.link-arrow span { position: relative; padding-bottom: 3px; }
.link-arrow span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform-origin: right; transition: transform 240ms var(--ease-out);
}
.link-arrow .ico--arrow { color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .ico--arrow { transform: translateX(4px); }
  .link-arrow:hover span::after { transform: scaleX(0); }
}

/* ---------- Marco de imagen (zoom al pasar el cursor) ---------- */
.frame { position: relative; overflow: hidden; background: var(--surface); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-out); }
.frame > img[data-parallax] { inset: -6% 0; height: 112%; }
@media (hover: hover) and (pointer: fine) {
  .frame--zoom:hover > img, .frame--zoom:focus-visible > img { scale: 1.03; }
}

/* ---------- Gauge (arco del velocímetro) ---------- */
.gauge { position: absolute; pointer-events: none; overflow: visible; }
.gauge path { fill: none; stroke: var(--red); stroke-linecap: butt; }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 8, 8, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.nav.is-solid, .nav.is-open { background: var(--bg); border-bottom-color: rgba(245, 245, 242, .1); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: block; flex: none; margin-left: -6px; }
.nav__brand img { height: 66px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 12px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color 200ms var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); }
}
.nav__cta { flex: none; }

.nav__toggle {
  display: none; margin-left: auto; align-items: center; gap: 12px;
  background: none; border: 0; padding: 10px 4px 10px 12px; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: 15px;
}
.nav__toggle-bars { position: relative; width: 22px; height: 12px; }
.nav__toggle-bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
.nav__toggle-bars i:first-child { top: 0; }
.nav__toggle-bars i:last-child { bottom: 0; }
.nav.is-open .nav__toggle-bars i:first-child { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle-bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: 24px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 40px; line-height: 1; padding-block: 14px; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu__foot { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 15px; }
.menu__foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.menu.is-entering .menu__links a { opacity: 0; transform: translateY(12px); }
.menu .menu__links a { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }

@media (max-width: 1099px) {
  .nav__links a { padding-inline: 9px; font-size: 14px; }
  .nav__links a::after { left: 9px; right: 9px; }
  .nav__inner { gap: 20px; }
}
@media (max-width: 959px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__brand img { height: 52px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(640px, 94svh, 920px);
  padding-top: var(--nav-h);
  background: var(--bg);
  isolation: isolate;
}
.hero__media {
  position: absolute; z-index: -1;
  top: var(--nav-h); right: 0; bottom: 0;
  width: 61%;
}
.hero__img { position: absolute; inset: 0; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 62%; }
.hero__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 8, .82) 12%, rgba(8, 8, 8, .35) 26%, rgba(8, 8, 8, 0) 42%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 8, .7) 12%, rgba(8, 8, 8, 0) 30%);
}
.gauge--hero { left: 9%; top: 3%; width: 84%; height: auto; }
.gauge--hero path { stroke-width: 5.5; }

.hero__body { display: flex; align-items: center; padding-block: clamp(40px, 6vh, 72px) clamp(32px, 4vh, 56px); }
.hero__copy { max-width: 600px; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: .1em; color: var(--muted);
  margin-bottom: 22px;
}
.kicker__dash { width: 28px; height: 3px; background: var(--red); flex: none; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(52px, 7vw, 108px);
  line-height: .9;
  letter-spacing: -0.005em;
}
.hero__lead { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 46ch; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 20px 24px;
  position: relative;
}
.strip__list { display: flex; flex-wrap: wrap; gap: 0 18px; }
.strip__list li {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: 20px; letter-spacing: .02em; line-height: 1.3;
}
.strip__list li + li::before { content: "/"; color: var(--red); margin-right: 18px; }
.strip__place { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; }
.strip__place .ico { color: var(--red); width: 18px; height: 18px; }

@media (max-width: 959px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__body { order: 1; padding-block: 36px 32px; }
  .hero__media { order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3.3; z-index: 0; }
  .hero__img img { object-position: 40% 62%; }
  .hero__img::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 8, 0) 18%), linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 8, 0) 22%); }
  .gauge--hero { left: 6%; top: 2%; width: 88%; }
  .gauge--hero path { stroke-width: 9; }
  .hero__strip { order: 3; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 0; padding-top: 4px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero__title { font-size: 9.4vw; }
  .hero__copy { max-width: 640px; }
}
@media (max-width: 599px) {
  .hero__title { font-size: clamp(44px, 13.4vw, 58px); }
  .kicker { font-size: 13px; letter-spacing: .1em; margin-bottom: 18px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 28px; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .strip__list { gap: 0 8px; flex-wrap: nowrap; }
  .strip__list li { font-size: clamp(15px, 4.3vw, 18px); white-space: nowrap; }
  .strip__list li + li::before { margin-right: 8px; }
}

/* =========================================================
   ESPECIALIDAD
   ========================================================= */
.spec__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.spec__head .h2 { grid-column: 1 / span 7; }
.spec__intro { grid-column: 8 / -1; padding-bottom: 6px; }

.spec__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.spec__main { grid-column: 1 / span 8; position: relative; }
.spec__main .frame { width: 100%; height: 100%; min-height: 480px; }
.spec__main .frame > img { object-position: 30% 50%; }
.spec__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 80px 28px 24px;
  background: linear-gradient(0deg, rgba(8, 8, 8, .82) 0%, rgba(8, 8, 8, 0) 100%);
  display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.spec__label-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.spec__label-sub { font-size: 15px; color: var(--ink); }

.spec__side { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 20px; }
.cat { display: flex; flex-direction: column; }
.cat--photo { background: var(--surface); }
.cat__img { aspect-ratio: 16 / 9; }
.cat__text { padding: 20px 22px 24px; display: grid; gap: 8px; }
.cat--type {
  position: relative; flex: 1; background: var(--surface);
  padding: 26px 22px 14px; gap: 10px; overflow: hidden; min-height: 220px;
}
.cat--type .h3 { max-width: 12ch; margin-top: 44px; }
.gauge--mini { right: -24px; top: 18px; width: 150px; }
.gauge--mini path { stroke-width: 16; }

@media (max-width: 959px) {
  .spec__head { grid-template-columns: 1fr; gap: 16px; }
  .spec__head .h2, .spec__intro { grid-column: 1 / -1; }
  .spec__grid { grid-template-columns: 1fr; gap: 16px; }
  .spec__main, .spec__side { grid-column: 1 / -1; }
  .spec__main .frame { height: auto; min-height: 0; aspect-ratio: 4 / 3.4; }
  .spec__label { padding: 64px 18px 18px; }
  .spec__side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cat--type .h3 { margin-top: 36px; }
}
@media (max-width: 599px) {
  .spec__side { grid-template-columns: 1fr; }
  .cat__text { padding: 16px 18px 20px; }
  .cat--type { padding: 22px 18px 10px; min-height: 0; }
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.about__title { margin-bottom: clamp(32px, 4vw, 56px); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.about__photos { grid-column: 1 / span 7; position: relative; aspect-ratio: 1 / .92; }
.about__tall { position: absolute; left: 0; top: 0; width: 60%; }
.about__tall .frame { aspect-ratio: 4 / 5; }
.about__wide { position: absolute; right: 0; bottom: 0; width: 54%; outline: 10px solid var(--surface); z-index: 1; }
.about__wide .frame { aspect-ratio: 4 / 3; }

.about__text { grid-column: 9 / -1; display: grid; gap: 20px; }
.points { margin-top: 12px; border-top: 1px solid var(--line); }
.points__item {
  display: flex; align-items: center; gap: 16px; padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 1.1;
}
.points__mark { width: 34px; height: 14px; flex: none; overflow: visible; }
.points__mark path { fill: none; stroke: var(--red); stroke-width: 3.5; }

@media (max-width: 959px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photos, .about__text { grid-column: 1 / -1; }
  .about__photos { aspect-ratio: 1 / .95; max-width: 640px; }
  .about__wide { outline-width: 8px; }
}

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.gallery__head .h2 { grid-column: 1 / span 7; }
.gallery__aside { grid-column: 8 / -1; display: grid; gap: 16px; justify-items: start; }

.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.g { aspect-ratio: 4 / 3; }
.g--big { grid-column: 1 / span 4; grid-row: span 2; aspect-ratio: auto; }
.g:nth-child(2), .g:nth-child(3) { grid-column: span 2; }
.g:nth-child(n+4) { grid-column: span 2; }
.g__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; }
.g__btn:focus-visible { outline-offset: -4px; outline: 3px solid var(--ink); }

@media (max-width: 959px) {
  .gallery__head { grid-template-columns: 1fr; gap: 16px; }
  .gallery__head .h2, .gallery__aside { grid-column: 1 / -1; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g, .g:nth-child(n) { grid-column: span 1; aspect-ratio: 1 / 1; }
  .g--big { grid-column: 1 / -1 !important; grid-row: auto; aspect-ratio: 4 / 3 !important; }
  .g:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(8, 8, 8, .97); color: var(--ink);
  display: none; flex-direction: column;
}
.lightbox[open] { display: flex; animation: lb-in 220ms var(--ease-out); }
.lightbox::backdrop { background: rgba(8, 8, 8, .6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  flex: 1; min-height: 0; display: grid; place-items: center; padding: 24px var(--gutter) 8px;
  touch-action: pan-y; user-select: none;
}
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: lb-img 260ms var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lightbox__caption { text-align: center; color: var(--muted); font-size: 15px; padding: 4px var(--gutter); min-height: 2.6em; }
.lightbox__controls {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom));
}
.lightbox__count { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 52px; height: 52px; padding: 0 14px; background: var(--surface); border: 0; border-radius: 2px; cursor: pointer;
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.lb-btn:active { transform: scale(.96); }
.lb-btn--close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: var(--gutter); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { background: #26262a; }
  .lb-btn--close:hover { background: #fff; }
}

/* =========================================================
   CÓMO COTIZAR
   ========================================================= */
.steps__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 44px); }
.steps__head .body { color: var(--muted); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; counter-reset: none; }
.step { display: grid; align-content: start; gap: 10px; padding-right: 24px; }
.step__bar { display: block; height: 4px; background: rgba(245, 245, 242, .14); overflow: hidden; margin-bottom: 18px; }
.step__bar i { display: block; height: 100%; background: var(--red); transform-origin: left; }
.step__num {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 6.4vw, 96px); line-height: .85;
  color: var(--red); letter-spacing: -0.01em; margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.step .body { color: var(--muted); max-width: 32ch; }

/* Constructor de mensaje */
.composer {
  margin-top: clamp(36px, 4.4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: center;
  background: var(--surface-2); padding: clamp(20px, 2.6vw, 32px);
}
.composer__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer__legend { padding: 0; margin-bottom: 14px; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid rgba(245, 245, 242, .26); border-radius: 2px; font-weight: 500; font-size: 15px;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.chip:active span { transform: scale(.97); }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked) + span { border-color: var(--ink); }
}
.composer__out { display: grid; gap: 16px; justify-items: start; }
.composer__preview { font-size: 16px; line-height: 1.55; color: var(--muted); }
.composer__preview [data-preview] { color: var(--ink); }
.composer__quote { color: var(--red); font-weight: 600; }

@media (max-width: 959px) {
  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: auto 1fr; column-gap: 20px; padding-right: 0; }
  .step__bar { grid-column: 1 / -1; margin-bottom: 8px; }
  .step__num { grid-row: span 2; margin: 0; font-size: 64px; }
  .composer { grid-template-columns: 1fr; }
  .composer__out .btn { width: 100%; }
}

/* =========================================================
   CONTACTO (sección roja)
   ========================================================= */
.contact { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; background: var(--red); }
.gauge--contact { right: -8%; bottom: -34%; width: min(1180px, 92vw); }
.gauge--contact path { stroke: var(--red-deep); stroke-width: 18; }

.contact__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px;
  padding-block: clamp(64px, 8vw, 112px);
}
.contact__main { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; }
.contact__title {
  grid-column: 1 / -1;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 6.6vw, 100px); line-height: .9; letter-spacing: -0.005em;
}
.contact__lead { grid-column: 1 / span 6; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 44ch; }
.contact__actions { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: 12px; }

.contact__side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 28px; }
.contact__photo { grid-column: 1 / span 4; aspect-ratio: 2 / 1; overflow: hidden; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact__data { grid-column: 5 / -1; margin: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.contact__data dt { font-size: 15px; font-weight: 600; letter-spacing: .02em; opacity: .85; margin-bottom: 6px; }
.contact__data dd { margin: 0; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 1.1; }
.contact__data dd a { position: relative; text-decoration: none; }
.contact__data dd a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.contact__phone { font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; letter-spacing: .005em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .contact__data dd a:hover::after { transform: scaleX(1); }
}

/* Lead y acciones en dos columnas en escritorio amplio */
@media (min-width: 1100px) {
  .contact__lead { grid-column: 1 / span 5; align-self: center; }
  .contact__actions { grid-column: 7 / -1; justify-content: flex-end; align-self: center; }
}

@media (max-width: 959px) {
  .contact__inner, .contact__main, .contact__side { grid-template-columns: 1fr; }
  .contact__lead, .contact__actions, .contact__photo, .contact__data { grid-column: 1 / -1; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
  .contact__photo { display: none; }
  .contact__data { grid-template-columns: 1fr 1fr; }
  .contact__data > div:first-child { grid-column: 1 / -1; }
  .gauge--contact { right: -30%; bottom: -10%; width: 130vw; }
}
@media (max-width: 599px) {
  .contact__title { font-size: clamp(40px, 11.6vw, 54px); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg); padding-block: 48px 28px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 48px; align-items: center; }
.footer__brand img { height: 72px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; }
.footer__nav a, .footer__contact a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 200ms var(--ease-out);
}
.footer__contact { display: flex; gap: 8px; }
.footer__contact a { color: var(--ink); font-weight: 600; }
.footer__contact .ico { width: 18px; height: 18px; color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover, .footer__contact a:hover { color: var(--ink); }
}
.footer__base {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(245, 245, 242, .1);
  font-size: 15px; color: var(--muted);
}
@media (max-width: 959px) {
  .footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 20px; }
  .footer__nav { justify-content: flex-start; margin-left: -8px; }
  .footer__contact { flex-direction: column; gap: 0; margin-left: -8px; }
}

/* =========================================================
   BARRA MÓVIL DE WHATSAPP
   ========================================================= */
.mbar { display: none; }
@media (max-width: 959px) {
  .mbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid rgba(245, 245, 242, .1);
    transform: translateY(0); transition: transform 280ms var(--ease-out), visibility 0s linear 0s;
  }
  .mbar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 240ms var(--ease-out), visibility 0s linear 240ms; }
  .mbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
    text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 2px;
    -webkit-tap-highlight-color: transparent; user-select: none;
    transition: transform 140ms var(--ease-out);
  }
  .mbar a:active { transform: scale(.97); }
  .mbar__wa { background: var(--red); color: #fff; }
  .mbar__call { background: var(--surface); color: var(--ink); padding: 0 18px; }
}

/* =========================================================
   ESTADOS INICIALES DE ANIMACIÓN (solo con JS y sin reduced motion)
   Si GSAP no carga, la clase .no-anim devuelve todo a visible.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-anim) .hero .line__in,
  .js:not(.no-anim) [data-hero-item] { opacity: 0; }
  .js:not(.no-anim) .hero__img { clip-path: inset(0 0 0 100%); }
  .js:not(.no-anim) .gauge--hero path { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .frame--zoom:hover > img { scale: 1; }
}
