/* Constructora Ara-Chile — sobrio, tecnico y contemporaneo */
:root {
  --bg: #1c1c1c;
  --bg-elevated: #252525;
  --bg-soft: #2e2e2e;
  --surface: #333333;
  --line: #3f3f3f;
  --line-strong: #505050;
  --text: #f2f2f0;
  --text-muted: #b8b8b3;
  --accent: #f4c522;
  --accent-hot: #f4c522;
  --accent-ink: #111111;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

/* Corte Display de Inter: solo cambia el eje optico, no descarga otra fuente */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-variation-settings: "opsz" 32;
}

h1 {
  font-size: clamp(2.15rem, 5.5vw, 3.75rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 20;
}

p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
}

/*
  Justificado a partir de tablet: bajo ~600px la medida es tan corta que el
  justificado abre rios de espacio y se lee peor que alineado a la izquierda.
*/
@media (min-width: 600px) {
  .split-copy p,
  .section-intro,
  .service-copy p,
  .hero-lead {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
  }
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text);
  font-weight: 600;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.font-mono {
  font-family: var(--font-mono);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Reveal On-Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 0.7rem;
  height: 2rem;
  background: var(--text);
  box-shadow: 3px 0 0 var(--line-strong);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-text strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.logo-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ffc933;
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-soft);
}

/* Sections */
.section {
  padding: clamp(5.5rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

/*
  Ritmo de superficies: ink / papel / blanco.
  El blanco queda reservado a fotos y logos para que no compitan con el resto.
*/
.theme-ink,
.theme-paper,
.theme-stone,
.theme-white {
  color: var(--text);
  background: var(--bg);
}

.theme-ink {
  --bg: #1c1c1c;
  --bg-elevated: #252525;
  --bg-soft: #2e2e2e;
  --surface: #333333;
  --line: #3f3f3f;
  --line-strong: #505050;
  --text: #f2f2f0;
  --text-muted: #b8b8b3;
}

.theme-paper {
  --bg: #f3f0e8;
  --bg-elevated: #fffcf7;
  --bg-soft: #ebe7dc;
  --surface: #ffffff;
  --line: #ddd6c6;
  --line-strong: #c9c0ac;
  --text: #1c1c1a;
  --text-muted: #5c5a53;
}

.theme-stone {
  --bg: #e6e3db;
  --bg-elevated: #f7f5ef;
  --bg-soft: #ddd9cf;
  --surface: #ffffff;
  --line: #d0cbbf;
  --line-strong: #b9b3a6;
  --text: #1c1c1a;
  --text-muted: #5c5a53;
}

.theme-white {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #f4f1ea;
  --surface: #f7f5ef;
  --line: #e6e1d6;
  --line-strong: #cfc8b8;
  --text: #1c1c1a;
  --text-muted: #5c5a53;
}

.theme-paper .section-label,
.theme-stone .section-label,
.theme-white .section-label {
  color: #9a7a12;
}

.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 42rem;
}

.section-head-inline {
  display: grid;
  gap: 1rem;
  max-width: none;
}

.section-intro {
  margin-top: 0.75rem;
  max-width: 38rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(43, 43, 43, 0.92) 28%, rgba(43, 43, 43, 0.55) 62%, rgba(43, 43, 43, 0.75)),
    repeating-linear-gradient(
      90deg,
      #2b2b2b 0,
      #2b2b2b 18px,
      #262626 18px,
      #262626 36px
    );
  transform: translateZ(0);
}

.hero-bg.has-photo {
  background: var(--bg);
}

.hero-bg.has-photo picture,
.hero-bg.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg.has-photo img {
  animation: photo-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

/* Overlay de legibilidad sobre foto real */
.hero-bg.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(43, 43, 43, 0.88) 22%, rgba(43, 43, 43, 0.45) 58%, rgba(43, 43, 43, 0.72)),
    linear-gradient(0deg, rgba(43, 43, 43, 0.35), transparent 48%);
  pointer-events: none;
}

.gallery-more {
  margin-top: 2.25rem;
  text-align: center;
}

.gallery-especialidades-btn {
  display: inline-block;
  margin: 0 0 1.15rem;
  padding-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.gallery-especialidades-btn:hover,
.gallery-especialidades-btn:focus-visible {
  color: #8a6c0d;
  border-bottom-color: var(--accent);
}

.gallery-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-more-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.gallery-more-links a:hover,
.gallery-more-links a:focus-visible {
  border-bottom-color: var(--line-strong);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
  line-height: 1.05;
  max-width: none;
  animation: rise 0.85s var(--ease) both;
}

.hero-subtagline {
  margin: 0.9rem 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #cfcfc9;
  animation: rise 0.85s var(--ease) both;
  animation-delay: 0.1s;
}

/* El quiebre solo se permite en movil: en escritorio el claim va en una linea */
@media (min-width: 761px) {
  .hero-tagline {
    white-space: nowrap;
  }
}

.hero-eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-lead {
  max-width: 38rem;
  margin: 1.1rem 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #cfcfc9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-content h1,
.hero-lead,
.hero-eyebrow,
.hero-cta {
  animation: rise 0.85s var(--ease) both;
}

.hero-lead {
  animation-delay: 0.08s;
}

.hero-cta {
  animation-delay: 0.16s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Banner de servicio (páginas internas) */
.hero-service {
  min-height: clamp(20rem, 48svh, 30rem);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.25rem);
}

.hero-service .hero-content {
  max-width: 54rem;
}

.hero-service h1 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.hero-service .hero-lead {
  margin-bottom: 1.6rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: rise 0.85s var(--ease) both;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: rise 0.85s var(--ease) both;
  animation-delay: 0.16s;
}

.hero-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.35rem 1.15rem 0.35rem 0;
  font-size: 0.83rem;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.hero-fact b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

/* Banner de cierre con foto */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.cta-banner-media picture,
.cta-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-banner-media img {
  animation: photo-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.cta-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(43, 43, 43, 0.95) 12%, rgba(43, 43, 43, 0.78));
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.cta-banner h2 {
  margin-top: 0;
}

.cta-banner p {
  margin-bottom: 2rem;
  color: #d6d6d0;
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Nosotros */
.section-nosotros {
  background: var(--bg);
}

.nosotros-layout {
  display: grid;
  gap: 1.25rem;
  justify-items: stretch;
}

.split-copy {
  max-width: 42rem;
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

/*
  Valores: el recuadro ES la flecha, pero ahora solo como contorno.
  Se construye con dos clip-path identicos (wrapper con padding = grosor del borde)
  porque clip-path recorta cualquier border real.
*/
.pillars {
  --pillar-clip: polygon(0 50%, 6% 0, 100% 0, 94% 50%, 100% 100%, 6% 100%);
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.pillar {
  padding: 1px;
  background: var(--line-strong);
  clip-path: var(--pillar-clip);
}

.pillar-lead {
  background: var(--accent);
}

.pillar > * {
  position: relative;
  z-index: 1;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  background: var(--bg);
  clip-path: var(--pillar-clip);
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 2.6rem 1.9rem 2.9rem;
  transition: background 0.3s var(--ease);
}

.pillar:hover {
  background: var(--accent);
}

.pillars h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  color: var(--text);
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }

  /* Seguridad gana presencia sin romper la reticula */
  .pillar-lead {
    margin-block: -0.75rem;
  }
}

/* Especialidades: texto limpio en tres columnas, sin recuadros */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.specialty-grid article {
  border-bottom: 1px solid var(--line);
}

.specialty-grid h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  font-variation-settings: "opsz" 16;
}

.specialty-grid h3 a {
  display: block;
  padding: 1.15rem 0.35rem 1.15rem 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.specialty-grid h3 a:hover,
.specialty-grid h3 a:focus-visible {
  color: #8a6c0d;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* CTA de cierre de seccion: una linea, sin caja */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.35rem;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  font-size: 1.05rem;
  color: var(--text);
}

.link-cta {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-cta:hover,
.link-cta:focus-visible {
  color: #8a6c0d;
  border-bottom-color: var(--accent);
}

/* Stats: sin recuadros y con la cifra devuelta a una escala legible */
.section-experiencia {
  background: var(--bg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
}

.stat {
  text-align: left;
}

.stat-value {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.stat-unit {
  display: inline-block;
  margin: 0.15rem 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.stat-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.experiencia-cobertura {
  display: none;
}

/* Flota: mismo lenguaje que Especialidades */
.fleet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.fleet-list li {
  border-bottom: 1px solid var(--line);
}

.fleet-list h3 {
  margin: 0;
  padding: 1.05rem 0.35rem 1.05rem 0;
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: "opsz" 16;
  color: var(--text);
  transition: color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fleet-list li:hover h3 {
  color: #8a6c0d;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Confianza: solo logos, tamano homogeneo y aire entre ellos */
.logo-wall {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.logo-wall-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Caja de alto comun: los logos llegan con proporciones dispares y sin esto unos aplastan a otros */
.logo-wall-list img {
  width: 100%;
  height: 3.25rem;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 640px) {
  .logo-wall-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Cobertura operativa ---------- */
.section-presencia {
  background: var(--bg);
}

.presencia-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  justify-items: center;
}

.map-visual {
  position: relative;
  width: min(100%, 170px);
}

.map-chile {
  display: block;
  width: 100%;
  height: auto;
}

.map-chile path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease);
}

.map-pin {
  position: absolute;
  top: var(--pin-top);
  left: var(--pin-left);
  transform: translate(-50%, -50%);
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.map-pin-dot {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.map-pin.is-active .map-pin-dot,
.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot {
  background: var(--accent);
  transform: scale(1.5);
}

.presencia-content {
  width: 100%;
  max-width: 34rem;
}

.zone-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.zone-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: baseline;
  text-align: left;
  padding: 1rem 0.25rem 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.zone-item:hover,
.zone-item:focus-visible,
.zone-item.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-left: 0.5rem;
}

.zone-index {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.zone-item.is-active .zone-index {
  color: #8a6c0d;
}

.zone-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.zone-body strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.zone-body span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.presencia-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.presencia-note strong {
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.35rem;
}

@media (min-width: 900px) {
  .presencia-layout {
    grid-template-columns: auto 1fr;
    justify-items: start;
  }

  .map-visual {
    width: 190px;
  }
}

/* Contacto */
.section-contacto {
  background: var(--bg);
}

.contacto-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contacto-grid .btn {
  margin-top: 0.5rem;
}

.contact-card {
  font-style: normal;
  padding: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.contact-card a {
  text-decoration: none;
  color: var(--text);
}

.contact-card a:hover {
  color: var(--text);
  text-decoration: underline;
}

.contact-card p + p {
  margin-top: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.footer-brand p,
.footer-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .fleet-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-head-inline {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .contacto-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 900px) {
  .specialty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(28, 28, 28, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 1.05rem;
    color: var(--text);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .specialty-grid,
  .fleet-list {
    grid-template-columns: 1fr;
  }

  .hero-tagline {
    letter-spacing: -0.03em;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Fase 2: Portafolio ---------- */
.section-portafolio {
  background: var(--bg);
  overflow: hidden;
}

.gallery-marquee {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.gallery-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
}

.gallery-track-a {
  animation: marquee-left 48s linear infinite;
}

.gallery-track-b {
  animation: marquee-right 56s linear infinite;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.gallery-marquee .gallery-item {
  margin: 0;
  flex: 0 0 clamp(240px, 28vw, 360px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-marquee .gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.gallery-marquee .gallery-trigger .img-lightbox {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.55s var(--ease), filter 0.45s var(--ease);
  filter: saturate(0.94) contrast(1.04);
}

.gallery-marquee .gallery-trigger:hover .img-lightbox,
.gallery-marquee .gallery-trigger:focus-visible .img-lightbox {
  transform: scale(1.12);
  filter: saturate(1) contrast(1.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gallery-item {
  margin: 0;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.gallery-trigger .img-lightbox {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: photo-drift 22s ease-in-out infinite alternate;
  transition: filter 0.45s var(--ease);
  filter: saturate(0.92) contrast(1.05);
}

.gallery-item:nth-child(3n) .img-lightbox {
  animation-duration: 26s;
  animation-delay: -6s;
}

.gallery-item:nth-child(3n+2) .img-lightbox {
  animation-duration: 18s;
  animation-delay: -3s;
  animation-direction: alternate-reverse;
}

.gallery-trigger:hover .img-lightbox,
.gallery-trigger:focus-visible .img-lightbox {
  animation-play-state: paused;
  filter: saturate(1) contrast(1.08);
}

@keyframes photo-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2.2%, -1.4%, 0); }
}

.gallery-item figcaption {
  display: none;
}

.stat-prefix {
  margin-right: 0.05em;
}

.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: grid;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 20, 20, 0.7);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--text);
  color: var(--text);
}

.lightbox-figure {
  margin: 0;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(0.96);
  transition: transform 0.28s var(--ease);
}

.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-figure figcaption {
  font-size: 0.9rem;
  color: #d4d4ce;
  text-align: center;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: 999px;
  background: #25d366;
  color: #083b1a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.wa-float:hover {
  color: #052812;
  background: #2fe574;
  transform: translateY(-2px);
}

.wa-float svg {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-marquee .gallery-item {
    flex-basis: clamp(200px, 55vw, 280px);
  }
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .wa-float {
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}
