/* Concepto: volante de protesta de barrio. Papel de diario, negro de imprenta,
   rojo de alarma y amarillo de advertencia. Columna de relato + tarjeta de firma fija. */
:root {
  --navy: #151515;        /* negro de imprenta */
  --navy-2: #2b2b2b;
  --sky: #d62828;         /* rojo de acento */
  --sky-soft: #f8e4e1;
  --leaf: #1d7a46;        /* el sí */
  --leaf-soft: #e4f1e8;
  --sun: #ffd60a;         /* amarillo advertencia */
  --rose: #d62828;        /* botones */
  --paper: #f5f3ee;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5c5850;
  --line: #e2ddd2;
  --danger: #b4233c;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-poster: "Anton", "Impact", "Arial Black", sans-serif;

  --s-1: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  --s-2: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  --s-3: 1.2rem;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.075rem/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--f-display); color: var(--navy); line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- barra superior ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--navy); color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--f-display); font-size: 1.05rem; }
.brand b { color: var(--sun); margin-right: 4px; }
.brand-marca { width: 24px; height: 24px; color: var(--rose); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1.05rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  background: var(--rose); color: #fff; border: 0; border-radius: 999px;
  padding: 15px 26px; min-height: 48px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.btn:hover { background: #b51f1f; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { padding: 9px 18px; min-height: 38px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--sky-soft); }

/* ---------- intro ---------- */
.intro { padding-block: clamp(28px, 5vw, 56px) 22px; display: grid; gap: 16px; }
.eyebrow { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.intro h1 { font-size: var(--s-1); font-weight: 800; max-width: 22ch; letter-spacing: -0.01em; }
.para { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; color: var(--muted); font-size: .98rem; }
.para-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--navy); background: var(--sun); padding: 3px 9px; border-radius: 6px; }

/* ---------- layout principal ---------- */
.layout {
  display: grid; gap: 28px 44px; align-items: start;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "media sign" "story sign";
  padding-bottom: 56px;
}
.media { grid-area: media; margin: 0; min-width: 0; }
.story { grid-area: story; min-width: 0; display: grid; gap: 36px; max-width: 68ch; }
.sign { grid-area: sign; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "sign" "story"; }
  .sign { position: static; }
}

/* ---------- relato ---------- */
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--text); }
.lead + .lead { margin-top: -22px; font-weight: 700; color: var(--navy); }
.block { display: grid; gap: 14px; }
.block h2 { font-size: var(--s-2); font-weight: 700; }
.block-tinted { background: var(--leaf-soft); border-radius: var(--radius); padding: 24px 24px 26px; }
.block-tinted { background: #fff7cc; border: 1px solid #efd76a; }
.block-tinted h2 { color: var(--navy); }
.block-hands { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--sun); border-radius: var(--radius); padding: 24px 24px 26px; }
.hands-strong { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1.3; color: var(--rose); }
.pull { margin: 6px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); }
.pull p { font-family: var(--f-display); font-weight: 500; font-size: 1.32rem; line-height: 1.35; color: var(--navy); }

.demands { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 10px; }
.demands li { counter-increment: d; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 64px; min-height: 62px; }
.demands li::before { content: counter(d); position: absolute; left: 16px; top: 13px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--sun); font: 700 1rem/1 var(--f-display); }
.demands b { color: var(--navy); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); }
.chips li:nth-child(4n+1) { border-color: var(--sky); }
.chips li:nth-child(4n+2) { border-color: var(--leaf); }
.chips li:nth-child(4n+3) { border-color: var(--sun); }
.chips li:nth-child(4n+4) { border-color: var(--rose); }
.note { font-size: .9rem; color: var(--muted); }

/* ---------- redes ---------- */
.follow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: center; padding-block: 8px 60px; }
@media (max-width: 820px) { .follow { grid-template-columns: minmax(0, 1fr); } }
.follow-copy { display: grid; gap: 10px; }
.follow-copy h2 { font-size: var(--s-2); }
.follow-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .follow-links { grid-template-columns: minmax(0, 1fr); } }
.social { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.social:hover { transform: translateY(-2px); border-color: var(--sky); }
.social svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: #fff; background: var(--navy-2); }
.social span { display: grid; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.social b { color: var(--navy); font-size: 1rem; }
.social.ig svg { background: linear-gradient(135deg, #f6b545, #e0567d 50%, #8b4fd6); }
.social.fb svg { background: #1f5fc9; }
.social.contact svg { background: var(--rose); }

/* ---------- tarjeta de firma ---------- */
.sign-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .28); padding: 22px; display: grid; gap: 18px; }
.counter { display: grid; gap: 8px; }
.counter-num { font: 800 2.4rem/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.counter-unit { font: 700 1.05rem var(--f-body); color: var(--muted); }
.bar { height: 12px; background: var(--sky-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, var(--rose) 0 10px, #b51f1f 10px 20px); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.counter-meta { font-size: .95rem; color: var(--muted); }
.counter-meta b { color: var(--navy); }

.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent:empty { display: none; }
.recent li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .92rem; color: var(--muted); }
.recent svg { width: 18px; height: 18px; }
.recent b { color: var(--text); }

.sign-title { font-size: 1.35rem; margin-bottom: 12px; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 380px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 12px; min-height: 46px;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(214, 40, 40, .22); background: var(--surface); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
small { font-size: .82rem; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; font-size: .9rem; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 700; font-size: .95rem; }
.ts-box { min-height: 0; }
.ts-box:empty { display: none; }

.thanks { display: grid; gap: 12px; text-align: center; justify-items: center; }
.thanks:focus { outline: none; }
.thanks-marca { width: 60px; height: 60px; color: var(--rose); animation: wave 1.2s ease 1; transform-origin: 50% 90%; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
.thanks h2 { font-size: 1.5rem; }

/* ---------- compartir ---------- */
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 12px;
  border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 .95rem/1.1 var(--f-body); color: #fff; background: var(--navy-2);
  transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.share-btn.wa { background: #1f9e55; grid-column: 1 / -1; font-size: 1.05rem; min-height: 52px; }
.share-btn.fb { background: #1f5fc9; }
.share-btn.x { background: #1b2433; }
.share-btn.tg { background: #2a8bc7; }
.share-btn.copy { background: var(--surface); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.share-btn.native { background: var(--rose); }

/* ---------- muro ---------- */
.wall-section { background: #ebe7dd; padding-block: 56px; position: relative; }
.wall-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(135deg, var(--sun) 0 18px, var(--navy) 18px 36px); }
.wall-section > .wrap { position: relative; display: grid; gap: 26px; }
.section-head { display: grid; gap: 10px; max-width: 62ch; }
.section-head h2 { font-size: var(--s-2); }
.wall-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .wall-grid { grid-template-columns: minmax(0, 1fr); } }
.wall-form { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.wall-form h3 { font-size: 1.2rem; }
.wall { columns: 2 260px; column-gap: 16px; min-width: 0; }
.msg { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border-radius: 4px 14px 14px 14px; padding: 16px 18px 14px; border-top: 5px solid var(--c, var(--sky)); box-shadow: 0 4px 14px -10px rgba(0, 0, 0, .4); display: grid; gap: 10px; }
.msg-text { white-space: pre-line; overflow-wrap: anywhere; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .85rem; color: var(--muted); }
.msg-meta b { color: var(--navy); }
.msg-badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1f5a33; background: var(--leaf-soft); padding: 2px 7px; border-radius: 5px; }
.msg.is-new { animation: pop .5s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .3; } to { transform: none; opacity: 1; } }
.wall-empty { color: var(--muted); font-style: italic; }
#wall-more { justify-self: center; }

/* ---------- apoyos ---------- */
.support { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding-block: 60px; align-items: start; }
@media (max-width: 820px) { .support { grid-template-columns: minmax(0, 1fr); } }
.support-copy { display: grid; gap: 16px; justify-items: start; }
.support-copy h2 { font-size: var(--s-2); }
.support-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.support-list h3 { font-size: 1.1rem; }
.orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orgs:empty { display: none; }
.orgs li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.orgs li span { color: var(--muted); font-size: .88rem; }

/* ---------- difusión ---------- */
.spread { background: var(--navy); color: #ece9e2; padding-block: 56px; }
.spread-in { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: center; }
@media (max-width: 760px) { .spread-in { grid-template-columns: minmax(0, 1fr); } }
.spread h2 { color: #fff; font-size: var(--s-2); margin-bottom: 10px; }
.spread p { margin-bottom: 18px; }
.spread .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .spread .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qr-box { background: #fff; color: var(--text); border-radius: var(--radius); padding: 16px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.qr-box p { margin: 0; font-size: .88rem; }
.qr svg, .qr img { width: 180px; height: 180px; }

/* ---------- pie ---------- */
.footer { background: #0d0d0d; color: #bdb8ad; padding-block: 36px calc(36px + 64px); font-size: .92rem; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 700px) { .footer-in { grid-template-columns: minmax(0, 1fr); } }
.footer p + p { margin-top: 6px; }
.footer a { color: var(--sun); }
.footer-brand { color: #fff; font-family: var(--f-display); font-size: 1.1rem; }
.footer-brand b { color: var(--sun); }

/* ---------- botón móvil y aviso ---------- */
.mobile-cta {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; border-radius: 0;
  padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  box-shadow: 0 -6px 18px -8px rgba(0, 0, 0, .35);
  transition: transform .25s ease;
}
.mobile-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 901px) { .mobile-cta { display: none; } .footer { padding-bottom: 36px; } }
.toast {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700;
  max-width: calc(100% - 32px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}

/* ---------- tarjeta del 15% ---------- */
.hero-card { background: var(--navy); color: #ece9e2; border-radius: var(--radius); padding: clamp(22px, 4vw, 36px) clamp(22px, 4vw, 36px) clamp(30px, 4vw, 44px); display: grid; gap: 26px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: repeating-linear-gradient(135deg, var(--sun) 0 18px, var(--navy) 18px 36px); }
.stamp { justify-self: start; font: 400 clamp(1rem, .8rem + 1vw, 1.35rem)/1 var(--f-poster); letter-spacing: .04em; text-transform: uppercase; color: var(--sun); border: 3px solid var(--sun); padding: 8px 12px 7px; transform: rotate(-2deg); }
.big { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; align-items: center; }
@media (max-width: 560px) { .big { grid-template-columns: minmax(0, 1fr); } }
.big-num { font: 400 clamp(5rem, 3rem + 9vw, 9rem)/.85 var(--f-poster); color: var(--rose); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.big-txt { font-size: 1.15rem; line-height: 1.45; max-width: 34ch; }
.big-txt b { color: #fff; }
.compare { display: grid; gap: 16px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 18px 18px 16px; }
.cmp-row { display: grid; gap: 6px; }
.cmp-label { font-size: .92rem; color: #c9c4b8; }
.cmp-bar { height: 22px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; }
.cmp-fill { display: block; height: 100%; background: var(--rose); border-radius: 4px; transform-origin: left; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) .2s both; }
.cmp-fill.cmp-small { background: var(--sun); min-width: 6px; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.cmp-val { font: 700 1.1rem/1.1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.cmp-val-big { font: 400 1.9rem/1 var(--f-poster); color: var(--rose); letter-spacing: .01em; }
.cmp-foot { font-size: 1rem; color: #ece9e2; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
.cmp-foot b { font: 400 1.4rem/1 var(--f-poster); color: var(--sun); }

/* ---------- ejemplo de boleta ---------- */
.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; }
.example-title { font-weight: 700; color: var(--navy); font-size: .95rem; }
.example-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 460px) { .example-grid { grid-template-columns: minmax(0, 1fr); } }
.example-grid div { background: var(--paper); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.example-grid dt { font-size: .85rem; color: var(--muted); }
.example-grid dd { margin: 0; font: 800 1.5rem/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.example-grid .example-hit { background: var(--sky-soft); box-shadow: inset 0 0 0 2px var(--rose); }
.example-hit dd { color: var(--rose); }

/* ---------- dice / hace ---------- */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .versus { grid-template-columns: minmax(0, 1fr); } }
.vs-col { border-radius: 12px; padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.vs-dice { background: var(--surface); border: 1px solid var(--line); }
.vs-hace { background: var(--rose); color: #fff; }
.vs-tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.vs-dice .vs-tag { color: var(--muted); }
.vs-quote { font: 700 1.2rem/1.3 var(--f-display); }
.vs-dice .vs-quote { color: var(--navy); text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 3px; }

/* ---------- hechos ---------- */
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; background: var(--rose); transform: rotate(45deg); border-radius: 2px; }
.facts b { color: var(--navy); }
.lead b { color: var(--rose); }
@media (max-width: 480px) { .brand-extra { display: none; } }
.follow-single { grid-template-columns: minmax(0, 1fr); }
