/* Hua Awakens · /apoya — mismos tokens que 1000 Chifas (public/style.css) */
:root { color-scheme: light; --out: cubic-bezier(.22,1,.36,1);
  --paper: #efe6d4; --paper-2: #e6dac3; --paper-3: #f6f0e3;
  --ink: #1c1712; --ink-2: #4a3f35; --muted: #5e5247; --line: #d3c4a8;
  --red: #a8141f; --gold: #c08a1c; --gold-soft: #e8c36a; --night: #0e1424;
  --zh: 'Noto Serif SC', serif; --serif: 'Noto Serif Display', 'Noto Serif SC', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0 0 .4em; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
h3 { font-size: 1.5rem; }
p { text-wrap: pretty; }
em { font-style: italic; color: var(--ink-2); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
section { padding: clamp(72px, 10vw, 128px) 0; }
.num { font: 500 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; }
.num span { font-family: var(--zh); letter-spacing: .3em; color: var(--red); margin-left: .6em; }
.step { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .6rem; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: var(--paper-3); border: 1px solid var(--red);
  font: 600 .95rem var(--sans); padding: 14px 24px; border-radius: 4px; text-decoration: none; cursor: pointer; transition: transform .2s var(--out), background .2s; }
.btn:hover { background: #8d0f19; transform: translateY(-1px); }
.btn:focus-visible, .link:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: var(--paper-3); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.link { color: var(--red); font-weight: 600; text-decoration: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px 28px;
  background: rgba(239,230,212,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { font: 400 1.2rem var(--serif); text-decoration: none; display: flex; gap: 10px; align-items: center; }
.seal { display: grid; place-items: center; width: 26px; height: 26px; background: var(--red); color: var(--paper-3); font: 700 .9rem var(--zh); border-radius: 3px; }
.nav nav { display: flex; gap: 22px; font-size: .85rem; color: var(--ink-2); margin-left: auto; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--red); }
.lang { font: 600 .78rem var(--sans); letter-spacing: .12em; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 6px 9px; }
.lang:hover { color: var(--red); border-color: var(--red); }

/* hero */
.hero { position: relative; color: var(--paper-3); padding: 120px 0 80px; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--night); }
.hero-bg { position: absolute; inset: 0; background: url(/art/faroles.webp) center 30% / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,36,.55) 0%, rgba(14,20,36,.35) 35%, rgba(14,20,36,.92) 100%); }
.hero-in { position: relative; text-align: center; max-width: 860px; }
.kicker { font: 500 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; }
.kicker .zh { font-family: var(--zh); letter-spacing: .3em; margin-right: .8em; }
.hero-logo { width: min(340px, 70vw); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.4)); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
.hero h1 em { color: var(--gold-soft); }
.lede { font-size: 1.1rem; max-width: 620px; margin: 0 auto 32px; color: rgba(246,240,227,.88); }
.lede strong { color: var(--paper-3); }

/* barra de avance */
.raise { background: rgba(14,20,36,.6); border: 1px solid rgba(232,195,106,.28); border-radius: 8px; padding: 22px 24px 18px; text-align: left; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.raise-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.raise-amt { font: 400 2.4rem/1 var(--serif); color: var(--gold-soft); margin-right: 12px; }
.raise-of { color: rgba(246,240,227,.8); font-size: .95rem; }
.raise-side { font-size: .9rem; color: rgba(246,240,227,.8); }
.rope { position: relative; height: 10px; border-radius: 99px; background: rgba(246,240,227,.14); margin: 0 0 40px; }
.rope-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold), var(--gold-soft)); transition: width 1.2s var(--out); }
.rope-mark { position: absolute; top: 18px; transform: translateX(-50%); font-size: .75rem; color: rgba(246,240,227,.75); white-space: nowrap; }
.rope-mark.end { transform: translateX(-100%); }
.rope-mark b { font-weight: 400; }
.rope-mark i { position: absolute; left: 50%; top: -18px; width: 2px; height: 10px; background: var(--gold-soft); }
.rope-mark.end i { left: auto; right: 0; }
.raise-note { margin: 0; font-size: .82rem; color: rgba(246,240,227,.65); }
.hero-cta { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.hero .link { color: var(--gold-soft); }

/* qué financias */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 0; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li span { color: var(--muted); text-align: right; }
.facts li.now { color: var(--red); }
.facts li.now span { color: var(--red); font-weight: 600; }
.beats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.beats img { aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); background: var(--paper-3); }
.beats figcaption { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.budget { margin-top: clamp(48px, 7vw, 80px); background: var(--paper-3); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.budget h3 { margin-bottom: 18px; }
.budget-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; margin-bottom: 20px; }
.b1 { background: var(--red); } .b2 { background: var(--gold); }
.budget-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.budget-legend div { display: grid; grid-template-columns: 14px 1fr; column-gap: 10px; }
.budget-legend i { width: 12px; height: 12px; border-radius: 2px; margin-top: 6px; grid-row: span 2; }
.budget-legend span { color: var(--muted); font-size: .92rem; }

/* artistas */
.artists { margin-top: 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 28px; border-radius: 8px; background: var(--ink); color: var(--paper-3); }
.artists h3 { color: var(--gold-soft); }
.artists p { margin: 0; color: rgba(246,240,227,.82); }
.artists ul { list-style: none; margin: 0; padding: 0; }
.artists li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(246,240,227,.14); font-size: .92rem; }
.artists li span { color: rgba(246,240,227,.6); text-align: right; }

/* película */
.film { background: var(--paper-2); }
.film-art { margin: 0; }
.film-art img { border-radius: 6px; box-shadow: 0 20px 50px -24px rgba(28,23,18,.5); }
.credits { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.credits dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.1rem; }

/* niveles */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.tier { position: relative; background: var(--paper-3); border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px 22px; display: flex; flex-direction: column; transition: transform .25s var(--out), box-shadow .25s; }
.tier:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(28,23,18,.45); }
.tier.featured { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }
.tier.featured .tier-desc, .tier.featured li { color: rgba(246,240,227,.82); }
.tier.featured .tier-price span, .tier.featured .prev { color: rgba(246,240,227,.6); }
.tier.featured .tier-zh { color: var(--gold-soft); }
.badge { position: absolute; top: -11px; left: 22px; margin: 0; background: var(--red); color: var(--paper-3); font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.badge.quiet { background: var(--paper); color: var(--red); border: 1px solid var(--line); }
.tier-zh { font: 700 1.6rem/1 var(--zh); color: var(--red); margin: 0 0 12px; }
.tier h3 { margin: 0 0 4px; }
.tier-desc { font-style: italic; color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.tier-price { font: 400 1.9rem/1 var(--serif); margin: 0 0 6px; }
.tier-price span { font: 500 .9rem var(--sans); color: var(--muted); }
.early { font-size: .82rem; margin: 0 0 4px; color: var(--gold-soft); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; font-size: .9rem; flex: 1; }
.tier li { padding: 6px 0 6px 20px; position: relative; border-top: 1px dashed rgba(94,82,71,.25); }
.tier li::before { content: '◆'; position: absolute; left: 0; top: 7px; font-size: .6rem; color: var(--red); }
.tier.featured li::before { color: var(--gold-soft); }
.tier .prev { color: var(--muted); font-style: italic; }
.tier .btn { width: 100%; }
.tier.featured .btn { background: var(--red); }
.tiers-foot { font-size: .8rem; margin-top: 24px; max-width: 760px; }

/* pagos */
.pay-sec { background: var(--paper-2); }
.pay { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; margin-top: 36px; align-items: start; }
.pay-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.pay-tabs { display: flex; gap: 4px; background: var(--paper); border-radius: 6px; padding: 4px; margin: 6px 0 22px; }
.pay-tabs button { flex: 1; border: 0; background: transparent; font: 500 .9rem var(--sans); padding: 10px; border-radius: 4px; cursor: pointer; color: var(--ink-2); }
.pay-tabs button[aria-selected=true] { background: var(--ink); color: var(--paper-3); }
.pay-panel { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; }
.pay-panel[hidden] { display: none; }
.qr { aspect-ratio: 1; display: grid; place-items: center; text-align: center; border: 2px dashed var(--line); border-radius: 6px; font: 600 .8rem/1.4 var(--sans); color: var(--muted); background: var(--paper); }
.qr.kofi { font: 400 1.4rem var(--serif); color: var(--red); }
.pay-big { font: 400 1.5rem var(--serif); margin: 0 0 6px; }
.pay-panel p { margin: 0 0 10px; }
.pay-panel a { color: var(--red); font-weight: 600; }
.form label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
.form input:not([type=checkbox]), .form select { display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--sans); padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fffdf8; color: var(--ink); }
.form input:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 3px; accent-color: var(--red); }
.form .btn { width: 100%; margin-top: 4px; }
.form-msg { min-height: 1.4em; margin: 12px 0 0; font-size: .9rem; }
.form-msg a { color: var(--red); font-weight: 600; }
.drop { position: relative; display: grid; place-items: center; min-height: 150px; border: 2px dashed var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; text-align: center; padding: 16px; margin-bottom: 18px; transition: border-color .2s, background .2s; }
.drop:hover, .drop:focus-within { border-color: var(--red); background: #fffdf8; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty b { display: block; font: 400 1.2rem var(--serif); color: var(--ink); margin-bottom: 4px; }
.drop-empty span { font-size: .85rem; color: var(--muted); font-weight: 400; }
.drop.has { border-style: solid; border-color: var(--gold); padding: 10px; }
.drop.has .drop-empty { display: none; }
.drop-img { max-height: 260px; border-radius: 4px; }
.privacy { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* metas */
.goals { list-style: none; padding: 0; margin: 40px 0 0; position: relative; display: grid; gap: 0; }
.goals::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.goals li { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 18px 0; position: relative; }
.g-zh { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); border: 2px solid var(--line); font: 700 1.3rem var(--zh); color: var(--muted); position: relative; z-index: 1; }
.goals li.main .g-zh { border-color: var(--red); color: var(--red); }
.goals li.done .g-zh { background: var(--red); border-color: var(--red); color: var(--paper-3); }
.g-at { font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 6px 0 4px; }
.goals h3 { margin: 0 0 4px; }
.goals li p:last-child { margin: 0; color: var(--muted); max-width: 560px; }

/* carta */
.letter { padding-bottom: 0; }
.letter blockquote { margin: 0; font: 300 clamp(1.25rem, 2.4vw, 1.55rem)/1.5 var(--serif); }
.letter blockquote p { margin: 0 0 .9em; }
.sign { font: 400 1.1rem var(--serif); margin: 1.4em 0 0; }
.sign span { display: block; font: 500 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* muro */
.lantern { display: inline-block; padding: 6px 12px; border: 1px solid rgba(232,195,106,.3); border-radius: 99px; font-size: .9rem; color: var(--paper-3); }
.wall-sec { background: var(--night); color: var(--paper-3); }
.wall-sec h2 em { color: var(--gold-soft); }
.wall-sec .num { color: rgba(246,240,227,.6); }
.wall { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wall .muted { color: rgba(246,240,227,.7); }

/* empresas */
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.biz-card { display: grid; grid-template-rows: 200px 1fr; background: var(--paper-3); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; transition: transform .25s var(--out), box-shadow .25s; }
.biz-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(28,23,18,.45); }
.biz-card img { width: 100%; height: 100%; object-fit: cover; }
.biz-card > div { padding: 24px; }
.biz-card p { color: var(--muted); }

/* faq */
.faq-sec { background: var(--paper-2); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font: 400 1.25rem var(--serif); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--red); font-family: var(--sans); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* pie */
.foot { padding: 48px 0 96px; text-align: center; font-size: .88rem; color: var(--muted); }
.foot-zh { font: 700 1.2rem var(--zh); color: var(--red); letter-spacing: .1em; }
.sticky { display: none; }

/* responsive */
@media (max-width: 1020px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .nav nav { display: none; }
  .nav .lang { margin-left: auto; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .split, .pay, .biz, .budget-legend, .credits, .artists { grid-template-columns: 1fr; }
  .film-art { order: -1; }
  .tiers { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; }
  .nav .btn-sm { display: none; }
  .hero { padding: 96px 0 56px; }
  .raise { padding: 18px 16px 14px; }
  .raise-amt { font-size: 2rem; }
  .rope-mark { font-size: .7rem; } .rope-mark .lg { display: none; }
  .rope-mark:not(.end) { transform: translateX(-60%); }
  .pay-panel { grid-template-columns: 96px 1fr; gap: 14px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .sticky { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; text-align: center; background: var(--red); color: var(--paper-3); font: 600 1rem var(--sans); padding: 15px; border-radius: 6px; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
}
  .sticky { transition: transform .3s var(--out), opacity .3s; }
.sticky.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.qr-img { width: 100%; height: auto; border: 0; padding: 0; background: #fff; object-fit: contain; }

/* ---------- entradas al bajar y 3D al pasar el mouse (mismo patrón que changacat.com) ---------- */
:root { --soft: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.3, 1.4, .5, 1); }
.js-aparece [data-aparece] { opacity: 0; translate: 0 28px; }
.js-aparece [data-aparece].visto { opacity: 1; translate: none;
  transition: opacity .8s ease var(--d, 0s), translate 1s var(--soft) var(--d, 0s), transform .7s var(--soft), box-shadow .5s ease; }
.tier[data-inclinar] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tier[data-inclinar]:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(-4px, -4px); }
.tier.inclinado { box-shadow: 10px 10px 0 var(--ink); z-index: 2; transition: transform .14s ease-out, box-shadow .3s var(--spring) !important; }
.tier.featured.inclinado { box-shadow: 10px 10px 0 var(--red); }
.lantern { display: inline-block; }
.js-aparece .wall.visto .lantern { animation: farol .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes farol { from { opacity: 0; transform: translateY(14px) scale(.85); } }
@media (prefers-reduced-motion: reduce) {
  .js-aparece [data-aparece] { opacity: 1; translate: none; }
  .tier[data-inclinar], .tier[data-inclinar]:hover { transform: none; }
  .js-aparece .wall.visto .lantern { animation: none; }
}
