/* ITS Panamá — sistema visual 2026
   Colores tomados del logotipo (navy #081030–#082050, azul #003878, rojo #E01830). */

:root {
  /* Color */
  --navy-950: #071430;
  --navy-900: #0b1d40;
  --navy: #102b55;
  --blue: #164a9b;
  --blue-700: #0f3a7d;
  --blue-50: #eef3fa;
  --red: #c4162b;
  --white: #fff;
  --gray-50: #f5f7fa;
  --gray-100: #e9edf3;
  --gray-200: #d8dee8;
  --text: #242b35;
  --text-muted: #4d5869;
  --on-dark: #e8edf5;
  --on-dark-muted: #a9b5c8;

  /* Tipografía */
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);
  --fs-h1: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.35vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: clamp(1rem, .97rem + .12vw, 1.0625rem);
  --fs-small: .9375rem;
  --fs-eyebrow: .8125rem;

  /* Espaciado y forma */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 5rem + 3vw, 128px);
  --radius: 4px;
  --radius-lg: 8px;
  --border: 1px solid var(--gray-200);
  --shadow: 0 1px 2px rgba(11, 29, 64, .06), 0 8px 24px rgba(11, 29, 64, .06);

  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 280ms;

  --header-h: 112px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--gray { background: var(--gray-50); }
.section--tight { padding-block: clamp(48px, 3rem + 2vw, 80px); }

/* Texto en mayúsculas del contenido original mostrado en tipo oración */
.sentence { text-transform: lowercase; }
.sentence::first-letter { text-transform: uppercase; }
.cap::first-letter { text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.on-dark .eyebrow { color: #fff; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text); }
.muted { color: var(--text-muted); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); color: #fff; }
.btn--outline { border-color: var(--gray-200); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--gray-100); box-shadow: 0 6px 20px rgba(11, 29, 64, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height var(--dur) var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 96px; }
/* El JPG del logo trae ~7% de margen blanco arriba y abajo: se recorta con overflow, el logo no se altera */
.brand { display: flex; align-items: center; flex: none; height: 92px; overflow: hidden; transition: height var(--dur) var(--ease); }
.brand img { height: 108px; width: auto; transition: height var(--dur) var(--ease); }
.site-header.is-scrolled .brand { height: 80px; }
.site-header.is-scrolled .brand img { height: 94px; }

.nav__list { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 12px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  font-size: .9375rem; font-weight: 600; color: var(--text); letter-spacing: .01em;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 991px) {
  :root { --header-h: 92px; }
  .brand { height: 74px; }
  .brand img { height: 86px; }
  .site-header.is-scrolled .site-header__inner { height: 84px; }
  .site-header.is-scrolled .brand { height: 66px; }
  .site-header.is-scrolled .brand img { height: 77px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 48px; min-height: 48px; padding: 0 12px; margin-right: -12px;
    background: none; border: 0; color: var(--navy); font: 600 .9375rem var(--font-body); cursor: pointer;
  }
  .nav-toggle .icon { width: 26px; height: 26px; }
  .nav-toggle .icon-close { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open .nav-toggle .icon-menu { display: none; }
  .nav {
    position: fixed; inset: var(--nav-top, 72px) 0 auto 0; background: #fff;
    border-top: 1px solid var(--gray-100); box-shadow: 0 16px 32px rgba(11, 29, 64, .12);
    max-height: calc(100dvh - var(--nav-top, 72px)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav__link { width: 100%; min-height: 56px; font-size: 1.0625rem; border-bottom: 1px solid var(--gray-100); padding-inline: 0; }
  .nav__link::after { left: 0; right: auto; width: 32px; bottom: -1px; }
}

/* ---------- Hero de portada ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(520px, 86vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__media img { animation: hero-zoom 1.6s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 20, 48, .86) 0%, rgba(7, 20, 48, .62) 42%, rgba(7, 20, 48, .18) 78%, rgba(7, 20, 48, .08) 100%),
              linear-gradient(0deg, rgba(7, 20, 48, .45) 0%, rgba(7, 20, 48, 0) 35%);
}
.hero__content { padding-block: 96px; max-width: 760px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); font-weight: 500; letter-spacing: .02em; color: var(--on-dark); }
.hero__kicker::before { content: ""; width: 40px; height: 3px; background: var(--red); }
.hero__title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.025em; color: #fff; margin: 0 0 24px; font-weight: 800; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title span + span { color: #dbe6f7; }
.hero__place { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 40px; font-size: var(--fs-lead); color: var(--on-dark); }
.hero__place .icon { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; }
.page-hero__media, .page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 20, 48, .84) 0%, rgba(7, 20, 48, .55) 55%, rgba(7, 20, 48, .3) 100%); }
.page-hero__inner { min-height: clamp(220px, min(22vw + 140px, 42vh), 420px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 56px clamp(40px, 4vw, 64px); }
.page-hero h1 { color: #fff; margin: 0; max-width: 18ch; text-wrap: balance; }
.page-hero .eyebrow { color: #dbe6f7; }

/* ---------- Atributos (portada) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--border); border-bottom: var(--border); }
.feature { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 40px); }
.feature + .feature { border-left: var(--border); }
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); margin-bottom: 24px; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-bottom: 12px; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------- Introducción al portafolio ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.split h2 { margin: 0; text-wrap: balance; }
.callout { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; margin: 28px 0 32px; color: var(--navy); font-weight: 600; font-size: 1.0625rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 16px); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--gray-100); aspect-ratio: 1 / 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(7, 20, 48, .35); opacity: 0; transition: opacity var(--dur) var(--ease); }
.tile__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: rgba(255, 255, 255, .92); color: var(--navy); opacity: 0; transform: translateY(6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile__zoom, .tile:focus-visible .tile__zoom { opacity: 1; transform: none; }
@media (hover: none) { .tile__zoom { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.services__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.services__aside h2 { font-size: var(--fs-h3); }
.services__index { margin-top: 20px; border-top: var(--border); }
.services__index a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: var(--border); color: var(--text); font-weight: 500; font-size: var(--fs-small); }
.services__index a:hover { color: var(--blue); }
.services__index span { color: var(--blue); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums; }

.accordion { border-top: var(--border); }
.acc { border-bottom: var(--border); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: clamp(12px, 1.6vw, 20px); padding: clamp(20px, 2vw, 28px) 0; min-height: 64px; }
.acc summary::-webkit-details-marker { display: none; }
.acc__num { font-size: .8125rem; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; width: 2ch; }
.acc__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.acc__title { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; color: var(--navy); line-height: 1.3; transition: color var(--dur) var(--ease); }
.acc__toggle { position: relative; width: 36px; height: 36px; border-radius: 50%; border: var(--border); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.acc__toggle::before, .acc__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.75px; background: var(--navy); transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.acc__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc summary:hover .acc__title { color: var(--blue); }
.acc summary:hover .acc__toggle { border-color: var(--blue); }
.acc[open] .acc__icon { background: var(--blue); color: #fff; }
.acc[open] .acc__toggle { background: var(--navy); border-color: var(--navy); }
.acc[open] .acc__toggle::before, .acc[open] .acc__toggle::after { background: #fff; }
.acc[open] .acc__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { padding: 0 0 clamp(24px, 2.5vw, 36px) calc(2ch + 48px + 2 * clamp(12px, 1.6vw, 20px)); overflow: hidden; }
.acc__body p { color: var(--text-muted); max-width: 62ch; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin-top: 4px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist .icon { color: var(--blue); margin-top: 2px; width: 18px; height: 18px; stroke-width: 2.25; }
.checklist--single { grid-template-columns: 1fr; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-900); }
.cta-band__media, .cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 20, 48, .9), rgba(16, 43, 85, .72)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 6vw, 96px); }
.cta-band h2 { color: #fff; margin: 0; max-width: 20ch; }

/* ---------- Proyectos ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.projects--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray-100); aspect-ratio: 4 / 3; margin-bottom: 20px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 20, 48, .35), rgba(7, 20, 48, 0) 50%); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.card__cat { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.card__title { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); margin: 0 0 6px; transition: color var(--dur) var(--ease); }
.card__title a { color: inherit; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__sub { color: var(--text-muted); font-size: var(--fs-small); margin: 0; }
.card:hover .card__media img { transform: scale(1.045); }
.card:hover .card__media::after { opacity: 1; }
.card:hover .card__title { color: var(--blue); }
.card__zoom { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: rgba(255, 255, 255, .94); color: var(--navy); cursor: pointer; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.card:hover .card__zoom, .card__zoom:focus-visible { opacity: 1; transform: none; }
.card__zoom:hover { background: #fff; color: var(--blue); }
@media (hover: none) { .card__zoom { opacity: 1; transform: none; } }

/* Ficha de proyecto */
.project { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.project__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project__gallery .tile { aspect-ratio: 4 / 3; }
.project__gallery .tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.project__info { position: sticky; top: calc(var(--header-h) + 32px); }
.project__info h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 28px 0; padding: 24px 0; border-top: var(--border); border-bottom: var(--border); font-size: var(--fs-small); }
.meta dt { color: var(--text-muted); }
.meta dd { margin: 0; font-weight: 600; color: var(--navy); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; font-size: var(--fs-small); color: var(--text-muted); }
.share span { margin-right: 8px; }
.share a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: var(--border); border-radius: var(--radius); color: var(--navy); font-weight: 700; font-size: .8125rem; }
.share a:hover { border-color: var(--blue); color: var(--blue); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border-top: var(--border); }
.pager a { display: inline-flex; align-items: center; gap: 10px; min-height: 72px; font-weight: 600; color: var(--navy); }
.pager a:hover { color: var(--blue); }
.pager__next { justify-self: end; }
.pager__all { justify-self: center; }

/* ---------- Nosotros ---------- */
.companies { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.company { padding-block: 8px; }
.company:first-child { padding-right: clamp(24px, 4vw, 64px); }
.company + .company { padding-left: clamp(24px, 4vw, 64px); border-left: var(--border); }
.company__logo { height: 75px; display: flex; align-items: center; margin-bottom: 28px; }
.company__logo img { width: auto; max-height: 75px; }
.company h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); margin-bottom: 20px; }
.company p { color: var(--text-muted); }
.company h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; margin: 28px 0 14px; color: var(--navy); }

.values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.value { grid-column: span 2; background: #fff; border: var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: clamp(24px, 2.5vw, 32px); }
.value:nth-child(4) { grid-column: 2 / span 2; }
.value__num { font-size: .8125rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.value h3 { margin: 10px 0 10px; font-size: 1.25rem; }
.value p { color: var(--text-muted); margin: 0; }

.feature-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.feature-split--reverse { grid-template-columns: 7fr 5fr; }
.feature-split--reverse .feature-split__media { order: 2; }
.feature-split__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); aspect-ratio: 4 / 5; }
.feature-split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-split p { color: var(--text-muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.contact__list { margin: 32px 0; border-top: var(--border); }
.contact__item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: var(--border); }
.contact__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); }
.contact__label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact__value { color: var(--navy); font-weight: 600; line-height: 1.5; }
a.contact__value { display: inline-block; padding-block: 6px; margin-block: -6px; }
a.contact__value:hover { color: var(--blue); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: var(--border); background: var(--gray-100); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: var(--fs-small); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__top { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(32px, 4vw, 64px); padding-block: clamp(56px, 6vw, 88px); }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 24px; }
.footer__logo { padding: 6px 12px; }
.footer__logo img { height: 72px; width: auto; }
.footer__about { max-width: 42ch; line-height: 1.7; }
.footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer__nav li + li { margin-top: 4px; }
.footer__nav a { display: inline-flex; min-height: 36px; align-items: center; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.footer__contact li + li { margin-top: 14px; }
.footer__contact a { display: inline-block; padding-block: 4px; margin-block: -4px; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--on-dark-muted); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.to-top .icon { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ---------- Lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 12, 30, .94); color: #fff; }
.lb::backdrop { background: rgba(5, 12, 30, .6); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in var(--dur) var(--ease); }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: var(--fs-small); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lb__caption { text-align: center; padding: 14px 16px 22px; color: var(--on-dark); min-height: 56px; }
.lb__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.lb__btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lb__prev { left: clamp(8px, 2vw, 28px); }
.lb__next { right: clamp(8px, 2vw, 28px); }
.lb__prev .icon { transform: rotate(180deg); }
.lb--single .lb__prev, .lb--single .lb__next { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
html.lb-lock { overflow: hidden; }

/* ---------- Aparición al desplazar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 80ms; }
.js .reveal-d2 { transition-delay: 160ms; }
.js .reveal-d3 { transition-delay: 240ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .projects--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .features { grid-template-columns: 1fr; border-bottom: 0; }
  .feature, .feature:first-child, .feature:last-child { padding: 32px 0; border-bottom: var(--border); }
  .feature + .feature { border-left: 0; }
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; }
  .feature__icon { grid-row: span 2; margin: 0; }
  .split, .services, .project, .contact, .feature-split, .feature-split--reverse { grid-template-columns: 1fr; }
  .feature-split--reverse .feature-split__media { order: 0; }
  .feature-split__media { aspect-ratio: 16 / 10; }
  .services__aside, .project__info { position: static; }
  .services__index { display: none; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .companies { grid-template-columns: 1fr; }
  .company:first-child { padding: 0 0 40px; }
  .company + .company { padding: 40px 0 0; border-left: 0; border-top: var(--border); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value, .value:nth-child(4) { grid-column: auto; }
  .value:last-child { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .map { min-height: 360px; }
}
@media (max-width: 767px) {
  .hero { min-height: clamp(480px, 78svh, 680px); align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(7, 20, 48, .9) 0%, rgba(7, 20, 48, .65) 55%, rgba(7, 20, 48, .3) 100%); }
  .hero__content { padding-block: 72px 48px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .acc summary { grid-template-columns: auto 1fr auto; }
  .acc__num { display: none; }
  .acc__icon { width: 44px; height: 44px; }
  .acc__body { padding-left: 0; }
  .checklist { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .projects, .projects--4 { grid-template-columns: 1fr; }
  .project__gallery { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .value:last-child { grid-column: auto; }
  .footer__top { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; border-top: var(--border); width: 100%; justify-content: center; }
  .contact__actions .btn { flex: 1 1 auto; }
  .map { min-height: 320px; }
}
@media (min-width: 1800px) {
  :root { --container: 1320px; }
}
/* Laptops de poca altura: menos margen vertical entre secciones (#003) */
@media (min-width: 992px) and (max-height: 820px) {
  :root { --section: clamp(56px, 3rem + 2vw, 88px); }
  .page-hero__inner { padding-block: 40px 36px; }
}
/* Móvil: menos espacio vacío bajo el banner (#001) */
@media (max-width: 767px) {
  :root { --section: 56px; }
}
/* Pantallas 2K/4K: escala general un 12,5 % (#004) */
@media (min-width: 2400px) {
  html { font-size: 112.5%; }
  :root { --container: 1440px; }
}

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