/* ---------- Vinculo Urbano · Demo 2026 ---------- */

:root {
  --bone: #F5F2EC;
  --bone-soft: #EFEBE2;
  --ink: #0E0E0E;
  --ink-soft: #1A1A1A;
  --teal: #2A6F88;
  --teal-deep: #1F5468;
  --terra: #C7714E;
  --terra-soft: #D88B68;
  --ash: #8E8B84;
  --mist: #E8E3DA;
  --whatsapp: #25D366;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: auto; }
html, body { background: var(--bone); color: var(--ink); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

.font-display {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.025em;
  line-height: 0.94;
}

.font-display.italic { font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.6;
}

/* ---------- Nav ---------- */
.nav-pill {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(245, 242, 236, 0.72);
  border: 1px solid rgba(14, 14, 14, 0.06);
}

.nav-pill.dark {
  background: rgba(14, 14, 14, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right .35s cubic-bezier(.6,0,.3,1);
}
.nav-link:hover::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .35s cubic-bezier(.6,0,.3,1), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--teal); color: var(--bone); }
.btn-primary:hover { background: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(245, 242, 236, 0.5);
}
.btn-ghost:hover { background: rgba(245, 242, 236, 0.12); border-color: var(--bone); }

.btn-ink {
  background: var(--ink);
  color: var(--bone);
}
.btn-ink:hover { background: var(--teal); }

.btn-terra {
  background: var(--terra);
  color: var(--bone);
}
.btn-terra:hover { background: var(--terra-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 2.5s cubic-bezier(.6,0,.3,1);
}

.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.10) 30%, rgba(14,14,14,0.20) 50%, rgba(14,14,14,0.75) 92%, rgba(14,14,14,0.85) 100%),
    radial-gradient(ellipse 80% 50% at 20% 78%, rgba(14,14,14,0.45) 0%, transparent 70%);
}

/* Hero text crispness over photography */
.hero h1,
.hero .lead,
.hero .eyebrow {
  text-shadow: 0 1px 24px rgba(14, 14, 14, 0.35), 0 0 1px rgba(14, 14, 14, 0.4);
}

.hero-loaded .hero-media { transform: scale(1); }

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  padding-right: 60px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats counter ---------- */
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Project bento ---------- */
.bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.bento .card:nth-child(1) { grid-row: span 2; }
.bento .card:nth-child(4) { grid-column: span 2; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bento .card { grid-row: auto !important; grid-column: auto !important; }
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  min-height: 320px;
  cursor: pointer;
  isolation: isolate;
}

.card .card-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1s cubic-bezier(.4,0,.2,1), filter .6s ease;
  filter: brightness(0.78);
}

.card:hover .card-img { transform: scale(1.07); filter: brightness(0.92); }

.card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(170deg, transparent 35%, rgba(14,14,14,0.85) 100%);
  z-index: 1;
}

.card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--bone);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  background: rgba(245, 242, 236, 0.18);
  border: 1px solid rgba(245, 242, 236, 0.25);
  align-self: flex-start;
}
.badge.terra { background: rgba(199,113,78,0.85); border-color: rgba(199,113,78,1); }
.badge.teal { background: rgba(42,111,136,0.85); border-color: rgba(42,111,136,1); }

.card-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bone);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245,242,236,0.35);
  transition: background .25s, border-color .25s;
}
.card-cta:hover { background: rgba(245,242,236,0.12); border-color: rgba(245,242,236,0.7); }

.card-cta.wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #052e16; font-weight: 600; }
.card-cta.wa:hover { background: #1ebe5d; }

/* ---------- Showroom block ---------- */
.showroom {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}

.showroom-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.32;
  filter: blur(2px);
}
.showroom-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(14,14,14,0.85) 75%);
}

.tour-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(245,242,236,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.hotspot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,242,236,0.08);
  color: rgba(245,242,236,0.7);
  font-size: 15px;
  cursor: pointer;
  transition: color .25s, padding-left .35s;
}
.hotspot:hover, .hotspot.active { color: var(--bone); padding-left: 8px; }
.hotspot .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(245,242,236,0.3);
  transition: background .25s, transform .35s;
}
.hotspot:hover .dot, .hotspot.active .dot { background: var(--terra); transform: scale(1.4); }

/* ---------- Asistidos grid ---------- */
.asisted {
  background: var(--bone-soft);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: transform .35s, box-shadow .35s, background .25s;
}
.asisted:hover {
  transform: translateY(-4px);
  background: var(--bone);
  box-shadow: 0 16px 40px rgba(14,14,14,0.08);
}

/* ---------- Services ---------- */
.service-card {
  padding: 36px;
  border-radius: 22px;
  background: var(--bone-soft);
  border: 1px solid var(--mist);
  transition: background .25s, transform .35s, border-color .25s;
}
.service-card:hover {
  background: var(--ink);
  color: var(--bone);
  transform: translateY(-3px);
  border-color: var(--ink);
}
.service-card:hover .service-icon { color: var(--terra); }
.service-icon {
  width: 72px; height: 72px;
  font-size: 72px;
  color: var(--teal);
  transition: color .25s, transform .35s cubic-bezier(.4,0,.2,1);
  margin-bottom: 22px;
  display: inline-block;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }

/* ---------- Vinculate ---------- */
.pitch-card {
  position: relative;
  border-radius: 26px;
  padding: 48px;
  overflow: hidden;
  min-height: 360px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--bone);
  background: var(--ink);
}
.pitch-card.terra { background: var(--terra); }
.pitch-card.teal { background: var(--teal); }
.pitch-card .pattern {
  position: absolute; inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 80% 20%, var(--bone) 0%, transparent 40%),
                    radial-gradient(circle at 20% 80%, var(--bone) 0%, transparent 30%);
  z-index: 0;
}
.pitch-card > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(245,242,236,0.75);
}
.footer h4 {
  color: var(--bone);
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.footer a { color: rgba(245,242,236,0.65); transition: color .2s; }
.footer a:hover { color: var(--bone); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #052e16;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 999px;
  border: 2px solid var(--whatsapp);
  opacity: 0.5;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  from { transform: scale(.85); opacity: .6; }
  to { transform: scale(1.35); opacity: 0; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 1.1s cubic-bezier(.4,0,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }

.reveal-mask {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.reveal-mask::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--bone);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1.2s cubic-bezier(.7,0,.3,1);
}
.reveal-mask.in::after { transform: scaleX(0); }

/* ---------- Map ---------- */
.map-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--mist);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(.95); }

/* ---------- Responsive type ---------- */
.h-display { font-size: clamp(38px, 9vw, 152px); line-height: 0.95; }
.h-section { font-size: clamp(34px, 6vw, 88px); }
.h-large { font-size: clamp(26px, 4vw, 56px); }
.lead { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.5; color: rgba(14,14,14,0.7); }

/* Mobile hero adjustments */
@media (max-width: 640px) {
  .hero { height: 100svh; min-height: 640px; padding-bottom: 80px; }
  .marquee-track { gap: 32px; animation-duration: 30s; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--mist); }
.dot-sep { display: inline-block; width: 4px; height: 4px; border-radius: 999px; background: currentColor; margin: 0 12px; opacity: 0.4; vertical-align: middle; }

::selection { background: var(--terra); color: var(--bone); }
