/* ============================================================
   VITA · Club Cinematográfico (v3)  — tokens + base + nav + footer
   ============================================================ */
:root {
  /* cinematic greens */
  --bg:        #0B1A14;   /* deepest cinematic base */
  --bg-2:      #0F1F18;   /* raised surface */
  --green:     #124734;   /* vita green */
  --green-deep:#10312B;
  --green-mid: #266F4F;
  /* warm sand accent (brand 'Clara' #E5B789) */
  --gold:      #E5B789;   /* primary warm accent — sand */
  --gold-2:    #EFD0AE;   /* lighter sand (hover) */
  --sand:      #E5B789;
  /* warm beiges (functional relief) */
  --beige:     #F9E6D8;
  --beige-warm:#F3CFB2;
  /* lights */
  --concrete:  #F9F8F9;
  --lavender:  #E5E1E6;
  --grey:      #D5D5DD;
  /* ink on light */
  --ink:       #10312B;

  /* alpha helpers on dark */
  --w-90: rgba(249,248,249,.90);
  --w-75: rgba(249,248,249,.75);
  --w-60: rgba(249,248,249,.58);
  --w-40: rgba(249,248,249,.40);
  --line: rgba(249,248,249,.12);
  --line-2: rgba(249,248,249,.18);

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Bellota Text", system-ui, -apple-system, sans-serif;

  --maxw: 1600px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --eo: cubic-bezier(.16,1,.3,1);
  --motion: 1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; }
.serif { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
.italic { font-style: italic; }
.gold { color: var(--gold); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* brand image treatment — subtle green cast so photos read as a "Vita space" */
.vtint { position: relative; }
.vtint::after { content: ""; position: absolute; inset: 0; background: var(--green); mix-blend-mode: color; opacity: .22; pointer-events: none; z-index: 1; }
.vtint > * { position: relative; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms!important; transition-duration:.001ms!important; } }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-md { max-width: 1300px; }
.wrap-sm { max-width: 1100px; }
.center { text-align: center; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(249,248,249,.16); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.noscroll::-webkit-scrollbar { display: none; }
.noscroll { scrollbar-width: none; }

/* ---------- reveal (timeline-safe, opt-in) ---------- */
html.anim3 .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--eo), transform 1s var(--eo); }
html.anim3 .rv.in { opacity: 1; transform: none; }
.dl1{transition-delay:.08s}.dl2{transition-delay:.16s}.dl3{transition-delay:.24s}.dl4{transition-delay:.32s}.dl5{transition-delay:.4s}

/* ---------- eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4em; color: var(--gold); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: color-mix(in srgb, var(--gold) 60%, transparent); }
.eyebrow.no-rule::before { display: none; }
.eyebrow.dark { color: var(--green-deep); }
.eyebrow.dark::before { background: color-mix(in srgb, var(--green-deep) 50%, transparent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .3em;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent;
  background: var(--gold); color: var(--bg); transition: background .3s, transform .4s var(--eo), gap .35s var(--eo), box-shadow .4s var(--eo); }
.btn:hover { background: var(--gold-2); gap: 14px; transform: translateY(calc(-2px * var(--motion))); }
.btn svg { transition: transform .35s var(--eo); }
.btn-lg { padding: 18px 38px; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--concrete); }
.btn-ghost:hover { background: rgba(249,248,249,.06); border-color: var(--gold); }
.btn-green { background: var(--green-deep); color: var(--gold); }
.btn-green:hover { background: #16382c; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #2ee06f; }

.tlink { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); padding: 0 0 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; color: var(--gold); transition: gap .35s var(--eo), color .3s, border-color .3s; }
.tlink:hover { gap: 13px; color: var(--gold-2); }
.tlink.white { color: #fff; border-color: rgba(255,255,255,.55); text-shadow: 0 1px 14px rgba(11,26,20,.55); }
.tlink.white:hover { color: #fff; border-color: var(--gold); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 200; transition: background .5s, backdrop-filter .5s, border-color .5s, padding .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.nav-in { max-width: var(--maxw); margin-inline: auto; padding: 16px var(--pad); display: flex; align-items: center; gap: 22px; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 26px; width: auto; }
.nav-logo .nl-sub { font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--w-60); border-left: 1px solid var(--line-2); padding-left: 11px; line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: clamp(2px, 1vw, 8px); margin-left: 14px; }
.nav-link { background: none; border: none; padding: 8px 11px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--w-75); position: relative; transition: color .25s; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--eo); }
.nav-link:hover { color: #fff; } .nav-link:hover::after, .nav-link.on::after { transform: scaleX(1); }
.nav-link.on { color: var(--gold); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; width: 42px; height: 42px; border: none; background: none; position: relative; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 10px; width: 22px; height: 1.5px; background: var(--concrete); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-burger span { top: 20px; } .nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.nav-burger span.x { background: transparent; } .nav-burger span.x::before { transform: translateY(6px) rotate(45deg); } .nav-burger span.x::after { transform: translateY(-6px) rotate(-45deg); }

/* lang toggle */
.lang { display: inline-flex; gap: 2px; }
.lang button { background: none; border: none; padding: 6px 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--w-40); transition: color .25s; }
.lang button.on { color: var(--gold); }
.lang button:hover { color: #fff; }

/* mobile sheet */
.sheet { display: none; flex-direction: column; gap: 2px; padding: 8px var(--pad) 30px; background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .35s, padding .4s; }
.sheet.open { max-height: 90vh; opacity: 1; }
html:not(.anim3) .sheet { transition: none; }
.sheet-link { display: flex; align-items: center; justify-content: space-between; background: none; border: none; border-top: 1px solid var(--line); padding: 16px 2px; font-family: var(--serif); font-size: 26px; color: var(--concrete); text-align: left; }
.sheet-link.on { color: var(--gold); font-style: italic; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }

/* ---------- studio toggle (contextual) ---------- */
.stog-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; }
.stog { display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--green-deep) 55%, transparent); backdrop-filter: blur(8px); }
.stog button { background: none; border: none; padding: 11px 22px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .26em; color: var(--w-60); transition: color .3s, background .3s; white-space: nowrap; }
.stog button:hover { color: #fff; }
.stog button.on { background: var(--gold); color: var(--green-deep); }

/* ---------- marquee ---------- */
.mq { border-block: 1px solid var(--line); overflow: hidden; background: color-mix(in srgb, var(--bg-2) 60%, transparent); backdrop-filter: blur(6px); }
.mq-track { display: flex; gap: 0; white-space: nowrap; padding: 18px 0; }
html.anim3 .mq-track { animation: mqmove calc(48s / var(--motion,1)) linear infinite; }
@keyframes mqmove { to { transform: translateX(-50%); } }
.mq-seg { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--serif); font-style: italic; font-size: clamp(22px,2.6vw,30px); color: var(--w-75); }
.mq-seg .dot { color: var(--gold); font-style: normal; font-size: 14px; }

/* ---------- footer ---------- */
.ft { position: relative; background: var(--green-deep); border-top: 1px solid var(--line); overflow: hidden; }
.ft-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: clamp(50px, 7vw, 84px); position: relative; z-index: 2; }
.ft-statement { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; color: var(--concrete); }
.ft-statement .italic { color: var(--gold); }
.ft-logo { height: 30px; margin-bottom: 22px; }
.ft-social { display: flex; gap: 12px; margin-top: 24px; }
.ft-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--w-75); transition: background .3s, color .3s, transform .3s var(--eo); }
.ft-social a:hover { background: var(--gold); color: var(--green-deep); transform: translateY(-3px); }
.ft-col h4 { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .35em; color: var(--gold); margin-bottom: 16px; }
.ft-col p { color: var(--w-75); font-size: 14px; line-height: 1.7; }
.ft-col .ft-cta { margin-top: 14px; }
.ft-watermark { position: relative; z-index: 2; padding-bottom: clamp(20px, 4vw, 50px); }
.ft-watermark-text { display: inline-block; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 7vw, 150px); line-height: .8; color: rgba(249,248,249,.05); letter-spacing: -.02em; user-select: none; white-space: nowrap; will-change: font-size; }
.ft-legal { border-top: 1px solid var(--line); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 11px; letter-spacing: .1em; color: var(--w-40); text-transform: uppercase; position: relative; z-index: 2; }
.ft-legal a:hover { color: var(--gold); }
.ft-legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- whatsapp fab ---------- */
.wa { position: fixed; right: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 150; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); transition: transform .4s var(--eo); }
.wa:hover { transform: scale(1.08); }

/* ---------- page enter ---------- */
.page { animation: none; }
html.anim3 .page { animation: pgin .6s var(--eo); }
@keyframes pgin { from { opacity: .4; transform: translateY(10px); } }

/* ---------- responsive nav/footer ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-right .stog-inline { display: none; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .sheet { display: flex; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-statement { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ft-top { grid-template-columns: 1fr; }
}
