/* JD M&R Services · rediseno 2026-09
   Direccion: industrial de senalizacion vial. Barlow Condensed (display) + Barlow (texto),
   navy dominante y naranja de seguridad como UNICO acento.
   Contrastes AA medidos: naranja #f97316 sobre navy 6,0:1 · navy sobre naranja 6,0:1 ·
   #c2410c sobre #f2f4f6 4,7:1 y sobre blanco 5,2:1. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-950: #08111b;
  --navy-900: #0b1622;
  --navy-800: #0f1e2e;           /* navy de marca */
  --navy-700: #16293d;
  --line-dark: rgba(148, 178, 209, .16);
  --line-dark-strong: rgba(148, 178, 209, .30);
  --paper: #f2f4f6;
  --white: #ffffff;
  --ink: #0f1e2e;
  --ink-soft: #44566a;
  --line-light: #d9e0e7;
  --fg: #eef3f8;
  --fg-soft: #a9b8c8;
  --orange: #f97316;             /* relleno y texto sobre oscuro */
  --orange-hover: #fb8a3c;
  --orange-ink: #c2410c;         /* texto naranja sobre claro */
  --ok: #34d399;

  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;

  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + .3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + .6vw, 1.75rem);
  --h2: clamp(2.25rem, 1.45rem + 3vw, 4rem);
  --display: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);

  --container: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --radius: 8px;
  --radius-sm: 4px;
  --cut: 14px;
  --ease: cubic-bezier(.22, .68, .36, 1);
  --shadow-navy: 0 30px 60px -32px rgba(8, 17, 27, .55);
  --focus: #fdba74;

  --z-header: 50;
  --z-skip: 60;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.section--paper, .section--white { --focus: #0f1e2e; }

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: var(--z-skip);
  background: var(--orange); color: var(--navy-900); font-weight: 700;
  padding: 12px 18px; border-radius: var(--radius-sm); text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ─────────────── tipografia comun ─────────────── */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h2);
  line-height: .95;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 600; font-size: .875rem; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex: none; }
.eyebrow--dark { color: var(--orange); }

/* ─────────────── botones ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 2px solid transparent; border-radius: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--orange); color: var(--navy-900); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); }
.btn-ghost { color: var(--fg); border-color: rgba(238, 243, 248, .42); }
.btn-ghost:hover { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
.btn-icon svg { flex: none; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--orange); font-weight: 600; text-underline-offset: 4px;
}
.text-link:hover { color: var(--orange-hover); }

/* ─────────────── cabecera ─────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--header-h); color: var(--fg);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--navy-900);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner {
  max-width: calc(var(--container) + 2 * var(--pad)); height: 100%;
  margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--fg); flex: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; color: var(--fg); white-space: nowrap;
}
.brand-accent { color: var(--orange); }

.main-nav { margin-left: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: rgba(238, 243, 248, .86); font-weight: 600; font-size: .9375rem;
  text-decoration: none; border-radius: var(--radius-sm);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .07); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid rgba(249, 115, 22, .55); border-radius: 6px;
  color: var(--fg); font-weight: 600; font-size: .9375rem; text-decoration: none;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.header-phone svg { color: var(--orange); flex: none; }
.header-phone:hover { background: rgba(249, 115, 22, .12); border-color: var(--orange); }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
  border-radius: 6px; background: var(--orange); color: var(--navy-900);
  font-weight: 700; font-size: .9375rem; text-decoration: none; letter-spacing: .04em;
  transition: background-color .2s;
}
.lang-switch:hover { background: var(--orange-hover); }
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line-dark-strong); border-radius: 6px;
  background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px) {
  .header-phone { padding: 0; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 979px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--line-dark-strong);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    padding: 8px var(--pad) 20px;
  }
  .main-nav.is-open .nav-links { flex-direction: column; }
  .main-nav.is-open .nav-links a { min-height: 50px; font-size: 1.0625rem; width: 100%; }
}
@media (max-width: 419px) { .site-header .brand-accent { display: none; } }
@media (max-width: 339px) { .header-phone { display: none; } }

/* ─────────────── hero ─────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: var(--fg);
  padding: calc(var(--header-h) + clamp(36px, 5vw, 64px)) 0 clamp(64px, 8vw, 112px);
}
.hero::before {   /* reticula de plano tecnico, casi invisible */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 178, 209, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 209, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, #000 10%, transparent 75%);
}
.hero::after {    /* resplandor de atardecer detras de los camiones */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 70vw; height: 60vh; right: -10vw; top: 18%;
  background: radial-gradient(closest-side, rgba(249, 115, 22, .13), transparent);
}
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 64px);
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.4rem; }
.h1-main {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--display); line-height: .93; letter-spacing: -.005em;
  text-transform: uppercase; color: var(--fg);
}
.h1-main .hl { color: var(--orange); }
/* en espanol el titular es mas largo (4 lineas): un escalon menos para que los botones queden en el pliegue */
.h1-main:lang(es) { font-size: clamp(2.5rem, 1.1rem + 4.8vw, 5.25rem); }
.h1-zone {
  display: block; margin-top: .9rem;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1.125rem, .98rem + .7vw, 1.5rem); line-height: 1.3;
  color: var(--fg-soft);
}
.hero-lead { font-size: var(--step-1); line-height: 1.55; color: var(--fg-soft); max-width: 50ch; }
.hero-services { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 2rem; }
.hero-services li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-dark-strong); border-radius: 2px;
  font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg);
}
.hero-services li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; z-index: 1; }
@media (min-width: 900px) {
  /* la foto sangra hasta el borde derecho de la ventana (el hero recorta con overflow) */
  .hero-visual { margin-right: calc(-1 * (var(--pad) + max(0px, (100vw - var(--container) - 2 * var(--pad)) / 2))); }
  .hero-visual picture { width: 114%; max-width: none; margin-left: -14%; }
}
.hero-trucks { width: 100%; }

/* el gesto: el panel de despacho con la hora del Este en vivo */
.dispatch {
  position: relative; z-index: 2;
  width: min(100%, 370px); margin: -56px 0 0 6%;
  background: var(--navy-800); border: 1px solid var(--line-dark-strong);
  padding: 22px 24px 20px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: var(--shadow-navy);
}
.dispatch::before {  /* franja de peligro */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: repeating-linear-gradient(135deg, var(--orange) 0 10px, transparent 10px 20px);
}
.dispatch-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dispatch-label { font-weight: 600; font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft); }
.dispatch-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; color: var(--fg); }
.dispatch-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.2s infinite; }
.dispatch-clock { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 12px; }
.dispatch-time {
  font-family: var(--font-display); font-weight: 700; font-size: 3.25rem; line-height: 1;
  color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dispatch-time .colon { animation: blink 1s steps(1) infinite; }
.dispatch-time .ampm { font-size: 1.25rem; margin-left: 6px; color: var(--fg-soft); letter-spacing: .04em; }
.dispatch-tz { font-size: .875rem; color: var(--fg-soft); }
.dispatch-phone {
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 8px 0; border-top: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1;
  letter-spacing: .02em; color: var(--fg); text-decoration: none; font-variant-numeric: tabular-nums;
}
.dispatch-phone svg { color: var(--orange); flex: none; }
.dispatch-phone:hover { color: var(--orange); }
.dispatch-note { font-size: .875rem; color: var(--fg-soft); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .2s; }
.hero-copy > :nth-child(5) { animation-delay: .26s; }
.hero-visual { animation: rise 1s .1s var(--ease) both; }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin: 12px calc(-1 * var(--pad)) 0; }
  /* en movil la tira panoramica quedaria en 127 px: se recorta a una proporcion mas alta
     centrada en los dos primeros camiones */
  .hero-visual picture { width: 100%; }
  .hero-trucks { height: clamp(180px, 50vw, 300px); object-fit: cover; object-position: 22% 60%; }
  .dispatch { margin: -28px var(--pad) 0; width: auto; max-width: 420px; }
}
@media (max-width: 379px) {
  .dispatch { padding: 20px 18px 18px; }
  .dispatch-time { font-size: 2.75rem; }
  .dispatch-phone { font-size: 1.625rem; }
}

/* ─────────────── secciones ─────────────── */
.section { padding: clamp(72px, 9vw, 128px) 0 clamp(84px, 10vw, 144px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--dark { background: var(--navy-800); color: var(--fg); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20px clamp(32px, 6vw, 96px); }
.section-intro { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }
.section--dark .section-intro { color: var(--fg-soft); }
@media (max-width: 799px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────── servicios ─────────────── */
.services-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.service-list { border-top: 1px solid var(--line-light); }
.service-row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line-light);
}
.service-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--line-light); }
.service-num {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: .1em;
  color: var(--orange-ink);
}
.service-body h3, .rescue-body h3 { font-weight: 700; font-size: var(--step-2); line-height: 1.2; margin-bottom: 8px; }
.service-body p { color: var(--ink-soft); max-width: 56ch; }

.rescue-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: block; text-decoration: none; color: var(--fg);
  background: var(--navy-800); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-navy);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.rescue-card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -34px rgba(8, 17, 27, .7); }
.rescue-media { position: relative; }
.rescue-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rescue-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 30, 46, 0) 45%, rgba(15, 30, 46, .85) 100%); }
.rescue-badge {
  position: absolute; z-index: 1; top: 16px; left: 16px;
  background: var(--orange); color: var(--navy-900);
  font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px;
}
.rescue-body { padding: 24px 28px 26px; }
.rescue-body .service-num { color: var(--orange); }
.rescue-body p { color: var(--fg-soft); }
.rescue-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--orange); font-weight: 700; font-size: 1.0625rem; }
.rescue-card:hover .rescue-link { color: var(--orange-hover); }

@media (max-width: 979px) {
  .services-layout { grid-template-columns: minmax(0, 1fr); }
  .rescue-card { position: relative; top: 0; max-width: 640px; }
}
@media (max-width: 899px) {
  .service-row { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 599px) {
  .service-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-img { aspect-ratio: 16 / 9; }
}

/* ─────────────── catalogo 3D ─────────────── */
.catalog-frame {
  position: relative; height: clamp(440px, 70vh, 720px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--navy-900); border: 1px solid rgba(249, 115, 22, .3);
  box-shadow: var(--shadow-navy);
}
.catalog-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.catalog-frame.is-fallback { height: auto; width: 100%; aspect-ratio: 2 / 1; }
@media (max-width: 599px) { .catalog-frame.is-fallback { aspect-ratio: 4 / 3; } }
.catalog-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.catalog-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.catalog-fallback .btn { position: relative; z-index: 1; box-shadow: 0 12px 30px -10px rgba(8, 17, 27, .8); }
.catalog-open { display: flex; justify-content: flex-end; margin-top: 10px; }
.catalog-open a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--fg-soft); font-weight: 400; text-underline-offset: 4px; }
.catalog-open a:hover { color: var(--fg); }

.catalog-summary { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-dark); }
.catalog-summary-title { font-weight: 600; font-size: var(--step-2); line-height: 1.25; color: var(--fg); }
.parts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.parts-group h4 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg);
}
.parts-count {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px;
  border: 1px solid rgba(249, 115, 22, .6); border-radius: 2px;
  color: var(--orange); font-size: 1rem; letter-spacing: 0;
}
.parts-group li { padding: 5px 0; font-size: .9375rem; line-height: 1.4; color: var(--fg-soft); border-bottom: 1px solid var(--line-dark); }
.parts-note { align-self: start; background: var(--navy-700); padding: 22px 22px 14px; border-radius: 6px; }
.parts-note p { font-size: .9375rem; color: var(--fg-soft); }
@media (max-width: 1023px) { .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459px) { .parts-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ─────────────── area de servicio ─────────────── */
.area-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: stretch; }
.area-list { display: grid; gap: 12px; }
.area-btn {
  width: 100%; display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 14px 18px;
  background: var(--white); color: var(--ink); text-align: left; cursor: pointer;
  border: 1px solid var(--line-light); border-left: 4px solid var(--line-light); border-radius: 6px;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.area-btn:hover { border-color: var(--orange); transform: translateX(3px); }
.area-btn.is-active { border-color: #f3b58c; border-left-color: var(--orange); box-shadow: 0 14px 30px -20px rgba(15, 30, 46, .45); }
.area-code {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--navy-800); color: var(--fg); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: .04em;
  transition: background-color .2s, color .2s;
}
.area-btn.is-active .area-code { background: var(--orange); color: var(--navy-900); }
.area-info { flex: 1; display: flex; flex-direction: column; }
.area-state { font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.area-city { font-size: .9375rem; color: var(--ink-soft); }
.area-arrow { color: var(--ink-soft); flex: none; transition: transform .2s, color .2s; }
.area-btn.is-active .area-arrow, .area-btn:hover .area-arrow { color: var(--orange-ink); transform: translateX(2px); }
.area-note { margin-top: 18px; font-size: .9375rem; color: var(--ink-soft); }
.area-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-ink); font-weight: 700; text-underline-offset: 4px; }

.area-map {
  position: relative; z-index: 0; min-height: 440px;
  border-radius: var(--radius); overflow: hidden;
  background: #dfe5eb; border: 1px solid var(--line-light);
}
.area-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.area-map.leaflet-container { font-family: var(--font-body); background: #dfe5eb; }
.area-map .leaflet-bar { border: 0; box-shadow: 0 6px 18px -8px rgba(15, 30, 46, .5); }
.area-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 1.25rem; color: var(--ink); }
.area-map .leaflet-control-attribution { font-size: .875rem; padding: 0 8px; background: rgba(255, 255, 255, .88); color: var(--ink-soft); }
.area-map .leaflet-control-attribution a { display: inline-block; padding: 12px 2px; color: var(--ink); }
.area-map .leaflet-popup-content-wrapper { background: var(--navy-800); color: var(--fg); border-radius: 6px; box-shadow: var(--shadow-navy); }
.area-map .leaflet-popup-content { margin: 10px 16px; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.area-map .leaflet-popup-tip { background: var(--navy-800); }
.map-pin { width: 40px; height: 40px; position: relative; display: grid; place-items: center; }
.map-pin-dot { width: 16px; height: 16px; background: var(--orange); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); position: relative; z-index: 2; }
.map-pin-ring { position: absolute; inset: 0; border: 3px solid rgba(249, 115, 22, .55); border-radius: 50%; animation: ping 1.8s ease-out infinite; }
.map-pin-ring.d1 { animation-delay: .6s; }
.map-pin-ring.d2 { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

@media (max-width: 899px) {
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .area-map { min-height: 340px; }
}

/* ─────────────── nosotros ─────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--radius); background: var(--line-light); }
.about-tag {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; align-items: baseline; gap: 10px;
  background: var(--navy-800); color: var(--fg); padding: 14px 22px 14px 20px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: var(--shadow-navy);
}
.about-tag strong { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--orange); }
.about-tag span { font-weight: 600; font-size: .9375rem; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content > p:not(.eyebrow) { color: var(--ink-soft); max-width: 58ch; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.75rem; border-top: 1px solid var(--line-light); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 16px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line-light); }
.stat dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat dt { margin-top: 6px; font-size: .9375rem; line-height: 1.3; color: var(--ink-soft); }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-tag { left: 12px; bottom: 12px; }
}
@media (max-width: 399px) {
  .stat + .stat { padding-left: 12px; }
  .stat { padding-right: 8px; }
}

/* ─────────────── soporte ─────────────── */
.support { background: var(--navy-900); overflow: hidden; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.support-content h2 { margin-bottom: 1.25rem; }
.support-content h2 span { color: var(--orange); }
.support-content > p:not(.eyebrow) { color: var(--fg-soft); max-width: 44ch; margin-bottom: 1.75rem; font-size: var(--step-1); line-height: 1.55; }

.support-photos { --w: 220px; --h: 300px; --off: 175px; position: relative; height: 400px; }
.supp-img {
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h);
  object-fit: cover; border-radius: 10px; border: 3px solid transparent;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7);
  transition: transform .9s var(--ease), opacity .9s var(--ease), border-color .9s;
}
.supp-center { z-index: 3; transform: translate(-50%, -50%); border-color: var(--orange); }
.supp-left { z-index: 1; opacity: .62; transform: translate(calc(-50% - var(--off)), -50%) rotate(-5deg) scale(.78); }
.supp-right { z-index: 2; opacity: .62; transform: translate(calc(-50% + var(--off)), -50%) rotate(5deg) scale(.78); }
@media (max-width: 899px) {
  .support-grid { grid-template-columns: minmax(0, 1fr); }
  .support-photos { --w: 170px; --h: 232px; --off: 120px; height: 300px; }
}
@media (max-width: 379px) { .support-photos { --w: 150px; --h: 205px; --off: 96px; height: 270px; } }

/* ─────────────── contacto ─────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; }
.contact-card {
  display: flex; align-items: center; gap: 20px; min-height: 128px; padding: 24px 26px;
  background: var(--white); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(15, 30, 46, .5); }
.contact-card--wa:hover { border-color: #1a9e50; }
.contact-card--call:hover { border-color: var(--orange); }
.contact-icon { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 6px; }
.contact-card--wa .contact-icon { background: #e6f6ec; color: #168a45; }
.contact-card--call .contact-icon { background: var(--navy-800); color: var(--orange); }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-kind { font-weight: 600; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-value { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.contact-hint { font-size: .9375rem; color: var(--ink-soft); }
@media (max-width: 699px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 379px) { .contact-card { padding: 20px 18px; gap: 14px; } .contact-icon { width: 52px; height: 52px; } .contact-value { font-size: 1.75rem; } }

/* ─────────────── pie ─────────────── */
.site-footer { background: var(--navy-950); color: var(--fg-soft); padding: clamp(48px, 6vw, 72px) 0 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.footer-brand p { font-size: .9375rem; }
.footer-brand .brand-text { font-size: 1.5rem; margin-bottom: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--fg); text-decoration: none; font-size: .9375rem; border-radius: var(--radius-sm); }
.footer-nav a:hover { color: var(--orange); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact > a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--fg); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-contact > a:hover { color: var(--orange); }
.footer-contact p { font-size: .9375rem; }
.footer-contact p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange); font-weight: 600; text-underline-offset: 4px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-nav { margin-left: -10px; } }

/* ─────────────── 404 ─────────────── */
.notfound { min-height: 100svh; display: flex; flex-direction: column; background: var(--navy-900); color: var(--fg); }
.notfound .hero { flex: 1; display: flex; align-items: center; }
.notfound-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 4rem + 12vw, 14rem); line-height: .85; color: var(--orange); letter-spacing: -.01em; }
.notfound h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1; text-transform: uppercase; margin: 1rem 0 .75rem; }
.notfound p { color: var(--fg-soft); max-width: 52ch; font-size: var(--step-1); }
.notfound .lang-es { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.notfound .hero-actions { margin-top: 2rem; }
.nf-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 1.5rem 0 0 -10px; }
.nf-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--fg); font-weight: 600; text-underline-offset: 4px; }
.nf-links a:hover { color: var(--orange); }
.notfound-stripe { height: 8px; background: repeating-linear-gradient(135deg, var(--orange) 0 12px, transparent 12px 24px); }

/* ─────────────── movimiento reducido ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
