/* AirporTipsMX: one livery across the page.
   Aluminium ground, navy field, one orange pinstripe (the filete) that connects every section. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "League Gothic";
  src: url("../assets/fonts/league-gothic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --gate: #F2B705;
  --navy: #0B2545;
  --navy-2: #13325C;
  --navy-deep: #071A31;
  --alu: #E6EAEE;
  --alu-2: #D5DCE3;
  --paper: #F7F9FA;
  --ink: #0E1A2B;
  --ink-2: #44536A;
  --on-navy: #F4F7FA;
  --on-navy-2: #B9C7D9;
  --signal: #E2552B;
  --signal-ink: #A93A16;
  --signal-on-navy: #F58460;
  --hairline: #C3CDD8;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  /* Critically damped spring (no overshoot), response ~0.4 s */
  --spring: linear(0, 0.096, 0.316, 0.548, 0.733, 0.856, 0.929, 0.968, 0.987, 0.995, 0.999, 1);
  --dur: 220ms;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --space-section: clamp(88px, 11vw, 160px);
  --rule: 1.5px;

  --route-gap: 34px;
  --route-w: 3px;
  --jn-gap: 12px;
  --stub: clamp(240px, 24vw, 320px);
  --head-h: 72px;

  --alu-sheen: linear-gradient(104deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .2) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--alu);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--navy); color: var(--on-navy); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
section[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--navy); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; }

.filete { height: 5px; background: var(--signal); transform-origin: left center; }

/* Buttons: one square-cornered family; feedback on press */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform 100ms var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-outline-light { color: var(--on-navy); background: rgba(7, 26, 49, .45); box-shadow: inset 0 0 0 1.5px rgba(244, 247, 250, .6); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-outline { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
@media (hover: hover) {
  .btn-light:hover { background: #fff; }
  .btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--on-navy); background: rgba(7, 26, 49, .6); }
  .btn-navy:hover { background: var(--navy-2); }
  .btn-outline:hover { background: rgba(11, 37, 69, .06); }
}

/* Header: a translucent navy material over the content once the hero is behind it */
.site-head { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--on-navy); transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.site-head.is-solid {
  background: rgba(7, 26, 49, .78);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 -1px 0 rgba(244, 247, 250, .08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-head.is-solid { background: var(--navy-deep); } }
.head-row { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 56px; width: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-list a:not(.btn) { text-decoration: none; opacity: .86; transition: opacity var(--dur) var(--ease); }
.nav-list a:not(.btn)[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.nav-cta .btn { min-height: 42px; padding: 0 18px; }
.nav-cta .btn[aria-current] { box-shadow: inset 0 -3px 0 var(--signal); }
@media (hover: hover) { .nav-list a:not(.btn):hover { opacity: 1; } }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 940px); display: flex; flex-direction: column; color: var(--on-navy); background: var(--navy); overflow: hidden; }
.hero-stage { position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(48px, 7vh, 88px); }
.hero picture { position: absolute; inset: 0 0 0 30%; z-index: -2; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #0A1E38 0%, #0A1E38 30%, rgba(10, 30, 56, .8) 42%, rgba(10, 30, 56, 0) 64%),
    linear-gradient(180deg, rgba(7, 26, 49, .6) 0%, rgba(7, 26, 49, 0) 20%);
}
.hero-stage > .wrap, .hero-band > .wrap { width: 100%; }
.hero-copy { padding-top: 120px; }
.hero h1 {
  margin: 0; max-width: 18ch;
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(40px, 4.6vw, 76px); line-height: .97; letter-spacing: -.03em;
}
.lede { margin: 24px 0 0; max-width: 40ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: #D6E0EC; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-band { background: var(--navy); }
/* Four ways in, like the first choice a visitor makes */
.pillars { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 22px 26px; }
.pillars a {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; height: 100%;
  padding: 18px 44px 18px 18px; text-decoration: none;
  background: rgba(244, 247, 250, .05); box-shadow: inset 0 0 0 1px rgba(244, 247, 250, .14);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 100ms var(--ease);
}
.pillars a:active { transform: scale(.98); }
.pillars .i { grid-row: span 2; width: 30px; height: 30px; color: var(--signal-on-navy); margin-top: 2px; }
.pillars .go { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; color: var(--on-navy-2); transition: transform 160ms var(--ease), color var(--dur) var(--ease); }
.pillars b { font-stretch: 112%; font-size: clamp(17px, 1.3vw, 20px); font-weight: 700; }
.pillars span { font-size: 14px; line-height: 1.4; color: var(--on-navy-2); }
@media (hover: hover) {
  .pillars a:hover { background: rgba(244, 247, 250, .1); box-shadow: inset 0 0 0 1px rgba(244, 247, 250, .3); }
  .pillars a:hover .go { transform: translateX(3px); color: var(--on-navy); }
}

/* Clients: a compact band of logos right after the first screen */
.clients { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.clients-row { display: grid; gap: clamp(22px, 2.6vw, 34px); padding-block: clamp(36px, 4vw, 56px); }
.clients h2 { font-stretch: 100%; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 4vw, 56px); }
.logos li { display: grid; place-items: center; }
/* Same visual weight for every logo: each height comes from its proportions (equal ink area) */
.logos img { height: var(--h, 60px); width: auto; max-width: 100%; object-fit: contain; }

/* Section heads: large, nominal */
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3vw, 40px); }
h2 { margin: 0; font-stretch: 100%; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.section-head p { margin: 0; color: var(--ink-2); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; letter-spacing: -.005em; }
.picker-hint { font-weight: 600; color: var(--navy) !important; font-size: clamp(22px, 2vw, 28px) !important; letter-spacing: -.01em; }

/* Services */
.services { padding-top: var(--space-section); padding-bottom: clamp(56px, 6vw, 88px); background: var(--alu-sheen), var(--alu); }

/* Organisation picker: a light material that sticks under the header while the reader browses */
.picker {
  position: sticky; top: var(--head-h); z-index: 10;
  background: rgba(230, 234, 238, .82);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 -1px 0 rgba(11, 37, 69, .1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .picker { background: var(--alu); } }
.picker-row { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
/* Tiles: icon over the name, one row of eight on a computer */
.chips { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; width: 100%; }
.chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 86px; padding: 12px 8px;
  font: 600 15px/1.2 var(--font); text-align: center; color: var(--navy); background: var(--paper);
  border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--hairline); cursor: pointer;
  transition: transform 100ms var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.chip .i { width: 28px; height: 28px; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); box-shadow: inset 0 -3px 0 var(--signal); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--navy); } }
.tally { display: block; margin-top: 8px; font-stretch: 75%; font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); }

.block { margin-top: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--head-h) + 96px); }
.block-title { margin: 0 0 clamp(20px, 2.4vw, 32px); font-stretch: 100%; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--navy); }

/* Section titles as airport wayfinding signs: a pictogram tile and sign lettering; each section keeps its own colours */
.sign { display: flex; align-items: center; gap: .32em; font-stretch: 100%; font-weight: 800; letter-spacing: -.022em; }
.sign-ico { display: grid; place-items: center; flex: none; width: 1.08em; height: 1.08em; background: var(--sign-bg, var(--navy)); color: var(--sign-fg, #fff); }
.sign-ico .i { width: .7em; height: .7em; }
.tech .sign { --sign-bg: var(--on-navy); --sign-fg: var(--navy-deep); }
.contact .sign { --sign-bg: var(--navy); }

/* Course catalogue as boarding gates: a yellow gate sign per area, cards with the picture on top and a gate code */
.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) 18px; }
.gate { grid-column: 1 / -1; }
/* Gates with a single course share one row instead of leaving most of it empty */
.gate.is-solo { grid-column: auto; display: flex; flex-direction: column; }
.gate.is-solo .gcards { grid-template-columns: 1fr; flex: 1; }
.gate.is-solo .gate-arrow span { display: none; }
@media (min-width: 1081px) { .gate.is-solo .gate-head { min-height: 112px; } }
.gate-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-bottom: 14px; border-bottom: 3px solid var(--navy); }
.gate-badge { display: grid; place-items: center; width: 64px; height: 64px; background: var(--gate); color: var(--ink); font-weight: 800; font-size: 40px; line-height: 1; }
.gate-head h4 { margin: 0; font-stretch: 100%; font-weight: 800; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.015em; line-height: 1.15; color: var(--navy); }
.gate-head p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.gate-arrow { display: flex; align-items: center; gap: 10px; font: 600 14px/1 "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--navy); }
.gate-arrow .i { width: 26px; height: 26px; }
.gcards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gcard {
  display: flex; flex-direction: column; height: 100%; background: var(--paper); color: inherit; text-decoration: none;
  box-shadow: 0 1px 0 rgba(7, 26, 49, .06), inset 0 0 0 1px rgba(11, 37, 69, .06);
  transition: transform 160ms var(--ease), box-shadow var(--dur) var(--ease);
}
.gcard:active { transform: scale(.985); }
@media (hover: hover) {
  .gcard:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -24px rgba(7, 26, 49, .5), inset 0 0 0 1px rgba(11, 37, 69, .14); }
  .gcard:hover .go { transform: translateX(3px); color: var(--navy); }
}
.gcard img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.gcard-body { display: grid; align-content: start; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcode { padding: 6px 8px; background: var(--gate); color: var(--ink); font: 700 14px/1 "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.gcard h5 { margin: 0; font-stretch: 105%; font-weight: 700; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.25; color: var(--navy); }
.gcard .for { margin-top: auto; padding-top: 2px; gap: 4px; }
.gcard .for li { min-height: 28px; width: 28px; padding: 0; justify-content: center; }
.gcard .for li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gcard .for .i { width: 15px; height: 15px; }
.gcard .go { width: 20px; height: 20px; color: var(--ink-2); transition: transform 160ms var(--ease), color var(--dur) var(--ease); }

.for { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.for li { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; background: var(--alu); color: var(--navy); font-size: 13px; font-weight: 600; }
.for .i { width: 17px; height: 17px; }

/* Course sheet: slides in from the right on a computer, rises from the bottom on a phone */
.sheet {
  position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: -30px 0 60px -30px rgba(7, 26, 49, .45);
  transform: translateX(100%);
  transition: transform 420ms var(--spring), overlay 420ms allow-discrete, display 420ms allow-discrete;
}
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateX(100%); } }
.sheet::backdrop { background: rgba(7, 26, 49, 0); transition: background-color 300ms var(--ease), overlay 300ms allow-discrete, display 300ms allow-discrete; }
.sheet[open]::backdrop { background: rgba(7, 26, 49, .5); }
@starting-style { .sheet[open]::backdrop { background: rgba(7, 26, 49, 0); } }
.sheet-inner { position: relative; }
/* The close button stays in reach while the sheet scrolls */
.sheet-bar { position: sticky; top: 0; z-index: 2; height: 0; display: flex; justify-content: flex-end; }
.sheet-close {
  position: relative; margin: 14px 14px 0 0; flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: rgba(7, 26, 49, .55); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 100ms var(--ease), background-color var(--dur) var(--ease);
}
.sheet-close:active { transform: scale(.94); }
.sheet-close .i { width: 22px; height: 22px; }
.sheet-figure { margin: 0; }
.sheet-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sheet-body { padding: clamp(24px, 3vw, 40px); }
.sheet-area { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sheet-area i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--signal)); }
.sheet h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.02em; }
.sheet-desc { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); }
.sheet-label { margin: 28px 0 10px; font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sheet .actions { margin-top: 32px; }

/* Consultancy: a mechanical departures board in the livery navy; every character sits in its own flap cell */
.board {
  --cell: .78em; --pitch: .88em;
  background: linear-gradient(180deg, #17406F 0%, #123661 100%);
  color: var(--on-navy);
  box-shadow: inset 0 1px 0 rgba(244, 247, 250, .18), inset 0 0 0 1px rgba(244, 247, 250, .06), 0 2px 0 #06162A, 0 30px 60px -36px rgba(7, 26, 49, .6);
}
.board-top { display: flex; align-items: center; gap: 16px; padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.4vw, 32px) 18px; }
.board-icon { display: grid; place-items: center; width: 1.08em; height: 1.08em; font-size: clamp(30px, 3.2vw, 46px); background: var(--signal-on-navy); color: var(--navy-deep); flex: none; }
.board-icon .i { width: .7em; height: .7em; }
.board-title { margin: 0; font-stretch: 100%; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--signal-on-navy); }
.row { display: grid; grid-template-columns: calc(10 * var(--pitch)) calc(14 * var(--pitch)) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: center; padding-inline: clamp(18px, 2.4vw, 32px); font-size: clamp(15px, 1.32vw, 20px); }
.rows { list-style: none; margin: 0 0 14px; padding: 0; }
.row { padding-block: 9px; border-top: 1px solid rgba(4, 13, 25, .35); }
.scope { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; line-height: 1.35; color: var(--on-navy); }

.flaps { display: flex; flex-wrap: nowrap; gap: calc(var(--pitch) - var(--cell)); }
.flaps i {
  position: relative; display: inline-block; width: var(--cell); height: 1.64em; flex: none;
  background: #06152A; color: var(--on-navy);
  font-style: normal; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 700; font-size: 1em;
  border-radius: 1px;
}
.flaps i > span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }
/* 3D only while a leaf is turning: at rest the cells stay flat, so letter changes are a plain repaint */
.flaps i.is-flip { transform: perspective(400px); transform-style: preserve-3d; }
.flaps i.is-flip > span { backface-visibility: hidden; }
.flaps .u, .flaps .o { clip-path: inset(0 0 50% 0); background: linear-gradient(180deg, #0B1E38, #06152A); }
.flaps .b, .flaps .l { clip-path: inset(50% 0 0 0); background: linear-gradient(180deg, #041122, #06152A); }
.flaps .l, .flaps .o { transform-origin: 50% 50%; }
.flaps i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(23, 64, 111, .9); z-index: 2; }

/* Technology: the root for simulators and apps, one dark field */
.tech { background: var(--navy-deep); color: var(--on-navy); padding-bottom: var(--space-section); }
.tech-hero { position: relative; isolation: isolate; min-height: clamp(260px, 26vw, 380px); display: grid; align-items: end; overflow: hidden; }
.tech-hero picture { position: absolute; inset: 0; z-index: -2; }
.tech-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.tech-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 49, .15) 0%, rgba(7, 26, 49, .35) 45%, var(--navy-deep) 100%); }
.tech-hero-copy { width: 100%; padding-bottom: clamp(8px, 2vw, 24px); }
.tech h2 { color: var(--on-navy); }
.tech-hero-copy p { margin: 14px 0 0; color: var(--on-navy-2); font-size: clamp(18px, 1.5vw, 21px); }
.tech .block-title { color: var(--on-navy); margin-bottom: 0; }

/* Experience strip */
.exp { background: var(--navy); color: var(--on-navy); }
.exp-title { margin: 0; color: var(--on-navy); font-stretch: 100%; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.02em; }

/* Contact: the boarding pass */
.contact { background: var(--alu-2); padding-block: var(--space-section); }
.contact h2 { margin-bottom: clamp(28px, 3vw, 40px); }
.pass-frame { filter: drop-shadow(0 26px 30px rgba(7, 26, 49, .2)) drop-shadow(0 2px 2px rgba(7, 26, 49, .12)); }
.pass { display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); background: var(--paper); }
.pass-main { display: grid; grid-template-rows: auto 1fr; }
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(24px, 3.4vw, 44px); background: var(--navy); color: var(--on-navy); }
.pass-head img { height: 46px; width: auto; }
.pass-head span { font-stretch: 75%; font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--signal-on-navy); }
.pass-body { display: grid; gap: 26px; padding: clamp(24px, 3.4vw, 44px); }
.pass-route { display: flex; align-items: center; gap: 22px; color: var(--navy); }
.pass-route b { font-stretch: 125%; font-weight: 800; font-size: clamp(56px, 6.4vw, 96px); line-height: .9; letter-spacing: -.03em; }
.pass-path { position: relative; flex: 1; display: flex; justify-content: flex-end; align-items: center; height: 32px; color: var(--signal); }
.pass-path::before { content: ""; position: absolute; left: 0; right: 40px; top: 50%; border-top: 2px dashed #AEBACA; }
.pass-path .i { position: relative; width: 32px; height: 32px; transform: rotate(45deg); }
.pass-fields { margin: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; border-top: 1.5px dashed #AEBACA; padding-top: 22px; }
.pass-fields dt { font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.pass-fields dd { margin: 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.pass-fields a { text-decoration: none; }
@media (hover: hover) { .pass-fields a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--signal); } }
.pass .actions { margin-top: 0; }
/* Decorative barcode strip along the foot of the pass */
.pass-barcode { height: 44px; opacity: .85; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 5px, var(--navy) 5px 6px, transparent 6px 9px, var(--navy) 9px 12px, transparent 12px 14px, var(--navy) 14px 15px, transparent 15px 19px); }
.pass-stub { position: relative; display: grid; justify-items: center; align-content: center; gap: 14px; background: var(--navy); color: var(--on-navy); padding: clamp(24px, 3vw, 40px); text-align: center; }
.pass-stub::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; border-left: 2px dashed rgba(244, 247, 250, .45); }
.stub-label { font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-2); }
.pass-qr { width: 148px; height: 148px; padding: 16px; background: #fff; box-sizing: content-box; }
.stub-dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--on-navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--signal-on-navy); }
.stub-code { font-stretch: 125%; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
@media (min-width: 821px) {
  .pass {
    -webkit-mask: radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 11.5px, #000 12px) top / 100% 51% no-repeat, radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 11.5px, #000 12px) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 11.5px, #000 12px) top / 100% 51% no-repeat, radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 11.5px, #000 12px) bottom / 100% 51% no-repeat;
  }
}

/* Footer: brand line, the map of the site, contact, and the legal line */
.site-foot { background: var(--navy); color: var(--on-navy-2); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(48px, 6vw, 72px) 40px; }
.foot-brand img { height: 56px; width: auto; }
.foot-brand p { margin: 16px 0 0; max-width: 30ch; }
.foot-social { list-style: none; margin: 20px 0 0 -10px; padding: 0; display: flex; gap: 4px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-navy-2); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.foot-social .i { width: 24px; height: 24px; }
@media (hover: hover) { .foot-social a:hover { color: var(--on-navy); background-color: rgba(244, 247, 250, .08); } }
.foot-col h2 { margin: 0 0 14px; font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy); }
.foot-col a { overflow-wrap: anywhere; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot a { text-decoration: none; color: var(--on-navy-2); transition: color var(--dur) var(--ease); }
@media (hover: hover) { .site-foot a:hover { color: var(--on-navy); } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid rgba(244, 247, 250, .12); font-size: 14px; }
.foot-base p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; column-gap: 24px; }

/* Route: the orange filete leaves the hero band, runs down the gutter, touches each heading and closes in the footer */
.route { position: relative; }
.route::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--route-w); background: var(--signal); z-index: 3; pointer-events: none;
  left: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter) - var(--route-gap));
  transform-origin: top center;
}
.jn { position: relative; }
.jn::before {
  content: ""; position: absolute; top: .46em; height: var(--route-w); background: var(--signal); pointer-events: none;
  left: calc(-1 * (var(--route-gap) + var(--jx, 0px)));
  width: calc(var(--route-gap) + var(--jx, 0px) - var(--jn-gap));
  transform-origin: left center;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-band .filete { animation: draw 1000ms var(--ease) 250ms both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* Changing organisation: cards and board re-settle with a critically damped spring */
  ::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--spring); }
  ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 240ms; }

  @supports (animation-timeline: view()) {
    .route::before { animation: route-draw linear both; animation-timeline: view(); animation-range: cover 30vh cover calc(100% - 70vh); }
    .contact::before { animation-range: cover 30vh cover calc(100% - 100vh + 180px); }
    .jn::before { animation: route-draw-x linear both; animation-timeline: view(); animation-range: cover 30vh cover calc(30vh + 90px); }
    @keyframes route-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @keyframes route-draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (min-width: 821px) {
      .tech-hero img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
      @keyframes drift { from { transform: translateY(-16px) scale(1.06); } to { transform: translateY(16px) scale(1.06); } }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-head.is-solid { background: var(--navy-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .picker { background: var(--alu); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Tablet */
@media (max-width: 1180px) {
  :root { --route-gap: calc(var(--gutter) / 2 + 1px); --route-w: 2px; --jn-gap: 4px; }
}
@media (max-width: 1080px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      }

/* Phone */
@media (max-width: 820px) {
  :root { --head-h: 64px; }
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: transparent; color: var(--on-navy); border: 1.5px solid rgba(244, 247, 250, .5); cursor: pointer;
  }
  .menu-toggle .i { width: 24px; height: 24px; }
  .nav-list {
    position: absolute; top: var(--head-h); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--navy); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
  .nav-list li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(244, 247, 250, .14); font-size: 17px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 50px; }

  .hero { min-height: auto; }
  .hero-stage { justify-content: flex-start; padding-bottom: 64vw; }
  .hero-copy { padding-top: 104px; }
  .hero h1 { font-size: 36px; max-width: none; }
  .hero picture { left: 0; }
  .hero-photo { object-position: 50% 100%; }
  .hero-stage::before { background: linear-gradient(180deg, rgba(7, 26, 49, .82) 0%, rgba(7, 26, 49, .66) 42%, rgba(7, 26, 49, 0) 66%); }
  .pillars { grid-template-columns: 1fr; gap: 8px; padding-block: 16px 20px; }

  /* The chips scroll sideways in one line instead of stacking */
  .picker-row { padding-block: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chips { display: flex; width: auto; }
  .chip { flex: none; width: 112px; min-height: 72px; }
  /* Fade at the right edge says there is more to swipe */
  .chips { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .block { scroll-margin-top: calc(var(--head-h) + 80px); }
  .chips.at-end { -webkit-mask: none; mask: none; }

  .gcards { grid-template-columns: 1fr; gap: 10px; }
  .gates { grid-template-columns: 1fr; }
  /* Phone: compact cards (picture on the left) so 14 courses do not become a very long page */
  .gcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .gcard img { width: 96px; height: 100%; min-height: 96px; aspect-ratio: auto; }
  .gcard-body { padding: 12px 14px; gap: 8px; }
  .gate-badge { width: 52px; height: 52px; font-size: 32px; }
  .gate-arrow span { display: none; }
  .sheet { inset: auto 0 0 0; width: 100%; height: 92svh; transform: translateY(100%); box-shadow: 0 -30px 60px -30px rgba(7, 26, 49, .45); }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
  .row { grid-template-columns: auto 1fr; gap: 8px 6px; padding-block: 12px; }
  .row .scope { grid-column: 1 / -1; font-size: 16.5px; }
  .row { font-size: 13.5px; }

    
  .clients-row { grid-template-columns: 1fr; gap: 18px; }
  .clients h2 { max-width: none; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; }
  .logos img { height: calc(var(--h, 60px) * .62); }

  .pass { grid-template-columns: 1fr; }
  .pass-fields { grid-template-columns: 1fr; gap: 16px; }
  .pass-head img { height: 38px; }
  .pass-route b { font-size: 64px; }
  .pass-stub { padding-block: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .pass-stub::before { left: 18px; right: 18px; top: -1px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(244, 247, 250, .45); }
  .pass .actions .btn { flex: 1 1 160px; }

}

/* ===== Tecnología: tarjetas con talón lateral (la etiqueta es sólo el talón) ===== */
.tk { display: grid; gap: 22px; margin-top: clamp(32px, 4vw, 52px); }
.tk-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tk-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tk .tk-h { scroll-margin-top: calc(var(--head-h) + 20px); margin: 22px 0 -6px; font: 700 13px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-2); }
.ic { display: grid; grid-template-columns: minmax(0, 1fr) 54px; background: #0E2747; color: var(--on-navy); box-shadow: inset 0 0 0 1px rgba(244, 247, 250, .08); scroll-margin-top: calc(var(--head-h) + 20px); }
.ic-main { display: flex; flex-direction: column; min-width: 0; }
.ic-main > img, .ic-main > picture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ic-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.ic h3, .ic h4 { margin: 0; font-size: clamp(22px, 1.8vw, 26px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.ic .tk-d { margin: 0; font-size: 17.5px; line-height: 1.5; color: #D2DCE8; }
.tk-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: auto; padding-top: 12px; }
.tk-go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 800; font-size: 16px; color: #fff; text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tk-go:hover { text-decoration-color: #fff; }
.stub { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 14px 0; background: var(--c); color: #1A1F27; border-left: 2px dashed rgba(14, 39, 71, .45); }
.stub::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-deep); }
.stub b { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; font: 800 22px/1 "JetBrains Mono", monospace; letter-spacing: .2em; }
.stub i { width: 26px; height: 64px; background: repeating-linear-gradient(0deg, #1A1F27 0 2px, transparent 2px 4px, #1A1F27 4px 5px, transparent 5px 8px); }
.ic-sim .ic-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ic-sim .ic-main > picture img { aspect-ratio: auto; height: 100%; min-height: 380px; }
.ic-sim .ic-body { justify-content: center; padding: 30px 32px; }
.tk-eqk { margin: 4px 0 0; font: 700 12px/1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-2); }
.tk-eq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tk-eq li { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.2; color: #fff; }
.tk-eq img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #0A1B33; }
.tk-btn { justify-self: start; align-self: flex-start; margin-top: 8px; }
.ic-sim .tk-links { margin-top: 6px; }
.tk-eq5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.eqc { display: grid; grid-template-columns: minmax(0, 1fr) 30px; background: #0E2747; box-shadow: inset 0 0 0 1px rgba(244, 247, 250, .08); }
.eqc-main { display: flex; flex-direction: column; min-width: 0; }
.eqc-main img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #05101E; }
.eqc-main span { padding: 12px 14px 14px; font-size: 16px; font-weight: 800; line-height: 1.25; color: #fff; }
.stub-s { grid-template-rows: auto 1fr; padding: 10px 0; }
.stub-s::before { width: 9px; height: 9px; }
.stub-s i { align-self: end; width: 16px; height: 46px; }
/* AirporTipsMX Labs: antetítulo de Tecnología y logo a lo largo en el talón de cada herramienta */
.labs-ante { display: block; margin: 0 0 12px; font: 700 14px/1 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--signal-on-navy); }
.tk .ic > .stub.con-labs { grid-template-rows: auto 1fr auto auto; }
.stub-logo { display: block; width: 34px; height: auto; margin: 14px 0; opacity: .88; }
@media (max-width: 1000px) { .tk-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk-eq5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ic-sim .ic-main { grid-template-columns: 1fr; } .ic-sim .ic-main > picture img { min-height: 0; aspect-ratio: 16 / 10; } .ic-sim .ic-body { padding: 22px; } }
@media (max-width: 700px) { .tk-row3, .tk-row2 { grid-template-columns: 1fr; } .tk-eq5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .eqc-main span { font-size: 14.5px; } .tk-eq { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ic { grid-template-columns: minmax(0, 1fr) 44px; } .stub b { font-size: 18px; } .tk-btn { max-width: 100%; white-space: normal; } }

/* ===== Technology, rebuilt: real scenes with the real screens ===== */
.sim-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sim-photo, .app-photo { margin: 0; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(244, 247, 250, .08); }
.sim-photo img, .app-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.sim-copy .block-title { margin-bottom: 18px; }
.sim-lede { margin: 0; color: var(--on-navy-2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 38ch; }
.points { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 20px; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.points .i { width: 26px; height: 26px; color: var(--signal-on-navy); margin-top: 2px; }
.points b { display: block; color: #fff; font-size: 17px; margin-bottom: 2px; }
.points span { color: var(--on-navy-2); font-size: 15.5px; line-height: 1.45; }
.sub { margin: clamp(44px, 5vw, 64px) 0 16px; font-weight: 700; font-size: clamp(18px, 1.4vw, 20px); color: #fff; letter-spacing: -.01em; }
.gear { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gear li { display: grid; gap: 12px; }
.gear img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #05101E; box-shadow: inset 0 0 0 1px rgba(244, 247, 250, .08); transition: transform 500ms var(--spring); }
@media (hover: hover) { .gear li:hover img { transform: translateY(-4px); } }
.gear span { font-weight: 600; font-size: 15px; color: #fff; }

#aplicaciones > .block-title { margin-bottom: clamp(24px, 3vw, 36px); }
.app-wide { position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(244, 247, 250, .08); }
.app-wide img { display: block; width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; object-position: 50% 40%; }
.glass {
  position: absolute; right: clamp(16px, 2.4vw, 28px); top: clamp(16px, 2.4vw, 28px); width: min(360px, 32%);
  padding: clamp(20px, 2.2vw, 28px); color: #fff;
  background: linear-gradient(140deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)), rgba(7, 26, 49, .62);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 50px -24px rgba(0, 0, 0, .6);
}
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--navy-deep); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.glass h4, .app-text h4 { margin: 0; font-stretch: 112%; font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.glass p, .app-text p { margin: 8px 0 18px; color: #D6E0EC; font-size: 16px; line-height: 1.45; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; color: #fff; }
.ticks .i { width: 20px; height: 20px; color: var(--signal-on-navy); flex: none; }
.app-split2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.app-text .ticks li { font-size: 16px; }
.app-split2.app-rev { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }

@media (max-width: 1080px) {
  .sim-hero, .app-split2 { grid-template-columns: 1fr; }
  .gear { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glass { position: static; width: auto; background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 820px) {
  .gear { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gear li:last-child { grid-column: 1 / -1; }
  .app-wide img { aspect-ratio: 4 / 3; }
  .app-split2 .app-photo { order: -1; }
}

/* ===== Phone pass: less chrome on a small screen, shorter cards, contact made for the phone itself ===== */
@media (max-width: 820px) {
  /* The bar is solid from the start, so text never runs under the logo */
  .site-head, .site-head.is-solid { background: var(--navy-deep); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 -1px 0 rgba(244, 247, 250, .08); }

  /* The three ways in become one compact row: icon over the name, no description */
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-block: 14px 16px; }
  .pillars a { grid-template-columns: 1fr; justify-items: center; row-gap: 6px; padding: 14px 6px; text-align: center; }
  .pillars .i { grid-row: auto; width: 26px; height: 26px; margin: 0; }
  .pillars b { font-size: 15px; }
  .pillars span, .pillars .go { display: none; }

  /* Client logos: two per row, large enough to read */
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .logos img { height: calc(var(--h, 60px) * .78); }
  .logos li:last-child { grid-column: 1 / -1; }

  /* Activity filter: slim pills, so the sticky bar takes a strip, not a fifth of the screen */
  .picker-row { padding-block: 8px; }
  .chip { flex-direction: row; width: auto; min-height: 44px; gap: 8px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .chip .i { width: 20px; height: 20px; }

  /* Course cards: smaller picture, no audience icons (the filter already does that job) */
  .gcard .for { display: none; }
  .gcard h5 { font-size: 16px; }

  /* Boarding pass: a QR code is useless on the phone that shows it; saving the contact is one tap */
  .pass-qr, .stub-code { display: none; }
  .pass-stub { padding-block: 22px 24px; }
  .stub-dl { justify-content: center; width: 100%; min-height: 48px; padding: 0 16px; background: #fff; color: var(--navy); text-decoration: none; }

  /* Footer: the e-mail gets the full width so it never breaks */
  .foot-col:nth-child(3), .foot-col:nth-child(4) { grid-column: 1 / -1; }
  .foot-col a, .foot-base > a, .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-col ul { gap: 0; }
}

/* ===== Navigation: page order, the technology sub-sections and a quick way to call (sub-links and quick buttons are phone-only) ===== */
.nav-sub, .nav-quick { display: none; }
@media (max-width: 820px) {
  /* The menu takes the whole screen below the bar; the page behind stops scrolling */
  html.menu-open { overflow: hidden; }
  .nav-list { position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--navy-deep); box-shadow: none; overflow-y: auto; overscroll-behavior: contain; }
  .nav-list li a:not(.btn) { padding: 16px 0; font-size: 22px; font-weight: 600; opacity: 1; }
  .nav-list a:not(.btn)[aria-current] { text-decoration: none; color: var(--signal-on-navy); box-shadow: inset 3px 0 0 var(--signal-on-navy); padding-left: 14px; }
  .nav-sub { display: block; }
  .nav-list .nav-sub a:not(.btn) { padding: 12px 0 12px 20px; font-size: 17px; font-weight: 500; color: var(--on-navy-2); }
  .nav-list .nav-sub a:not(.btn)[aria-current] { padding-left: 34px; color: var(--signal-on-navy); }
  .nav-cta { margin: 20px 0 0; }
  .nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .nav-quick .btn { min-height: 50px; gap: 8px; }
  .nav-quick .i { width: 20px; height: 20px; }
  /* Landing from the menu: the title sits just under the bar and the activity filter */
  .block { scroll-margin-top: calc(var(--head-h) + 70px); }
}

/* ===== WhatsApp: a floating button on the phone, out of the way until the first screen is behind ===== */
.wa-float { display: none; }
@media (max-width: 820px) {
  .nav-quick { grid-template-columns: 1fr 1fr 1fr; }
  .nav-quick .btn { padding: 0 8px; font-size: 15px; }
  .wa-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15;
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
    background: #075E54; color: #fff; font: 700 15px/1 var(--font); text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(7, 26, 49, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .wa-float .i { width: 26px; height: 26px; }
  .wa-float.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .wa-float:active { transform: scale(.97); }
  html.menu-open .wa-float { visibility: hidden; opacity: 0; }
}
@media (max-width: 360px) {
  .nav-quick { grid-template-columns: 1fr; }
  /* The two flap fields of each board row fit a 320 px screen */
  .row { font-size: 11.5px; padding-inline: 12px; column-gap: 10px; }
}

/* Experience: the two disciplines in large, each with its photo, and the credentials in a row below */
.exp-g { padding-block: clamp(56px, 6vw, 88px); }
.disc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3vw, 40px); }
.disc article { position: relative; isolation: isolate; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.disc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.disc img.disc-marshall { object-position: center 40%; }
.disc article::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 49, .05) 0%, rgba(7, 26, 49, .6) 45%, rgba(7, 26, 49, .94) 78%); }
@media (hover: hover) { .disc article:hover img { transform: scale(1.03); } }
.disc article > div { padding: 26px 28px; }
.disc h3 { margin: 0; font-stretch: 100%; font-weight: 800; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.015em; color: var(--on-navy); }
.disc p { margin: 8px 0 0; color: var(--on-navy-2); max-width: 46ch; }
.exp-eyebrow { display: block; margin-bottom: 10px; color: var(--signal-on-navy); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.disc-serv { list-style: none; display: flex; flex-wrap: wrap; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(244, 247, 250, .28); }
.disc-serv li { color: var(--on-navy); font-size: 15px; font-weight: 600; }
.disc-serv li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; margin: 0 14px; vertical-align: -2px; background: rgba(244, 247, 250, .4); }
.creds-head { margin: clamp(40px, 4vw, 56px) 0 0; color: var(--on-navy); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.creds-g { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.creds-g li { display: grid; align-content: start; gap: 8px; padding: 22px 22px 24px; background: rgba(244, 247, 250, .06); border-top: 3px solid var(--signal-on-navy); }
.creds-g .i { width: 30px; height: 30px; margin-bottom: 4px; color: var(--signal-on-navy); }
.creds-g b { color: var(--on-navy); font-size: 17px; line-height: 1.3; }
.creds-g span { color: var(--on-navy-2); font-size: 15px; line-height: 1.5; }
.creds-g .nw { white-space: nowrap; }
@media (max-width: 1080px) { .creds-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .disc-serv { flex-direction: column; gap: 6px; } .disc-serv li + li::before { display: none; } }
@media (max-width: 720px) { .disc, .creds-g { grid-template-columns: 1fr; } .disc article { min-height: 260px; } .disc article::before { background: linear-gradient(180deg, rgba(7, 26, 49, .15) 0%, rgba(7, 26, 49, .92) 70%); } }

/* Risk analysis tools: a real capture of each tool and a way in */
.risk-lede { margin-top: 14px; max-width: 60ch; }
.risk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(24px, 3vw, 36px); }
.risk-card { display: flex; flex-direction: column; background: var(--navy); box-shadow: inset 0 0 0 1px rgba(244, 247, 250, .08); }
.risk-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.risk-body { display: grid; gap: 10px; padding: 22px 24px 26px; flex: 1; align-content: start; }
.risk-body h4 { margin: 0; font-stretch: 100%; font-weight: 800; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -.01em; color: var(--on-navy); }
.risk-body p { margin: 0; color: var(--on-navy-2); }
.risk-body .btn { justify-self: start; margin-top: 8px; }
.risk-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: clamp(24px, 3vw, 36px); }
.risk-wide img { height: 100%; }
.risk-wide .risk-body { align-content: center; padding: clamp(22px, 3vw, 40px); }
@media (max-width: 820px) { .risk-wide { grid-template-columns: 1fr; } .risk-wide img { height: auto; } }
@media (max-width: 820px) { .risk-grid { grid-template-columns: 1fr; } }

/* Privacy notice: short version folded at the very end of the footer, and the notice page itself */
.foot-privacy { margin-top: -22px; padding-bottom: 24px; font-size: 14px; text-align: center; }
.foot-privacy summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; color: var(--on-navy-2); }
.foot-privacy summary::-webkit-details-marker { display: none; }
.foot-privacy summary .i { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.foot-privacy details[open] summary .i { transform: rotate(180deg); }
@media (hover: hover) { .foot-privacy summary:hover { color: var(--on-navy); } }
.foot-privacy p { max-width: 860px; margin: 4px auto 0; line-height: 1.6; color: var(--on-navy-2); }
.foot-privacy p a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page .site-head { position: sticky; top: 0; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.legal-back .i { width: 18px; height: 18px; transform: scaleX(-1); }
.legal { background: var(--paper); padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.legal-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; color: var(--navy); }
.legal-date { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.legal h2 { margin: 44px 0 12px; font-weight: 700; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -.01em; color: var(--navy); }
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--ink-2); }
.legal-alpha { list-style: lower-alpha; }
.legal a { color: var(--navy); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-summary { margin-top: 32px; padding: clamp(20px, 2.6vw, 28px); background: var(--alu); }
.legal-summary h2 { margin-top: 0; }
.legal-summary p { margin: 0; }

/* Tecnología: video de fondo (se ve completo en 16:9 para no cortar los nombres de cada herramienta) */
/* En pantallas anchas y bajas el bloque no pasa del alto visible: el video se alinea a la derecha y su orilla izquierda se funde con el marino */
.tech-hero.tv { --tv-h: max(420px, calc(100svh - var(--head-h) - 16px)); height: min(56.25vw, var(--tv-h)); min-height: 0; }
.tech { overflow-x: clip; }
.tv-media { position: absolute; inset: 0; z-index: -2; background: var(--navy-deep); }
.tv-media video { width: min(100%, calc(var(--tv-h) * 16 / 9)); height: 100%; margin-left: auto; object-fit: cover; display: block; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
.tech-hero.tv::after { background: linear-gradient(90deg, rgba(7, 26, 49, .78) 0%, rgba(7, 26, 49, .45) 34%, rgba(7, 26, 49, 0) 58%), linear-gradient(180deg, rgba(7, 26, 49, 0) 88%, var(--navy-deep) 100%); }
/* Título en la letra de los nombres del video: primera línea sólida, segunda en contorno */
.tech-hero-copy .tv-title { margin: 18px 0 0; font-family: "League Gothic", "Archivo", sans-serif; font-size: clamp(56px, 6.4vw, 104px); line-height: .92; text-transform: uppercase; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.tv-title span { display: block; }
.tv-title span + span { color: rgba(255, 255, 255, .14); -webkit-text-stroke: 2px #fff; text-shadow: none; }
.tv-pausa { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(7, 26, 49, .35); color: var(--on-navy); cursor: pointer; opacity: .45; transition: opacity 200ms var(--ease), background 200ms var(--ease); }
.tv-pausa::before { content: ""; position: absolute; inset: -7px; }
.tv-pausa:hover, .tv-pausa:focus-visible { opacity: 1; background: rgba(7, 26, 49, .75); }
.tv-pausa:focus-visible { outline: 2px solid var(--gate); outline-offset: 2px; }
.tv-pausa svg { width: 10px; height: 10px; fill: currentColor; }
.tech-hero .tv-pausa { position: absolute; top: 18px; right: var(--gutter); }
@media (max-width: 820px) {
  .tech-hero.tv { display: block; height: auto; min-height: 0; max-height: none; }
  .tech-hero.tv .tv-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 9; }
  .tech-hero.tv .tv-media video { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .tech-hero.tv::after { display: none; }
  .tech-hero.tv .tech-hero-copy { padding-top: 20px; }
  .tech-hero .tv-pausa { top: 12px; right: 12px; }
  .tech-hero-copy .tv-title { font-size: clamp(40px, 11.5vw, 64px); }
  .tv-title span + span { -webkit-text-stroke-width: 1.5px; }
}

/* Equipos disponibles: franja de lado a lado que corre sola */
.eq-band { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 22px 0; background: #0E2747; box-shadow: inset 0 1px 0 rgba(244, 247, 250, .08), inset 0 -1px 0 rgba(244, 247, 250, .08); overflow: hidden; }
.eq-track { --g: 16px; display: flex; width: max-content; gap: var(--g); padding-left: var(--g); }
.eq-track .eqc { width: clamp(220px, 21vw, 300px); flex: none; background: #0A1F3B; }
.eq-band:hover .eq-track, .eq-band.is-paused .eq-track { animation-play-state: paused; }
.tk { grid-template-columns: minmax(0, 1fr); }
.eq-ctrl { display: flex; justify-content: flex-end; margin-top: -8px; }
@media (prefers-reduced-motion: no-preference) {
  .eq-band { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .eq-track { animation: eq-run 38s linear infinite; }
  @keyframes eq-run { to { transform: translateX(-50%); } }
}
/* Pausada o sin movimiento: cada equipo una sola vez, en rejilla */
.eq-band.is-paused { width: auto; margin-left: 0; padding: 0; background: none; box-shadow: none; -webkit-mask-image: none; mask-image: none; }
.eq-band.is-paused .eq-track { display: grid; width: auto; padding: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; animation: none; }
.eq-band.is-paused .eqc { width: auto; }
.eq-band.is-paused [aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .eq-band { width: auto; margin-left: 0; padding: 0; background: none; box-shadow: none; }
  .eq-track { display: grid; width: auto; padding: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .eq-track .eqc { width: auto; }
  .eq-track [aria-hidden="true"], .eq-ctrl { display: none; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) { .eq-band { padding: 16px 0; } .eq-track { --g: 12px; } .eq-track .eqc { width: 200px; } }

/* Clientes: al pasar el cursor, el logo se queda y los demás se atenúan */
@media (hover: hover) and (pointer: fine) {
  .logos li { transition: opacity 260ms var(--ease), filter 260ms var(--ease), transform 260ms var(--ease); }
  .logos:has(li:hover) li:not(:hover) { opacity: .28; filter: grayscale(1); }
  .logos li:hover { transform: scale(1.06); }
}

/* Bitácora: portada de noticias y nota */
.bt-page { background: var(--alu); }
.bt-page #contenido { padding-top: var(--head-h); }
.bt-head { background: var(--navy-deep); color: var(--on-navy); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.bt-ante { display: block; margin: 0 0 12px; font: 700 14px/1 "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--signal-on-navy); }
.bt-head h1 { margin: 0; font-family: "League Gothic", "Archivo", sans-serif; font-weight: 400; font-size: clamp(64px, 8vw, 120px); line-height: .9; text-transform: uppercase; }
.bt-head p { margin: 14px 0 0; max-width: 56ch; color: var(--on-navy-2); font-size: clamp(17px, 1.4vw, 20px); }
.bt-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.bt-filtros button { min-height: 44px; padding: 9px 16px; border: 1px solid rgba(244, 247, 250, .3); background: transparent; color: var(--on-navy); font: 700 15px/1 var(--font); cursor: pointer; }
.bt-filtros button[aria-pressed="true"] { background: var(--on-navy); color: var(--navy-deep); border-color: var(--on-navy); }
.bt-filtros button:focus-visible { outline: 2px solid var(--gate); outline-offset: 2px; }
.bt-lista { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-block: clamp(32px, 4vw, 56px) clamp(64px, 8vw, 110px); padding-inline: 0; }
.bt-card { display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--hairline); transition: box-shadow var(--dur) var(--ease); }
.bt-card:hover { box-shadow: 0 10px 30px rgba(11, 37, 69, .14); }
.bt-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.bt-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.bt-card-c { padding: 18px 20px 22px; display: grid; gap: 10px; }
.bt-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 700 12px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bt-cat { padding: 5px 8px; color: #fff; }
.bt-pasajeros { background: var(--signal-ink); } .bt-industria { background: var(--navy); } .bt-curiosidades { background: #5B4BA8; }
.bt-card-t { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.bt-card-r { color: var(--ink-2); font-size: 16px; }
.bt-nota { max-width: 760px; padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 110px); }
.bt-volver { display: inline-block; margin-bottom: 18px; color: var(--navy); font-weight: 700; text-decoration: none; }
.bt-volver:hover { text-decoration: underline; }
.bt-nota h1 { margin: 16px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.bt-nota-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-top: 22px; }
.bt-bajada { margin: 14px 0 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.bt-nota h2 { margin: 36px 0 8px; font-size: 22px; color: var(--ink); }
.bt-nota p { font-size: 18px; line-height: 1.7; color: var(--ink); }
.bt-nota .bt-fuentes { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bt-fuentes a { color: var(--ink-2); text-underline-offset: 2px; }
.bt-fuentes a:hover { color: var(--navy); }
@media (max-width: 900px) { .bt-lista { grid-template-columns: minmax(0, 1fr); } }
.bt-nota p a { color: var(--navy); text-underline-offset: 3px; }
