@font-face { font-family: Inter; src: url(/fonts/Inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f3fc; --bg2: #efe8fa; --card: #ffffffcc; --card-solid: #fff; --text: #2b2440; --muted: #6f6787; --line: #2b244014;
  --violet: #8b5cf6; --blue: #5b8cff; --pink: #ff7aa2; --mint: #3ccfb4; --amber: #ffb648;
  --grad: linear-gradient(135deg, var(--blue), var(--violet));
  --shadow: 0 20px 50px -24px rgba(76, 52, 140, .35);
  --spring: cubic-bezier(.34, 1.56, .64, 1); --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #13101a; --bg2: #1b1625; --card: #1f1a2bcc; --card-solid: #1f1a2b; --text: #f3eefb; --muted: #a59cb8; --line: #ffffff14;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13101a; --bg2: #1b1625; --card: #1f1a2bcc; --card-solid: #1f1a2b; --text: #f3eefb; --muted: #a59cb8; --line: #ffffff14;
    --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; transition: background .5s, color .5s; }
a { color: inherit; }
img { display: block; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }

/* ---------- manchas de fondo que cambian de forma ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; width: 46vmax; height: 46vmax; filter: blur(70px); opacity: .45; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: blob 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: #c9b8ff; top: -18vmax; left: -12vmax; }
.blobs i:nth-child(2) { background: #ffc2d6; top: 10vmax; right: -16vmax; animation-delay: -6s; animation-duration: 26s; }
.blobs i:nth-child(3) { background: #b7f0e4; bottom: -20vmax; left: 20vmax; animation-delay: -12s; }
.blobs i:nth-child(4) { background: #ffe0a8; bottom: 10vmax; left: -18vmax; animation-delay: -3s; animation-duration: 30s; opacity: .3; }
:root[data-theme="dark"] .blobs i { opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blobs i { opacity: .16; } }
@keyframes blob {
  0% { transform: translate(0, 0) rotate(0) scale(1); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { transform: translate(6vmax, 4vmax) rotate(40deg) scale(1.08); border-radius: 60% 40% 35% 65% / 55% 62% 38% 45%; }
  100% { transform: translate(-4vmax, 6vmax) rotate(-20deg) scale(.95); border-radius: 38% 62% 52% 48% / 62% 35% 65% 38%; }
}

/* ---------- botones gelatinosos ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; border-radius: 999px;
  padding: 14px 24px; font-size: 15.5px; transition: transform .5s var(--spring), box-shadow .3s, background .3s; position: relative; overflow: hidden; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.12), 0 14px 30px -12px var(--violet); }
.btn-ghost { background: var(--card-solid); color: var(--text); box-shadow: inset 0 -3px 0 rgba(0,0,0,.06), 0 10px 26px -16px rgba(60, 40, 120, .4); }
.btn-app { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.12), 0 12px 26px -12px var(--a2); }
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn:hover svg { animation: nudge .7s var(--spring); }
.btn:active { transform: scale(1.1, .86); transition-duration: .08s; }
.jelly.wobble { animation: jelly .7s var(--spring); }
@keyframes jelly { 0% { transform: scale(1); } 25% { transform: scale(1.14, .84); } 45% { transform: scale(.9, 1.1); } 65% { transform: scale(1.05, .96); } 82% { transform: scale(.98, 1.02); } 100% { transform: scale(1); } }
@keyframes nudge { 40% { transform: translateY(3px); } }
.btn .goo { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; opacity: .35; pointer-events: none; animation: goo .7s var(--out) forwards; }
@keyframes goo { to { transform: scale(26); opacity: 0; } }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: var(--card-solid); box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); transition: transform .5s var(--spring); }
.icon-btn:hover { transform: rotate(-14deg) scale(1.12); }

/* ---------- cabecera ---------- */
.nav { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; width: min(1160px, calc(100% - 24px)); display: flex; align-items: center; gap: 22px;
  padding: 10px 12px 10px 18px; border-radius: 22px; background: var(--card); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; letter-spacing: -.3px; }
.brand-icons { display: flex; }
.brand-icons img { width: 28px; height: 28px; margin-left: -9px; border-radius: 9px; box-shadow: 0 0 0 2px var(--card-solid); transition: transform .5s var(--spring); }
.brand-icons img:first-child { margin-left: 0; }
.brand:hover .brand-icons img { transform: translateY(-4px) rotate(-6deg); }
.brand:hover .brand-icons img:nth-child(2) { transition-delay: .05s; }
.brand:hover .brand-icons img:nth-child(3) { transition-delay: .1s; }
.brand:hover .brand-icons img:nth-child(4) { transition-delay: .15s; }
.nav nav { display: flex; gap: 6px; margin-right: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 12px; transition: background .25s, color .25s; }
.nav nav a:hover { background: var(--bg2); color: var(--text); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 80px 0 60px; min-height: 78vh; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--violet);
  background: color-mix(in srgb, var(--violet) 12%, transparent); padding: 6px 14px; border-radius: 999px; }
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -2.4px; margin: 18px 0; }
.grad-text { background: linear-gradient(120deg, var(--blue), var(--violet) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }

.hero-art { display: grid; place-items: center; }
.orbit { position: relative; width: min(440px, 80vw); aspect-ratio: 1; }
.orbit img { position: absolute; width: 34%; border-radius: 26%; filter: drop-shadow(0 22px 30px rgba(70, 40, 140, .3)); animation: float 6s ease-in-out infinite; transition: transform .6s var(--spring); cursor: pointer; }
.orbit img:hover { transform: scale(1.12) rotate(-8deg); }
.orbit .o1 { top: 4%; left: 33%; width: 40%; animation-delay: 0s; }
.orbit .o2 { top: 36%; left: 0; animation-delay: -1.5s; }
.orbit .o3 { top: 36%; right: 0; animation-delay: -3s; }
.orbit .o4 { bottom: 0; left: 33%; animation-delay: -4.5s; }
.orbit .core { position: absolute; inset: 38%; border-radius: 50%; background: var(--card-solid); display: grid; place-items: center; font-size: 34px;
  box-shadow: var(--shadow); animation: heartbeat 2.4s var(--spring) infinite; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: 0deg; } 33% { translate: 0 -14px; rotate: -4deg; } 66% { translate: 0 6px; rotate: 3deg; } }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.14, .9); } 30% { transform: scale(.94, 1.06); } }

/* ---------- secciones ---------- */
.section { padding: 70px 0; }
.section.narrow { width: min(760px, 100%); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 36px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.2px; line-height: 1.1; margin: 14px 0 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.app-card { background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; transition: transform .6s var(--spring), box-shadow .4s; }
.app-card::before { content: ''; position: absolute; inset: -40% 40% auto -20%; height: 240px; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 28%, transparent), transparent 70%);
  pointer-events: none; transition: transform .8s var(--out); }
.app-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 30px 60px -28px var(--a2); }
.app-card:hover::before { transform: translate(30%, 20%) scale(1.3); }
.app-card:hover .app-logo { animation: jelly .8s var(--spring); }
.app-main { display: flex; gap: 18px; align-items: center; }
.app-logo { width: 78px; height: 78px; border-radius: 22px; filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--a2) 40%, transparent)); }
.app-card h3 { font-size: 28px; margin: 0; letter-spacing: -.6px; }
.tagline { margin: 2px 0 0; color: var(--muted); font-weight: 500; }
.tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); padding: 4px 10px; border-radius: 999px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feats li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.feats b { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--a1) 16%, transparent); font-size: 16px; }
.app-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.ver { color: var(--muted); font-size: 13px; }
.featured { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 22px 40px; padding: 36px; margin-bottom: 22px; }
.featured .app-logo { width: 110px; height: 110px; border-radius: 30px; }
.featured h3 { font-size: 40px; }
.featured .app-foot { grid-column: 1; }
.featured .feats { grid-row: span 2; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); transition: transform .6s var(--spring); }
.step:hover { transform: translateY(-6px) scale(1.02); }
.step .num { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: var(--grad); }
.step:hover .num { animation: jelly .7s var(--spring); }
.step h4 { font-size: 20px; margin: 16px 0 4px; }
.step p { margin: 0; color: var(--muted); }

.donate-card { text-align: center; padding: 56px 28px; border-radius: 36px; background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 18%, var(--card-solid)), color-mix(in srgb, var(--violet) 18%, var(--card-solid)));
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.donate-card p { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 17px; }
.donate-card small { display: block; margin-top: 16px; color: var(--muted); }
.heart { font-size: 64px; display: inline-block; animation: heartbeat 2s var(--spring) infinite; }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 12px; overflow: hidden; transition: transform .5s var(--spring); }
.faq:hover { transform: scale(1.01); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--violet); transition: transform .5s var(--spring); }
.faq[open] summary::after { transform: rotate(135deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); animation: drop .5s var(--spring); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scaleY(.9); } }

.foot { width: min(1160px, calc(100% - 32px)); margin: 40px auto 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.foot .brand { font-size: 16px; color: var(--text); }
.brand-icons.small img { width: 22px; height: 22px; border-radius: 7px; margin-left: -7px; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.96); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--out), transform .9s var(--spring); }
.reveal.in.app-card { transition: opacity .7s var(--out), transform .9s var(--spring), box-shadow .4s; }

/* corazones y confeti */
.burst { position: fixed; pointer-events: none; z-index: 60; font-size: 22px; animation: burst 1s var(--out) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.6); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 70; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--card-solid); color: var(--text); border: 1px solid var(--line);
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; transition: transform .6s var(--spring); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 960px) {
  .hero, .featured { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta, .meta { justify-content: center; }
  .app-grid, .steps { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .featured .feats { grid-row: auto; }
}
@media (max-width: 520px) {
  .nav .btn-sm { display: none; }
  .brand b { font-size: 17px; }
  .featured { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
