/*
  KINETIC Legacy Logistics
  Sitio estático: HTML + CSS + JS
  Reemplaza las imágenes dentro de assets/img manteniendo los mismos nombres.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

:root {
  --navy-950: #050a1b;
  --navy-900: #081126;
  --navy-850: #0b1429;
  --navy-800: #101a32;
  --blue-700: #164f93;
  --blue-600: #1e5ea8;
  --blue-500: #2b72c4;
  --green: #63d483;
  --ink: #050b1d;
  --muted: #6f7892;
  --muted-light: #9aa3b7;
  --line: rgba(5, 11, 29, .14);
  --line-dark: rgba(79, 116, 170, .16);
  --white: #ffffff;
  --paper: #f7f8fb;
  --max: 1220px;
  --radius: 0px;
  --shadow: 0 24px 90px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--blue-600);
  color: var(--white);
}

.container {
  width: min(calc(100% - 72px), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 790px;
}

.grid-bg {
  position: relative;
  overflow: hidden;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 86, 128, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 86, 128, .075) 1px, transparent 1px);
  background-size: 86px 86px;
  pointer-events: none;
  opacity: .8;
}

.grid-bg > * {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 82px;
  transition: background .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid,
body.is-menu-open .site-header {
  height: 74px;
  background: rgba(7, 13, 31, .94);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(14px);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: .86;
  min-width: 132px;
  color: var(--white);
  letter-spacing: -.06em;
}

.logo strong {
  font-size: 20px;
  font-weight: 900;
}

.logo span {
  margin-top: 8px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue-500);
  font-size: 10px;
  letter-spacing: .38em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 82px;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color .25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}

body.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.is-menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 34px;
  border: 1px solid transparent;
  background: var(--navy-950);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blue-600);
}

.btn-primary:hover {
  background: var(--blue-500);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.42);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.06);
}

.btn-light-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(5, 11, 29, .58);
}

.btn-light-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-small {
  min-height: 46px;
  padding-inline: 24px;
  font-size: 12px;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 148px 0 96px;
}

.page-hero {
  min-height: 480px;
  display: flex;
  align-items: end;
  padding: 138px 0 78px;
}

.hero-bg,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg {
  background-image: url('../img/hero-warehouse-night.jpg');
  will-change: transform;
}

.page-hero::before {
  content: '';
  background-image: url('../img/hero-warehouse-night.jpg');
}

.hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 11, 41, 0.774) 0%, rgba(2, 6, 20, 0.719) 34%, rgba(4, 9, 25, 0.253) 74%, rgba(4, 9, 25, .92) 100%),
    linear-gradient(180deg, rgba(4, 9, 25, 0.103), rgba(4, 9, 25, 0.61));
}

.hero::after,
.page-hero .hero-grid {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(53, 86, 130, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 86, 130, .05) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-content {
  width: min(100%, 690px);
  padding-top: 46px;
}

.hero-topline {
  position: absolute;
  top: 126px;
  left: max(22px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
}

.hero-topline::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
}

.route-code {
  position: absolute;
  top: 126px;
  right: max(22px, calc((100vw - var(--max)) / 2));
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255,255,255,.35);
  font-size: 11px;
  letter-spacing: .26em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue-500);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.page-hero h1,
.section-title,
.cta-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.052em;
  line-height: .98;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.9rem, 5.15vw, 5.35rem);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 4.55vw, 4.6rem);
}

.section-title {
  max-width: 760px;
  font-size: clamp(2.05rem, 3.35vw, 3.45rem);
}

.cta-title {
  max-width: 780px;
  font-size: clamp(2rem, 3.15vw, 3.2rem);
}

.text-blue {
  color: var(--blue-600);
}

.hero-copy,
.page-copy,
.lead {
  color: rgba(255,255,255,.70);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 600;
}

.hero-copy {
  max-width: 610px;
  margin-top: 26px;
}

.page-copy {
  max-width: 620px;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Common sections */
.section {
  padding: 112px 0;
}

.section-light {
  background: var(--paper);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: 86px;
  align-items: end;
  margin-bottom: 58px;
}

.section-head p {
  color: #59637c;
  font-size: 16px;
  line-height: 1.75;
}

.section-dark .section-head p,
.section-dark p {
  color: rgba(255,255,255,.62);
}

.stats-strip {
  background: var(--navy-950);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

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

.stat-card {
  padding: 36px 34px;
  border-left: 1px solid rgba(43, 114, 196, .35);
}

.stat-card:last-child {
  border-right: 1px solid rgba(43, 114, 196, .35);
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .9;
}

.stat-label,
.mono-label {
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255,255,255,.43);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.stat-card.light .stat-label {
  color: rgba(5,11,29,.40);
}

/* Feature grid */
.feature-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card,
.value-card {
  position: relative;
  min-height: 232px;
  padding: 44px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.25);
}

.feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 34px;
  color: var(--blue-600);
}

.card-number {
  position: absolute;
  top: 42px;
  right: 42px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(5,11,29,.22);
  font-size: 11px;
  letter-spacing: .1em;
}

.feature-card h3,
.value-card h3,
.service-card h3,
.process-step h3 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -.045em;
}

.feature-card p,
.value-card p,
.service-card p,
.process-step p,
.story-copy p,
.service-copy p,
.contact-copy p {
  margin-top: 18px;
  color: #707892;
  font-size: 15px;
  line-height: 1.7;
}

/* Services preview */
.services-preview {
  padding: 112px 0 124px;
}

.services-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 58px;
}

.services-preview .section-title,
.section-dark .section-title {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
}

.service-card figure {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--navy-800);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s var(--ease), filter .75s var(--ease);
  filter: saturate(.82) contrast(1.04);
}

.service-card figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 27, .18), rgba(5, 10, 27, .78));
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card .service-number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue-500);
  font-size: 12px;
}

.service-card h3 {
  margin-top: 24px;
  color: var(--white);
}

.service-card p {
  color: rgba(255,255,255,.50);
}

/* Family block */
.family-section {
  background: var(--white);
}

.family-grid,
.story-grid,
.contact-grid,
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
}

.family-photo,
.story-photo {
  position: relative;
  width: min(100%, 610px);
}

.family-photo img,
.story-photo img {
  width: 100%;
  min-height: 515px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.experience-badge,
.est-badge {
  position: absolute;
  background: var(--blue-600);
  color: var(--white);
  padding: 26px 30px;
  min-width: 150px;
}

.experience-badge {
  right: -22px;
  bottom: -22px;
}

.est-badge {
  top: -20px;
  left: -22px;
}

.experience-badge strong,
.est-badge strong {
  display: block;
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
}

.experience-badge span,
.est-badge span {
  display: block;
  margin-top: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.story-copy .section-title,
.service-copy .section-title,
.contact-copy .section-title {
  font-size: clamp(1.95rem, 3.25vw, 3.25rem);
}

.story-copy p,
.contact-copy p,
.service-copy p {
  font-size: 16px;
}

.story-copy .btn,
.service-copy .btn {
  margin-top: 26px;
}

/* Quote */
.quote-band {
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(5, 10, 27, .78), rgba(5, 10, 27, .88)),
    url('../img/highway-city-night.jpg') center/cover no-repeat;
}

.quote-band.left {
  place-items: center start;
  text-align: left;
}

.quote-wrap {
  width: min(calc(100% - 44px), 760px);
  margin-inline: auto;
}

.quote-mark {
  color: var(--blue-500);
  font-size: 54px;
  font-weight: 900;
  line-height: .5;
}

.quote-band h2 {
  margin-top: 22px;
  font-size: clamp(1.75rem, 2.75vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.quote-author {
  margin-top: 22px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* CTA and footer */
.cta-panel-wrap {
  padding: 76px 0 90px;
  background: var(--paper);
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 58px 64px;
  background: var(--navy-950);
  color: var(--white);
}

.footer {
  background: var(--navy-950);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}

.footer-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line-dark);
}

.status-live {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.status-live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr .7fr 1fr 1.2fr;
  gap: 74px;
  padding: 76px 0 68px;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255,255,255,.60);
  font-size: 14px;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--white);
}

.footer-title {
  margin-bottom: 20px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255,255,255,.34);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-contact {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(255,255,255,.32);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
}

/* Services page */
.services-list {
  background: var(--white);
}

.service-row {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:nth-child(even) .service-media {
  order: 2;
}

.service-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe3ea;
}

.service-media img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.service-media .service-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue-500);
  font-size: 13px;
}

.service-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-list li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--blue-600);
}

.process-section {
  background: var(--navy-950);
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-dark);
  margin-top: 54px;
}

.process-step {
  padding: 32px 34px;
  border-right: 1px solid var(--line-dark);
}

.process-step .step-number {
  font-family: 'Share Tech Mono', monospace;
  color: var(--blue-500);
  font-size: 12px;
  margin-bottom: 28px;
}

.process-step p {
  color: rgba(255,255,255,.55);
}

/* Nosotros */
.about-stats {
  background: var(--navy-950);
  color: var(--white);
}

.about-stats .stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.values-section {
  background: var(--paper);
}

.value-card::after {
  content: '';
  position: absolute;
  top: 34px;
  right: 34px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(5,11,29,.13);
}

/* Contact */
.contact-section {
  background: var(--white);
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field label,
.chip-label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(5,11,29,.45);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(5,11,29,.18);
  padding: 14px 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .2s ease;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-600);
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-chip {
  border: 1px solid rgba(5,11,29,.18);
  background: transparent;
  padding: 10px 14px;
  color: rgba(5,11,29,.58);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.service-chip.is-selected,
.service-chip:hover {
  background: var(--navy-950);
  color: var(--white);
  border-color: var(--navy-950);
}

.contact-aside {
  padding-left: 52px;
}

.info-list {
  display: grid;
  gap: 32px;
  margin-top: 42px;
}

.info-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(5,11,29,.12);
}

.info-item span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(5,11,29,.45);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.info-item strong {
  font-size: 15px;
  line-height: 1.5;
}

.operational-box {
  margin-top: 32px;
  padding: 30px 34px;
  background: var(--navy-950);
  color: var(--white);
}

.operational-box .status-live {
  margin-bottom: 14px;
  font-size: 13px;
}

.operational-box p {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.6;
}

.form-message {
  display: none;
  padding: 16px 18px;
  background: rgba(30, 94, 168, .08);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 14px;
}

.form-message.is-visible {
  display: block;
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  :root { --max: 1040px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { gap: 46px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-header { height: 74px; background: rgba(7, 13, 31, .92); backdrop-filter: blur(12px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 20px 22px 26px;
    background: rgba(7, 13, 31, .98);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
  }
  body.is-menu-open .nav-links { transform: translateY(0); }
  .nav-links a { height: 54px; }
  .nav-links a::after { bottom: 8px; right: auto; width: 40px; }
  .header-actions .btn { display: none; }
  .hero-topline, .route-code { display: none; }
  .hero { min-height: 760px; padding-top: 128px; }
  .hero-content { padding-top: 0; }
  .section { padding: 86px 0; }
  .section-head,
  .family-grid,
  .story-grid,
  .contact-grid,
  .service-row {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .service-row:nth-child(even) .service-media { order: initial; }
  .feature-grid,
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid,
  .about-stats .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .services-top { align-items: start; flex-direction: column; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 48px 34px; }
  .contact-aside { padding-left: 0; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .logo strong { font-size: 18px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .page-hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .section-title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero-copy, .page-copy, .lead { font-size: 16px; }
  .hero-actions, .form-row { grid-template-columns: 1fr; display: grid; width: 100%; }
  .btn { width: 100%; min-height: 52px; padding-inline: 22px; }
  .stats-grid,
  .about-stats .stats-grid,
  .feature-grid,
  .values-grid,
  .process-grid,
  .service-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: 1px solid rgba(43,114,196,.35); }
  .feature-card, .value-card { padding: 36px 26px; }
  .service-media img { height: 320px; }
  .family-photo img, .story-photo img { min-height: 420px; }
  .experience-badge { right: 10px; bottom: 10px; }
  .est-badge { left: 10px; top: 10px; }
  .quote-band { min-height: 360px; }
  .footer-status, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; padding: 62px 0; }
}

.page-hero.contact-hero::before {
  background-image: url('../img/contact-warehouse-night.jpg');
}

/* Refinamiento de escala y espaciado: títulos más contenidos y respiración consistente */
.section-title,
.cta-title,
.hero h1,
.page-hero h1 {
  text-wrap: balance;
}

.section-head > div:first-child,
.services-top > div:first-child,
.story-copy,
.service-copy,
.contact-copy {
  min-width: 0;
}

.service-row .service-copy {
  max-width: 560px;
}

.family-grid .story-copy,
.story-grid .story-copy,
.contact-copy {
  max-width: 590px;
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 44px), var(--max)); }
  .hero { min-height: 690px; padding: 118px 0 76px; }
  .page-hero { min-height: 410px; padding: 116px 0 64px; }
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 48px; gap: 28px; }
  .services-preview { padding: 82px 0 92px; }
  .services-top { margin-bottom: 42px; }
  .service-row { padding: 78px 0; }
  .family-grid,
  .story-grid,
  .contact-grid,
  .service-row { gap: 40px; }
  .service-row .service-copy,
  .family-grid .story-copy,
  .story-grid .story-copy,
  .contact-copy { max-width: 100%; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.65rem); line-height: 1; }
  .page-hero h1 { font-size: clamp(2.05rem, 10.8vw, 3.15rem); line-height: 1; }
  .section-title { font-size: clamp(1.9rem, 9.4vw, 2.65rem); line-height: 1.04; }
  .cta-title { font-size: clamp(1.8rem, 8.8vw, 2.45rem); line-height: 1.04; }
  .hero-copy,
  .page-copy,
  .lead { font-size: 15px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 38px; }
  .feature-card,
  .value-card { min-height: auto; padding: 34px 24px; }
  .stat-card { padding: 30px 24px; }
  .cta-panel { padding: 38px 24px; }
}
