:root {
  --bg: #0b0b0a;
  --panel: rgba(255,255,255,0.075);
  --panel-strong: rgba(255,255,255,0.13);
  --line: rgba(255,255,255,0.17);
  --ink: #f7f1e8;
  --muted: rgba(247,241,232,0.72);
  --faint: rgba(247,241,232,0.5);
  --gold: #c6a06f;
  --green: #8fa98e;
  --blue: #8db7c7;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,0));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand img { width: 28px; height: 28px; }
.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 28px);
  color: var(--muted);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/photos/large/16-cartago-rayos.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,4,4,.9), rgba(4,4,4,.5) 48%, rgba(4,4,4,.16)),
    linear-gradient(0deg, var(--bg), rgba(9,9,9,0) 44%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 96px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(50px, 9.5vw, 118px);
  line-height: .92;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}
.hero__lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.button--solid {
  border-color: rgba(198,160,111,.72);
  background: var(--gold);
  color: #14110d;
}
.hero__next {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 28px;
  z-index: 1;
  color: var(--faint);
  font-size: 12px;
}

section {
  padding: clamp(72px, 9vw, 130px) clamp(20px, 4vw, 56px);
}
.summary,
.split,
.preapproval {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: clamp(36px, 6vw, 88px);
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}
.summary p,
.split li,
.preapproval p,
.cards p,
.doc-grid span {
  color: var(--muted);
  font-size: 16px;
}
.cards,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.cards article,
.doc-grid a,
.checklist div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}
.cards article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 34px);
}
.cards span,
.checklist span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
}
.split {
  align-items: stretch;
}
.split__image {
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
}
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
ol { margin: 0; padding-left: 20px; }
li + li { margin-top: 12px; }

.docs {
  background:
    radial-gradient(circle at 12% 10%, rgba(141,183,199,.13), transparent 31%),
    radial-gradient(circle at 86% 18%, rgba(198,160,111,.15), transparent 29%),
    #0d0d0b;
}
.section-head {
  width: min(900px, 100%);
  margin: 0 auto clamp(34px, 5vw, 64px);
  text-align: center;
}
.doc-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.doc-grid a {
  min-height: 150px;
  padding: 22px;
}
.doc-grid strong,
.doc-grid span,
.checklist strong,
.checklist small {
  display: block;
}
.doc-grid strong {
  margin-bottom: 12px;
  line-height: 1.2;
}
.preapproval {
  align-items: start;
}
.checklist {
  display: grid;
  gap: 12px;
}
.checklist div {
  padding: 22px;
}
.checklist span {
  margin-bottom: 12px;
  font-size: 28px;
}
.checklist strong {
  margin-bottom: 6px;
  line-height: 1.25;
}
.checklist small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }
  .topbar nav {
    display: none;
  }
  .hero {
    min-height: 88svh;
  }
  .hero__content {
    width: min(100% - 32px, 720px);
    padding-bottom: 80px;
  }
  .hero__next {
    left: 16px;
    right: auto;
    bottom: 18px;
  }
  .summary,
  .split,
  .preapproval {
    grid-template-columns: 1fr;
  }
  .cards,
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .split__image {
    min-height: 320px;
  }
  .button {
    width: 100%;
  }
  footer {
    flex-direction: column;
  }
}
