:root {
  --ink: #090a0b;
  --cream: #f7f4ee;
  --muted: #c0bbb1;
  --gold: #d5b33b;
  --gold-light: #eed276;
  --line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }

html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: #030404;
  color: var(--cream);
  font-family: Manrope, Arial, sans-serif;
}

.page-shell {
  width: min(100%, 720px);
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  clip-path: inset(0 round 22px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  overflow: hidden;
  background: #0c0d0d;
}

.hero__photo,
.hero__veil { position: absolute; inset: 0; z-index: -2; }

.hero__photo {
  background: url("assets/hero-consorcio.png") 61% center / cover no-repeat;
  transform: scale(1.025);
}

.hero__veil {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 4, 4, 0.80) 0%, rgba(3, 4, 4, 0.27) 27%, rgba(3, 4, 4, 0.18) 49%, rgba(3, 4, 4, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 5, 5, 0.90) 0%, rgba(4, 5, 5, 0.43) 49%, rgba(4, 5, 5, 0.04) 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 180px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(9, 10, 11, 0.56) 57%, #090a0b 100%);
}

.hero__header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  width: 106px;
  height: 58px;
  display: block;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.07) saturate(0.93);
}

.hero__content {
  position: relative;
  z-index: 0;
  width: min(100%, 550px);
  margin-top: 58px;
  padding-bottom: 0;
}

.hero__content::before {
  position: absolute;
  inset: -24px -28px -28px -22px;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 30% 45%, rgba(3, 4, 4, 0.44) 0%, rgba(3, 4, 4, 0.22) 48%, transparent 76%);
  filter: blur(10px);
}

.eyebrow,
.hero__bottom {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 9px;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-light);
}

h1 {
  max-width: 85%;
  margin: 0;
  font: 600 clamp(42px, 11.5vw, 65px) / 0.84 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h1 em { color: var(--gold-light); font-style: normal; }

.hero__description {
  max-width: 370px;
  margin: 23px 0 26px;
  color: #e3e3e3;
  font-size: 15px;
  line-height: 1.65;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 45px;
  padding: 0 17px;
  color: #16130c;
  background: var(--gold-light);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .065em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero__cta:hover { background: #fff0ad; transform: translateY(-2px); }
.hero__cta svg,
.action-card__cta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 51px;
  padding: 0 18px;
  color: #16130c;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font-size: 10px;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button--primary { background: var(--gold-light); }
.button--primary:hover { background: #fff0ad; transform: translateY(-2px); }
.button span { font-size: 17px; line-height: 0; }

.links-section {
  position: relative;
  margin-top: 0;
  padding: 64px 22px 22px;
  background: #090a0b;
}

.scroll-cue {
  position: relative;
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 34px;
  color: var(--gold-light);
}

.scroll-cue::before {
  position: absolute;
  width: 1px;
  height: 24px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--gold-light));
  transform: translateY(-9px);
}

.scroll-cue span {
  position: relative;
  z-index: 1;
  display: block;
  font: 400 27px / 1 Arial, sans-serif;
  animation: scroll-cue-bounce 1.65s ease-in-out infinite;
}

.hero > .scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  margin: 0 0 0 -24px;
}

h2 {
  margin: 0 0 29px;
  color: var(--cream);
  font: 600 clamp(34px, 9vw, 48px) / 0.9 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.035em;
}

h2 em { color: var(--gold-light); font-style: normal; }

.action-cards { display: grid; gap: 14px; }

.action-card {
  position: relative;
  isolation: isolate;
  min-height: 185px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(213, 179, 59, 0.28);
  border-radius: 22px;
  background: #151514;
  opacity: 0;
  transform: translateY(22px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.action-card.is-visible { animation: card-enter 700ms cubic-bezier(.22, .8, .26, 1) var(--stagger-delay, 0ms) forwards; }
.action-card.is-leaving { animation: card-exit 360ms ease forwards; }
.action-card:hover { transform: translateY(-3px); border-color: var(--gold-light); }
.action-card img, .action-card__shade { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; border-radius: inherit; }
.action-card img { object-fit: cover; object-position: center; transform: scaleX(-1); }
.action-card__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 8, 8, 0.98) 0%, rgba(7, 8, 8, 0.78) 47%, rgba(7, 8, 8, 0.12) 100%), linear-gradient(0deg, rgba(7, 8, 8, 0.78), transparent 64%);
}

.action-card__body { display: grid; gap: 4px; width: 100%; padding: 20px 18px; }
.action-card__label { color: var(--gold-light); font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.action-card strong { font: 600 36px / .9 "Cormorant Garamond", Georgia, serif; }
.action-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.action-card__cta svg { color: var(--gold-light); }

.action-card__cta--glow {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  gap: 14px;
  width: fit-content;
  padding: 9px 11px 9px 12px;
  border: 0;
  border-radius: 999px;
  background: #191918;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.action-card__cta--glow::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 78%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-light) 12%, var(--gold-light) 88%, transparent);
  transform: translateX(-50%);
}

.site-footer {
  padding: 20px 22px 28px;
  color: rgba(247, 244, 238, 0.45);
  background: #090a0b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 8px;
  font-weight: 600;
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(22px); }
}

@keyframes scroll-cue-bounce {
  0%, 100% { opacity: .48; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .action-card, .scroll-cue span { opacity: 1; transform: translateY(0); animation: none; transition: none; }
}

@media (min-width: 768px) {
  .hero { height: auto; min-height: 820px; padding: 28px 32px 24px; }
  .hero__photo { background-position: 60% center; }
  .hero__content { margin-top: 120px; }
  .hero__cta { display: none; }
  h1 { max-width: 80%; font-size: clamp(47px, 13.3vw, 64px); }
  .links-section { margin-top: -260px; padding: 118px 32px 80px; background: linear-gradient(180deg, transparent 0, rgba(9, 10, 11, 0.48) 96px, #090a0b 170px); }
  .scroll-cue { display: none; }
  .hero::after { display: none; }
}
