/* =========================================================
   United Freight Cargo — hoja de estilos principal
   Línea gráfica: azul marino + azul UFC (#004AAC), tipografía condensada
   ========================================================= */

/* Fuentes locales (SIL Open Font License) */
@font-face { font-family: "Oswald"; font-weight: 300; font-display: swap; src: url("../fonts/oswald-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy-900: #06142e;
  --navy-800: #0a1f44;
  --navy-700: #0f2c5c;
  --blue: #004aac;
  --blue-light: #1f6fdc;
  --sky: #5aa9ff;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e2e7ef;
  --bg-soft: #f3f6fb;
  --white: #ffffff;

  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --radius: 8px;
  --shadow-sm: 0 4px 14px rgba(6, 20, 46, .06);
  --shadow: 0 14px 36px rgba(6, 20, 46, .13);
  --shadow-lg: 0 24px 50px rgba(6, 20, 46, .18);
  --container: 1200px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .25s;
  --t: .45s;
  --t-slow: .8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in .6s var(--ease-out) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--blue-light); }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .5px;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 500; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-800); color: #dbe4f3; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .92rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--sky); }
.accent { color: var(--blue); }
.section--dark .accent, .hero .accent, .page-hero .accent { color: var(--sky); }
.lead { font-size: 1.1rem; color: var(--muted); }
.section--dark .lead { color: #b9c7de; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-720 { max-width: 720px; }


/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(0, 74, 172, .28); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.25) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--ghost { border-color: rgba(255,255,255,.65); color: var(--white); background: transparent; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .arrow { transform: translateX(5px); }
  .btn--primary:hover { color: var(--white); background: var(--blue-light); box-shadow: 0 12px 26px rgba(0, 74, 172, .35); }
  .btn--primary:hover::after { transform: translateX(120%); }
  .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy-800); }
  .btn--outline:hover { background: var(--blue); color: var(--white); }
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(6, 20, 46, .7), rgba(6, 20, 46, 0));
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease), height var(--t) var(--ease);
}
.site-header.is-scrolled { background: rgba(6, 20, 46, .96); box-shadow: 0 6px 24px rgba(0,0,0,.22); --header-h: 70px; }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(6, 20, 46, .86); backdrop-filter: saturate(140%) blur(10px); }
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 50px; width: auto; transition: height var(--t) var(--ease), transform var(--t) var(--ease); }
.site-header.is-scrolled .brand img { height: 42px; }
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  position: relative;
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .98rem;
  padding: 8px 13px;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--sky); }
.nav .btn { margin-left: 14px; padding: 10px 20px; }
.nav-toggle {
  display: none;
  position: relative; z-index: 2;
  background: none; border: 0;
  width: 44px; height: 44px; padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  background: var(--navy-900);
  padding: calc(var(--header-h) + 40px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -4%; z-index: -2;
  background: url("../img/buque-contenedores.jpg") center 30% / cover no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6,20,46,.96) 0%, rgba(10,31,68,.82) 45%, rgba(0,74,172,.35) 100%);
}
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(4) > span { animation-delay: .36s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero .fade-in { animation: fade-up 1s var(--ease-out) both; }
.hero .fade-in.d1 { animation-delay: .45s; }
.hero .fade-in.d2 { animation-delay: .6s; }
.hero .fade-in.d3 { animation-delay: .75s; }
@keyframes fade-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.hero p { max-width: 560px; font-size: 1.15rem; color: #cfdaee; margin-bottom: 34px; }
.hero-tagline { font-family: var(--font-head); letter-spacing: 4px; text-transform: uppercase; color: var(--sky); margin-top: 48px; font-size: .95rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,.55); border-radius: 16px;
  color: transparent; overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 9px; margin-left: -2px; border-radius: 2px;
  background: var(--white);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Hero de páginas internas ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
  background: var(--navy-900) center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6,20,46,.96) 0%, rgba(10,31,68,.84) 55%, rgba(0,74,172,.42) 100%);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; z-index: -1;
  width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(90,169,255,.08);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); animation: fade-up .9s var(--ease-out) .05s both; }
.page-hero p { max-width: 660px; font-size: 1.12rem; color: #cfdaee; margin: 0; animation: fade-up .9s var(--ease-out) .2s both; }
.breadcrumb { font-size: .82rem; color: #9fb2d3; margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase; animation: fade-up .9s var(--ease-out) both; }
.breadcrumb a { color: #9fb2d3; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Tarjetas de servicio ---------- */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.service-card {
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 22px;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.service-card .bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,20,46,.05) 15%, rgba(6,20,46,.92) 80%);
  transition: opacity var(--t) var(--ease);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,74,172,.25), rgba(0,40,110,.95));
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.service-card .icon {
  width: 48px; height: 48px;
  background: var(--white); border-radius: 50%; padding: 10px;
  margin-bottom: 16px;
  transition: transform var(--t) var(--ease);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--white); }
.service-card p {
  font-size: .9rem; line-height: 1.5; color: #d2dcee; margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--t) var(--ease), opacity var(--t) var(--ease), margin var(--t) var(--ease);
}
.service-card .more {
  font-family: var(--font-head); letter-spacing: 2px; text-transform: uppercase;
  font-size: .85rem; color: var(--sky);
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 6px;
  transition: color var(--t-fast) var(--ease), gap var(--t) var(--ease);
}
.service-card:hover, .service-card:focus-visible { color: var(--white); }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .service-card:hover .bg { transform: scale(1.08); }
  .service-card:hover::after { opacity: 1; }
  .service-card:hover .icon { transform: translateY(-4px) rotate(-6deg); }
  .service-card:hover p { max-height: 140px; opacity: 1; margin: 4px 0 14px; }
  .service-card:hover .more { color: var(--white); gap: 12px; }
}
@media (hover: none) {
  .service-card p { max-height: none; opacity: 1; margin: 4px 0 12px; }
}

/* ---------- Bloques de dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.split > *, .card-grid > *, .service-grid > *, .news-layout > * { min-width: 0; }
.split--reverse > :first-child { order: 2; }
.media-frame { position: relative; z-index: 0; }
.media-frame .frame-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame::after {
  content: ""; position: absolute; z-index: -1;
  inset: 22px -22px -22px 22px;
  border: 3px solid var(--blue); border-radius: var(--radius);
  transition: inset var(--t) var(--ease);
}
.media-frame:hover::after { inset: 14px -14px -14px 14px; }

.photo-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-mosaic > div { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.photo-mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease-out); }
.photo-mosaic > div:hover img { transform: scale(1.06); }
.photo-mosaic .contain { object-fit: contain; }
.photo-mosaic > div:nth-child(2) { translate: 0 24px; }
.photo-mosaic > div:nth-child(4) { translate: 0 24px; }

/* ---------- Listas con check ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list--single { grid-template-columns: 1fr; }

/* ---------- Tarjetas ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
  .card:hover::before { transform: scaleX(1); }
}
.card h3 { color: var(--navy-800); }
.card p:last-child { margin-bottom: 0; }
.section--dark .card { background: var(--navy-700); border-color: rgba(255,255,255,.08); color: #cdd8ea; }
.section--dark .card h3 { color: var(--white); }

.value-pill {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  font-family: var(--font-head);
  font-size: 1.15rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.value-pill .num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,74,172,.1); color: var(--blue);
  font-size: 1.05rem;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
@media (hover: hover) {
  .value-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--blue); color: var(--white); }
  .value-pill:hover .num { background: rgba(255,255,255,.18); color: var(--white); }
}

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat .n { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; color: var(--white); line-height: 1; }
.stat .n small { font-size: .55em; color: var(--sky); margin-left: 2px; }
.stat .l { margin-top: 10px; font-size: .88rem; letter-spacing: 1.5px; text-transform: uppercase; color: #aebcd4; }

/* ---------- Servicio detallado ---------- */
.service-block { padding: clamp(64px, 9vw, 104px) 0; }
.service-block:nth-of-type(even) { background: var(--bg-soft); }
.service-block .head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.service-block .head img { width: 64px; height: 64px; flex-shrink: 0; }
.service-block .head h2 { margin: 0; }
.service-block .media-frame img { aspect-ratio: 4 / 3.4; }

.expedite-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 56px; }
.expedite-grid .card { padding: 28px 22px; }
.expedite-grid .tag { font-family: var(--font-head); font-size: 1.6rem; color: var(--sky); letter-spacing: 1px; margin-bottom: 6px; display: block; }

/* ---------- Sub-navegación de servicios ---------- */
.subnav {
  position: sticky; top: 70px; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: top var(--t) var(--ease);
}
.header-hidden .subnav { top: 0; }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex-shrink: 0;
  padding: 8px 16px; border-radius: 40px;
  font-family: var(--font-head); font-size: .9rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--navy-800);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.subnav a:hover { background: var(--bg-soft); color: var(--blue); }
.subnav a.is-active { background: var(--blue); color: var(--white); }

/* ---------- Aliados (logos fijos) ---------- */
.logos {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  align-items: center; margin-top: 36px;
}
.logo-item {
  display: grid; place-items: center;
  padding: 18px; border-radius: var(--radius);
  transition: background-color var(--t) var(--ease);
}
.logo-item { height: 150px; }
.logo-item img {
  width: auto; height: auto; max-width: 100%; max-height: 110px;
  filter: grayscale(1); opacity: .75;
  transition: filter var(--t) var(--ease), opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
@media (hover: hover) {
  .logo-item:hover { background: var(--bg-soft); }
  .logo-item:hover img { filter: none; opacity: 1; transform: scale(1.05); }
}

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  color: var(--ink);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.news-card:hover { color: var(--ink); }
.news-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--navy-800); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.news-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .meta { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; display: flex; gap: 10px; flex-wrap: wrap; }
.news-card .meta span + span::before { content: "·"; margin-right: 10px; }
.news-card h3 { font-size: 1.2rem; margin: 10px 0 10px; color: var(--navy-800); line-height: 1.3; transition: color var(--t-fast) var(--ease); }
.news-card .excerpt { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.news-card .read {
  margin-top: auto;
  font-family: var(--font-head); font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t) var(--ease);
}
@media (hover: hover) {
  .news-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: transparent; }
  .news-card:hover .thumb img { transform: scale(1.07); }
  .news-card:hover h3 { color: var(--blue); }
  .news-card:hover .read { gap: 12px; }
}
.news-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--blue-light), var(--navy-800) 70%);
}
.news-ph img { width: 38% !important; height: auto !important; object-fit: contain !important; opacity: .95; }

.newsletter {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap;
  background: linear-gradient(110deg, var(--navy-800), var(--blue));
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}
.newsletter::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 30px solid rgba(255,255,255,.06);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.newsletter p { margin: 4px 0 0; color: #cfdaee; }

/* Buscador / filtros de News */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.news-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 16px; border-radius: 40px;
  font: 500 .85rem var(--font-body); color: var(--navy-800);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip .c { opacity: .6; margin-left: 4px; }
.search-box { position: relative; }
.search-box input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  font: inherit; font-size: .95rem;
  border: 1px solid #cfd7e4; border-radius: 40px;
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search-box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,74,172,.12); }
.search-box svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box .clear {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.search-box.has-value .clear { opacity: 1; pointer-events: auto; }
.search-box .clear:hover { background: var(--line); }
.news-count { font-size: .88rem; color: var(--muted); margin-bottom: 18px; min-height: 1.5em; }
.news-empty { display: none; text-align: center; padding: 60px 20px; color: var(--muted); background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }
.news-empty.is-visible { display: block; }
.news-card.is-hidden { display: none; }
.news-card mark { background: rgba(90,169,255,.3); color: inherit; border-radius: 3px; padding: 0 2px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget h4 { font-size: 1.05rem; letter-spacing: 1.5px; color: var(--navy-800); margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.widget li a, .widget li button {
  display: flex; justify-content: space-between; gap: 10px; width: 100%;
  padding: 8px 10px; margin: 0 -10px; border-radius: 6px;
  font: inherit; font-size: .9rem; text-align: left; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), padding var(--t) var(--ease);
}
.widget li a:hover, .widget li button:hover { background: var(--bg-soft); color: var(--blue); padding-left: 16px; }
.widget li button.is-active { color: var(--blue); font-weight: 600; }
.widget .recent a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; justify-content: stretch; }
.widget .recent .mini { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--navy-800); }
.widget .recent .mini img { width: 100%; height: 100%; object-fit: cover; }
.widget .recent .mini .news-ph img { width: 60% !important; }
.widget .recent strong { font-weight: 500; line-height: 1.35; font-size: .85rem; }
.widget--brand { background: linear-gradient(140deg, var(--navy-800), var(--blue)); color: #d6e2f5; border: 0; text-align: center; }
.widget--brand img { width: 110px; margin: 0 auto 12px; }
.widget--brand p { font-size: .9rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: .78rem; padding: 5px 12px; border-radius: 30px;
  background: var(--bg-soft); color: var(--navy-800);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.tag-cloud a:hover { background: var(--blue); color: var(--white); }

/* ---------- Artículo ---------- */
.article-hero { padding-bottom: clamp(48px, 6vw, 72px); }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #b9c7de; font-size: .9rem; margin-top: 18px; animation: fade-up .9s var(--ease-out) .25s both; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 16px; height: 16px; color: var(--sky); }
.article-cover { margin-top: calc(-1 * clamp(24px, 3vw, 40px)); position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--navy-800); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.05rem; line-height: 1.85; color: #2a3445; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-head); font-weight: 600;
  font-size: 4.1rem; line-height: .9; margin: 6px 12px 0 0; color: var(--blue);
}
.prose h2 { font-size: 1.6rem; color: var(--navy-800); margin: 1.8em 0 .6em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: 12px; }
.prose li { position: relative; padding: 14px 18px 14px 44px; background: var(--bg-soft); border-radius: var(--radius); }
.prose li::before { content: ""; position: absolute; left: 18px; top: 1.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.prose strong { color: var(--navy-800); }
.sources { margin-top: 40px; padding: 22px 24px; border-left: 4px solid var(--blue); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: .88rem; color: var(--muted); }
.sources h4 { font-size: .95rem; letter-spacing: 2px; color: var(--navy-800); margin-bottom: 8px; }
.sources ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.share a, .share button {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy-800); border: 0; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.share a:hover, .share button:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }
.share svg { width: 17px; height: 17px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a {
  display: block; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy-800);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.post-nav a:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--blue); }
.post-nav small { display: block; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.post-nav strong { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; text-transform: uppercase; line-height: 1.3; }
.post-nav .next { text-align: right; grid-column: 2; }

/* ---------- Tablas técnicas ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec th { background: var(--navy-800); color: var(--white); font-family: var(--font-head); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
table.spec tbody tr { transition: background-color var(--t-fast) var(--ease); }
table.spec tbody tr:hover { background: var(--bg-soft); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

/* ---------- Proyectos ---------- */
.project {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.project:hover { box-shadow: var(--shadow-lg); }
.project + .project { margin-top: 32px; }
.project .pic { overflow: hidden; min-height: 320px; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project:hover img { transform: scale(1.05); }
.project .body { padding: clamp(28px, 4vw, 48px); }
.project .body h3 { font-size: 2rem; color: var(--navy-800); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--white);
  background: var(--navy-900) url("../img/servicios/terrestre.jpg") center / cover no-repeat fixed;
  padding: clamp(64px, 9vw, 96px) 0;
  text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(0, 40, 110, .93), rgba(0, 74, 172, .86)); }
.cta h2 { margin-bottom: 28px; }

/* ---------- Contacto ---------- */
.office-card h3 { font-size: 1.4rem; }
.office-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.office-card li { display: flex; gap: 12px; align-items: flex-start; }
.office-card li > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; color: var(--blue); }
.office-card a { overflow-wrap: anywhere; }

/* ---------- Formularios ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd7e4; border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: #aebbd0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,74,172,.12); }
.form textarea { min-height: 110px; resize: vertical; }
.form .checks { display: flex; flex-wrap: wrap; gap: 20px; }
.form .checks label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: var(--ink); cursor: pointer; }
.form .checks input { width: 18px; height: 18px; accent-color: var(--blue); }
.form .note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }

/* ---------- Modales ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  background: rgba(6, 20, 46, .72);
  backdrop-filter: blur(4px);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease), visibility 0s; }
.modal-dialog {
  position: relative;
  width: min(100%, 720px);
  margin: auto 0;
  background: var(--white);
  border-radius: 12px;
  padding: 44px 40px 36px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: translateY(24px) scale(.97);
  transition: transform var(--t) var(--ease-out);
}
.modal.is-open .modal-dialog { transform: none; }
.modal-dialog h2 { font-size: 2rem; color: var(--navy-800); margin-bottom: 4px; }
.modal-dialog .sub { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--bg-soft);
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.modal-close:hover { background: var(--blue); color: var(--white); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  translate: -50% 20px;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  background: var(--navy-800); color: var(--white);
  border-radius: 40px; box-shadow: var(--shadow-lg);
  font-size: .92rem;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease), translate var(--t) var(--ease-out);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }
.toast svg { width: 20px; height: 20px; color: #6fe3a1; flex-shrink: 0; }

/* ---------- Botón volver arriba ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--blue); color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 74, 172, .35);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; translate: 0 16px;
  transition: opacity var(--t) var(--ease), translate var(--t) var(--ease-out), visibility 0s linear var(--t), background-color var(--t-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; transition: opacity var(--t) var(--ease), translate var(--t) var(--ease-out), visibility 0s, background-color var(--t-fast) var(--ease); }
.to-top:hover { background: var(--blue-light); }
.to-top .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 2.5; stroke-linecap: round; }
.to-top .ring .bg { stroke: rgba(255,255,255,.2); }
.to-top .icon { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-900); color: #aebbd2; font-size: .92rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--blue)); }
.site-footer .top { display: grid; grid-template-columns: 1.2fr .7fr 1.25fr 1.25fr 1.25fr; gap: 36px; padding: 80px 0 56px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #aebbd2; }
.site-footer ul a { display: inline-block; transition: color var(--t-fast) var(--ease), transform var(--t) var(--ease); }
.site-footer ul a:hover { color: var(--white); transform: translateX(4px); }
.site-footer address a:hover { color: var(--white); }
.site-footer .brand img { height: 64px; margin-bottom: 18px; }
.site-footer .news-logo { width: 90px; margin-top: 8px; opacity: .9; }
.site-footer .motto { font-family: var(--font-head); letter-spacing: 3px; text-transform: uppercase; color: var(--sky); }
.site-footer address { font-style: normal; display: grid; gap: 6px; }
.site-footer address a { overflow-wrap: anywhere; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--white);
  transition: background-color var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.social a:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Animación de aparición (no interfiere con hovers) ---------- */
.reveal { opacity: 0; }
.reveal.is-visible { animation: reveal-up .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes reveal-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.no-js .reveal { opacity: 1; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a:not(.btn) { padding: 8px 9px; font-size: .92rem; }
  .nav a:not(.btn)::after { left: 9px; right: 9px; }
  .nav .btn { margin-left: 8px; }
}
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .expedite-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .top { grid-template-columns: repeat(3, 1fr); }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
  .news-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .site-header.is-scrolled { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(84vw, 340px);
    flex-direction: column; align-items: stretch;
    background: var(--navy-900);
    padding: calc(var(--header-h) + 16px) 24px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
    box-shadow: -20px 0 40px rgba(0,0,0,.3);
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; }
  .nav a:not(.btn) {
    padding: 16px 4px; font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    opacity: 0; translate: 20px 0;
    transition: opacity .4s var(--ease), translate .5s var(--ease-out), color var(--t-fast) var(--ease);
  }
  .nav-open .nav a:not(.btn) { opacity: 1; translate: 0 0; }
  .nav-open .nav a:nth-child(2) { transition-delay: .04s; }
  .nav-open .nav a:nth-child(3) { transition-delay: .08s; }
  .nav-open .nav a:nth-child(4) { transition-delay: .12s; }
  .nav-open .nav a:nth-child(5) { transition-delay: .16s; }
  .nav-open .nav a:nth-child(6) { transition-delay: .2s; }
  .nav a:not(.btn)::after { left: 4px; right: auto; width: 32px; bottom: 10px; }
  .nav .btn { margin: 24px 0 0; }
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: -1;
    background: rgba(6,20,46,.55);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease); }
  body.nav-open { overflow: hidden; }
  .brand img { height: 42px; }
  .site-header.is-scrolled .brand img { height: 38px; }
  .split, .project, .news-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .card-grid, .news-grid, .card-grid--4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .media-frame::after { inset: 14px -10px -10px 14px; }
  .cta { background-attachment: scroll; }
  .subnav { top: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }
  .service-grid, .expedite-grid, .card-grid, .card-grid--2, .card-grid--4, .news-grid, .sidebar { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: auto; min-height: 280px; }
  .check-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .modal { padding: 16px 12px; }
  .modal-dialog { padding: 44px 20px 26px; }
  .modal-dialog h2 { font-size: 1.6rem; }
  .site-footer .top { grid-template-columns: 1fr; padding-top: 64px; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .photo-mosaic > div:nth-child(2), .photo-mosaic > div:nth-child(4) { translate: none; }
  .service-block .head img { width: 48px; height: 48px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-item { height: 120px; padding: 12px; }
  .logo-item img { max-height: 90px; }
  .logos .logo-item:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .prose { font-size: 1rem; }
  .prose > p:first-of-type::first-letter { font-size: 3.4rem; }
  .article-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .brand img { height: 36px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
}

/* El blur del header crea un contenedor para elementos fixed: se desactiva en móvil para que el menú lateral ocupe toda la pantalla */
@media (max-width: 960px) {
  .site-header.is-scrolled { backdrop-filter: none; background: rgba(6, 20, 46, .97); }
}
/* Evita scroll horizontal por los marcos decorativos sin romper position: sticky */
html, body { overflow-x: clip; }

/* Ajustes de portadas de notas */
.news-card .thumb img { object-position: 50% 70%; }
.news-card .meta span { white-space: nowrap; }
.article-cover { position: relative; aspect-ratio: 16 / 10; }
.article-cover .blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.55); }
.article-cover .main { position: relative; width: 100%; height: 100%; object-fit: contain; }
.prose > p:first-of-type::first-letter { margin-right: 8px; }
.brand img { height: 58px; }
.site-header.is-scrolled .brand img { height: 48px; }
@media (max-width: 960px) { .brand img { height: 46px; } .site-header.is-scrolled .brand img { height: 42px; } }

/* ---------- Hero con cotizador rápido ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.quick-quote {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  padding: 22px 24px;
  background: linear-gradient(160deg, rgba(0, 74, 172, .92), rgba(10, 31, 68, .94));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  color: var(--white);
}
@supports (backdrop-filter: blur(1px)) {
  .quick-quote { background: linear-gradient(160deg, rgba(0, 74, 172, .78), rgba(10, 31, 68, .82)); backdrop-filter: blur(14px) saturate(140%); }
}
.quick-quote h2 { font-size: 1.5rem; margin: 0 0 4px; color: var(--white); }
.qq-note { font-size: .78rem; color: #c9d6ee; margin: 0 0 12px; }
.qq-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.qq-form { gap: 8px 12px; }
.qq-form label { font-size: .7rem; margin-bottom: 4px; color: #c9d6ee; }
.qq-form input, .qq-form select {
  padding: 8px 11px;
  font-size: .88rem;
  background: rgba(255, 255, 255, .96);
  border-color: transparent;
}
.qq-form input:focus, .qq-form select:focus { box-shadow: 0 0 0 4px rgba(90, 169, 255, .35); border-color: var(--sky); }
.qq-form .checks { gap: 14px; }
.qq-form .checks label { font-size: .8rem; color: var(--white); }
.qq-form .btn { width: 100%; padding: 11px 20px; font-size: .92rem; background: var(--white); color: var(--blue); box-shadow: none; }
@media (hover: hover) { .qq-form .btn:hover { background: var(--sky); color: var(--navy-900); } }
@media (max-width: 960px) {
  .quick-quote { max-width: none; justify-self: stretch; }
}

/* ---------- Iconos de estadísticas ---------- */
.stat .ic { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--sky); transition: transform var(--t) var(--ease); }
.stat .ic svg { width: 100%; height: 100%; }
.stat:hover .ic { transform: translateY(-4px); }
.stat .n { font-variant-numeric: tabular-nums; }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 10px; padding: 3px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 30px;
  font-family: var(--font-head); font-size: .82rem; letter-spacing: 1px;
}
.lang-switch a, .lang-switch span { padding: 5px 10px; border-radius: 30px; line-height: 1; color: rgba(255,255,255,.8); }
.lang-switch a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.lang-switch .is-active { background: var(--white); color: var(--navy-900); }
.nav .lang-switch a::after { display: none; }

@media (max-width: 1180px) { .lang-switch { margin-left: 6px; } }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .lang-switch { margin: 20px 0 0; align-self: flex-start; }
  .nav .lang-switch a, .nav .lang-switch span { padding: 8px 16px; font-size: .95rem; border: 0; opacity: 1; translate: none; }
}
@media (max-width: 640px) {
  .qq-form { grid-template-columns: 1fr 1fr; }
  .qq-form .full { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .n { font-size: 2.2rem; }
}
.nav .lang-switch a { padding: 5px 10px; font-size: .82rem; border: 0; }
