/* =============================================================
   DESPIERTA · Educación & Finanzas — styles.css
   Cielo sereno, águila sobrevolando, contenido con aire.
   ============================================================= */

/* 1. Tokens */
:root {
  --bg: #070c1c;
  --ink: #eef3f8;
  --ink-soft: rgba(238, 243, 248, .76);
  --ink-mute: rgba(238, 243, 248, .55);
  --teal: #2ee6d6;
  --gold: #e4b83b;
  --gold-3: #f6d97c;
  --line: rgba(238, 243, 248, .1);
  --panel: rgba(10, 18, 36, .74);
  --panel-solid: rgba(10, 18, 36, .94);
  --grad-text: linear-gradient(92deg, #2ee6d6 0%, #f6d97c 60%, #e4b83b 100%);
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 72px;
  --radius: 20px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; color: var(--gold-3); }
::selection { background: var(--gold); color: #1a1207; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--gold); color: #1a1207; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
main, .nav, .footer, .nav-mobile { position: relative; z-index: 2; }
.grad { background-image: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-mute); font-size: .95rem; margin-bottom: 1rem; }

/* 3. Cielo y águilas */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #060a18 0%, #0a1630 42%, #0d2a3a 78%, #0f3341 100%); }
.sky-glow {
  position: absolute; top: -18vmax; right: -12vmax; width: 62vmax; height: 62vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 184, 59, .22), rgba(228, 184, 59, .06) 40%, transparent 65%);
  filter: blur(30px); animation: glowBreathe 16s ease-in-out infinite;
}
.sky-mist {
  position: absolute; left: -20vw; width: 140vw; height: 46vh; bottom: -14vh; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46, 230, 214, .14), rgba(46, 230, 214, .04) 45%, transparent 70%);
  filter: blur(50px);
}
.sky-mist-a { animation: mistDrift 80s ease-in-out infinite alternate; }
.sky-mist-b { bottom: 10vh; height: 30vh; opacity: .6; animation: mistDrift 110s ease-in-out infinite alternate-reverse; }
.sky-stars {
  position: absolute; inset: 0; opacity: .7; animation: twinkle 9s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(1px 1px at 26% 9%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(1.5px 1.5px at 38% 26%, rgba(246, 217, 124, .7), transparent 70%),
    radial-gradient(1px 1px at 49% 7%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(1.5px 1.5px at 61% 21%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(1px 1px at 72% 12%, rgba(191, 247, 240, .6), transparent 70%),
    radial-gradient(1.5px 1.5px at 84% 30%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(1px 1px at 93% 8%, rgba(255, 255, 255, .5), transparent 70%),
    radial-gradient(1px 1px at 7% 44%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(1.5px 1.5px at 20% 60%, rgba(246, 217, 124, .5), transparent 70%),
    radial-gradient(1px 1px at 55% 48%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(1px 1px at 78% 55%, rgba(255, 255, 255, .4), transparent 70%),
    radial-gradient(1.5px 1.5px at 90% 68%, rgba(191, 247, 240, .5), transparent 70%),
    radial-gradient(1px 1px at 33% 78%, rgba(255, 255, 255, .35), transparent 70%);
}
.eagle-flight { position: absolute; left: 50%; top: 44%; width: clamp(260px, 36vw, 560px); will-change: transform; transition: opacity 1.4s; }
.eagle-near { opacity: .9; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(46, 230, 214, .18)); }
.eagle-far { top: 30%; width: clamp(120px, 16vw, 230px); opacity: .34; filter: blur(.6px) saturate(.7) brightness(.85) drop-shadow(0 0 12px rgba(46, 230, 214, .3)); }
.eagle-flight.is-soaring { animation: soar 120s linear infinite; animation-delay: -90s; }
.eagle-far.is-soaring { animation-duration: 175s; animation-direction: reverse; animation-delay: -70s; }
html.is-past-hero .eagle-near { opacity: .55; }
html.is-past-hero .eagle-far { opacity: .2; }
html.is-intro .sky .eagle-far { opacity: 0; }
.rig { position: relative; width: 100%; aspect-ratio: 900 / 657; animation: bob 7s ease-in-out infinite; }
.rig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig-wing-l { transform-origin: 43.8% 31.8%; animation: flapL 14s ease-in-out infinite; }
.rig-wing-r { transform-origin: 56.1% 31.8%; animation: flapR 14s ease-in-out infinite; }
.eagle-far .rig-wing-l, .eagle-far .rig-wing-r { animation-duration: 18s; animation-delay: -6s; }
.is-launching .rig-wing-l { animation: flapLBig 1.15s ease-in-out infinite; }
.is-launching .rig-wing-r { animation: flapRBig 1.15s ease-in-out infinite; }
html.has-3d .sky .eagle-flight { display: none; }
html.has-3d .intro-head { display: none; }
html.has-3d .intro::after { height: 48%; }
.eagle3d { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.eagle3d.is-on { opacity: 1; }
html.is-intro .eagle3d { z-index: 610; }
html.is-past-hero .eagle3d { opacity: .55; }

/* 3b. Pantalla de entrada */
.intro { position: fixed; inset: 0; z-index: 600; overflow: hidden; display: grid; align-items: end; justify-items: center; padding-bottom: clamp(2rem, 8vh, 5rem); animation: introSafety .01s 12s forwards; }
.intro-bg { position: absolute; inset: 0; background: #0a1630 url("assets/img/intro-bg.webp") center 40% / cover no-repeat; transition: opacity 1.4s var(--ease-soft); }
.intro-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 24, .30) 0%, rgba(8, 18, 40, .42) 45%, rgba(10, 30, 46, .80) 100%); }
.intro-glow { position: absolute; top: -18vmax; right: -12vmax; width: 62vmax; height: 62vmax; border-radius: 50%; background: radial-gradient(circle, rgba(228, 184, 59, .22), rgba(228, 184, 59, .06) 40%, transparent 65%); filter: blur(30px); animation: glowBreathe 16s ease-in-out infinite; }
.intro-head {
  position: absolute; left: 50%; top: 46%; width: min(92vh, 100vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 34%, rgba(0, 0, 0, .55) 52%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 44%, #000 34%, rgba(0, 0, 0, .55) 52%, transparent 70%);
  animation: headIn 2.2s var(--ease-out) both, breathe 7s ease-in-out 2.2s infinite;
}
.intro-head img { width: 100%; height: 100%; object-fit: cover; }
.intro-eye { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; top: 29.2%; mix-blend-mode: screen; filter: blur(3px); background: radial-gradient(circle, rgba(255, 200, 90, .95), rgba(255, 130, 40, .45) 38%, transparent 68%); animation: eyeGlow 3.4s ease-in-out .9s infinite both; opacity: 0; }
.intro-eye-l { left: 34.1%; } .intro-eye-r { left: 60.7%; }
.intro-scan { position: absolute; left: 0; right: 0; height: 14%; background: linear-gradient(180deg, transparent, rgba(46, 230, 214, .09), transparent); animation: scan 9s linear 1.5s infinite; top: -14%; }
.intro::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(6, 10, 24, .82) 55%, rgba(6, 10, 24, .96)); }
.intro-text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); display: grid; justify-items: center; gap: .9rem; max-width: 720px; }
.intro-text > * { animation: fadeUpSoft 1.1s var(--ease-out) both; }
.intro-text > :nth-child(1) { animation-delay: .9s; }
.intro-text > :nth-child(2) { animation-delay: 1.2s; }
.intro-text > :nth-child(3) { animation-delay: 1.5s; }
.intro-text > :nth-child(4) { animation-delay: 2s; }
.intro-title { font-family: var(--serif); line-height: 1;  font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1; text-shadow: 0 4px 40px rgba(0, 0, 0, .8); }
.intro-line { font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 300; color: var(--ink-soft); }
.btn-enter { margin-top: .6rem; padding: 1rem 2.6rem; border-radius: 999px; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #1a1207; background: linear-gradient(135deg, #f6d97c, #e4b83b 50%, #c9962c); box-shadow: 0 14px 34px -12px rgba(228, 184, 59, .7), 0 0 0 0 rgba(228, 184, 59, .5); transition: transform .4s var(--ease-soft), box-shadow .4s; animation: fadeUpSoft 1.1s var(--ease-out) 2s both, enterPulse 3s ease-in-out 3s infinite; }
.btn-enter:hover { transform: translateY(-3px); }
html.has-3d .btn-enter { position: relative; padding-left: 4.7em; }
html.has-3d .btn-enter::before { content: ""; position: absolute; left: .55em; top: 50%; width: 2.9em; height: 2.9em; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(40, 26, 6, .55), rgba(40, 26, 6, .25) 70%, rgba(255, 240, 200, .18) 100%); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.intro.is-released .btn-enter { animation: none; opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease-soft), transform .35s var(--ease-soft); pointer-events: none; }
.intro.is-leaving .intro-text { animation: introTextOut .9s var(--ease-soft) forwards; }
.intro.is-leaving .intro-head { animation: headOut 1.3s var(--ease-soft) forwards; }
.intro.is-leaving .intro-bg { opacity: 0; transition-delay: 1.2s; transition-duration: 2s; }
.intro.is-leaving::after { opacity: 0; transition: opacity 1.4s .8s; }
html.is-intro:not(.is-arriving) main, html.is-intro:not(.is-arriving) .nav, html.is-intro:not(.is-arriving) .assist-fab { opacity: 0; }
main, .nav, .assist-fab { transition: opacity 1.2s var(--ease-soft); }
html.is-intro-lock body { overflow: hidden; }

/* 4. Navegación */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 300; height: var(--nav-h); transition: background-color .5s var(--ease-out), box-shadow .5s; }
.nav-inner { height: 100%; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.is-scrolled { background: rgba(7, 12, 28, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-brand img { width: 38px; height: auto; }
.nav-brand-text { display: none; flex-direction: column; line-height: 1.15; }
.nav-brand-text strong { font-family: var(--serif); font-weight: 600; letter-spacing: .18em; font-size: .9rem; text-transform: uppercase; }
.nav-brand-text small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.nav-links { display: none; gap: 1.7rem; }
.btn-music { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-soft); display: grid; place-items: center; margin-right: .6rem; transition: color .3s, border-color .3s, opacity .3s; }
.btn-music svg { width: 18px; height: 18px; fill: currentColor; }
.btn-music:hover { color: var(--gold-3); border-color: var(--gold); }
.btn-music.is-off { opacity: .6; }
.btn-music.is-off .wave { display: none; }
.nav-link { font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); border-bottom-color: rgba(228, 184, 59, .6); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.btn-assist { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(228, 184, 59, .45); font-size: .82rem; letter-spacing: .04em; color: var(--gold-3); transition: background-color .3s, border-color .3s; }
.btn-assist:hover { background: rgba(228, 184, 59, .12); border-color: var(--gold); }
.nav-burger { width: 42px; height: 42px; display: grid; place-items: center; gap: 6px; border-radius: 12px; }
.nav-burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.nav-mobile { position: fixed; inset: 0; z-index: 290; background: rgba(7, 12, 28, .96); display: grid; place-content: center; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); padding: 6rem 2rem 3rem; }
.nav-mobile[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.nav-mobile nav { display: grid; gap: 1.3rem; }
.nav-mobile a { font-family: var(--serif); font-size: clamp(1.1rem, 5vw, 1.5rem); letter-spacing: .06em; }

/* 5. Portada */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 2rem) 0 4rem; }
.hero-inner { width: min(900px, 100% - 2 * var(--gutter)); display: grid; justify-items: center; gap: 1.6rem; }
.eyebrow { font-family: var(--serif); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.hero-title { font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.12; max-width: 20ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.hero-sub { max-width: 58ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-soft); font-weight: 300; }
.link-down { margin-top: 1.2rem; display: grid; justify-items: center; gap: .6rem; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); transition: color .3s; }
.link-down:hover { color: var(--gold-3); }
.link-down i { display: block; width: 1px; height: 48px; background: linear-gradient(180deg, var(--gold), transparent); position: relative; overflow: hidden; }
.link-down i::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: translateY(-100%); animation: lineDown 3s var(--ease-soft) infinite; }

/* 6. Secciones */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section-tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); max-width: 760px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-num { font-family: var(--serif); font-size: 1.6rem; color: rgba(228, 184, 59, .55); margin-bottom: .6rem; letter-spacing: .1em; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); margin-bottom: 1.1rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.lede { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--ink-soft); font-weight: 300; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

.panel { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.9rem; }
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) { .panel { background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.panel h3, .prose h3 { font-size: 1.02rem; color: var(--gold-3); margin-bottom: .6rem; letter-spacing: .04em; }
.panel p, .prose p { color: var(--ink-soft); font-size: .98rem; }
.prose h3 { margin-top: 1.4rem; }
.prose h3:first-child { margin-top: 0; }
.two-col { display: grid; gap: 1.6rem; align-items: start; }

/* Tríada */
.triad { display: grid; gap: .8rem; }
.triad-svg { width: 100%; max-width: 420px; margin-inline: auto; }
.triad-lines line { stroke: rgba(46, 230, 214, .45); stroke-width: 1; stroke-dasharray: 5 9; animation: dash 40s linear infinite; }
.triad-lines .triad-spoke { stroke: rgba(228, 184, 59, .4); animation-direction: reverse; }
.triad-core { fill: #0b1224; stroke: var(--gold); stroke-width: 1.2; }
.triad-core-text { font-family: var(--serif); font-weight: 600; font-size: 15px; fill: var(--gold-3); letter-spacing: 3px; }
.triad-node circle { fill: #0b1224; stroke: rgba(46, 230, 214, .8); stroke-width: 1.2; }
.triad-node text { font-family: var(--serif); font-size: 11px; fill: var(--ink); letter-spacing: 1px; }
.triad figcaption { font-size: .82rem; color: var(--ink-mute); text-align: center; }

.pillars { display: grid; gap: 1rem; margin-top: 1.6rem; }
.quote { margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; max-width: 46ch; text-align: center; padding-top: 1.6rem; border-top: 1px solid rgba(228, 184, 59, .35); }
.quote p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.7; color: var(--ink); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.quote footer { margin-top: 1rem; font-family: var(--serif); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

/* Datos y listas */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-bottom: 1.6rem; }
.fact { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 18, 36, .55); display: grid; gap: .2rem; }
.fact strong { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--gold-3); font-weight: 600; }
.fact span { font-size: .82rem; color: var(--ink-mute); }
.facts-small { grid-template-columns: 1fr; margin: 1.4rem 0 0; }
.list li { position: relative; padding-left: 1.3rem; margin-bottom: .65rem; color: var(--ink-soft); font-size: .96rem; }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .8; }
.steps { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; counter-reset: step; }
.steps li { counter-increment: step; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem .55rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); background: rgba(10, 18, 36, .55); }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: .72rem; color: #1a1207; background: linear-gradient(135deg, #f6d97c, #c9962c); }

/* Competencias */
.comp-list { display: grid; gap: 0; }
.comp-list li { display: flex; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.comp-list li span { flex: 0 0 3rem; font-family: var(--serif); font-size: 1.35rem; color: var(--gold); line-height: 1.2; }
.comp-list h3 { font-size: .98rem; margin-bottom: .25rem; }
.comp-list p { font-size: .9rem; color: var(--ink-mute); }

/* Dracma */
.dracma-grid { display: grid; gap: 2rem; align-items: center; }
.emblem { max-width: 520px; margin-inline: auto; animation: floatY 9s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.dracma-side { display: grid; gap: .5rem; }
.coin-stage { perspective: 1200px; display: grid; justify-items: center; padding: 1rem 0; }
.coin { width: min(220px, 55vw); aspect-ratio: 1; position: relative; transform-style: preserve-3d; animation: coinSpin 26s linear infinite; }
.coin-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 0 18px rgba(228, 184, 59, .35)); }
.coin-back { transform: rotateY(180deg); }

/* Video */
.video-frame { max-width: 400px; margin-inline: auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85), 0 0 60px -20px rgba(46, 230, 214, .25); }
.video-frame video { width: 100%; height: auto; aspect-ratio: 4 / 5; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details { padding: 0 1.4rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.2rem; transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-soft); font-size: .95rem; animation: fadeUp .5s var(--ease-out) both; }

/* 7. Pie */
.footer { padding: 4rem 0 3rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(7, 12, 28, .4), rgba(7, 12, 28, .9)); }
.footer-inner { display: grid; justify-items: center; gap: .8rem; text-align: center; }
.footer-inner img { width: 84px; margin-bottom: .4rem; }
.footer-tag { font-family: var(--serif); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.footer-src { font-size: .78rem; color: var(--ink-mute); }
.footer-copy { font-size: .78rem; color: var(--ink-mute); }

/* 8. Asistente */
.assist-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 500; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #0b1224; border: 1px solid rgba(228, 184, 59, .55); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9);
  transition: transform .45s var(--ease-soft), box-shadow .45s;
}
.assist-fab img { width: 52px; height: 52px; border-radius: 50%; }
.assist-fab:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9), 0 0 30px rgba(228, 184, 59, .25); }
body.chat-open .assist-fab { transform: scale(0); pointer-events: none; }
.assist {
  position: fixed; right: 20px; bottom: 20px; z-index: 510; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: rgba(8, 14, 30, .96); border: 1px solid rgba(228, 184, 59, .3); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
  transform-origin: bottom right; opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.assist.is-open { opacity: 1; transform: none; pointer-events: auto; }
.assist-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.assist-avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(228, 184, 59, .5); }
.assist-id { display: grid; gap: .05rem; flex: 1; min-width: 0; }
.assist-id strong { font-family: var(--serif); letter-spacing: .08em; font-size: .9rem; }
.assist-id span { font-size: .7rem; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assist-tools { display: flex; gap: .2rem; }
.assist-tools button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-mute); transition: background-color .3s, color .3s; }
.assist-tools button:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.assist-tools svg { width: 18px; height: 18px; fill: currentColor; }
.assist-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.assist-log::-webkit-scrollbar { width: 6px; }
.assist-log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }
.msg { display: flex; gap: .55rem; align-items: flex-end; max-width: 92%; animation: msgIn .45s var(--ease-out) both; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; }
.msg-body { padding: .75rem .95rem; border-radius: 16px; font-size: .9rem; line-height: 1.55; overflow-wrap: anywhere; }
.msg-bot .msg-body { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-user .msg-body { background: rgba(228, 184, 59, .16); border: 1px solid rgba(228, 184, 59, .3); border-bottom-right-radius: 4px; }
.msg-body p + p, .msg-body p + ul, .msg-body ul + p { margin-top: .5rem; }
.msg-body ul { padding-left: 1rem; list-style: disc; }
.msg-body li { margin-bottom: .2rem; }
.msg-body strong { color: var(--gold-3); }
.msg-body a { color: var(--teal); text-decoration: underline; }
.msg-typing .msg-body { display: flex; gap: 4px; padding: .8rem .95rem; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: typing 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
.assist-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .4rem 1rem .6rem; scrollbar-width: none; }
.assist-chips::-webkit-scrollbar { display: none; }
.assist-chips button { flex: 0 0 auto; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line); font-size: .74rem; color: var(--ink-soft); transition: border-color .3s, color .3s; }
.assist-chips button:hover { border-color: var(--gold); color: var(--gold-3); }
.msg-suggest { display: block; }
.assist-chips-inline { flex-wrap: wrap; overflow: visible; padding: .15rem 0 .3rem 2.15rem; gap: .4rem; }
.assist-chips-inline button { white-space: normal; text-align: left; line-height: 1.25; }
.assist-form { display: flex; align-items: flex-end; gap: .4rem; padding: .6rem .8rem .8rem; border-top: 1px solid var(--line); }
.assist-form textarea { flex: 1; resize: none; max-height: 120px; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); line-height: 1.4; font-size: .92rem; }
.assist-form textarea:focus { outline: none; border-color: rgba(228, 184, 59, .6); }
.assist-form textarea::placeholder { color: var(--ink-mute); }
.assist-send, .assist-mic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; transition: transform .3s var(--ease-out), color .3s; }
.assist-send { background: linear-gradient(135deg, #f6d97c, #c9962c); color: #1a1207; }
.assist-send:hover { transform: translateY(-2px); }
.assist-send svg, .assist-mic svg { width: 20px; height: 20px; fill: currentColor; }
.assist-mic { color: var(--ink-mute); border: 1px solid var(--line); }
.assist-mic.is-listening { color: #f0573a; border-color: #f0573a; animation: pulseMic 1s infinite; }

/* 9. Animaciones */
@keyframes glowBreathe { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes mistDrift { from { transform: translateX(-6vw) translateY(0); } to { transform: translateX(6vw) translateY(-3vh); } }
@keyframes twinkle { from { opacity: .45; } to { opacity: .85; } }
@keyframes soar {
  0%     { transform: translate(-50%, -50%) translate(42vw, 0vh) rotate(180deg) scale(.85); }
  8.33%  { transform: translate(-50%, -50%) translate(36.4vw, 10vh) rotate(210deg) scale(.93); }
  16.67% { transform: translate(-50%, -50%) translate(21vw, 17.3vh) rotate(240deg) scale(.98); }
  25%    { transform: translate(-50%, -50%) translate(0vw, 20vh) rotate(270deg) scale(1); }
  33.33% { transform: translate(-50%, -50%) translate(-21vw, 17.3vh) rotate(300deg) scale(.98); }
  41.67% { transform: translate(-50%, -50%) translate(-36.4vw, 10vh) rotate(330deg) scale(.93); }
  50%    { transform: translate(-50%, -50%) translate(-42vw, 0vh) rotate(360deg) scale(.85); }
  58.33% { transform: translate(-50%, -50%) translate(-36.4vw, -10vh) rotate(390deg) scale(.77); }
  66.67% { transform: translate(-50%, -50%) translate(-21vw, -17.3vh) rotate(420deg) scale(.72); }
  75%    { transform: translate(-50%, -50%) translate(0vw, -20vh) rotate(450deg) scale(.7); }
  83.33% { transform: translate(-50%, -50%) translate(21vw, -17.3vh) rotate(480deg) scale(.72); }
  91.67% { transform: translate(-50%, -50%) translate(36.4vw, -10vh) rotate(510deg) scale(.77); }
  100%   { transform: translate(-50%, -50%) translate(42vw, 0vh) rotate(540deg) scale(.85); }
}
@keyframes flapL {
  0% { transform: rotate(3deg); } 7% { transform: rotate(-11deg); } 14% { transform: rotate(13deg); } 21% { transform: rotate(-8deg); }
  28% { transform: rotate(7deg); } 55% { transform: rotate(1deg); } 78% { transform: rotate(6deg); } 100% { transform: rotate(3deg); }
}
@keyframes flapR {
  0% { transform: rotate(-3deg); } 7% { transform: rotate(11deg); } 14% { transform: rotate(-13deg); } 21% { transform: rotate(8deg); }
  28% { transform: rotate(-7deg); } 55% { transform: rotate(-1deg); } 78% { transform: rotate(-6deg); } 100% { transform: rotate(-3deg); }
}
@keyframes flapLBig { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(18deg); } }
@keyframes flapRBig { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-18deg); } }
@keyframes launch {
  0% { transform: translate(-50%, -50%) translate(0, 7vh) rotate(0deg) scale(.5); opacity: 0; }
  18% { opacity: 1; }
  40% { transform: translate(-50%, -50%) translate(0, -3vh) rotate(0deg) scale(1.08); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(0, -20vh) rotate(90deg) scale(.7); opacity: .9; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-7px) rotate(1.2deg); } }
@keyframes introSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
@keyframes headIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); filter: brightness(.3); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(1); } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.025); } }
@keyframes eyeGlow { 0% { opacity: 0; } 20% { opacity: .95; } 55% { opacity: .55; } 80% { opacity: .9; } 100% { opacity: .7; } }
@keyframes scan { from { top: -14%; } to { top: 110%; } }
@keyframes fadeUpSoft { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes enterPulse { 0%, 100% { box-shadow: 0 14px 34px -12px rgba(228, 184, 59, .7), 0 0 0 0 rgba(228, 184, 59, .45); } 50% { box-shadow: 0 14px 34px -12px rgba(228, 184, 59, .7), 0 0 0 14px rgba(228, 184, 59, 0); } }
@keyframes introTextOut { to { opacity: 0; transform: translateY(-24px); } }
@keyframes headOut { to { opacity: 0; transform: translate(-50%, -54%) scale(1.08); filter: brightness(1.6) blur(6px); } }
@keyframes lineDown { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes dash { to { stroke-dashoffset: -280; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes coinSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pulseMic { 50% { box-shadow: 0 0 0 6px rgba(240, 87, 58, .15); } }

/* 10. Responsive */
@media (min-width: 540px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts-small { grid-template-columns: 1fr; }
  .list-cols { columns: 2; column-gap: 1.6rem; }
  .list-cols li { break-inside: avoid; }
}
@media (min-width: 720px) {
  body { font-size: 17px; }
  .nav-brand-text { display: flex; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .comp-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .dracma-grid { grid-template-columns: 1.1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .two-col { grid-template-columns: 1fr 1.15fr; }
}
@media (max-width: 639px) {
  .assist { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; transform-origin: bottom center; background: rgba(7, 12, 28, .98); }
  .assist-fab { right: 16px; bottom: 16px; }
  .eagle-flight { top: 40%; }
}

/* 11. Reduced motion: solo se ralentiza lo ambiental, nada desaparece */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eagle-flight.is-soaring { animation-duration: 260s; }
  .eagle-far.is-soaring { animation-duration: 340s; }
  .intro .eagle-flight.is-launching { animation-duration: 1.6s; }
  .link-down i::after, .sky-stars, .intro-scan, .btn-enter { animation-name: fadeUpSoft; animation-iteration-count: 1; }
  .sky-stars, .intro-scan { animation: none; }
}
@media (max-width: 719px) {
  .intro-head { top: 40%; width: min(100vw, 70vh); }
  .intro { padding-bottom: clamp(1.5rem, 6vh, 3rem); }
}
