/* ─────────────────────────────────────────────────────────
   CARDINALE PASTURA — Desarrollos Inmobiliarios
   Tandil, Argentina — styles.css
   ───────────────────────────────────────────────────────── */

:root {
  --navy:        #2D3A4A;
  --steel:       #8FAAB8;
  --charcoal:    #1A1A1A;
  --gray-mid:    #666666;
  --gray-light:  #B3B3B3;
  --gray-soft:   #D8D8D8;
  --white:       #FFFFFF;
  --cream:       #F5F4F2;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart:  cubic-bezier(0.77, 0, 0.175, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1440px;
  --pad-x: clamp(20px, 5vw, 80px);
}

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html {
  scroll-behavior: auto; /* Lenis maneja el smooth scroll */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
input, select, textarea { font: inherit; color: inherit }
ul { list-style: none }
::selection { background: var(--steel); color: var(--white) }

/* Ocultar intro si JS está deshabilitado */
.no-js .reveal-up,
.no-js .word { opacity: 1; transform: none }

/* ─── skip link ─── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 16px;
  letter-spacing: .2em; text-transform: uppercase; font-size: 11px; z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px }

/* ─── focus ─── */
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px }


/* ═══════════════════════════════════════════
   HOVER-UP — efecto texto al estilo CL
   ═══════════════════════════════════════════ */
.hover-up {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
}
.ah, .ah2 {
  display: block;
  transition: transform 0.55s var(--ease-expo);
}
.ah2 {
  position: absolute; inset: 0;
  transform: translateY(100%);
}
.hover-up:hover .ah  { transform: translateY(-100%) }
.hover-up:hover .ah2 { transform: translateY(0) }

/* ═══════════════════════════════════════════
   WORD REVEAL — word-by-word masking
   ═══════════════════════════════════════════ */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* pequeño padding para descenders */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  margin-right: 0.28em;
}
.word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-expo);
  transition-delay: var(--wd, 0ms);
}
.word.is-in { transform: translateY(0) }

/* ═══════════════════════════════════════════
   ANIMACIONES DE ENTRADA — reveal-up
   ═══════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s var(--ease-expo) var(--delay, 0ms),
    transform 0.85s var(--ease-expo) var(--delay, 0ms);
}
.reveal-up.is-in {
  opacity: 1;
  transform: none;
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none }
  .word { transform: none; transition: none }
}

/* ═══════════════════════════════════════════
   SECTION PRIMITIVOS
   ═══════════════════════════════════════════ */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.section__head {
  position: relative;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.section__numeral {
  position: absolute; top: -30px; right: 0;
  font-weight: 100;
  font-size: clamp(80px, 14vw, 180px);
  line-height: 1;
  color: var(--gray-light);
  opacity: .3;
  letter-spacing: -.02em;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.section__numeral--dark { color: rgba(255,255,255,.06); opacity: 1 }

.section__label {
  display: flex; align-items: center; gap: 16px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.section__label--light { color: var(--steel) }
.section__rule {
  display: inline-block; width: 40px; height: 1px; background: var(--steel);
  flex: none;
}

.section__title {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  position: relative; z-index: 1;
  max-width: 22ch;
}

/* inline word-reveal para eyebrow del hero */
.word-reveal-inline {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
  transition-delay: var(--delay, 0ms);
}
.word-reveal-inline.is-in { opacity: 1; transform: none }

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition:
    background 0.6s var(--ease-expo),
    backdrop-filter 0.6s var(--ease-expo),
    border-color 0.6s var(--ease-expo);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  height: 88px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad-x);
  max-width: var(--container); margin: 0 auto; gap: 24px;
}
.nav__logo {
  display: inline-flex; align-items: center; justify-self: start;
  height: 64px; position: relative;
}
.nav__logo-img { height: 100%; width: auto; transition: opacity 0.5s var(--ease-expo) }
.nav__logo-img--dark { position: absolute; inset: 0; opacity: 0 }

.nav__links { display: flex; gap: 48px; justify-self: center }
.nav__links a {
  text-transform: uppercase; font-size: 12px; letter-spacing: .25em; color: var(--white);
  padding: 24px 0; position: relative; font-weight: 300;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; height: 1px; width: 24px;
  background: var(--steel);
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform 0.5s var(--ease-expo);
}
.nav__links a:hover::after { transform: translateX(-50%) scaleX(1) }

.nav.is-scrolled {
  background: rgba(26, 26, 26, 0.90);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.06);
}
/* En nav scrolled, links oscuros quedan blancos igualmente */

.nav__burger {
  display: none; width: 44px; height: 44px;
  justify-self: end; position: relative;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--white);
  transition: transform .45s var(--ease-expo), opacity .3s, top .45s var(--ease-expo);
}
.nav__burger span:nth-child(1) { top: 16px }
.nav__burger span:nth-child(2) { top: 22px }
.nav__burger span:nth-child(3) { top: 28px }
body.menu-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg) }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0 }
body.menu-open .nav__burger span:nth-child(3) { top: 22px; transform: rotate(-45deg) }

/* ─── Mobile overlay ─── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 48px;
  opacity: 0; pointer-events: none;
  transition: opacity .55s var(--ease-expo);
}
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 32px }
.mobile-menu a {
  text-transform: uppercase; letter-spacing: .3em; color: var(--white);
  font-size: 22px; font-weight: 300;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo);
}
.mobile-menu__foot {
  position: absolute; bottom: 40px; left: 0; right: 0; text-align: center;
  text-transform: uppercase; font-size: 10px; letter-spacing: .4em; color: var(--steel);
  opacity: 0; transition: opacity .6s var(--ease-expo) .4s;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto }
body.menu-open .mobile-menu a,
body.menu-open .mobile-menu__foot { opacity: 1; transform: none }
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .15s }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .25s }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .35s }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .5s }

/* ═══════════════════════════════════════════
   HERO BENTO
   ═══════════════════════════════════════════ */
/* ── SIERRA VIVA ────────────────────────────────────────── */
.sviva {
  background: var(--charcoal);
  color: var(--cream);
  padding: 120px 0 80px;
  font-family: 'Raleway', sans-serif;
}

.sviva__top {
  padding: 0 var(--pad-x);
  max-width: 1280px;
  margin: 0 auto 56px;
}


.sviva__title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 200;
  letter-spacing: -.03em;
  line-height: 1.03;
  color: var(--cream);
  max-width: 14ch;
  margin-bottom: 40px;
}

.sviva__intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  border-top: 1px solid rgba(245,244,242,.1);
  padding-top: 24px;
}

.sviva__lead {
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(245,244,242,.5);
  line-height: 1.8;
  max-width: 52ch;
}

.sviva__loc {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,244,242,.3);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.9;
}
.sviva__loc span { color: var(--sv-copper); opacity: .9; }
.sviva__loc .nos-line:first-child .nos-line-in {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Galería asimétrica 5fr 7fr 4fr */
/* Hover Slider */
.sviva__hover-slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 0 var(--pad-x) 56px;
  max-width: 1280px;
  margin: 0 auto;
}

.sviva__hs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sviva__hs-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  opacity: .28;
  transition: opacity .35s var(--ease-expo);
}
.sviva__hs-item:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.sviva__hs-item.sviva__hs-item--active { opacity: 1; }

.sviva__hs-index {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--sv-teal);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.sviva__hs-label {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: .01em;
  line-height: 1.2;
}

/* Imagen apilada */
.sviva__hs-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--charcoal);
}

.sviva__hs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}

.sviva__hs-img:first-child {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Foot: stats + CTA */
.sviva__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px var(--pad-x) 0;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(245,244,242,.1);
}

.sviva__stats { display: flex; }

.sviva__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(245,244,242,.1);
}
.sviva__stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.sviva__stat-n {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -.01em;
  white-space: nowrap;
}

.sviva__stat-l {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,244,242,.38);
  white-space: nowrap;
}

.sviva__cta {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(245,244,242,.28);
  border-radius: 2px;
  padding: 13px 26px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .28s, border-color .28s;
}
.sviva__cta:hover {
  background: rgba(245,244,242,.07);
  border-color: rgba(245,244,242,.55);
}

@media (max-width: 900px) {
  .sviva__stat { padding-right: 24px; margin-right: 24px; }
}

@media (max-width: 767px) {
  .sviva { padding: 80px 0 60px; }
  /* Imagen primero, lista de tabs debajo — orden natural de lectura en móvil */
  .sviva__hover-slider { grid-template-columns: 1fr; gap: 28px; }
  .sviva__hs-media { aspect-ratio: 16 / 11; order: -1; }
  .sviva__hs-label { font-size: clamp(18px, 5vw, 26px); }
  .sviva__hs-item { padding: 16px 0; }
  /* Sin hover: los tabs inactivos deben verse claramente tocables */
  .sviva__hs-item { opacity: .55; }
  .sviva__intro-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sviva__loc { text-align: left; white-space: normal; }
  .sviva__foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .sviva__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
  .sviva__stat { border-right: none; padding-right: 0; margin-right: 0; }
  .sviva__cta { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  background: var(--navy);
  padding: 18px 0;
  border-top: 1px solid rgba(143,170,184,.12);
  border-bottom: 1px solid rgba(143,170,184,.12);
}
.marquee__inner {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee__track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
}
.marquee__track span,
.marquee__track em {
  font-family: 'Cabin', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--white);
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 400;
  font-style: normal;
}
.marquee__track em { color: var(--steel); letter-spacing: 0; padding: 0 6px }
@keyframes marqueeScroll {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}
/* Pause on hover */
.marquee:hover .marquee__inner { animation-play-state: paused }

/* ═══════════════════════════════════════════
   SCROLLTELLING — secuencia de imágenes
   ═══════════════════════════════════════════ */
.scrolltelling {
  background: var(--charcoal);
  position: relative;
}
.scrolltelling__track {
  min-height: 400vh;
  position: relative;
}
.scrolltelling__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--charcoal);
}
.scrolltelling__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Video vertical para mobile — el JS decide si se usa (cae a canvas si no carga) */
.scrolltelling__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.scrolltelling__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    rgba(26,26,26,.75) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(26,26,26,.45) 0%, transparent 28%);
  pointer-events: none;
  z-index: 1;
}
.scrolltelling__copy {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
}
.scrolltelling__eyebrow {
  font-family: 'Cabin', sans-serif;
  font-size: clamp(9px, .9vw, 11px);
  font-weight: 300;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.scrolltelling__headline {
  font-family: 'Cabin', sans-serif;
  font-size: clamp(42px, 7.5vw, 116px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: .92;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4);
}
/* Hint scroll */
.scrolltelling__hint {
  position: absolute;
  bottom: clamp(44px, 6vw, 88px);
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity .5s;
  pointer-events: none;
}
.scrolltelling__hint span {
  font-family: 'Cabin', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--steel);
}
.scrolltelling__hint-line {
  width: 1px;
  height: 48px;
  background: var(--steel);
  transform-origin: top;
  animation: stHintLine 1.4s ease-in-out infinite;
}
@keyframes stHintLine {
  0%   { transform: scaleY(0); opacity: 0 }
  40%  { transform: scaleY(1); opacity: 1 }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom }
}
/* Loader */

/* ═══════════════════════════════════════════
   PROYECTOS
   ═══════════════════════════════════════════ */
:root {
  --gold:      #C9A85C;
  --sv-teal:   #3f5d59;
  --sv-copper: #a6541f;
}

.proyectos { background: var(--cream) }

.proyectos .section__title--xl {
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -.01em;
  line-height: 1.2;
  max-width: 22ch;
}

.proyectos .section__label {
  font-size: 16px;
  letter-spacing: 0.45em;
}

/* Accordion — franjas horizontales que se expanden hacia abajo */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion__item {
  position: relative;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: height 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__item--active {
  height: 420px;
}

.accordion__item--coming {
  background: #0D0D0D;
}

.accordion__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-expo);
}

.accordion__item--active img {
  transform: scale(1.03);
}

.accordion__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.55) 35%, rgba(10,10,10,.15) 65%, transparent 100%);
  z-index: 1;
}

/* Label horizontal — visible cuando la franja está cerrada */
.accordion__label {
  position: absolute;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 2;
  white-space: nowrap;
  font-family: 'Cabin', sans-serif;
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 1;
  transition: opacity 200ms ease;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.accordion__label--gold { color: var(--gold); }
.accordion__item--active .accordion__label { opacity: 0; }

/* Info — visible cuando está expandida */
.accordion__info {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms 200ms ease, transform 350ms 200ms ease;
}
.accordion__item--active .accordion__info {
  opacity: 1;
  transform: translateY(0);
}

.accordion__type {
  font-family: 'Cabin', sans-serif;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.accordion__type--gold { color: var(--gold); }

.accordion__name {
  font-family: 'Cabin', sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 200;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.9), 0 1px 6px rgba(0,0,0,.7);
}
.accordion__name--gold { color: var(--gold); text-shadow: none; }

/* SierraViva — tipografía de marca (igual al wordmark del logo) */
.accordion__name--sviva {
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(26px, 4vw, 54px);
}

/* Ubicación en la esquina inferior derecha — visible al estar activo */
.accordion__loc {
  position: absolute;
  bottom: 40px;
  right: 36px;
  z-index: 2;
  font-family: 'Cabin', sans-serif;
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms 200ms ease, transform 350ms 200ms ease;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.accordion__item--active .accordion__loc {
  opacity: 1;
  transform: translateY(0);
}

.accordion__meta {
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(245,244,242,.55);
  margin-bottom: 20px;
}
.accordion__meta--gold { color: rgba(201,168,92,.55); }

.accordion__features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms 300ms ease, transform 350ms 300ms ease;
}
.accordion__item--active .accordion__features {
  opacity: 1;
  transform: translateY(0);
}
.accordion__features li {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(245,244,242,.6);
  padding-left: 18px;
  position: relative;
}
.accordion__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--steel);
}

.accordion__cta {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(245,244,242,.4);
  padding-bottom: 4px;
  transition: border-color .3s;
}
.accordion__cta:hover { border-color: var(--cream); }

.accordion__cta--gold {
  color: var(--gold);
  border-bottom-color: rgba(201,168,92,.4);
}
.accordion__cta--gold:hover { border-bottom-color: var(--gold); }

.accordion__cta--pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(245,244,242,.45);
  border-radius: 2px;
  padding: 10px 22px;
  transition: background .3s, border-color .3s;
  position: relative;
  z-index: 10;
}
.accordion__cta--pill:hover {
  background: rgba(245,244,242,.1);
  border-color: var(--cream);
}

@media (max-width: 767px) {
  .accordion {
    gap: 4px;
  }
  .accordion__item {
    height: 60px;
    border-radius: 8px;
  }
  .accordion__item--active {
    height: 340px;
  }
  .accordion__label {
    left: 20px;
  }
  .accordion__info {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }
  .accordion__loc {
    /* Alineado verticalmente con la flecha del botón "Ver proyecto" */
    bottom: 36px;
    right: 24px;
    font-size: 10px;
    letter-spacing: .28em;
  }
}

/* ═══════════════════════════════════════════
   NOSOTROS
   ═══════════════════════════════════════════ */
.nosotros {
  background: var(--navy);
  color: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; position: relative;
  overflow: hidden; min-height: 900px;
}
.nosotros__media {
  position: relative; align-self: stretch; overflow: hidden;
}
.nosotros__media img {
  position: absolute; inset: 0; width: 100%; height: 108%;
  object-fit: cover; object-position: top center;
  filter: saturate(65%) contrast(1.05);
  will-change: transform, clip-path;
  /* --py = parallax (JS scroll) · --ps = scale de entrada (reveal) */
  transform: translateY(var(--py, 0px)) scale(var(--ps, 1));
}
.nosotros__rule {
  position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--steel);
  z-index: 2;
}

.nosotros__body {
  padding: clamp(60px, 9vw, 120px) clamp(24px, 6vw, 96px);
  position: relative;
  display: flex; flex-direction: column;
}
.nosotros__body .section__numeral { top: -10px; right: clamp(24px, 6vw, 96px) }
.nosotros__lead {
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.5;
  color: var(--gray-soft);
  letter-spacing: .01em;
  margin-bottom: 32px;
  max-width: 28ch;
}
.nosotros__bio {
  display: flex; flex-direction: column; gap: 22px;
  max-width: 46ch;
}
.nosotros__bio p {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--gray-light);
  letter-spacing: .02em;
  line-height: 1.75;
}
.nosotros__bio p:first-child {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--gray-soft);
  font-weight: 300;
}
.nosotros__bio strong {
  color: var(--white);
  font-weight: 700;
}
.nosotros__bio em {
  font-style: italic;
  color: var(--gray-soft);
}

/* Line-reveal: wrappers generados por JS */
.nos-line {
  display: block;
  overflow: hidden;
  line-height: inherit;
}
.nos-line-in {
  display: block;
}

/* ═══════════════════════════════════════════
   VISIÓN
   ═══════════════════════════════════════════ */
.vision {
  background: #0D0E10;
  padding: clamp(96px, 14vw, 200px) var(--pad-x);
  overflow: hidden;
}
.vision__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
}
.vision__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}
.vision__tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--steel);
  flex-shrink: 0;
}
.vision__title {
  font-size: clamp(42px, 7.2vw, 104px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cream);
}
.vision__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 620px;
}
.vision__p {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.72;
  color: var(--gray-light);
  letter-spacing: .02em;
}
.vision__close {
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vision__close p {
  font-family: 'Cabin', sans-serif;
  font-size: clamp(38px, 5.8vw, 84px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--white);
}
.vision__close p:last-child {
  color: var(--steel);
  font-style: italic;
}
@media (max-width: 767px) {
  .vision { padding: 88px var(--pad-x) 80px; }
  .vision__inner { gap: 44px; }
  /* En móvil bajamos el piso del clamp para que el título no domine la pantalla */
  .vision__title { font-size: clamp(34px, 9vw, 56px); }
  .vision__body { gap: 22px; }
  .vision__close p { font-size: clamp(32px, 9vw, 52px); }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  color: var(--gray-light);
  padding: 80px var(--pad-x) 32px;
}
.footer__top {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__col { display: flex; flex-direction: column; gap: 14px }
.footer__col--brand { gap: 24px }
.footer__logo { width: 96px; height: auto }
.footer__col p,
.footer__col a {
  text-transform: uppercase; font-size: 11px; letter-spacing: .2em;
  color: var(--gray-light); font-weight: 300;
}
.footer__head { color: var(--white) !important; margin-bottom: 6px }
.footer__col a { transition: color .35s var(--ease-expo) }
.footer__col a:hover { color: var(--white) }
.footer__social { display: flex; gap: 14px; margin-top: 8px }
.footer__social a {
  display: inline-flex; align-items: center; gap: 12px; color: var(--gray-light);
  transition: color .35s var(--ease-expo);
}
.footer__social-icon {
  width: 36px; height: 36px; flex: none;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .35s var(--ease-expo);
}
.footer__social svg { width: 14px; height: 14px }
.footer__social a:hover { color: var(--steel) }
.footer__social a:hover .footer__social-icon { border-color: var(--steel) }
.footer__bottom {
  max-width: var(--container); margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__bottom p {
  text-transform: uppercase; font-size: 10px; letter-spacing: .2em; color: var(--gray-mid);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav__links { display: none }
  .nav__burger { display: inline-block }
  .nav__inner { grid-template-columns: auto 1fr }
  .nav__burger { justify-self: end }

  .nosotros { grid-template-columns: 1fr }
  .nosotros__media { min-height: 360px; aspect-ratio: unset }
  .nosotros__media img { height: 100%; position: absolute; inset: 0; width: 100%; object-fit: cover; object-position: center top }
  .nosotros__rule { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 2px }
  .nosotros__bio { max-width: 100% }

  .footer__top { grid-template-columns: 1fr; gap: 32px }
  .footer__bottom { justify-content: flex-start }
}

@media (max-width: 480px) {
  .nav__inner { height: 60px }
  .nav__logo { height: 36px }
  .nosotros__lead { font-size: clamp(18px, 4.5vw, 22px) }
}

/* ─── VELOCITY TEXT ──────────────────────────────────────── */
.velocity-section {
  height: 28vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.velocity-sticky {
  width: 100%;
  display: flex;
  align-items: center;
}
.velocity-text {
  white-space: nowrap;
  font-family: 'Cabin', sans-serif;
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cream);
  transform-origin: bottom left;
  will-change: transform;
  user-select: none;
}
.velocity-text em {
  font-style: normal;
  color: var(--steel);
  margin: 0 .45em;
}

/* ─── SVIVA VIDEO INTRO ──────────────────────────────────── */
.sviva-video-intro {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.sviva-video-intro__vid {
  width: 100%;
  height: 56.25vw;
  object-fit: cover;
  display: block;
}

/* ─── WHATSAPP FAB ───────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s var(--ease-expo), box-shadow .25s var(--ease-expo);
  cursor: pointer;
}
.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
@media (max-width: 480px) {
  .whatsapp-fab { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
}
