:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --text: #14151a;
  --muted: #62626d;
  --line: #e2dfd7;
  --brand: #14151a;
  --brand-ink: #ffffff;
  --accent: #ffc53d;
  --good: #1a8f55;
  --good-soft: #def5e8;
  --shadow: 0 1px 2px rgba(20, 21, 26, .05), 0 10px 30px rgba(20, 21, 26, .07);
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1014;
    --surface: #18191f;
    --surface-2: #23242c;
    --text: #f4f3ef;
    --muted: #a3a2ab;
    --line: #2c2d36;
    --brand: #f4f3ef;
    --brand-ink: #14151a;
    --good: #4cc98a;
    --good-soft: #12301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, transparent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 .95rem var(--font); text-decoration: none; color: var(--text); white-space: nowrap; transition: transform .08s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding: .8rem 1.5rem; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: .3rem .8rem; font-size: .85rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; font: 800 1.25rem var(--display); letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav nav > a { text-decoration: none; padding: 8px 10px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav nav > a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: .45rem .95rem; }
.lang { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; font-weight: 700; font-size: .8rem; padding: 6px 10px; cursor: pointer; }
@media (max-width: 680px) { .nav nav > a { display: none; } }
.lang-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: var(--text); color: var(--bg); font-size: .9rem; font-weight: 600; }
.lang-bar a { text-decoration: none; }
.lang-bar button { border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .7; font-size: 1rem; }

/* Hero */
.hero { position: relative; padding-top: 72px; padding-bottom: 56px; }
.kicker { display: inline-block; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; max-width: 15ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 20px 0 28px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-tiles { position: absolute; right: 16px; top: 80px; display: grid; grid-template-columns: repeat(2, 84px); gap: 14px; transform: rotate(8deg); }
.hero-tiles i { width: 84px; height: 84px; border-radius: 22px; display: block; box-shadow: var(--shadow); }
.hero-tiles i:nth-child(1) { background: #ff5a36; }
.hero-tiles i:nth-child(2) { background: #2f5bff; }
.hero-tiles i:nth-child(3) { background: #14c27a; }
.hero-tiles i:nth-child(4) { background: #ffc53d; border-radius: 50%; }
@media (max-width: 900px) { .hero-tiles { display: none; } }

/* Secciones */
.section { padding-top: 72px; }
.section > h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.section > .sub { margin: 8px 0 24px; }
.section > h2 + .why, .section > h2 + .faq { margin-top: 24px; }

/* Tarjetas de apps */
.apps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .apps { grid-template-columns: repeat(3, 1fr); } }
.app-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 5px solid var(--c, var(--line)); }
.app-card p { margin: 0; flex: 1; }
.app-top { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-icon.plus { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 2rem; font-weight: 300; border: 2px dashed var(--line); }
.app-card h3 { font-size: 1.45rem; }
.app-tagline { font-weight: 600; color: var(--c, var(--muted)); margin: 2px 0 0 !important; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-app { background: var(--c); border-color: var(--c); color: #fff; }
.btn-app:hover { filter: brightness(1.07); }
.app-actions { align-items: center; }
.app-host { margin-left: auto; font-size: .72rem; color: var(--muted); }
.app-card.soon { border-top-style: dashed; box-shadow: none; background: transparent; }

/* Por qué */
.why { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why span { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.why h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why p { margin: 0; }

/* Donaciones */
.donate-band { display: grid; gap: 24px; align-items: center; padding: 30px; border-radius: 24px; background: var(--surface); border: 2px solid var(--text); }
@media (min-width: 820px) { .donate-band { grid-template-columns: 1.3fr 1fr; padding: 40px; } }
.donate-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 10px; }
.donate p { margin: 0 0 12px; }
.donate-hero { font-size: 2.6rem; text-align: center; margin: 4px 0 8px; }
.donate-reason { background: var(--good-soft); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.donate-facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.donate-facts li { display: flex; gap: 8px; font-size: .95rem; }
.donate-facts li::before { content: '✓'; color: var(--good); font-weight: 800; }
.donate-links { display: grid; gap: 8px; margin-bottom: 12px; }
.donate-link { justify-content: space-between; text-align: left; border-radius: 14px; }
.donate-link small { font-weight: 500; font-size: .8rem; opacity: .8; }
.donate-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* Diálogo de donación */
dialog { border: 0; padding: 0; width: min(560px, 100%); max-height: min(92vh, 900px); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(8, 8, 12, .55); }
@media (max-width: 600px) { dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; } }
.dlg-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px 20px; }
.dlg-head h2 { font-size: 1.2rem; flex: 1; }
.dlg-body { padding: 6px 20px 24px; }
.hint { font-size: .8rem; color: var(--muted); }

/* FAQ y pie */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 56px; padding-bottom: 32px; margin-top: 56px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
