﻿/* ==========================================================================
   CECILIA GAONA — sistema visual
   Paleta tomada del logo: marfil · azul petróleo · dorado champán
   Tipografía: Cormorant Garamond (titulares) + Manrope (texto)
   ========================================================================== */

:root {
  --bg: #f6f1e8;
  --bg-2: #efe7d9;
  --surface: #fffcf6;
  --surface-2: #faf5ec;
  --ink: #0b2f40;
  --ink-2: #3b5260;
  --muted: #6a7a82;
  --line: rgba(11, 47, 64, .12);
  --line-2: rgba(11, 47, 64, .22);
  --petrol: #0d4a66;
  --petrol-2: #08324a;
  --gold: #a87a35;          /* texto dorado: contraste suficiente sobre marfil */
  --gold-2: #c9a15a;
  --gold-3: #ecd49a;
  --gold-soft: rgba(201, 161, 90, .16);
  --on-ink: #f6f1e8;
  --logo-body: #0d4a66;
  --overlay: rgba(7, 24, 32, .72);
  --shadow: 0 40px 80px -40px rgba(8, 40, 56, .38);
  --shadow-sm: 0 14px 30px -18px rgba(8, 40, 56, .35);
  --gold-grad: linear-gradient(120deg, #a8793a 0%, #c9a15a 45%, #e3c587 70%, #b88a45 100%);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --nav-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071820; --bg-2: #0a1f29; --surface: #0e2633; --surface-2: #0b212c;
    --ink: #f1e9dc; --ink-2: #c9cfcb; --muted: #93a4aa;
    --line: rgba(241, 233, 220, .1); --line-2: rgba(241, 233, 220, .2);
    --petrol: #86bdd2; --petrol-2: #5d9bb4;
    --gold: #d6b46c; --gold-2: #d6b46c; --gold-3: #ecd49a; --gold-soft: rgba(214, 180, 108, .14);
    --on-ink: #071820; --logo-body: #efe6d6; --overlay: rgba(3, 12, 16, .78);
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071820; --bg-2: #0a1f29; --surface: #0e2633; --surface-2: #0b212c;
  --ink: #f1e9dc; --ink-2: #c9cfcb; --muted: #93a4aa;
  --line: rgba(241, 233, 220, .1); --line-2: rgba(241, 233, 220, .2);
  --petrol: #86bdd2; --petrol-2: #5d9bb4;
  --gold: #d6b46c; --gold-2: #d6b46c; --gold-3: #ecd49a; --gold-soft: rgba(214, 180, 108, .14);
  --on-ink: #071820; --logo-body: #efe6d6; --overlay: rgba(3, 12, 16, .78);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
::selection { background: var(--gold-2); color: #071820; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: 8px; }
.skip:focus { top: 16px; }

/* grano muy fino sobre toda la página */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 150; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .035; }

/* ---------------------------------------------------------------- tipografía */
.h1, .h2, .h3, .h4, .hero-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; margin: 0; color: var(--ink); }
.h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .92; }
.h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; margin-bottom: .45em; }
.h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; margin-bottom: .45em; }
.h4 { font-size: 1.45rem; line-height: 1.18; margin-bottom: .5em; font-weight: 600; }
.h1 em, .h2 em, .h3 em, .hero-title em { color: var(--gold); font-weight: 400; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.65; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.eyebrow .num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0; color: var(--muted); }
.eyebrow .num::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line-2); margin-left: 12px; vertical-align: middle; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 4px var(--gold-soft); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.source { font-size: .8rem; color: var(--muted); margin-top: 18px; }
.source a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.source a:hover { color: var(--gold); border-color: var(--gold); }

/* texto dividido: máscaras que no recortan tildes ni descendentes */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em .16em; margin: -.14em -.04em -.16em; }
.sc { display: inline-block; will-change: transform; }

/* ---------------------------------------------------------------- botones */
.btn {
  --bh: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px; border-radius: 999px; isolation: isolate; overflow: hidden;
  font: 600 .93rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i { transform: translate(3px, 0); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: .85rem; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink::before { background: var(--gold-grad); }
.btn-ink:hover { color: #0b2f40; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--on-ink); border-color: var(--ink); }
.btn-gold { background: var(--gold-grad); color: #0b2f40; box-shadow: 0 16px 30px -16px rgba(168, 121, 58, .7); }
.btn-gold::before { background: var(--ink); }
.btn-gold:hover { color: var(--on-ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: border-color .4s, background-color .4s, transform .4s var(--ease);
}
.icon-btn:hover { border-color: var(--gold-2); background: var(--gold-soft); }

/* ---------------------------------------------------------------- logo */
.logo-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-svg .lg-body { fill: var(--logo-body); transition: fill .6s var(--ease); }
.logo-svg .lg-dots circle, .logo-svg .lg-gold { transform-box: fill-box; transform-origin: center; }

/* ---------------------------------------------------------------- precarga */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg);
}
html:not(.js) .preloader { display: none; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pre-mark { width: clamp(150px, 22vw, 210px); aspect-ratio: 1; }
.pre-word { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pre-name { font: 500 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); letter-spacing: .02em; color: var(--ink); }
.pre-rule { width: 120px; height: 1px; background: var(--gold-grad); transform: scaleX(0); }
.pre-sub { font: 600 .68rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: 0; }
.js .pre-name { opacity: 0; }

/* ---------------------------------------------------------------- navegación */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease), height .5s var(--ease);
}
.nav.is-scrolled {
  --nav-h: 66px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-in { height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 600 1.42rem/1 var(--serif); letter-spacing: .01em; }
.brand-text small { font: 600 .6rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a {
  position: relative; padding: 10px 14px; font: 500 .9rem/1 var(--sans); color: var(--ink-2); transition: color .35s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-ink {
  position: absolute; bottom: 2px; left: 0; height: 5px; width: 5px; border-radius: 50%;
  background: var(--gold-2); opacity: 0; transition: transform .7s var(--ease), opacity .4s;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; }

.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(var(--nav-h) + 24px) 24px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.mmenu[hidden] { display: none; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font: 500 clamp(1.8rem, 7vw, 2.4rem)/1.1 var(--serif);
}
.mmenu a span { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; color: var(--gold); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 96px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-rings circle { fill: none; stroke: var(--gold-2); stroke-width: .8; opacity: .28; vector-effect: non-scaling-stroke; }
.hero-glow {
  position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -18vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--gold-soft), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title {
  font-size: clamp(3.4rem, min(8.6vw, 14.5svh), 8.4rem); line-height: .9; margin: 0 0 .32em; font-weight: 500;
}
.ht-line { display: block; overflow: hidden; padding: .06em .04em .14em; margin: -.06em -.04em -.14em; }
.ht-in { display: inline-block; will-change: transform; }
.hero-title em {
  font-weight: 400; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero-lead { max-width: 36em; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 40px; }
.hero-creds { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero-creds li { display: flex; gap: 12px; align-items: flex-start; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.hero-creds .i { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.hero-creds b { display: block; font: 600 .9rem/1.3 var(--sans); color: var(--ink); margin-bottom: 2px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
.arch {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden;
  box-shadow: var(--shadow); background-color: var(--bg-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.hv-ring { position: absolute; inset: -7%; width: 114%; height: 114%; pointer-events: none; transform: rotate(-110deg); overflow: visible; }
.hv-arc { fill: none; stroke: url(#hvGold); stroke-width: .9; stroke-linecap: round; }
.hv-arc-a { stroke-dasharray: 38 62; }
.hv-arc-b { stroke-dasharray: 22 78; stroke-dashoffset: -52; stroke-width: 1.4; }
.hv-badge {
  position: absolute; left: -34px; bottom: 11%; width: 104px; height: 104px; border-radius: 50%; padding: 14px;
  background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.hv-badge span { display: block; width: 100%; height: 100%; }
.hv-card {
  position: absolute; right: -22px; top: 16%; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hv-k { font: 600 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hv-v { font: 500 1.3rem/1 var(--serif); }
.hv-spine { position: absolute; right: -44px; bottom: 18%; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.hv-spine i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-grad); opacity: .85; }
.hv-spine i:nth-child(odd) { width: 9px; height: 9px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid var(--line-2); border-radius: 20px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold-2); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- franja */
.ribbon { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--surface-2); }
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon-item { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font: italic 400 clamp(1.6rem, 3vw, 2.3rem)/1 var(--serif); color: var(--ink); white-space: nowrap; }
.ribbon-item i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-grad); }

/* ---------------------------------------------------------------- secciones */
.section { position: relative; padding: clamp(72px, 8vw, 112px) 0; }
.section-alt { background: var(--bg-2); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }
.sec-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-head-split > div { max-width: 760px; }
.sec-note { color: var(--muted); max-width: 22em; font-size: .92rem; margin: 0 0 1.1em; }

.media { position: relative; overflow: hidden; background-size: cover; background-position: center; background-color: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.media img.is-loaded { opacity: 1; }

/* ---------------------------------------------------------------- perfil */
.about { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-media { position: relative; padding: 0 12% 16% 0; }
.about-main { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.about-main img { object-position: 52% 50%; }
.about-sub {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 5; margin: 0; border-radius: var(--r);
  border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.about-ring { position: absolute; left: -9%; top: -7%; width: 38%; pointer-events: none; }
.about-ring circle { fill: none; stroke: var(--gold-2); stroke-width: 1; stroke-dasharray: 2 5; opacity: .8; }
.about-copy { padding-top: clamp(0px, 3vw, 40px); }
.about-copy > p:not(.lead) { color: var(--ink-2); }
.facts { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--bg); font-weight: 600; font-size: .95rem; }
.facts .i { width: 24px; height: 24px; color: var(--gold); }
.facts small { display: block; font: 600 .64rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts a { border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.facts a:hover { color: var(--gold); border-color: var(--gold); }
.quote { position: relative; margin: 0; padding: 30px 32px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote .q-mark { position: absolute; top: -16px; left: 26px; width: 34px; height: 34px; color: var(--gold-2); background: var(--bg); padding: 4px; border-radius: 50%; }
.quote p { font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--serif); color: var(--ink); margin-bottom: 20px; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.q-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.quote footer b { display: block; font-size: .95rem; }
.quote footer small { color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- áreas */
.areas { display: flex; gap: 14px; height: clamp(460px, 62vh, 580px); }
.area {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; isolation: isolate;
  transition: flex-grow .9s var(--ease); color: #f6f1e8; outline-offset: 4px;
}
.area.is-open { flex-grow: 2.2; }
.area .media { position: absolute; inset: 0; z-index: -2; }
.area .media img { transform: scale(1.08); transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.area.is-open .media img { transform: scale(1); }
.area::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 32, .15) 0%, rgba(7, 24, 32, .35) 40%, rgba(7, 24, 32, .9) 100%);
  transition: opacity .8s var(--ease);
}
.area-in { position: absolute; inset: auto 0 0; padding: clamp(20px, 2vw, 30px); }
.area-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.area-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(246, 241, 232, .4); background: rgba(7, 24, 32, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.area-icon .i { width: 24px; height: 24px; color: #ecd49a; }
.area-n { font: italic 400 1.2rem/1 var(--serif); color: rgba(246, 241, 232, .75); }
.area-k { font: 600 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #ecd49a; }
.area h3 { font: 500 clamp(1.35rem, 1.7vw, 1.6rem)/1.08 var(--serif); margin: 10px 0 0; color: #fffaf2; transition: font-size .8s var(--ease); }
.area.is-open h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.area-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.area-more > div { overflow: hidden; min-height: 0; }
.area.is-open .area-more { grid-template-rows: 1fr; }
.area-more p { margin: 14px 0 16px; max-width: 30em; color: rgba(246, 241, 232, .88); font-size: .98rem; opacity: 0; transform: translateY(12px); transition: opacity .6s .15s var(--ease), transform .8s .15s var(--ease); }
.area.is-open .area-more p { opacity: 1; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: .74rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(246, 241, 232, .3); color: #fffaf2; }

/* ---------------------------------------------------------------- trayectoria */
.traj { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.traj-side { position: sticky; top: calc(var(--nav-h) + 40px); }
.traj-side > p { color: var(--ink-2); max-width: 30em; }
.traj-mark { width: 190px; height: 190px; margin-top: 36px; opacity: .95; }
.traj-mark span { display: block; width: 100%; height: 100%; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 52px; }
.tl-rail { position: absolute; left: 14px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.tl-fill { position: absolute; inset: 0 0 auto; height: 100%; background: linear-gradient(var(--gold-3), var(--gold-2), #a8793a); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding: 0 0 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute; left: -52px; top: 2px; width: 29px; height: 29px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .6s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.tl-node::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background .6s var(--ease), transform .6s var(--ease); }
.tl-item.is-on .tl-node { border-color: var(--gold-2); box-shadow: 0 0 0 6px var(--gold-soft); }
.tl-item.is-on .tl-node::after { background: var(--gold-grad); transform: scale(1.15); }
.tl-k { display: inline-flex; align-items: center; gap: 10px; font: italic 500 1.2rem/1 var(--serif); color: var(--gold); margin-bottom: 8px; }
.tl-k .i { width: 18px; height: 18px; }
.tl-item h3 { font: 600 clamp(1.4rem, 2vw, 1.7rem)/1.15 var(--serif); margin: 0 0 8px; }
.tl-item p { color: var(--ink-2); margin: 0; max-width: 36em; font-size: .98rem; }
.tl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: .88rem; color: var(--ink); border-bottom: 1px solid var(--gold-2); padding-bottom: 2px; transition: color .3s, gap .4s var(--ease); }
.tl-link:hover { color: var(--gold); gap: 12px; }

/* ---------------------------------------------------------------- bitácora */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.1em; }
.chip {
  position: relative; height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2);
  font-size: .84rem; font-weight: 600; color: var(--ink-2); transition: color .4s, background-color .4s, border-color .4s;
}
.chip:hover { border-color: var(--gold-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip sup { font-size: .66rem; margin-left: 4px; opacity: .7; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 22vw, 290px); grid-auto-flow: dense; gap: 16px; }
.post {
  position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; color: #fffaf2; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.post.wide { grid-column: span 2; }
.post.tall { grid-row: span 2; }
.post[hidden] { display: none; }
.post .media { position: absolute; inset: 0; z-index: -2; }
.post .media img { transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.post:hover .media img, .post:focus-visible .media img { transform: scale(1.06); }
.post::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 24, 32, 0) 30%, rgba(7, 24, 32, .82) 100%); transition: opacity .6s; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.post-tags span { font: 700 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: rgba(7, 24, 32, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #ecd49a; }
.post h3 { font: 500 clamp(1.35rem, 1.9vw, 1.75rem)/1.1 var(--serif); margin: 0; color: #fffaf2; max-width: 22em; }
.post-lead { font-size: .88rem; line-height: 1.5; color: rgba(255, 250, 242, .82); margin: 8px 0 0; max-width: 34em; }
.post-go {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 250, 242, .92); color: #0b2f40; transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.post:hover .post-go, .post:focus-visible .post-go { transform: none; opacity: 1; }

/* lector */
.reader { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px; }
.reader[hidden] { display: none; }
.reader-backdrop { position: absolute; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reader-panel {
  position: relative; width: min(1120px, 100%); max-height: min(88vh, 820px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
}
.reader-media { min-height: 100%; }
.reader-media img { position: absolute; inset: 0; }
.reader-body { padding: clamp(28px, 4vw, 52px); overflow-y: auto; overscroll-behavior: contain; }
.reader-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.reader-tags span { font: 700 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.reader-tags span + span::before { content: '·'; margin-right: 8px; color: var(--muted); }
.reader-text p { color: var(--ink-2); }
.reader-text .tl-link { margin: 4px 0 8px; }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.reader-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--surface); }

/* ---------------------------------------------------------------- salud */
.salud { padding-top: 0; }
.salud-banner { height: clamp(300px, 52vh, 520px); }
.salud-banner img { height: 100%; }
.salud-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg) 100%); }
.salud-card {
  position: relative; margin-top: clamp(-220px, -16vw, -120px); padding: clamp(28px, 5vw, 64px);
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.salud-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.salud-text > p:not(.lead):not(.source) { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); }
.stat b { font: 500 clamp(2rem, 3vw, 2.6rem)/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat > span { font-size: .8rem; line-height: 1.45; color: var(--muted); }
.stat-meter { padding-right: 84px; }
.meter { position: absolute; right: 16px; top: 18px; width: 56px; height: 56px; transform: rotate(-90deg); }
.meter circle { fill: none; stroke-width: 6; }
.m-track { stroke: var(--line); }
.m-val { stroke: var(--gold-2); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease); }

.video { position: sticky; top: calc(var(--nav-h) + 24px); }
.video-facade, .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 24, 32, .05), rgba(7, 24, 32, .6)); transition: opacity .5s; }
.video-facade:hover::after { opacity: .7; }
.video-facade img { transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.video-facade:hover img { transform: scale(1.04); }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); color: #0b2f40; box-shadow: 0 0 0 10px rgba(236, 212, 154, .25);
}
.play .i { width: 30px; height: 30px; margin-left: 4px; }
.play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(236, 212, 154, .6); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.video-meta { position: absolute; left: 22px; bottom: 18px; z-index: 2; text-align: left; color: #fffaf2; }
.video-meta small { display: block; font: 700 .62rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #ecd49a; margin-bottom: 6px; }
.video-meta b { font: 500 1.5rem/1.1 var(--serif); }
.video-alt { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.video-alt:hover { color: var(--gold); }

/* ---------------------------------------------------------------- proyectos */
.feature {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4.5vw, 60px); border-radius: var(--r-lg); background: #0a2330; color: #f1e9dc; overflow: hidden; position: relative;
}
.feature::before {
  content: ''; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%;
  border: 1px solid rgba(236, 212, 154, .22); box-shadow: 0 0 0 70px rgba(236, 212, 154, .03), 0 0 0 160px rgba(236, 212, 154, .02);
}
.feature .h3 { color: #fffaf2; }
.feature p { color: rgba(241, 233, 220, .8); }
.feature .tag { color: #ecd49a; margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: rgba(241, 233, 220, .9); }
.checks .i { color: #ecd49a; margin-top: 3px; }
.feature .btn-gold::before { background: #fffaf2; }
.feature .btn-gold:hover { color: #0b2f40; }
.feature-visual { position: relative; display: block; padding: 0 0 12% 0; transform-style: preserve-3d; }
.browser { border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .08); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #1b1b1d; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3e; }
.browser-bar span { margin-left: 12px; font-size: .7rem; color: #9a9aa0; padding: 4px 12px; background: #111; border-radius: 6px; }
.browser-shot { aspect-ratio: 16 / 10; background-color: #0a0a0c; }
.browser-2 { position: absolute; right: -6%; bottom: 0; width: 48%; transform: translateZ(40px); }
.browser-2 .browser-shot { aspect-ratio: 16 / 10; }

.pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pub {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .5s, box-shadow .6s var(--ease);
}
.pub:hover { border-color: var(--gold-2); box-shadow: var(--shadow); }
.pub-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); margin-bottom: 22px; }
.pub-icon .i { width: 24px; height: 24px; }
.pub .tag { margin-bottom: 10px; }
.pub p { font-size: .9rem; color: var(--ink-2); }
.pub .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
.pub .go .i { transition: transform .5s var(--ease); color: var(--gold); }
.pub:hover .go .i { transform: translate(3px, -3px); }

/* ---------------------------------------------------------------- contacto */
.contact { overflow: hidden; }
.contact-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.contact-head .h1 { margin-bottom: .2em; }
.contact-head .lead { color: var(--ink-2); }
.socials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.social {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); overflow: hidden; isolation: isolate; transition: color .6s var(--ease), border-color .6s;
}
.social::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: #0a2330; clip-path: circle(0% at 100% 0%);
  transition: clip-path .9s var(--ease);
}
.social:hover::before, .social:focus-visible::before { clip-path: circle(150% at 100% 0%); }
.social:hover, .social:focus-visible { color: #f1e9dc; border-color: transparent; }
.social-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); margin-bottom: auto; transition: border-color .6s, background .6s, color .6s; }
.social-icon .i { width: 26px; height: 26px; }
.social:hover .social-icon { border-color: rgba(236, 212, 154, .5); color: #ecd49a; }
.social b { font: 500 1.6rem/1 var(--serif); margin-top: 26px; }
.social small { font-size: .8rem; color: var(--muted); transition: color .6s; word-break: break-all; }
.social:hover small { color: #ecd49a; }
.social p { font-size: .82rem; line-height: 1.5; margin: 0; color: var(--ink-2); transition: color .6s; }
.social:hover p { color: rgba(241, 233, 220, .75); }
.social-go { position: absolute; top: 24px; right: 22px; transition: transform .6s var(--ease); }
.social:hover .social-go { transform: translate(3px, -3px); color: #ecd49a; }

/* ---------------------------------------------------------------- pie */
.footer { background: #071820; color: #d8d2c6; padding: 64px 0 40px; }
.footer-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 36px 24px; align-items: center; }
.lockup { display: flex; align-items: center; gap: 20px; --logo-body: #efe6d6; }
.lockup-mark { width: 92px; height: 92px; }
.lockup-text { display: flex; flex-direction: column; gap: 10px; }
.lockup-text b { font: 500 2.4rem/1 var(--serif); color: #f6f1e8; letter-spacing: .01em; }
.lockup-text i { width: 100%; height: 1px; background: var(--gold-grad); }
.lockup-text small { font: 600 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #d6b46c; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; }
.footer-links a { font-size: .9rem; color: #c3c9c5; transition: color .3s; }
.footer-links a:hover { color: #ecd49a; }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 26px; border-top: 1px solid rgba(241, 233, 220, .1); font-size: .8rem; color: #8b9ba1; }
.to-top { position: absolute; right: clamp(16px, 4vw, 40px); bottom: -12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(241, 233, 220, .2); display: grid; place-items: center; color: #ecd49a; transition: background .4s, transform .5s var(--ease); }
.to-top .i { transform: rotate(90deg); }
.to-top:hover { background: rgba(236, 212, 154, .12); transform: translateY(-3px); }

/* ---------------------------------------------------------------- cursor */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-2); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid var(--gold-2); transition: opacity .3s, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .4s; }
.cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--gold-soft); }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------------------------------------------------------------- revelado */
.js [data-reveal] { opacity: 0; }
.js [data-reveal="words"], .js [data-reveal="chars"], .js [data-reveal="stagger"] { opacity: 1; }
.js [data-reveal="stagger"]:not([data-revealed]) > * { opacity: 0; }
.js [data-reveal="words"]:not([data-revealed]) { visibility: hidden; }
.js .hero-eyebrow, .js .hero-lead, .js .hero-cta, .js .hero-creds, .js .hero-visual, .js #heroTitle { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span, .play::before { animation: none; }
}
:root[data-motion="reduced"] * { transition-duration: 1ms !important; animation: none !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav-links a { padding: 10px 10px; font-size: .86rem; }
  .socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(78%, 400px); margin-top: 16px; }
  .hero { min-height: auto; }
  .about, .traj, .salud-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .traj-side { position: static; }
  .traj-mark { display: none; }
  .video { position: static; }
  .pubs { grid-template-columns: minmax(0, 1fr); }
  .areas { flex-direction: column; height: auto; }
  .area { flex: none; height: 118px; transition: height .9s var(--ease); }
  .area.is-open { height: 420px; }
  .area .area-top { transition: opacity .5s var(--ease); }
  .area:not(.is-open) .area-top { opacity: 0; }
  .area:not(.is-open) .area-k { display: none; }
  .area h3 { margin-top: 4px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
}
@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  body { font-size: 1rem; }
  .brand-text small { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-actions .icon-btn { width: 40px; height: 40px; }
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-creds { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { width: 84%; }
  .hv-badge { width: 78px; height: 78px; left: -18px; padding: 10px; }
  .hv-card { right: -10px; padding: 10px 14px; }
  .hv-v { font-size: 1.1rem; }
  .hv-spine { right: -24px; }
  .scroll-cue { display: none; }
  .about-media { padding: 0 10% 18% 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .quote { padding: 26px 22px; }
  .timeline { padding-left: 44px; }
  .tl-node { left: -44px; width: 27px; height: 27px; }
  .tl-rail { left: 13px; }
  .posts { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 300px; }
  .post.wide { grid-column: auto; }
  .post.tall { grid-row: span 1; }
  .reader { padding: 0; place-items: end center; }
  .reader-panel { grid-template-columns: minmax(0, 1fr); max-height: 92vh; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .reader-media { position: relative; height: 38vh; min-height: 0; }
  .reader-body { overflow: visible; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .socials { grid-template-columns: minmax(0, 1fr); }
  .social { min-height: 0; }
  .social b { margin-top: 18px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .lockup-text b { font-size: 2rem; }
  .lockup-mark { width: 74px; height: 74px; }
  .footer-legal { padding-right: 60px; }
  .lockup-text small { letter-spacing: .16em; font-size: .56rem; }
  .eyebrow { line-height: 1.6; letter-spacing: .18em; }
  .hero-eyebrow { align-items: flex-start; }
  .hero-eyebrow .dot { margin-top: 6px; }
  .feature-visual { padding-bottom: 16%; }
  .salud-card { padding: 26px 20px; }
}
