/* ==========================================================================
   INVERFUTURO — Design tokens
   Palette: English green (#0A2318 base) + metallic gold (#C9A227 → #E8C468)
   Type: Cormorant Garamond (display, high-contrast serif) / Jost (body, wide-tracked sans)
   ========================================================================== */

:root {
  --green-950: #071510;
  --green-900: #0A2318;
  --green-850: #0D2B1E;
  --green-800: #123626;
  --green-700: #1B4A34;
  --gold-100: #F5E9C6;
  --gold-300: #E8C468;
  --gold-500: #C9A227;
  --gold-700: #8a7020;
  --cream: #F5F1E8;
  --white: #FFFFFF;
  --ink: #0A0F0C;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container-w: 1240px;
  --gutter: clamp(24px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--green-900);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.gold-text {
  background: linear-gradient(120deg, var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 780px;
}
.section-title--light { color: var(--white); }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__mark {
  width: 120px;
  height: auto;
}
.preloader__mark path,
.preloader__mark line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: padding 0.4s var(--ease-soft), background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 16px 0;
  background: rgba(10, 35, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}
.nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--white);
}
.nav__links {
  display: flex;
  gap: 40px;
}
.nav__links a {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.75);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-300);
  transition: width 0.35s var(--ease-soft);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  border: 1px solid var(--gold-500);
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  transition: background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--gold-500); color: var(--green-950); }

.nav__burger {
  display: none;
  width: 28px; height: 20px;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.nav__burger span {
  display: block;
  height: 1px;
  background: var(--cream);
}

.nav-mobile {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 80vw);
  height: 100vh;
  background: var(--green-850);
  z-index: 600;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: right 0.5s var(--ease-reveal);
  border-left: 1px solid rgba(201,162,39,0.2);
}
.nav-mobile.is-open { right: 0; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
}
.nav-mobile__cta {
  margin-top: 20px;
  border: 1px solid var(--gold-500);
  padding: 12px 20px;
  text-align: center;
  color: var(--gold-300);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s var(--ease-soft);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(120deg, var(--gold-500), var(--gold-300));
  color: var(--green-950);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(201, 162, 39, 0.55);
}
.btn--ghost {
  border-color: rgba(245, 241, 232, 0.35);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}
.btn--wide { width: 100%; padding: 17px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.6);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,21,16,0.55) 0%, rgba(7,21,16,0.35) 40%, rgba(7,21,16,0.92) 100%),
    linear-gradient(90deg, rgba(7,21,16,0.75) 0%, rgba(7,21,16,0.15) 55%);
}
.hero__grain {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 var(--gutter);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 28px;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-word { display: inline-block; transform: translateY(110%); }

.hero__sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.82);
  max-width: 480px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero__scroll-cue {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 241, 232, 0.6);
}
.hero__scroll-cue span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: rgba(245, 241, 232, 0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll-dot {
  position: absolute;
  top: -20px; left: 0;
  width: 1px; height: 20px;
  background: var(--gold-300);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -20px; }
  60% { top: 46px; }
  100% { top: 46px; opacity: 0; }
}

.hero__mark-draw {
  position: absolute;
  right: 6%;
  bottom: -6%;
  width: min(30vw, 380px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}
.hero__mark-draw path,
.hero__mark-draw line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */
.section {
  padding: 140px 0;
  position: relative;
}
.section-head { margin-bottom: 72px; }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head__note {
  max-width: 340px;
  font-size: 14.5px;
  color: rgba(245, 241, 232, 0.6);
  line-height: 1.6;
  padding-bottom: 6px;
}

/* reveal-on-scroll base state (JS/GSAP animates in) */
.reveal-on-scroll { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   OPORTUNIDAD
   ========================================================================== */
.section--opportunity { background: var(--green-900); }
.opp-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.opp-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(245, 241, 232, 0.92);
}
.opp-stats { display: flex; flex-direction: column; gap: 30px; }
.stat-card {
  border-left: 1px solid rgba(201, 162, 39, 0.4);
  padding-left: 26px;
}
.stat-card__number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--gold-300);
  line-height: 1;
}
.stat-card__suffix {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-300);
}
.stat-card__label {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(245, 241, 232, 0.62);
  line-height: 1.55;
  max-width: 340px;
}

/* ==========================================================================
   PROYECTOS
   ========================================================================== */
.section--projects { background: var(--green-850); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project-card {
  background: var(--green-900);
  border: 1px solid rgba(201, 162, 39, 0.14);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.project-card:hover { border-color: rgba(201, 162, 39, 0.45); transform: translateY(-6px); }
.project-card__img { position: relative; height: 230px; overflow: hidden; }
.project-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-soft);
  filter: saturate(0.9) brightness(0.85);
}
.project-card:hover .project-card__img img { transform: scale(1.06); }
.project-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(10, 35, 24, 0.85);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.project-card__body { padding: 28px; }
.project-card__body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.project-card__meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  margin-bottom: 14px;
}
.project-card__desc {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.65);
  line-height: 1.6;
  margin-bottom: 20px;
}
.project-card__link {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 241, 232, 0.3);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.project-card__link:hover { color: var(--gold-300); border-color: var(--gold-300); }

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */
.section--location {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}
.location__bg { position: absolute; inset: 0; z-index: 0; }
.location__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) brightness(0.5);
}
.location__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,21,16,0.94) 20%, rgba(7,21,16,0.55) 75%);
  z-index: 1;
}
.location__content { position: relative; z-index: 2; }
.location__points {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 560px;
}
.location__point {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}
.location__point:last-child { border-bottom: none; padding-bottom: 0; }
.location__num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-500);
  padding-top: 2px;
}
.location__point h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}
.location__point p {
  font-size: 14.5px;
  color: rgba(245, 241, 232, 0.6);
  line-height: 1.6;
  max-width: 420px;
}

/* ==========================================================================
   PLUSVALÍA / GROWTH CHART
   ========================================================================== */
.section--growth { background: var(--green-900); }
.growth__chart-wrap { margin-top: 20px; }
.growth__chart { width: 100%; height: auto; display: block; }
.growth__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.45);
}
.growth__note {
  margin-top: 30px;
  font-size: 12.5px;
  color: rgba(245, 241, 232, 0.4);
  max-width: 480px;
}

/* ==========================================================================
   CONFIANZA
   ========================================================================== */
.section--trust { background: var(--green-850); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.trust-card__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  color: var(--gold-300);
  margin-bottom: 22px;
}
.trust-card__icon svg { width: 100%; height: 100%; }
.trust-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.6);
  line-height: 1.6;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
  position: relative;
  padding: 180px 0;
  overflow: hidden;
}
.cta-final__bg { position: absolute; inset: 0; z-index: 0; }
.cta-final__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) brightness(0.4);
}
.cta-final__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(7,21,16,0.4) 0%, rgba(7,21,16,0.94) 75%);
  z-index: 1;
}
.cta-final__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.cta-final__sub {
  font-size: 16px;
  color: rgba(245, 241, 232, 0.72);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 44px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.cta-form__row { display: flex; gap: 16px; }
.cta-form input,
.cta-form select {
  flex: 1;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid rgba(245, 241, 232, 0.22);
  padding: 15px 18px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.3s;
}
.cta-form select { appearance: none; cursor: pointer; }
.cta-form input::placeholder { color: rgba(245, 241, 232, 0.4); }
.cta-form input:focus,
.cta-form select:focus {
  outline: none;
  border-color: var(--gold-500);
}
.cta-form__row select option { background: var(--green-900); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--green-950); padding: 80px 0 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 10px;
}
.footer__tag { font-size: 13px; color: rgba(245, 241, 232, 0.5); }
.footer__cols { display: flex; gap: 80px; }
.footer__cols h5 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer__cols p, .footer__cols a {
  display: block;
  font-size: 14px;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 8px;
}
.footer__cols a:hover { color: var(--gold-300); }
.footer__bottom {
  padding: 26px var(--gutter);
  text-align: center;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.35);
}

/* ==========================================================================
   FOCUS STATES (accessibility)
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 968px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .opp-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 90px 0; }
  .cta-final { padding: 110px 0; }
  .section--location { padding: 100px 0; }
}

@media (max-width: 560px) {
  .cta-form__row { flex-direction: column; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__mark-draw { display: none; }
}
