/* Isla Collection Partners — paleta y tipografía según el brand book */
:root {
  --navy: #2e415a;        /* midnight blue */
  --olive: #51572c;       /* sage olive */
  --jungle: #1f2b10;      /* jungle green */
  --dusty: #587c8f;       /* dusty blue */
  --ivory: #f0e7d1;       /* warm ivory */
  --offwhite: #fffbf1;    /* soft off-white */
  --line: rgba(46, 65, 90, .18);
  --serif: "Editor's Note", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Avenir Next", "Avenir", "Mulish", "Helvetica Neue", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, .fact__n, .cap__n, .scen__n { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: 26px; font-weight: 400; }
h4 { font-size: 22px; font-weight: 400; }
em { font-style: italic; }

.eyebrow, .tag {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  margin: 0 0 18px; opacity: .75;
}
.tag { letter-spacing: .14em; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 56ch; }

.btn {
  display: inline-block; padding: 14px 30px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; font-weight: 500;
  background: var(--navy); color: var(--offwhite); border-color: var(--navy);
  transition: background .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--navy); }
.btn--small { padding: 9px 18px; }
.link-arrow { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: currentColor; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(255, 251, 241, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.nav__logo { width: auto; height: 40px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-size: 13px; text-decoration: none; letter-spacing: .04em; opacity: .85; }
.nav__links a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 1px; background: var(--navy); margin: 7px 0; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh;
  padding-top: 72px;
}
.hero__text { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--pad); }
.hero__text h1 { max-width: 15ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 28px; }
.hero__media { position: relative; min-height: 420px; }
.hero__media img { position: absolute; inset: 0; }
.caption { position: absolute; left: 20px; bottom: 16px; margin: 0; color: #fff;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* FACTS */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 36px var(--pad); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:first-child { border-left: 0; }
.fact__n { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); font-weight: 300; line-height: 1; }
.fact__l { font-size: 14px; line-height: 1.5; opacity: .8; max-width: 24ch; }

/* SECTIONS */
.section { padding: clamp(72px, 10vw, 140px) var(--pad); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--offwhite); --line: rgba(255, 251, 241, .22); }
.section__head { margin-bottom: 56px; }
.section__head h2 { max-width: 18ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split > * { max-width: none; margin: 0; }
.split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.split__media--map { aspect-ratio: 1104 / 976; border: 1px solid var(--line); }
.split--reverse .split__media { order: 2; }
.split__text { max-width: 560px; }
.split--reverse .split__text { justify-self: end; }

.defs { margin: 36px 0 0; border-top: 1px solid var(--line); }
.defs div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1.2; }
.defs dd { margin: 0; font-size: 14.5px; }

.checks { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.checks li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.checks strong { font-weight: 600; }

/* PROJECTS */
.projects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.project__img { aspect-ratio: 3 / 4.4; overflow: hidden; border-radius: 999px 999px 0 0; margin-bottom: 20px; }
.project__img img { transition: transform 1.2s ease; }
.project:hover .project__img img { transform: scale(1.04); }
.project h3 { margin-bottom: 8px; }
.project p:last-child { font-size: 14.5px; line-height: 1.6; opacity: .85; }

/* PUNTA SUR */
.banner { margin: 0 auto 72px; aspect-ratio: 2.4 / 1; overflow: hidden; }
.sub { font-size: 13px; font-family: var(--sans); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-top: 72px; margin-bottom: 32px; }
.sub--dark { margin-top: 88px; }

.capbar { display: flex; height: 46px; gap: 3px; margin-bottom: 28px; font-size: 13px; letter-spacing: .1em; }
.capbar span { display: flex; align-items: center; padding-left: 14px; }
.capbar__a { background: var(--ivory); color: var(--navy); }
.capbar__b { background: var(--dusty); }
.capbar__c { background: var(--olive); }
.cap { display: grid; grid-template-columns: 4fr 13fr 4fr; gap: 3px; margin-bottom: 48px; }
.cap > div { padding-right: 28px; }
.cap__n { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-bottom: 12px; }
.cap__n small { display: block; font-family: var(--sans); font-size: 12.5px; opacity: .7; margin-top: 6px; letter-spacing: .04em; }
.cap p:last-child { font-size: 14.5px; opacity: .85; }

.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: fase; }
.timeline li { counter-increment: fase; position: relative; padding: 28px 20px 0 0; border-top: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); }
.timeline__m { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.timeline h4 { margin: 10px 0 10px; }
.timeline h4::before { content: "0" counter(fase) " · "; font-style: italic; opacity: .6; }
.timeline p { font-size: 14px; line-height: 1.6; opacity: .85; }

.scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-bottom: 36px; }
.scen > div { padding: 30px; border-left: 1px solid var(--line); }
.scen > div:first-child { border-left: 0; background: rgba(255, 251, 241, .07); }
.scen__n { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; margin: 6px 0 10px; }
.scen p:last-child { font-size: 14px; opacity: .85; margin: 0; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
caption { text-align: left; font-size: 13px; opacity: .75; padding-bottom: 12px; }
th, td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; opacity: .7; }
tbody th { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; width: 22%; }
tbody th small { display: block; font-family: var(--sans); font-size: 12.5px; opacity: .7; margin-top: 6px; line-height: 1.4; }
.note { font-size: 13px; opacity: .7; margin-top: 24px; }

/* CERTEZA */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { padding: 34px 30px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar span { font-family: var(--serif); font-style: italic; font-size: 20px; opacity: .55; }
.pillar h3 { margin: 14px 0 12px; }
.pillar p { font-size: 14.5px; margin: 0; opacity: .88; }

/* DESTINO */
.destino { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--offwhite); }
.destino > img { position: absolute; inset: 0; }
.destino::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 30, 45, .82), rgba(15, 30, 45, .1) 65%); }
.destino__text { position: relative; z-index: 1; padding: clamp(48px, 8vw, 110px) var(--pad); max-width: 760px; }

/* CONTACT */
.contact { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact > * { max-width: none; margin: 0; }
.contact__media { aspect-ratio: 4 / 5; overflow: hidden; max-width: 460px; justify-self: end; width: 100%; }
.contact__text { max-width: 540px; }
.contact__text .btn { margin-top: 16px; }
.contact__mail { margin-top: 22px; font-size: 15px; }

/* FOOTER */
.footer { background: var(--navy); color: var(--offwhite); text-align: center; padding: 72px var(--pad) 48px; }
.footer__logo { width: 96px; height: auto; margin: 0 auto 24px; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 24px; margin-bottom: 36px; }
.footer__legal { font-size: 12.5px; line-height: 1.7; opacity: .65; max-width: 78ch; margin: 0 auto 24px; }
.footer__copy { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin: 0; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px;
    background: var(--offwhite); padding: 24px var(--pad) 32px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 4 / 4.6; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split--reverse .split__text { justify-self: start; }
  .contact__media { justify-self: start; }
  .cap { grid-template-columns: 1fr; gap: 32px; }
  .scen { grid-template-columns: 1fr; }
  .scen > div { border-left: 0; border-top: 1px solid var(--line); }
  .scen > div:first-child { border-top: 0; }
  .banner { aspect-ratio: 1.6 / 1; }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .timeline, .pillars { grid-template-columns: 1fr; }
  .defs div { grid-template-columns: 1fr; gap: 4px; }
  .nav__brand span { display: none; }
  .matrix { min-width: 0; }
  .matrix thead { display: none; }
  .matrix tr, .matrix th, .matrix td { display: block; width: auto; }
  .matrix tr { border-bottom: 1px solid var(--line); padding: 20px 0; }
  .matrix th, .matrix td { border: 0; padding: 0 0 14px; }
  .matrix td::before { content: attr(data-l); display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
}

/* BLANQUITA SQUARE */
.bq { --navy-bq: #00405c; background: linear-gradient(180deg, #003a54, #012a40); }
.bq__logo { width: min(420px, 80%); height: auto; margin: 8px 0 36px; }
.bq .section__head h2 { max-width: 20ch; }
.bq__gallery { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 14px; }
.bq__gallery figure { margin: 0; aspect-ratio: auto; height: clamp(260px, 36vw, 480px); overflow: hidden; }
.cap--status > div { min-width: 0; }
.timeline--4 { grid-template-columns: repeat(4, 1fr); }
tr.total td { font-weight: 600; border-bottom: 0; }
.bq__fin { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.calc { margin: 12px 0 0; border-top: 1px solid var(--line); }
.calc div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.calc dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__total { font-weight: 600; }
.calc__total dd { font-family: var(--serif); font-size: 26px; font-weight: 400; font-variant-numeric: lining-nums; line-height: 1; }
.table--compact { min-width: 460px; }
.table--compact th, .table--compact td { padding: 12px 14px 12px 0; }
.bq__loc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 96px; }
.bq__map { aspect-ratio: 1104 / 976; overflow: hidden; }
.bq__h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; }
.btn--light { background: var(--offwhite); color: #00405c; border-color: var(--offwhite); margin-top: 12px; }
.btn--light:hover { background: transparent; color: var(--offwhite); }
.projects--4 { grid-template-columns: repeat(4, 1fr); }
.contact__mail a { text-underline-offset: 4px; }
.fact__n { white-space: nowrap; }
@media (max-width: 1080px) {
  .timeline--4 { grid-template-columns: repeat(2, 1fr); }
  .projects--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .bq__gallery { grid-template-columns: 1fr 1fr; }
  .bq__gallery figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .bq__fin, .bq__loc { grid-template-columns: 1fr; }
  .cap.cap--status { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .projects--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .timeline--4 { grid-template-columns: 1fr; }
  .cap.cap--status { grid-template-columns: 1fr; }
}

.bq__text { max-width: 640px; margin-top: 48px; margin-left: 0; }
.section > .bq__text { margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.bq__text p { font-size: 17px; margin-bottom: 24px; }

.project__img { display: block; }
.project__link { display: inline-block; margin-top: 6px; font-size: 13px; }
.project__link::after { content: " ↗"; }
