/* ============================================================
   NóD — Landing Prototipo v1
   Paleta y tipografía fieles a la app (lib/colors.ts, typography.ts)
   ============================================================ */

:root {
  --cream:    #f5f1e8;
  --card:     #ffffff;
  --ink:      #0f0f0f;
  --ink-soft: #1a1916;
  --muted:    #807a72;
  --border:   #e5e0d6;
  --gold:     #c8a86b;
  --gold-dim: #a98c52;
  --clay:     #ba5744;  /* punto rojo del logo (nodo) */

  --black:    #0b0a09;
  --black-2:  #131210;
  --cream-on-ink: #efe9dc;
  --muted-on-ink: #8f887c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
ion-icon { pointer-events: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ─── Typographic helpers ─── */
.eyebrow, .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--gold { color: var(--gold); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.display-1 em, .display-2 em { color: var(--gold); }
.muted-ink { color: var(--muted); }

.section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  color: var(--muted);
  max-width: 52ch;
  margin-top: 22px;
  line-height: 1.55;
}
.section-lede strong { color: var(--ink); font-weight: 600; }
.section-lede--light { color: var(--muted-on-ink); }
.section-lede--light strong { color: var(--cream-on-ink); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.96rem;
  padding: 14px 26px; border-radius: 100px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn--gold { background: var(--gold); color: #1a1407; box-shadow: 0 8px 30px -8px rgba(200,168,107,.6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(200,168,107,.75); }
.btn--ghost { color: var(--cream-on-ink); border: 1px solid rgba(239,233,220,.25); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; margin-top: 38px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11,10,9,.92);
  border-bottom-color: rgba(239,233,220,.08);
  padding: 12px 32px;
}
.nav__brand { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.5rem; color: var(--cream-on-ink); letter-spacing: .01em; }
.nav__o { color: var(--gold); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: .9rem; color: var(--muted-on-ink); transition: color .25s; }
.nav__links a:hover { color: var(--cream-on-ink); }
.nav__cta { font-size: .86rem; font-weight: 600; color: var(--black); background: var(--gold); padding: 9px 18px; border-radius: 100px; transition: transform .3s var(--ease); }
.nav__cta:hover { transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  background: var(--black);
  display: flex; align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero__grain {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__glow {
  position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(200,168,107,.22), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__glow--final { top: 50%; left: 50%; transform: translate(-50%,-50%); right: auto; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__copy { max-width: 600px; }
.eyebrow { color: var(--gold); margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.0;
  color: var(--cream-on-ink); letter-spacing: -0.015em;
}
.hero__title .line { display: block; }
.hero__title .line--accent em { color: var(--gold); }
.hero__title .line--sub {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted-on-ink);
  margin-top: 22px; letter-spacing: 0;
}
.hero__lede {
  color: var(--muted-on-ink); font-size: clamp(1rem,1.4vw,1.18rem);
  max-width: 46ch; margin-top: 30px; line-height: 1.6;
}
.hero__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero__device { display: flex; justify-content: center; align-items: center; position: relative; }
.device__shadow {
  position: absolute; bottom: -4%; left: 50%; transform: translateX(-50%);
  width: 60%; height: 40px; background: rgba(0,0,0,.6); filter: blur(34px); border-radius: 50%; z-index: -1;
}

.hero__scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 22px; height: 36px; border: 1.5px solid rgba(239,233,220,.3); border-radius: 12px;
}
.hero__scrollcue span {
  display: block; width: 3px; height: 7px; background: var(--gold); border-radius: 2px;
  margin: 7px auto 0; animation: scrollcue 1.6s var(--ease) infinite;
}
@keyframes scrollcue { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 100%{opacity:0;transform:translateY(12px)} }

/* ============================================================
   PHONE / SCREEN PRIMITIVES
   ============================================================ */
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  background: #050505; border-radius: 44px; padding: 9px;
  box-shadow: 0 2px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,.7);
  border: 1px solid #232323;
}
.phone--sm { width: 252px; }
.phone--lg { width: 268px; }
.phone__island {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #000; border-radius: 16px; z-index: 5;
}
.phone__island--light { background: #000; }
.screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.screen--inicio { background: #0b0a09; }
.screen--light { background: var(--cream); }
.screen--chat { padding-bottom: 14px; }

/* ── Inicio screen ── */
.ui-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 46px 22px 0; color: var(--cream-on-ink);
}
.ui-top ion-icon { font-size: 19px; color: var(--muted-on-ink); }
.ui-spacer { width: 19px; }
.ui-wordmark { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.25rem; color: var(--cream-on-ink); }
.inicio-skyline { flex: 1; display: flex; align-items: flex-end; padding: 0 6px; }
.inicio-skyline svg { width: 100%; }
.inicio-skyline--mini { flex: 0 0 auto; }
.inicio-anchor { padding: 0 22px 30px; }
.inicio-eyebrow { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 8px; }
.inicio-greeting { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--cream-on-ink); margin-bottom: 18px; }
.inicio-greeting--sm { font-size: 1.3rem; }
.inicio-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #1a1407;
  font-weight: 600; font-size: .9rem; padding: 12px 20px; border-radius: 100px;
}
.inicio-cta ion-icon { font-size: 15px; }
.inicio-fab {
  position: absolute; right: 18px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(200,168,107,.16); border: 1px solid rgba(200,168,107,.4); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  backdrop-filter: blur(6px);
}

/* ── Generic screen head ── */
.cs-head { padding: 44px 20px 12px; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--cream-on-ink); }
.cs-head--ink { color: var(--ink); }

/* ── Swipe deck ── */
.swipe-stack { position: relative; flex: 1; margin: 4px 18px 22px; }
.swipe-stack--lg { margin: 8px 20px 28px; }
.swipe-card { position: absolute; inset: 0; border-radius: 22px; background: var(--card); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); overflow: hidden; }
.swipe-card--back1 { transform: scale(.94) translateY(14px); opacity: .6; }
.swipe-card--back2 { transform: scale(.88) translateY(28px); opacity: .35; }
.swipe-card--front { display: flex; flex-direction: column; }
.swipe-card--front.tilt { transform: rotate(-5deg) translateX(-4px); }
.sc-img { flex: 1; background: linear-gradient(135deg, #2a2622, #c8a86b 280%); position: relative; }
.sc-img--2 { background: linear-gradient(135deg, #3a2d3f, #7c3aed 320%); }
.sc-tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .14em; background: rgba(0,0,0,.55); color: var(--gold); padding: 5px 9px; border-radius: 6px; }
.sc-body { padding: 14px 16px 8px; }
.sc-title { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.sc-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.sc-actions { display: flex; justify-content: center; gap: 26px; padding: 10px 0 18px; }
.sc-x, .sc-heart { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.sc-x { background: #f0ece2; color: var(--muted); }
.sc-heart { background: var(--gold); color: #fff; }
.sc-heart ion-icon { font-size: 18px; }

/* ── Plan / chat ── */
.plan-card { margin: 6px 18px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.plan-card--light { background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 30px -16px rgba(0,0,0,.25); }
.pc-title { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--cream-on-ink); }
.plan-card--light .pc-title { color: var(--ink); }
.pc-when { font-size: .8rem; color: var(--muted); margin: 4px 0 12px; }
.pc-avatars { display: flex; }
.pc-avatars span { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1407; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; margin-left: -8px; border: 2px solid var(--cream); }
.plan-card .pc-avatars span { border-color: #181613; }
.plan-card--light .pc-avatars span { border-color: var(--card); }
.pc-avatars span:first-child { margin-left: 0; }
.pc-more { background: #d9d2c4 !important; color: var(--ink) !important; }
.pc-rsvp { margin-top: 12px; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.dot.go { background: #16a34a; } .dot.maybe { background: var(--gold); }

.chat-row { display: flex; margin: 8px 18px; }
.chat-row span { font-size: .82rem; padding: 9px 13px; border-radius: 16px; max-width: 80%; line-height: 1.4; }
.chat-row--in { justify-content: flex-start; } .chat-row--in span { background: #ece6da; color: var(--ink); border-bottom-left-radius: 4px; }
.chat-row--out { justify-content: flex-end; } .chat-row--out span { background: var(--gold); color: #1a1407; border-bottom-right-radius: 4px; }
.chat-row--ai { justify-content: flex-start; } .chat-row--ai span { background: var(--ink); color: var(--cream-on-ink); border-bottom-left-radius: 4px; }

.ai-plan-card { display: flex; align-items: center; gap: 12px; margin: 12px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.3); }
.ai-plan-card > ion-icon { font-size: 22px; color: var(--gold); }
.apc-title { font-weight: 700; font-size: .92rem; color: var(--ink); }
.apc-sub { font-size: .76rem; color: var(--muted); }
.apc-go { margin-left: auto; font-size: .78rem; font-weight: 700; color: #1a1407; background: var(--gold); padding: 7px 12px; border-radius: 100px; }

/* ── Book / split ── */
.book-card { margin: 8px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.bc-title { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--cream-on-ink); margin-bottom: 12px; }
.bc-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted-on-ink); margin-bottom: 8px; }
.bc-row ion-icon { font-size: 16px; color: var(--gold); }
.bc-confirm { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--gold); color: #1a1407; font-weight: 600; font-size: .9rem; padding: 12px; border-radius: 100px; margin-top: 6px; }
.book-done { margin: 4px 18px; text-align: center; font-size: .82rem; color: #16a34a; font-weight: 600; }

.split-card { margin: 10px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.split-title { font-weight: 700; font-size: .82rem; color: var(--ink); margin-bottom: 10px; }
.split-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); padding: 4px 0; }
.split-row strong { color: var(--ink); }
.split-row--each { border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 10px; }
.split-row--each strong { color: var(--gold); font-size: 1.05rem; }

/* ── Map screen ── */
.screen--map { background: #14110d; position: relative; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(200,168,107,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(200,168,107,.06) 1px, transparent 1px); background-size: 34px 34px; }
.pin { position: absolute; width: 38px; height: 38px; border-radius: 50% 50% 50% 2px; background: var(--gold); color: #1a1407; display: flex; align-items: center; justify-content: center; transform: rotate(-45deg); box-shadow: 0 8px 20px -6px rgba(0,0,0,.6); }
.pin ion-icon { transform: rotate(45deg); font-size: 18px; }
.pin--1 { top: 28%; left: 24%; } .pin--2 { top: 46%; left: 60%; } .pin--3 { top: 64%; left: 32%; } .pin--4 { top: 38%; left: 46%; background: #fff; }
.map-chips { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; padding: 0 16px; overflow: hidden; }
.map-chips span { font-size: .72rem; padding: 7px 13px; border-radius: 100px; background: rgba(255,255,255,.08); color: var(--muted-on-ink); white-space: nowrap; }
.map-chips .is-on { background: var(--gold); color: #1a1407; font-weight: 600; }

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
.section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--ink { background: var(--black); color: var(--cream-on-ink); }
.section .kicker { margin-bottom: 22px; }

/* ── Qué es — verticals grid ── */
.qe .display-2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.qe .muted-ink { display: inline; }
.verticals {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px;
}
.vert {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.vert:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); border-color: var(--gold); }
.vert__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.vert__icon ion-icon { font-size: 22px; }
.vert__name { font-weight: 600; font-size: .95rem; }

/* ── Cómo funciona — pinned ── */
.como { padding: 0; }
.como__sticky { min-height: 230vh; }
.como__grid {
  position: sticky; top: 0; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; align-items: center;
  padding-top: 80px; padding-bottom: 80px;
}
.como__steps { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 30px; }
.como__step { opacity: .28; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateX(-6px); }
.como__step.is-active { opacity: 1; transform: translateX(0); }
.como__num { font-family: var(--font-mono); font-size: .8rem; color: var(--gold); letter-spacing: .1em; }
.como__step h3 { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--cream-on-ink); margin: 4px 0 8px; }
.como__step p { color: var(--muted-on-ink); max-width: 42ch; font-size: 1.02rem; }
.como__visual { display: flex; justify-content: center; }
.como__screens { background: var(--black-2); }
.como__screen { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); display: flex; flex-direction: column; pointer-events: none; }
.como__screen.is-active { opacity: 1; }

/* ── Features ── */
.features .display-2 { margin-bottom: 30px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding-top: 6px; padding-bottom: 6px;
}
.feature--rev .feature__text { order: 2; }
.feature__index { font-family: var(--font-mono); font-size: .9rem; color: var(--gold); letter-spacing: .12em; }
.feature__text h3 { font-family: var(--font-display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: 10px 0 16px; line-height: 1.1; }
.feature__text h3 em { color: var(--gold); }
.feature__text p { color: var(--muted); font-size: 1.08rem; max-width: 44ch; }
.feature__art { display: flex; justify-content: center; }
.feature__art--chips { align-items: center; }

.mini-verticals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.mini-vert { aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: transform .35s var(--ease); }
.mini-vert:hover { transform: scale(1.08); }
.mini-vert ion-icon { font-size: 24px; }

/* ── CDMX ── */
.cdmx { overflow: hidden; }
.cdmx__bg {
  position: absolute; inset: -12% 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200,168,107,.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200,168,107,.08), transparent 45%),
    linear-gradient(180deg, #0b0a09, #14110d);
}
.cdmx__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,168,107,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,168,107,.05) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.cdmx__inner { position: relative; z-index: 2; }
.cdmx .display-1 { max-width: 16ch; }
.stats { display: flex; gap: 56px; margin-top: 60px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold); line-height: 1; }
.stat__label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); margin-top: 10px; }

/* ── Preview multi ── */
.preview__stage {
  display: flex; justify-content: center; align-items: center; gap: 0;
  margin-top: 70px; min-height: 80vh; position: relative;
}
.preview__stage .phone { margin: 0 -26px; }
.phone--center { z-index: 3; }
.screen--mini .ui-top { padding-top: 42px; }

/* ── Final ── */
.final { text-align: center; overflow: hidden; }
.final__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final .display-1 { max-width: 20ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #060504; color: var(--muted-on-ink); padding: 70px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__word { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.8rem; color: var(--cream-on-ink); }
.footer__brand p { margin-top: 14px; max-width: 38ch; font-size: .92rem; }
.footer__entity { font-size: .78rem !important; color: #6b655b; margin-top: 18px !important; }
.footer__col h4 { color: var(--cream-on-ink); font-size: .9rem; margin-bottom: 16px; }
.footer__col a { display: block; font-size: .9rem; padding: 5px 0; transition: color .25s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(239,233,220,.08); font-size: .82rem; }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.is-revealed [data-reveal], [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero__copy { margin: 0 auto; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__device { order: -1; }
  .verticals { grid-template-columns: repeat(2, 1fr); }
  .como__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 100px; }
  .como__visual { display: none; }
  .como__sticky { min-height: auto; }
  .como__grid { position: static; min-height: auto; }
  .como__step { opacity: 1; transform: none; }
  .feature, .feature--rev .feature__text { grid-template-columns: 1fr; order: 0; }
  .feature__art { margin-top: 30px; }
  .preview__stage .phone { margin: 0 -50px; transform: scale(.8); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .verticals { grid-template-columns: 1fr 1fr; }
  .stats { gap: 32px; }
  .nav__cta { display: none; }
  .preview__stage { flex-direction: column; min-height: auto; gap: 30px; }
  .preview__stage .phone { margin: 0; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero__scrollcue span { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   v2 ADDITIONS
   ============================================================ */

/* ─── Nav auth ─── */
.nav__auth { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: .9rem; color: var(--muted-on-ink); transition: color .25s; }
.nav__login:hover { color: var(--cream-on-ink); }

/* ─── Descubre (editorial tabs) ─── */
.descubre__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.descubre__head .kicker { margin-bottom: 18px; }
.descubre__all { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; color: var(--ink); white-space: nowrap; padding-bottom: 8px; transition: color .25s; }
.descubre__all:hover { color: var(--gold); }
.descubre__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.dcard {
  position: relative; aspect-ratio: 3 / 4.4; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  color: #fff; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(0,0,0,.45); }
.dcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.dcard:hover .dcard__bg { transform: scale(1.06); }
.dcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.78) 6%, rgba(0,0,0,.15) 55%, transparent); }
.dcard__icon { position: absolute; top: 20px; left: 20px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.dcard__icon ion-icon { font-size: 21px; color: #fff; }
.dcard__name { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.05; }
.dcard__sub { font-size: .85rem; color: rgba(255,255,255,.82); margin-top: 6px; }

/* ─── Trending rail ─── */
.trending__rail {
  display: flex; gap: 18px; margin-top: 50px; padding: 6px 28px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  max-width: calc(var(--maxw) + 56px); margin-left: auto; margin-right: auto;
}
.trending__rail::-webkit-scrollbar { display: none; }
.tcard {
  flex: 0 0 280px; scroll-snap-align: start; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 14px 36px -24px rgba(0,0,0,.3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tcard:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(0,0,0,.4); }
.tcard__img { aspect-ratio: 16 / 10; position: relative; background-size: cover; background-position: center; background-color: #2a2622; }
.tcard__cat { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.55); color: var(--gold); padding: 6px 10px; border-radius: 7px; }
.tcard__body { padding: 16px 18px 20px; }
.tcard__title { font-family: var(--font-display); font-style: italic; font-size: 1.32rem; line-height: 1.1; color: var(--ink); }
.tcard__meta { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.tcard__meta ion-icon { font-size: 14px; color: var(--gold); }

/* ─── Funciones grid (12) ─── */
.func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; }
.func {
  padding: 26px 24px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.func:hover { transform: translateY(-4px); border-color: rgba(200,168,107,.5); background: rgba(255,255,255,.06); }
.func__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(200,168,107,.14); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.func__icon ion-icon { font-size: 22px; color: var(--gold); }
.func__title { font-weight: 600; font-size: 1.05rem; color: var(--cream-on-ink); margin-bottom: 7px; }
.func__desc { font-size: .9rem; color: var(--muted-on-ink); line-height: 1.5; }

/* ─── Guías curadas ─── */
.guias__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.gcard {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gcard:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(0,0,0,.4); }
.gcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.gcard:hover .gcard__bg { transform: scale(1.06); }
.gcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.8) 8%, rgba(0,0,0,.1) 60%, transparent); }
.gcard__count { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.gcard__title { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.08; }

/* ─── La app (badges) ─── */
.app__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 50px; align-items: center; }
.app .display-1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.app__badges { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cream-on-ink); color: var(--black);
  padding: 11px 20px 11px 16px; border-radius: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.store-badge ion-icon { font-size: 28px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.store-badge strong { font-size: 1.08rem; font-weight: 700; }
.app__quals { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.app__quals span { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--muted-on-ink); }
.app__quals ion-icon { font-size: 17px; color: var(--gold); }
.app__device { display: flex; justify-content: center; }
.phone--tilt { transform: rotate(-4deg); }

/* ─── Final actions ─── */
.final__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.final__actions .btn { margin-top: 0; }
.btn--ink { background: var(--ink); color: var(--cream-on-ink); }
.btn--ink:hover { transform: translateY(-2px); background: #000; }

/* ─── Coming soon page ─── */
body.coming { background: var(--cream); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 30px; }
.coming__wrap { text-align: center; max-width: 540px; }
.coming__badge { width: 70px; height: 70px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 30px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.coming__eyebrow { margin-bottom: 18px; }
.coming__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 8vw, 5rem); color: var(--ink); line-height: 1; }
.coming__sub { color: var(--muted); font-size: 1.08rem; margin: 22px auto 0; max-width: 42ch; line-height: 1.6; }
.coming__back { margin-top: 38px; }
.coming__back span { font-size: 1.1rem; }

/* ─── Screenshots reales dentro del marco ─── */
.phone--shot .screen { background: #000; }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.como__screen .shot { position: absolute; inset: 0; }
/* Avatar real sobrepuesto en la pantalla de Perfil */
.screen--perfil { position: relative; }
.profile-avatar {
  position: absolute; top: 15.2%; left: 50%; transform: translateX(-50%);
  width: 29%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
}

/* ─── Glyph wordmark (identidad V2 · el acento es un "nodo") ─── */
.wordmark { font-family: var(--font-display); font-style: normal; font-weight: 600; letter-spacing: .005em; }
.wm-o { position: relative; display: inline-block; }
.wm-o::after {
  content: ''; position: absolute;
  width: .17em; height: .17em; border-radius: 50%;
  background: var(--clay);
  top: -.1em; right: -.04em;
  animation: nodo-land 1s var(--ease) .35s both;
}
@keyframes nodo-land {
  0%   { opacity: 0; transform: translate(-.5em, -.5em) scale(.3); }
  60%  { opacity: 1; transform: translate(.03em, .06em) scale(1.1); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .wm-o::after { animation: none; } }

/* ═══════════ ESCENA PINNED: Hero ↔ En tu bolsillo (handoff Apple) ═══════════ */
.scene { position: relative; height: 200vh; background: var(--black); }
.scene__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scene__bg { position: absolute; inset: 0; background: var(--black); z-index: 0; will-change: background-color; }
.scene .hero__grain { position: absolute; inset: 0; opacity: .045; z-index: 1; }
.scene__glow {
  position: absolute; top: -12%; right: -6%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(200,168,107,.20), transparent 62%);
  filter: blur(20px); z-index: 1; pointer-events: none; will-change: opacity;
}
/* copy layer */
.scene__copy { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.scene__copy a { pointer-events: auto; }
.scene__hero-copy {
  position: absolute; top: calc(50% + 30px); transform: translateY(-50%);
  left: 28px; max-width: 569px; will-change: opacity, transform;
}
.scene__hero-copy .eyebrow { color: var(--gold); margin-bottom: 28px; }
.scene__show-copy {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  width: 92%; max-width: 760px; text-align: center; opacity: 0; will-change: opacity, transform;
}
.scene__show-copy .kicker { margin-bottom: 18px; }
.scene__show-copy .display-1 { max-width: 15ch; margin: 0 auto; }
/* phones — base centered, posiciones via GSAP */
.scene__phones { position: absolute; inset: 0; z-index: 3; }
.s-phone { position: absolute; top: 50%; left: 50%; width: 300px; margin: -310px 0 0 -150px; will-change: transform, opacity; }
.s-phone .phone { width: 100%; }
.phone-bob { will-change: transform; }
@media (min-width: 1180px) {
  .scene__hero-copy { left: calc((100vw - 1180px) / 2 + 28px); }
}
/* fallback móvil: sin pin, apilado */
@media (max-width: 920px) {
  /* ── DISEÑO MÓVIL: sin pin. Hero limpio + carrusel deslizable de pantallas ── */
  .scene { height: auto !important; background: var(--black); }
  .scene__pin { position: static; height: auto; min-height: 0; overflow: visible; padding: 120px 0 8px; }
  .scene__bg { background: var(--black) !important; }
  .scene__glow { display: none; }
  .scene__copy { position: static; }
  /* Hero (texto, izquierda, sobre oscuro) */
  .scene__hero-copy {
    position: static; transform: none !important; top: auto; left: auto;
    width: auto; max-width: none; text-align: left; margin: 0; padding: 0 24px; opacity: 1 !important;
  }
  .scene__hero-copy .hero__lede { display: block; max-width: 38ch; }
  .scene__hero-copy .hero__actions { justify-content: flex-start; }
  /* "En tu bolsillo" — título + carrusel */
  .scene__show-copy {
    display: block; position: static; transform: none !important; top: auto; left: auto;
    width: auto; max-width: none; text-align: left; opacity: 1 !important; margin: 84px 0 0; padding: 0 24px;
  }
  .scene__show-copy .display-1 { font-size: clamp(1.9rem, 8.5vw, 2.7rem); color: var(--cream-on-ink); max-width: 14ch; margin: 0; }
  .scene__show-copy .kicker { color: var(--gold); }
  /* "En tu bolsillo": un solo teléfono Inicio grande y centrado */
  .scene__phones {
    position: static; transform: none; height: auto;
    display: flex; justify-content: center; padding: 26px 24px 0; margin: 0;
  }
  #ph-descubre, #ph-mapa { display: none; }
  .s-phone { position: static; transform: none; width: 246px; margin: 0; }
}

/* ─── En tu bolsillo — showcase hero-like ─── */
.preview { text-align: center; position: relative; overflow: hidden; padding-top: clamp(100px, 14vh, 170px); }
.preview__head { position: relative; z-index: 2; }
.preview__head .kicker { margin-bottom: 20px; }
.preview .display-1 { max-width: 15ch; margin: 0 auto; }
.preview__glow {
  position: absolute; top: 54%; left: 50%; transform: translate(-50%,-50%);
  width: 74vw; max-width: 940px; height: 760px;
  background: radial-gradient(circle, rgba(200,168,107,.18), transparent 62%);
  filter: blur(34px); pointer-events: none; z-index: 0;
}
.preview__stage { position: relative; z-index: 2; margin-top: 60px; min-height: 78vh; }
.preview .phone--lg { width: 304px; }
.preview__stage .phone { margin: 0 -34px; }

/* ─── Performance: promover a capas GPU lo que se anima en scroll ─── */
.phone { will-change: transform; transform: translateZ(0); }
[data-parallax-phone], [data-float] { will-change: transform; }
.cdmx__bg { will-change: transform; transform: translateZ(0); }
.shot, .dcard__bg, .gcard__bg, .tcard__img { backface-visibility: hidden; }

/* ─── v2 responsive ─── */
@media (max-width: 920px) {
  .nav__login { display: none; }
  .descubre__grid { grid-template-columns: repeat(2, 1fr); }
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .guias__grid { grid-template-columns: repeat(2, 1fr); }
  .app__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .app__badges, .app__quals { justify-content: center; }
  .app__device { order: -1; }
  .phone--tilt { transform: none; }
}
@media (max-width: 560px) {
  .descubre__grid { grid-template-columns: 1fr 1fr; }
  .guias__grid { grid-template-columns: 1fr 1fr; }
  .descubre__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Móvil: ritmo + rediseño de secciones (solo ≤920, escritorio intacto) ── */
@media (max-width: 920px) {
  .section { padding-top: 52px; padding-bottom: 52px; }

  /* Reorden móvil: "Lo que puedes hacer" pasa a 2º (después del hero) */
  body { display: flex; flex-direction: column; }
  .scene { order: 1; }
  #features { order: 2; }
  #descubre, #que-es, #como, #trending, #funciones, #guias, #cdmx, #app { order: 3; }
  .final, .footer { order: 4; }

  /* Features: el teléfono entra primero (efecto "app") y luego el texto */
  .feature { gap: 22px; padding-top: 16px; padding-bottom: 16px; }
  .feature__art { order: -1; margin-top: 0; }
  .feature--rev .feature__text { order: 0; }
  /* Sin marco en móvil → el screenshot llena edge-to-edge en el fullscreen */
  .feature__art .phone {
    will-change: transform; background: transparent; border: 0; padding: 0;
    border-radius: 20px; box-shadow: 0 26px 56px -28px rgba(0,0,0,.5);
  }
  .feature__art .phone .screen { border-radius: 20px; }
  .feature__art .phone .shot { border-radius: 20px; }

  /* Funciones compacta: 2 columnas, icono + título (sin descripción, más corta) */
  .func-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .func { padding: 16px 14px; border-radius: 14px; }
  .func__icon { width: 38px; height: 38px; margin-bottom: 10px; }
  .func__icon ion-icon { font-size: 19px; }
  .func__title { font-size: 0.92rem; margin-bottom: 0; line-height: 1.25; }
  .func__desc { display: none; }
}
