/* ════════════════════════════════════════════
   LA OLA · main.css · Mobile-first · Dark
   ════════════════════════════════════════════ */

:root {
  --bg:      #0a0a0a;
  --bg2:     #141414;
  --bg3:     #1e1e1e;
  --text:    #f0f0f0;
  --muted:   #777;
  --border:  rgba(255,255,255,.08);
  --primary: #F1C40F;
  --radius:  14px;
  --shadow:  0 8px 40px rgba(0,0,0,.6);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --max-w:   620px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
}
/* ── Flag background ──────────────────────────── */
#flag-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}
#flag-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,.50);
  pointer-events: none;
}
canvas { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
a      { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo     { font-size: 1.15rem; font-weight: 800; }
.logo-sub { font-size: .8rem; color: var(--muted); }

/* ── Layout ─────────────────────────────────────── */
#app { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 36px 0 20px; }

/* ── Hero ───────────────────────────────────────── */
.hero-title {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  font-family: var(--font-display);
  letter-spacing: .02em;
}
.hero-title .n  { font-variant-numeric: tabular-nums; }
.hero-title .hi { color: var(--primary); }

.hero-sub {
  font-size: clamp(.95rem, 3vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  line-height: 1.65;
}
.hero-sub strong { color: var(--text); }

.hero-cta {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,0.70);
  margin-bottom: 16px;
}

/* ── Candidate buttons ──────────────────────────── */
.candidatos { display: grid; gap: 12px; }

.btn-candidato {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  transition: border-color .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  min-height: 76px;
}
.btn-candidato:active { transform: scale(.97); }

.c-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.c-info  { display: flex; flex-direction: column; gap: 2px; }
.c-name  { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.c-party { font-size: .78rem; color: var(--muted); }

/* ── Truth block ────────────────────────────────── */
.truth-block { margin-bottom: 28px; animation: fadeUp .4s ease both; }
.truth-title {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.truth-body { color: var(--muted); font-size: 1rem; margin-bottom: 12px; line-height: 1.65; }
.truth-call { font-size: 1.1rem; line-height: 1.55; }
.truth-call strong { color: inherit; }

/* ── Badge ──────────────────────────────────────── */
.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.badge-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
#badge-canvas { width: 100%; height: 100%; }
.badge-loading {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Code card ──────────────────────────────────── */
.code-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  animation: fadeUp .4s ease .1s both;
}
.code-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.code-value {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--primary);
}

/* ── Share section ──────────────────────────────── */
.share-section { margin-bottom: 22px; animation: fadeUp .4s ease .2s both; }
.share-headline {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.55;
}
.share-headline em { color: var(--text); font-style: normal; font-weight: 600; }

/* Native share — primary CTA on mobile */
.btn-native-share {
  display: block;
  width: 100%;
  padding: 17px;
  margin-bottom: 12px;
  background: var(--primary);
  color: #000;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-native-share:active { transform: scale(.97); opacity: .85; }

/* Platform grid */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.share-grid--sm { margin-top: 14px; margin-bottom: 0; }

.btn-share {
  padding: 14px 8px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-share:active { transform: scale(.96); opacity: .8; }

.btn-wa   { background: #25D366; color: #000; }
.btn-tg   { background: #2AABEE; color: #000; }
.btn-fb   { background: #1877F2; color: #fff; }
.btn-x    { background: #000;    color: #fff; border: 1px solid #333; }
.btn-copy { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }

.btn-full {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.btn-download {
  display: block;
  text-align: center;
  padding: 11px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color .15s, border-color .15s;
}
.btn-download:hover { color: var(--text); border-color: var(--muted); }

.share-nudge {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  opacity: .65;
}

/* ── Counter ────────────────────────────────────── */
.counter-card {
  padding: 28px 20px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 20px;
  animation: fadeUp .4s ease both;
}
.counter-num {
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  transition: transform .3s ease;
}
.counter-text { font-size: .88rem; color: var(--muted); }

/* ── Push ───────────────────────────────────────── */
.push-card {
  padding: 22px 20px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 24px;
}
.push-card p { font-size: .88rem; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.btn-push {
  padding: 13px 30px;
  background: var(--primary);
  color: #000;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  transition: opacity .15s;
}
.btn-push:active { opacity: .85; }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 20px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Donate CTA button */
.btn-donate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-donate-cta-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #D4A017 0%, #FFD700 45%, #D4A017 100%);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(255,215,0,.35), 0 1px 0 rgba(255,255,255,.15) inset;
  transition: transform .15s, box-shadow .15s;
}
.btn-donate-cta:hover .btn-donate-cta-inner {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,215,0,.5);
}
.btn-donate-cta:active .btn-donate-cta-inner { transform: scale(.97); }
.donate-icon  { font-size: 1.3rem; }
.donate-label { font-size: 1rem; font-weight: 800; color: #000; letter-spacing: .01em; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #171717;
  border: 1px solid rgba(255,215,0,.25);
  border-radius: 22px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  animation: fadeUp .25s ease both;
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  color: rgba(255,255,255,.35);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 6px;
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }
.modal-wave  { font-size: 3rem; margin-bottom: 12px; }
.modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}
.modal-body {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-body strong { color: #FFD700; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.modal-btn {
  display: block;
  padding: 15px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: .95rem;
  text-align: center;
  transition: opacity .15s, transform .1s;
}
.modal-btn:active { transform: scale(.97); opacity: .85; }
.modal-btn-bold { background: #FFD700; color: #000; }
.modal-btn-mp   { background: #009EE3; color: #fff; }
.modal-footnote { font-size: .72rem; color: rgba(255,255,255,.3); }

/* Ad slots */
.ad-slot {
  width: 100%;
  min-height: 60px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-legal { font-size: .68rem; color: var(--muted); line-height: 1.5; opacity: .45; }

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer-initiative {
  font-size: .72rem;
  color: rgba(255,255,255,.42);
  text-align: center;
  margin-bottom: 10px;
}

.donate-title { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.82); margin-bottom: 16px; }

/* ── Consent line ───────────────────────────────── */
.consent-line {
  font-size: .68rem;
  color: rgba(255,255,255,.38);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}
.consent-line a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer legal links ─────────────────────────── */
.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .72rem;
}
.footer-legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: var(--text); }
.footer-legal-links span { color: var(--border); }

.txt-blue { color: #7BA3C8; }   /* dusty steel blue */
.txt-red  { color: #C47070; }   /* muted rose-red */

/* ── Tablet ─────────────────────────────────────── */
@media (min-width: 540px) {
  .candidatos     { grid-template-columns: 1fr 1fr; }
  .share-grid     { grid-template-columns: repeat(4, 1fr); }
  .share-grid--sm { grid-template-columns: 1fr 1fr; }
  .badge-wrap     { max-width: 340px; }
}

/* ── Desktop ────────────────────────────────────── */
@media (min-width: 768px) {
  #app, .site-footer { padding-left: 0; padding-right: 0; }
  .badge-wrap         { max-width: 360px; }
}