/* =================================================================
   ALIA CORP — Venture Studio · sistema visual
   Misma familia que Esmero (Newsreader + Geist), matriz austera.
   Paletas conmutables vía [data-palette] en <html>.
   ================================================================= */

/* ---------- Paletas ---------- */
:root[data-palette="tinta"] {
  --bg:        #16120D;
  --fg:        #F1EBE0;
  --muted:     rgba(241,235,224,.60);
  --faint:     rgba(241,235,224,.40);
  --line:      rgba(241,235,224,.13);
  --line-2:    rgba(241,235,224,.24);
  --surface:   #1D1813;
  --surface-2: #231D16;
  --accent:    #5B8FD6;
  --accent-soft: rgba(91,143,214,.15);
  --on-accent: #10131A;
  --inv-bg:    #F1EBE0;
  --inv-fg:    #16120D;
  --inv-muted: rgba(22,18,13,.62);
  --inv-line:  rgba(22,18,13,.14);
}
:root[data-palette="papel"] {
  --bg:        #FAF7F2;
  --fg:        #1A1612;
  --muted:     rgba(26,22,18,.62);
  --faint:     rgba(26,22,18,.40);
  --line:      rgba(26,22,18,.12);
  --line-2:    rgba(26,22,18,.22);
  --surface:   #F4EFE7;
  --surface-2: #EEE6D9;
  --accent:    #2F5C99;
  --accent-soft: rgba(47,92,153,.13);
  --on-accent: #FFFFFF;
  --inv-bg:    #1A1612;
  --inv-fg:    #FAF7F2;
  --inv-muted: rgba(250,247,242,.62);
  --inv-line:  rgba(250,247,242,.16);
}
:root[data-palette="acero"] {
  --bg:        #F4F5F7;
  --fg:        #14171C;
  --muted:     rgba(20,23,28,.62);
  --faint:     rgba(20,23,28,.40);
  --line:      rgba(20,23,28,.11);
  --line-2:    rgba(20,23,28,.22);
  --surface:   #ECEEF1;
  --surface-2: #E2E6EB;
  --accent:    oklch(0.56 0.085 248);
  --accent-soft: oklch(0.56 0.085 248 / .13);
  --on-accent: #FFFFFF;
  --inv-bg:    #14171C;
  --inv-fg:    #F4F5F7;
  --inv-muted: rgba(244,245,247,.62);
  --inv-line:  rgba(244,245,247,.15);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","ss02","cv01";
  transition: background .6s ease, color .6s ease;
}
::selection { background: var(--accent); color: var(--on-accent); }

.serif { font-family: 'Newsreader', Georgia, serif; font-weight: 400; letter-spacing: -.015em; }
.italic-serif { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 300; }

/* Display headline w/ optical sizing */
.display {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.024em;
  line-height: 1.0;
  text-wrap: balance;
}
@supports (font-variation-settings: normal) {
  .display { font-variation-settings: "opsz" 72; }
}
.display em { font-style: italic; font-weight: 300; color: var(--accent); }

/* Eyebrow */
.eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

/* Section index number */
.sec-index {
  font-family: 'Newsreader', serif;
  font-style: italic; font-weight: 300;
  font-size: 13px; letter-spacing: .04em;
  color: var(--accent);
}

/* Hairlines */
.rule { height: 1px; background: var(--line); width: 100%; border: 0; }
.rule-2 { height: 1px; background: var(--line-2); width: 100%; border: 0; }

/* Layout container */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px)  { .wrap { padding: 0 40px; } }
@media (min-width: 1280px) { .wrap { padding: 0 64px; } }

/* Section spacing */
.section { padding: 96px 0; position: relative; }
@media (min-width: 768px)  { .section { padding: 128px 0; } }
@media (min-width: 1280px) { .section { padding: 160px 0; } }

/* Section header (eyebrow + index row) */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding-bottom: 26px; margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s ease, color .3s ease, border-color .3s ease;
}
.btn .arrow { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg); font-family:'Geist',sans-serif; font-size: 13.5px; font-weight: 500;
  text-decoration: none;
}
.btn-text .arrow { transition: transform .4s cubic-bezier(.2,.7,.2,1); color: var(--accent); }
.btn-text:hover .arrow { transform: translateX(4px); }

/* Inline ink link */
.ink-link { position: relative; text-decoration: none; color: inherit; }
.ink-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; opacity: .32; transition: opacity .25s ease;
}
.ink-link:hover::after { opacity: 1; }

/* ---------- Masthead ---------- */
.masthead { position: relative; z-index: 40; padding-top: 26px; }
.masthead-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); }
.brand-mark {
  width: 26px; height: 26px; flex: none; position: relative;
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-word {
  font-family: 'Newsreader', Georgia, serif; font-weight: 400;
  font-size: 27px; line-height: 1; letter-spacing: -.022em;
  font-variation-settings: "opsz" 50;
}
.brand-word .corp {
  font-family: 'Geist', sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin-left: 9px; vertical-align: middle;
}
.masthead-nav { display: none; align-items: center; gap: 26px; }
@media (min-width: 1220px) { .masthead-nav { display: flex; } }
.nav-link {
  font-family: 'Geist', sans-serif; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
  text-decoration: none; position: relative; padding: 6px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .4s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { right: 0; }

.masthead-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--accent); transform-origin: left;
  transition: width .12s linear;
}

/* ---------- Menu toggle (hamburger) ---------- */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .25s ease;
}
.menu-toggle:hover { border-color: var(--accent); }
@media (min-width: 1220px) { .menu-toggle { display: none; } }
.menu-toggle-bars { position: relative; width: 17px; height: 11px; display: block; }
.menu-toggle-bars i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--fg);
  border-radius: 2px; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.menu-toggle-bars i:nth-child(1) { top: 0; }
.menu-toggle-bars i:nth-child(2) { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 97%, #000);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1220px) { .mobile-menu { display: none; } }
.mobile-menu-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; gap: 4px; padding: 88px 24px 40px; max-width: 560px; margin: 0 auto;
}
.mm-link {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none; color: var(--fg);
  font-family:'Newsreader',serif; font-weight: 400; font-size: clamp(34px,9vw,52px);
  letter-spacing: -.02em; line-height: 1; padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
  transition: color .25s ease, opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.mobile-menu.open .mm-link { opacity: 1; transform: none; }
.mobile-menu.open .mm-link:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open .mm-link:nth-child(2) { transition-delay: .12s; }
.mobile-menu.open .mm-link:nth-child(3) { transition-delay: .18s; }
.mobile-menu.open .mm-link:nth-child(4) { transition-delay: .24s; }
.mobile-menu.open .mm-link:nth-child(5) { transition-delay: .30s; }
.mobile-menu.open .mm-link:nth-child(6) { transition-delay: .36s; }
.mobile-menu.open .mm-link:nth-child(7) { transition-delay: .42s; }
.mm-link:hover { color: var(--accent); }
.mm-idx { font-family:'Geist',sans-serif; font-size: 12px; letter-spacing: .16em; color: var(--accent); font-weight: 500; font-style: normal; }
.mm-foot {
  margin-top: 34px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease .36s, transform .5s cubic-bezier(.2,.7,.2,1) .36s;
}
.mobile-menu.open .mm-foot { opacity: 1; transform: none; }
.mm-cta { font-size: 15px; padding: 16px 30px; }
.mm-contact { font-family:'Geist',sans-serif; font-size: 14px; color: var(--muted); }
body.menu-open { overflow: hidden; }
.lang-toggle, .theme-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
}
.lang-toggle button, .theme-toggle button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); padding: 7px 11px; font: inherit; letter-spacing: inherit;
  transition: background .25s ease, color .25s ease;
}
.lang-toggle button[aria-pressed="true"], .theme-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.theme-toggle button { padding: 6px 9px; line-height: 0; }
.theme-toggle svg { display: block; }

/* ---------- Sticky compact bar ---------- */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.sticky-bar[data-state="visible"] { transform: translateY(0); }
.sticky-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0;
}
.sticky-nav { display: none; align-items: center; gap: 26px; }
@media (min-width: 768px) { .sticky-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 0; }
@media (min-width: 1024px) { .hero { padding-top: 72px; } }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.18fr 0.82fr; gap: 64px; }
}
.hero-h1 {
  font-size: clamp(46px, 8.4vw, 104px);
  margin: 22px 0 0;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted);
  max-width: 46ch; margin: 30px 0 0; text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; align-items: center; }
.hero-colophon {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
}
.hero-colophon .sep { color: var(--accent); }

/* Hero video specimen */
.specimen { display: flex; flex-direction: column; gap: 16px; }
.specimen-frame {
  position: relative; width: 100%; aspect-ratio: 4/5;
  background: #0c0a07; border: 1px solid var(--line-2); border-radius: 3px;
  overflow: hidden; box-shadow: 0 28px 70px -32px rgba(0,0,0,.6);
}
.specimen-frame video, .specimen-frame .ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.specimen-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,.34) 100%);
}
.specimen-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family:'Geist',sans-serif; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 500; color: #F1EBE0;
  background: rgba(12,10,7,.5); border: 1px solid rgba(241,235,224,.18);
  padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(6px);
}
.live-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%,100% { box-shadow: 0 0 0 7px transparent; }
}
.specimen-cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family:'Geist',sans-serif; font-size: 11.5px; color: var(--muted);
}
.specimen-cap b { color: var(--fg); font-weight: 500; }

/* ---------- Hero visual: panel switching ---------- */
.hv-panel { display: none; }
#hero-visual[data-hero-visual="indice"] .hv-panel[data-hv="indice"],
#hero-visual[data-hero-visual="metodo"] .hv-panel[data-hv="metodo"],
#hero-visual[data-hero-visual="sello"]  .hv-panel[data-hv="sello"],
#hero-visual[data-hero-visual="video"]  .hv-panel[data-hv="video"] { display: block; }

/* Studio card shell (shared by índice / método / sello) */
.studio-card {
  position: relative; border: 1px solid var(--line-2); border-radius: 4px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 26px 26px 22px; box-shadow: 0 28px 70px -38px rgba(0,0,0,.55);
  overflow: hidden;
}
.studio-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line) 100%),
    repeating-linear-gradient(180deg, transparent 0 39px, var(--line) 39px 40px);
  opacity: .5; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 88%, transparent);
}
.studio-card > * { position: relative; }
.studio-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.studio-card-kicker {
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--muted);
}
.studio-card-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family:'Geist',sans-serif; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--accent);
}
.studio-card-num {
  font-family:'Newsreader',serif; font-style: italic; font-weight: 300; font-size: 22px; color: var(--accent);
}
.studio-card-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .08em; color: var(--faint);
  text-transform: uppercase; font-weight: 500;
}
.studio-card-foot b { color: var(--accent); font-weight: 600; }
.studio-card-foot .sep { color: var(--line-2); }

/* Índice rows */
.studio-rows { display: flex; flex-direction: column; }
.studio-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.studio-row:last-child { border-bottom: 0; }
.studio-row-name {
  font-family:'Newsreader',serif; font-weight: 400; font-size: 23px; letter-spacing: -.015em; line-height: 1;
  grid-column: 1; grid-row: 1;
}
.studio-row-name .tld { font-size: .5em; color: var(--accent); font-style: italic; }
.studio-row-kind {
  grid-column: 1; grid-row: 2; color: var(--muted); font-size: 12.5px; font-family:'Geist',sans-serif;
}
.studio-row-stage {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-family:'Geist',sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  white-space: nowrap;
}
.studio-row-stage.activo { color: var(--accent); border-color: var(--accent); }

/* Método pipeline */
.pipe { display: flex; flex-direction: column; padding: 8px 0 2px; }
.pipe-step {
  position: relative; display: grid; grid-template-columns: 28px auto 1fr; align-items: center; gap: 16px;
  padding: 15px 0;
}
.pipe-step::after {
  content: ""; position: absolute; left: 13px; top: 50%; bottom: -50%; width: 1px; background: var(--line-2);
}
.pipe-step:last-child::after { display: none; }
.pipe-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 1px solid var(--line-2); margin-left: 4px;
  background: var(--bg); position: relative; z-index: 1;
}
.pipe-step.is-active .pipe-dot { background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); }
.pipe-i { font-family:'Newsreader',serif; font-style: italic; font-weight: 300; font-size: 18px; color: var(--accent); }
.pipe-name { font-family:'Newsreader',serif; font-weight: 400; font-size: 22px; letter-spacing: -.015em; }
.pipe-step:not(.is-active) .pipe-name { color: var(--muted); }

/* Sello editorial */
.sello-card {
  aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px 28px 26px; text-align: center;
}
.sello-card::before { opacity: .35; }
.sello-meta-top, .sello-meta-bot {
  display: flex; align-items: center; justify-content: space-between;
  font-family:'Geist',sans-serif; font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--faint);
}
.sello-glyph {
  font-family:'Newsreader',serif; font-style: italic; font-weight: 300; line-height: .7;
  font-size: clamp(120px, 20vw, 210px); color: var(--fg); margin: auto 0 0;
  font-variation-settings: "opsz" 72;
}
.sello-word {
  font-family:'Newsreader',serif; font-weight: 400; font-size: 30px; letter-spacing: -.02em; margin: 6px 0 auto;
}
.sello-word span {
  font-family:'Geist',sans-serif; font-weight: 500; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin-left: 8px; vertical-align: middle;
}

/* ---------- Ticker / marquee ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0; margin-top: 72px;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 38px; white-space: nowrap;
  animation: scrollx 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 300;
  font-size: 21px; color: var(--muted); display: inline-flex; align-items: center; gap: 38px;
}
.ticker-item::after { content: "✳"; font-style: normal; color: var(--accent); font-size: 13px; }

/* ---------- Manifesto ---------- */
.manifesto {
  font-family: 'Newsreader', Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.3; letter-spacing: -.018em;
  text-wrap: balance; max-width: 22ch;
}
.manifesto em { font-style: italic; font-weight: 300; color: var(--accent); }
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .manifesto-grid { grid-template-columns: 1.4fr .9fr; gap: 72px; align-items: start; } }
.manifesto-aside p { color: var(--muted); font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.manifesto-aside p + p { margin-top: 18px; }

/* ---------- Enfoque grid ---------- */
.enfoque-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .enfoque-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .enfoque-grid { grid-template-columns: repeat(3, 1fr); } }
.enfoque-cell {
  padding: 34px 30px 38px; border-top: 1px solid var(--line);
  position: relative; transition: background .4s ease;
}
.enfoque-cell:hover { background: var(--surface); }
/* vertical rules between columns */
@media (min-width: 640px) {
  .enfoque-cell:nth-child(2n) { border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .enfoque-cell:nth-child(2n) { border-left: 0; }
  .enfoque-cell:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}
.enfoque-num {
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .2em; font-weight: 500;
  color: var(--accent); display: block; margin-bottom: 20px;
}
.enfoque-title {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: 25px; letter-spacing: -.015em;
  line-height: 1.12; margin: 0 0 12px;
}
.enfoque-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; text-wrap: pretty; }

/* ---------- Método (pipeline) ---------- */
.metodo-row {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 38px 0; border-top: 1px solid var(--line); position: relative;
}
@media (min-width: 768px) {
  .metodo-row { grid-template-columns: 100px 1fr; column-gap: 36px; row-gap: 12px; align-items: baseline; }
  .metodo-num   { grid-column: 1; grid-row: 1 / span 2; }
  .metodo-title { grid-column: 2; grid-row: 1; }
  .metodo-desc  { grid-column: 2; grid-row: 2; }
}
@media (min-width: 1024px) {
  .metodo-row { grid-template-columns: 124px minmax(0,17ch) 1fr; column-gap: 48px; }
  .metodo-num   { grid-column: 1; grid-row: 1; }
  .metodo-title { grid-column: 2; grid-row: 1; }
  .metodo-desc  { grid-column: 3; grid-row: 1; }
}
.metodo-row:last-child { border-bottom: 1px solid var(--line); }
.metodo-num {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 300;
  font-size: clamp(40px, 5vw, 68px); color: var(--accent); line-height: .9;
  font-variation-settings: "opsz" 60;
}
.metodo-title {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(24px,2.6vw,32px);
  letter-spacing: -.018em; line-height: 1.08; margin: 0;
}
.metodo-desc { color: var(--muted); font-size: 16px; line-height: 1.62; margin: 0; max-width: 56ch; text-wrap: pretty; }
.metodo-row:hover .metodo-num { transform: translateY(-3px); }
.metodo-num { transition: transform .4s cubic-bezier(.2,.7,.2,1); }

/* ---------- Portafolio ---------- */
.port-row {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: 30px 0; border-top: 1px solid var(--line); align-items: center;
  text-decoration: none; color: var(--fg); transition: padding-left .4s cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 900px) {
  .port-row { grid-template-columns: 56px 1.1fr 1.5fr auto; gap: 32px; padding: 36px 0; }
}
.port-row:last-of-type { border-bottom: 1px solid var(--line); }
.port-row.is-link:hover { padding-left: 16px; }
.port-idx { font-family:'Geist',sans-serif; font-size: 12px; color: var(--faint); font-weight: 500; }
.port-name {
  font-family:'Newsreader',serif; font-weight: 400; font-size: clamp(28px,3.4vw,42px);
  letter-spacing: -.02em; line-height: 1; display: flex; align-items: baseline; gap: 12px;
}
.port-name .tld { font-size: .42em; color: var(--accent); font-style: italic; font-weight: 300; }
.port-desc { color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.port-meta { display: flex; align-items: center; gap: 18px; justify-content: flex-start; }
@media (min-width: 900px) { .port-meta { justify-content: flex-end; } }
.status {
  font-family:'Geist',sans-serif; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); white-space: nowrap;
}
.status.activo { color: var(--accent); border-color: var(--accent); }
.port-arrow { color: var(--accent); font-size: 20px; opacity: 0; transform: translateX(-6px);
  transition: opacity .4s ease, transform .4s ease; }
.port-row.is-link:hover .port-arrow { opacity: 1; transform: translateX(0); }

/* striped placeholder fill for portfolio thumbnails (if used) */
.ph {
  background:
    repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 11px, var(--surface) 11px, var(--surface) 22px);
  display: flex; align-items: center; justify-content: center;
}
.ph-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px;
  letter-spacing: .04em; color: var(--faint); text-transform: uppercase;
}

/* ---------- Founders (inverted block) ---------- */
.invert {
  background: var(--inv-bg); color: var(--inv-fg);
  border-radius: 6px;
}
.invert .eyebrow { color: var(--accent); }
.invert .eyebrow::before { background: var(--accent); }
.invert .rule { background: var(--inv-line); }
.founders-inner { padding: 64px 32px; }
@media (min-width: 768px)  { .founders-inner { padding: 88px 64px; } }
@media (min-width: 1280px) { .founders-inner { padding: 104px 96px; } }
.founders-h2 {
  font-family:'Newsreader',serif; font-weight: 400; font-size: clamp(34px,5vw,66px);
  letter-spacing: -.024em; line-height: 1.02; text-wrap: balance; margin: 22px 0 0;
}
.founders-h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.brings {
  display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 56px;
  border-top: 1px solid var(--inv-line);
}
@media (min-width: 640px)  { .brings { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .brings { grid-template-columns: repeat(4,1fr); } }
.brings-cell { padding: 28px 24px 4px 0; border-bottom: 1px solid var(--inv-line); }
@media (min-width: 1024px) { .brings-cell { border-bottom: 0; padding-right: 28px; } }
.brings-num { font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--accent); font-weight: 500; }
.brings-title { font-family:'Newsreader',serif; font-size: 21px; font-weight: 400; margin: 16px 0 8px; letter-spacing: -.01em; }
.brings-desc { color: var(--inv-muted); font-size: 14px; line-height: 1.55; margin: 0; text-wrap: pretty; }

/* ---------- Talento ---------- */
.talent-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .talent-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.role-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.role-row:last-child { border-bottom: 1px solid var(--line); }
.role-name { font-family:'Newsreader',serif; font-size: 22px; font-weight: 400; letter-spacing: -.012em; }
.role-tag { font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 500; }

/* ---------- ALIA Core stats ---------- */
.core-stats {
  display: flex; flex-wrap: wrap; gap: 40px; margin-top: 32px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.core-stat { display: flex; flex-direction: column; gap: 8px; }
.core-stat-n {
  font-family:'Newsreader',serif; font-weight: 400; font-size: clamp(38px,5vw,56px);
  letter-spacing: -.02em; line-height: .9; color: var(--accent);
  font-variation-settings: "opsz" 60;
}
.core-stat-l {
  font-family:'Geist',sans-serif; font-size: 12px; letter-spacing: .04em;
  color: var(--muted); max-width: 18ch; line-height: 1.4;
}

/* ---------- Portfolio note ---------- */
.port-note {
  margin: 28px 0 0; font-family:'Newsreader',serif; font-style: italic; font-weight: 300;
  font-size: 19px; color: var(--faint);
}

/* ---------- Vault (investor data room) ---------- */
.vault {
  border: 1px solid var(--line-2); border-top: 2px solid var(--accent); border-radius: 6px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  overflow: hidden; box-shadow: 0 28px 70px -40px rgba(0,0,0,.5);
}
.vault-inner {
  display: grid; grid-template-columns: 1fr; gap: 40px; padding: 48px 28px;
}
@media (min-width: 960px) {
  .vault-inner { grid-template-columns: 1.08fr .92fr; gap: 64px; padding: 76px 64px; align-items: center; }
}
.vault-h2 {
  font-family:'Newsreader',serif; font-weight: 400; font-size: clamp(30px,4.4vw,54px);
  letter-spacing: -.024em; line-height: 1.02; text-wrap: balance; margin: 20px 0 0;
}
.vault-h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.vault-body { color: var(--muted); font-size: 16px; line-height: 1.62; max-width: 48ch; margin: 24px 0 0; text-wrap: pretty; }
.vault-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px;
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
}
.vault-meta .sep { color: var(--accent); }

/* gate */
.gate {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 32px 30px;
}
.gate-lock { display: inline-flex; color: var(--accent); margin-bottom: 18px; }
.gate-lock svg { width: 30px; height: 30px; display: block; }
.gate-label {
  display: block; font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.gate-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gate-input {
  flex: 1; min-width: 150px; font-family: ui-monospace,'SF Mono',Menlo,monospace;
  font-size: 15px; letter-spacing: .12em; color: var(--fg);
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); transition: border-color .25s ease;
}
.gate-input::placeholder { color: var(--faint); letter-spacing: .18em; }
.gate-input:focus { outline: none; border-color: var(--accent); }
.gate-btn { flex: none; }
.gate-error { color: #d9705a; font-size: 13px; margin: 12px 0 0; font-family:'Geist',sans-serif; }
.gate-error[hidden] { display: none; }
.gate-req { display: inline-block; margin-top: 20px; font-family:'Geist',sans-serif; font-size: 13.5px; color: var(--muted); }
.gate-ok {
  display: inline-flex; align-items: center; gap: 8px;
  font-family:'Geist',sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
#gate-unlocked[hidden] { display: none; }
.gate-open { display: inline-flex; }
.gate-hint { color: var(--muted); font-size: 12.5px; margin: 16px 0 0; font-family:'Geist',sans-serif; }

/* investor document list */
.doc-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex; align-items: center; gap: 15px; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  padding: 14px 16px; color: var(--fg);
  transition: border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
.doc-item:hover { border-color: var(--accent); transform: translateX(3px); background: var(--surface-2); }
.doc-ext {
  flex: none; width: 46px; height: 40px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: ui-monospace,'SF Mono',Menlo,monospace; font-size: 10px; letter-spacing: .06em;
  font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); background: var(--accent-soft);
}
.doc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.doc-name { font-family:'Geist',sans-serif; font-weight: 500; font-size: 14.5px; }
.doc-meta { font-size: 12px; color: var(--muted); font-family:'Geist',sans-serif; }
.doc-arrow { flex: none; color: var(--accent); font-size: 17px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.doc-item:hover .doc-arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer { padding: 110px 0 64px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.3fr .7fr; gap: 80px; } }
.foot-greet {
  font-family:'Newsreader',serif; font-weight: 400; font-size: clamp(40px,6vw,82px);
  letter-spacing: -.026em; line-height: .98; text-wrap: balance;
}
.foot-greet em { font-style: italic; font-weight: 300; color: var(--accent); }
.foot-colophon { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 48ch; margin-top: 28px; text-wrap: pretty; }
.foot-meta {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 36px;
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
}
.foot-meta .sep { color: var(--accent); }
.foot-h4 {
  font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin: 0 0 18px;
}
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.foot-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--fg);
  text-decoration: none; font-size: 14.5px; transition: color .25s ease;
}
.foot-link .arrow { color: var(--accent); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.foot-link:hover { color: var(--accent); }
.foot-link:hover .arrow { transform: translateX(4px); }
.foot-contact { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.foot-contact .row { display: flex; align-items: baseline; gap: 16px; font-size: 14.5px; }
.foot-contact .label { font-family:'Geist',sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); width: 96px; flex: none; font-weight: 500; }
.foot-contact a { color: var(--fg); text-decoration: none; }
.foot-sello {
  margin-top: 96px; display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.foot-sello .glyph {
  font-family:'Newsreader',serif; font-style: italic; font-weight: 300; line-height: .8;
  font-size: clamp(96px, 15vw, 188px); color: var(--fg);
  font-variation-settings: "opsz" 72;
}
.foot-sello .rule { width: 44px; }
.foot-sello-meta {
  display: flex; align-items: center; gap: 18px;
  font-family:'Geist',sans-serif; font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* line draw for section heads */
.draw-line { transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.draw-line.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .draw-line { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker-track { animation: none !important; }
  .live-dot { animation: none !important; }
  .mm-link, .mm-foot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-progress span { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tweaks panel ---------- */
#tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: #16120D; color: #F1EBE0;
  border: 1px solid rgba(241,235,224,.14);
  border-radius: 18px; padding: 18px 20px; width: 248px;
  font-family:'Geist',sans-serif; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  display: none;
}
#tweaks.on { display: block; }
#tweaks .tw-title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin-bottom: 12px; }
#tweaks .tw-group + .tw-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(241,235,224,.12); }
.swatches { display: flex; align-items: center; gap: 10px; }
.swatch {
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer; padding: 0;
  border: 1px solid rgba(241,235,224,.22); position: relative; transition: transform .2s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #16120D, 0 0 0 4px #F1EBE0; }
.tw-label { font-size: 11px; opacity: .6; margin-top: 10px; }
.dir-opts { display: flex; flex-direction: column; gap: 7px; }
.dir-opt {
  text-align: left; background: transparent; border: 1px solid rgba(241,235,224,.16);
  border-radius: 10px; padding: 9px 12px; cursor: pointer; color: #F1EBE0;
  font: inherit; transition: border-color .2s ease, background .2s ease;
}
.dir-opt small { display: block; font-size: 10.5px; opacity: .5; margin-top: 2px; letter-spacing: .02em; }
.dir-opt[aria-pressed="true"] { border-color: #5B8FD6; background: rgba(91,143,214,.14); }
.dir-opt b { font-weight: 500; font-size: 12.5px; letter-spacing: .02em; }

/* hide focus ring noise but keep keyboard a11y */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
