:root {
  --ink: #101820;
  --navy: #0b2436;
  --navy-2: #16344d;
  --gold: #c9a227;
  --gold-2: #e8d5a8;
  --paper: #f4efe6;
  --cream: #fbf8f2;
  --white: #fffcf8;
  --muted: #5d6570;
  --line: rgba(16, 24, 32, 0.12);
  --ok: #1e5c4f;
  --danger: #8b2e2e;
  --shadow: 0 24px 60px rgba(14, 28, 51, 0.14);
  --radius: 18px;
  --max: 1180px;
  --header: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--muted);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.disclosure {
  background: #0b1526;
  color: #efe6d4;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 0;
  border-bottom: 1px solid rgba(196, 162, 101, 0.35);
}

.disclosure strong {
  color: var(--gold-2);
  font-weight: 650;
}

.disclosure .container {
  display: grid;
  gap: 6px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text span:first-child {
  font-family: Fraunces, serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.brand-text span:last-child {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.primary a,
.drop > button {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

nav.primary a:hover,
.drop > button:hover,
nav.primary a.active {
  background: #ece4d4;
}

.drop {
  position: relative;
}

.drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 180px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.drop.open .drop-menu,
.drop:hover .drop-menu {
  display: grid;
}

.drop-menu a {
  border-radius: 10px;
}

.nav-cta {
  background: var(--navy) !important;
  color: var(--gold-2) !important;
  padding: 10px 16px !important;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 88vh;
  color: white;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero video,
.hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.25) 0%, rgba(10, 18, 32, 0.72) 58%, rgba(10, 18, 32, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 18, 32, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 0 64px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 16px;
}

.hero p.lead {
  max-width: 640px;
  font-size: 1.15rem;
  color: #efe8da;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--gold-2);
}

.btn-line {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.stat {
  border-top: 1px solid rgba(232, 213, 168, 0.35);
  padding-top: 14px;
}

.stat b {
  display: block;
  font-family: Fraunces, serif;
  font-size: 1.8rem;
  color: var(--gold-2);
}

.stat span {
  color: #d9d0c0;
  font-size: 14px;
}

section {
  padding: 88px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.04);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body,
.pad {
  padding: 24px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ok);
  font-weight: 700;
  margin-bottom: 8px;
}

.media-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.media-split video,
.media-split img,
.frame {
  width: 100%;
  border-radius: 24px;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.notice {
  background: #fff7e6;
  border: 1px solid #e6d3a1;
  border-radius: 16px;
  padding: 20px 22px;
  font-size: 15px;
}

.notice.ok {
  background: #edf6f3;
  border-color: #b7d4cc;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--navy);
  color: var(--gold-2);
  font-weight: 650;
}

.example {
  background: var(--navy);
  color: #f3eadc;
  border-radius: 24px;
  padding: 32px;
}

.example h3 {
  color: var(--gold-2);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-family: Fraunces, serif;
  font-size: 1.4rem;
}

.cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.city {
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  overflow: hidden;
  color: white;
}

.city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.city span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-weight: 700;
}

.city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.page-hero {
  padding: 72px 0 36px;
  background:
    linear-gradient(120deg, rgba(14, 28, 51, 0.82), rgba(14, 28, 51, 0.45)),
    var(--img, url("../assets/quito-panorama.jpg")) center/cover;
  color: white;
}

.page-hero p {
  max-width: 640px;
  color: #efe8da;
}

form.contact {
  display: grid;
  gap: 14px;
}

label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.ads-grid {
  display: grid;
  gap: 12px;
}

.ad-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.ad-item code,
.kw {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
}

.count {
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
}

.count.bad {
  color: var(--danger);
}

.copy {
  border: 0;
  background: var(--navy);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.kw-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kw-cloud span {
  background: #ece6da;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

footer.site {
  background: var(--navy);
  color: #e7dece;
  padding: 56px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

footer a:hover {
  color: var(--gold-2);
}

.legal-meta {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #c9c0b0;
}

.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #128c7e;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: none;
  max-width: 720px;
  margin: 0 auto;
}

.cookies.show {
  display: block;
}

.yt-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-bg {
  position: absolute;
  inset: -12% -8% 0;
  width: 116%;
  height: 120%;
  pointer-events: none;
}

.hero-video-bg iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 1.6em;
}

.timeline {
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  display: grid;
  gap: 22px;
}

.timeline article strong {
  color: var(--navy);
}

@media (max-width: 980px) {
  .stats,
  .grid-3,
  .grid-4,
  .cities,
  .foot-grid,
  .media-split,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .burger {
    display: grid;
    place-items: center;
  }

  nav.primary {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(var(--header) + 52px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  nav.primary.open {
    display: flex;
  }

  .ad-item {
    grid-template-columns: 1fr;
  }

  .media-split video,
  .media-split img,
  .frame {
    height: 280px;
  }
}
