/* ============================================================
   S.A.E. — Servicios Aeronáuticos Especializados
   Reconstructed static site
   ============================================================ */

:root {
  --navy: #0d1f36;
  --navy-2: #16334f;
  --navy-3: #1f4568;
  --blue: #2f7dc9;
  --blue-soft: #e8f1fa;
  --ink: #10233c;
  --steel: #52606d;
  --steel-soft: #7c8996;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --line: #dde3e8;
  --line-soft: #eceff2;
  --focus: #2f7dc9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Type ---------- */

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: "Big Shoulders", "Public Sans", sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

p { margin: 0 0 14px; max-width: 68ch; }
p.lede { font-size: 18px; color: var(--steel); max-width: 60ch; }
p:last-child { margin-bottom: 0; }

ul.check {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
ul.check li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 1px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand img { height: 30px; width: auto; border-radius: 2px; }
.brand span {
  font-family: "Big Shoulders", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
nav.main-nav a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4d3e0;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
nav.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 3px;
    padding: 7px 12px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 54px;
    left: 0; right: 0;
    background: var(--navy-2);
    padding: 10px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  nav.main-nav.open a { padding: 10px 4px; }
}

/* ---------- Hero ---------- */

.hero-banner img { width: 100%; }

.hero-text {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 46px;
}
.hero-text .eyebrow { color: #8fc0ee; }
.hero-text h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-text p.lede { color: #c4d3e0; margin-bottom: 0; }

/* ---------- Section scaffolding ---------- */

section.block { padding: 64px 0; }
section.block.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-banner img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 32px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1fr 1.1fr; }
.two-col.reverse .col-media { order: 2; }
.two-col img { border-radius: 4px; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 800px) {
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
  }
  .two-col.reverse .col-media { order: 0; }
}

.col-text h2 { margin-bottom: 16px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 22px 20px;
}
.card .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  position: relative;
}
.card .dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.card p { color: var(--steel); font-size: 15px; margin: 0; }

.base-card .city {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 40px;
  background: var(--navy-2);
  border-radius: 4px;
  overflow: hidden;
}
.nav-strip a {
  flex: 1 1 auto;
  text-align: center;
  padding: 16px 10px;
  color: #dce6ef;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.nav-strip a:last-child { border-right: none; }
.nav-strip a:hover { background: rgba(255,255,255,0.08); color: #fff; }
@media (max-width: 700px) {
  .nav-strip { flex-direction: column; }
  .nav-strip a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

.map-figure {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}
.map-figure figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--steel-soft);
  font-family: "IBM Plex Mono", monospace;
  border-top: 1px solid var(--line-soft);
}

.list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) {
  .list-2col { grid-template-columns: 1fr; }
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
@media (max-width: 800px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
.cert-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
}
.cert-item .country {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.cert-item .code {
  font-size: 13.5px;
  color: var(--steel);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 24px 26px;
}
.contact-panel .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.contact-panel h3 { margin-bottom: 12px; }
.contact-panel .line {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-panel .line .k {
  color: var(--steel-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  min-width: 90px;
}
.contact-panel a.email-link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
}
.contact-panel a.email-link:hover { color: var(--blue); }

.bases-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .bases-mini { grid-template-columns: 1fr; }
}
.bases-mini .base-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 16px 15px;
}
.bases-mini .loc strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.bases-mini .loc {
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.45;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: #b7c4d1;
  padding: 40px 0 28px;
}
footer.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site-footer .brand span { color: #fff; }
footer.site-footer a { color: #b7c4d1; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
  color: #7c8ea0;
}

/* ---------- AOG bar ---------- */

.aog-bar {
  background: var(--blue);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 8px 16px;
}
.aog-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
