/* =========================================================
   Construcciones FV — Sistema de diseño
   Paleta tomada del logo: negro #1a1a1a, amarillo #ffcc00,
   dorado #bf9500, gris #666666.
   ========================================================= */

:root {
  /* Superficies claras */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #eceef1;

  /* Superficies oscuras */
  --dark: #101114;
  --dark-2: #17191d;
  --dark-3: #212429;

  /* Tinta */
  --ink: #16181c;
  --ink-2: #3a3f47;
  --muted: #6b7280;
  --muted-dark: #a2a8b3;

  /* Marca */
  --brand: #ffcc00;
  --brand-deep: #bf9500;
  --brand-soft: #fff4cc;

  /* Líneas */
  --stroke: #dfe2e7;
  --stroke-dark: rgba(255, 255, 255, 0.12);

  /* Sombras */
  --shadow: 0 24px 60px rgba(16, 17, 20, 0.14);
  --shadow-soft: 0 10px 28px rgba(16, 17, 20, 0.08);
  --shadow-hard: 0 30px 70px rgba(16, 17, 20, 0.30);

  /* Radios */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1240px;

  --font-display: "Bricolage Grotesque", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 18px;
  background: var(--brand);
  color: #1a1a1a;
  font-weight: 700;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 300;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
}

.section-alt {
  background: var(--surface-alt);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-dark .section-header p {
  color: var(--muted-dark);
}

/* ---------- Encabezados de sección ---------- */

.section-header {
  max-width: 760px;
}

.section-header h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  margin: 16px 0 14px;
}

.section-header p {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17.5px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #6b5200;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-deep);
}

.eyebrow-dark {
  background: rgba(255, 204, 0, 0.14);
  color: var(--brand);
}

.eyebrow-dark::before {
  background: var(--brand);
}

.pill {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #6b5200;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14.5px;
}

.btn-primary {
  background: var(--brand);
  color: #1a1a1a;
  box-shadow: 0 10px 26px rgba(255, 204, 0, 0.32);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ffd633;
  box-shadow: 0 16px 34px rgba(255, 204, 0, 0.42);
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 14px;
}

.link {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 700;
  color: var(--brand-deep);
  border-bottom: 1px solid currentColor;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(16, 17, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--stroke-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.brand-location {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
}

.site-nav a:not(.btn) {
  padding: 8px 0;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.28s var(--ease);
}

.site-nav a:not(.btn):hover {
  color: #fff;
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after,
.site-nav a:not(.btn).is-active::after {
  width: 100%;
}

.site-nav a:not(.btn).is-active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before {
  content: "";
  top: -7px;
  left: 0;
  transform: none;
}

.nav-toggle-bar::after {
  content: "";
  top: 7px;
  left: 0;
  transform: none;
}

.site-header[data-open="true"] .nav-toggle-bar {
  background: transparent;
}

.site-header[data-open="true"] .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  object-fit: cover;
  /* La imagen es 21:9 y el hero es mucho más alto, así que el recorte
     ocurre a lo ancho. Se desplaza el encuadre hacia la derecha para
     no cortar la excavadora, que es el sujeto. */
  object-position: 64% 58%;
  transform: scale(1.06);
  animation: ken-burns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ken-burns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.2%, -1.4%, 0);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(16, 17, 20, 0.82) 0%,
      rgba(16, 17, 20, 0.34) 28%,
      rgba(16, 17, 20, 0.42) 55%,
      rgba(16, 17, 20, 0.93) 100%
    ),
    linear-gradient(90deg, rgba(16, 17, 20, 0.78) 0%, rgba(16, 17, 20, 0.1) 62%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  padding: clamp(108px, 15vh, 152px) 0 clamp(30px, 4vh, 46px);
  position: relative;
  z-index: 2;
  max-width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.pill-hero {
  background: rgba(255, 204, 0, 0.16);
  color: var(--brand);
  border: 1px solid rgba(255, 204, 0, 0.32);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: hero-in 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 74px);
  font-weight: 800;
  color: #fff;
  margin: clamp(14px, 2.4vh, 24px) 0 clamp(14px, 2.2vh, 20px);
  max-width: 24ch;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.h1-line {
  display: block;
  opacity: 0;
  animation: hero-in 1s var(--ease) forwards;
}

.h1-line:nth-child(1) {
  animation-delay: 0.28s;
}

.h1-line:nth-child(2) {
  animation-delay: 0.42s;
}

.h1-accent {
  color: var(--brand);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .lead {
  font-size: clamp(15.5px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin-bottom: clamp(20px, 3.4vh, 32px);
  opacity: 0;
  animation: hero-in 1s var(--ease) 0.56s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-in 1s var(--ease) 0.7s forwards;
}

/* Franja inferior del hero */

.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 17, 20, 0.55);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: hero-in 1s var(--ease) 0.9s forwards;
}

.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: clamp(16px, 2.4vh, 24px) 26px clamp(16px, 2.4vh, 24px) 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.strip-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.strip-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--brand);
}

.strip-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 128px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  z-index: 3;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

/* =========================================================
   SERVICIOS — dos líneas de negocio
   ========================================================= */

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.split-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.split-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.split-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 204, 0, 0.5);
}

.split-card:hover::before {
  transform: scaleX(1);
}

.split-card--primary {
  background: linear-gradient(165deg, #fffdf5 0%, #ffffff 60%);
  border-color: rgba(255, 204, 0, 0.42);
}

.split-index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-deep);
}

.split-card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin: 10px 0 14px;
}

.split-card > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.tick-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-2);
}

.tick-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================================================
   FLOTA
   ========================================================= */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.fleet-card {
  background: var(--dark-2);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.fleet-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 204, 0, 0.45);
  background: var(--dark-3);
}

.fleet-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255, 204, 0, 0.13);
  border: 1px solid rgba(255, 204, 0, 0.26);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.fleet-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fleet-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fleet-card p {
  color: var(--muted-dark);
  font-size: 15px;
}

.fleet-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.09), var(--dark-2) 55%);
  border-color: rgba(255, 204, 0, 0.3);
}

.fleet-card--wide .fleet-icon {
  margin-bottom: 0;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mode {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.mode-tag {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #1a1a1a;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mode p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
}

.fleet-cta {
  margin-top: 40px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.fleet-cta p {
  color: #fff;
  font-weight: 600;
  font-size: 17px;
}

/* =========================================================
   OBRAS CIVILES
   ========================================================= */

.works-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  margin-top: 46px;
  align-items: start;
}

.works-media {
  position: sticky;
  top: 110px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  /* La fuente es 21:9; un marco 3:2 recorta poco y mantiene legible
     la estructura del puente. */
  aspect-ratio: 3 / 2;
}

.works-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.works-media:hover img {
  transform: scale(1.05);
}

.works-list {
  display: grid;
  gap: 6px;
}

.work-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 26px 24px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--stroke);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-item:last-child {
  border-bottom: none;
}

.work-item:hover {
  background: var(--surface);
  transform: translateX(6px);
  box-shadow: var(--shadow-soft);
}

.work-number {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-deep);
  padding-top: 4px;
}

.work-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.work-item p {
  color: var(--muted);
  font-size: 15.5px;
}

/* =========================================================
   IDENTIDAD — Visión / Misión / Propuesta de valor
   ========================================================= */

.identity-stack {
  display: grid;
  gap: 22px;
  margin-top: 46px;
}

.identity-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  position: relative;
  overflow: hidden;
}

.identity-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.identity-step {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #1a1a1a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.identity-head h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
}

.identity-text {
  color: var(--ink-2);
  font-size: clamp(16px, 1.35vw, 18.5px);
  max-width: 88ch;
}

.identity-card--value {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  border-color: rgba(255, 204, 0, 0.28);
  color: #fff;
}

.identity-card--value h3 {
  color: #fff;
}

.identity-card--value .identity-text {
  color: rgba(255, 255, 255, 0.78);
}

.identity-statement {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 6px 0 24px;
}

.identity-statement strong {
  color: var(--brand);
  font-weight: 800;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--stroke-dark);
}

.value-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 14px 0 8px;
}

.value-item p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.8px;
}

.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 204, 0, 0.14);
  display: grid;
  place-items: center;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   PROCESO
   ========================================================= */

.process-grid {
  display: grid;
  gap: 20px;
  margin-top: 46px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.process-step::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--brand);
  transition: width 0.45s var(--ease);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 204, 0, 0.45);
}

.process-step:hover::after {
  width: calc(100% - 52px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--stroke);
  line-height: 1;
  transition: color 0.3s var(--ease);
}

.process-step:hover .step-number {
  color: var(--brand);
}

.process-step h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 15px;
}

/* =========================================================
   GALERÍA
   ========================================================= */

.gallery-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark-2);
  border: 1px solid var(--stroke-dark);
}

.gallery-item--lg {
  grid-column: span 3;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item--lg img {
  aspect-ratio: 21 / 9;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 22px 18px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(transparent, rgba(16, 17, 20, 0.9));
}

/* =========================================================
   MARQUEE CLIENTES
   ========================================================= */

.logo-marquee {
  margin-top: 46px;
  display: grid;
  gap: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-row {
  overflow: hidden;
  padding: 4px 0;
}

.logo-track {
  display: flex;
  gap: 16px;
  align-items: center;
  width: max-content;
}

.logo-item {
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}

.logo-item img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.marquee-left .logo-track {
  animation: marquee-left 34s linear infinite;
}

.marquee-right .logo-track {
  animation: marquee-right 34s linear infinite;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* =========================================================
   CONTACTO
   ========================================================= */

.section-cta {
  background: linear-gradient(160deg, var(--dark) 0%, #1b1d22 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.16), transparent 66%);
  pointer-events: none;
}

.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: start;
  position: relative;
}

.contact-copy h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  color: #fff;
  margin: 16px 0 14px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.contact-card:hover {
  border-color: rgba(255, 204, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.contact-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 8px;
}

.contact-card p {
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
}

.contact-card .link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
}

.contact-person {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #0b0c0e;
  color: #fff;
  padding: 64px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-note {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
  font-size: 15px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.8px;
  transition: color 0.2s ease, padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* =========================================================
   CTA FLOTANTE
   ========================================================= */

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(255, 204, 0, 0.4);
  transform: translateY(90px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease),
    box-shadow 0.25s var(--ease);
}

.floating-cta.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.floating-cta:hover {
  box-shadow: 0 18px 44px rgba(255, 204, 0, 0.55);
}

.floating-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a1a1a;
  position: relative;
}

.floating-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(26, 26, 26, 0.5);
  animation: ping 1.9s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* =========================================================
   REVEAL
   ========================================================= */

/* Solo se oculta si JS está activo (clase `js` en <html>). Sin JS el
   contenido se muestra normalmente en lugar de quedar invisible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .works-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .works-media {
    position: static;
    aspect-ratio: 16 / 9;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(16, 17, 20, 0.97);
    backdrop-filter: blur(16px);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-dark);
    box-shadow: var(--shadow-hard);
    display: none;
  }

  .site-header[data-open="true"] .site-nav {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav .btn {
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .hero-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-item {
    padding: 18px 18px 18px 0;
  }

  .strip-item:nth-child(2)::after {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--lg {
    grid-column: span 1;
  }

  .fleet-card--wide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    padding: 128px 0 36px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  /* La franja pasa a ser un carrusel horizontal para no
     estirar el hero a lo alto en pantallas chicas. */
  .hero-strip-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-strip-inner::-webkit-scrollbar {
    display: none;
  }

  .strip-item {
    flex: 0 0 76%;
    scroll-snap-align: start;
    padding: 16px 20px 18px 0;
  }

  .strip-item::after {
    display: block !important;
    right: 10px;
  }

  .strip-item:last-child {
    padding-right: 0;
  }

  .split-card,
  .identity-card {
    padding: 30px 24px;
  }

  .fleet-cta {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .floating-cta {
    left: 16px;
    right: 16px;
    justify-content: center;
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-media img {
    transform: scale(1);
  }

  .pill-hero,
  .h1-line,
  .hero .lead,
  .hero-actions,
  .hero-strip {
    opacity: 1;
  }
}
