/* =========================================================
   Juntos por los más chamitos · r/VeneJuegos
   Paleta: papel crema + sol ámbar + coral + océano.
   Iconos: Lucide (sprite SVG). Sin emojis.
   ========================================================= */

:root {
  --paper:      #FBF3E6;
  --paper-2:    #F4E7CF;
  --paper-3:    #EADBBE;
  --ink:        #211B14;
  --ink-soft:   #6A5C4B;
  --sun:        #FFC23C;
  --sun-deep:   #F5A314;
  --coral:      #FF5C39;
  --coral-deep: #E8401E;
  --ocean:      #115E6B;
  --ocean-deep: #0B454F;
  --mint:       #7FC9A8;

  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-soft: 0 18px 50px -22px rgba(33,27,20,.45);
  --radius: 22px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1200px;
  --nav-h: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
section[id], main > section { scroll-margin-top: calc(var(--nav-h) + 14px); }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sun); color: var(--ink); }

/* ---------- Icons ---------- */
.ico { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }

/* Anti-desborde: los hijos de grids/flex pueden encoger por debajo de su min-content */
.raffle-inner > *, .donate-grid > *, .pillar-grid > *, .ally-grid > *,
.ledger-grid > *, .stats > *, .calc-row > * { min-width: 0; }

/* ---------- Shared ---------- */
.section-eyebrow {
  font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: .5rem;
}
.section-eyebrow.light { color: var(--sun); }
.section-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }

.hl {
  background: linear-gradient(transparent 60%, var(--sun) 60% 94%, transparent 94%);
  padding: 0 .08em;
}

.ph-tag {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .62rem; text-transform: uppercase; letter-spacing: .07em;
  background: var(--paper-3); color: var(--ink-soft);
  padding: .15em .55em; border-radius: 6px; border: 1px dashed var(--ink-soft);
  vertical-align: middle; line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1rem; padding: .85rem 1.5rem;
  border-radius: 100px; border: 2.5px solid var(--ink); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .2s;
  background: var(--paper); color: var(--ink);
}
.btn .ico { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--sun); box-shadow: var(--shadow-hard); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-sm { padding: .5rem 1.1rem; font-size: .9rem; background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost-sm:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand-mark { color: var(--coral); display: grid; place-items: center; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.brand-text em { font-style: italic; color: var(--coral-deep); }
.nav-links { display: flex; align-items: center; gap: 1.3rem; font-weight: 600; }

/* Toggle de idioma */
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 100px; overflow: hidden; }
.lang-btn { border: none; background: var(--paper-2); color: var(--ink); font-family: inherit; font-weight: 800; font-size: .78rem; letter-spacing: .03em; padding: .32rem .66rem; cursor: pointer; transition: background .2s, color .2s; }
.lang-btn + .lang-btn { border-left: 2px solid var(--ink); }
.lang-btn.is-active { background: var(--ink); color: var(--paper); }
.lang-btn:not(.is-active):hover { background: var(--paper-3); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--coral); transition: width .2s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  min-height: calc(100svh - var(--nav-h) - 58px);
  padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-inner { position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 700;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 100px;
  padding: .4rem 1rem; font-size: .85rem; margin-bottom: 1.4rem;
}
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 30%, transparent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .7; } }

.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 6.6vw, 5.3rem); line-height: .98; letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.hero-title span { display: block; }
.hero-title em { font-style: italic; color: var(--coral); }
.line-accent { position: relative; width: max-content; max-width: 100%; }
.line-accent::after {
  content: ""; position: absolute; left: -1%; bottom: .05em; width: 102%; height: .12em;
  background: var(--sun); z-index: -1; border-radius: 4px; transform: rotate(-1deg);
}
.hero-lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 40ch; color: var(--ink-soft); margin-bottom: 1.6rem; }
.hero-lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.kicker { margin-bottom: 1.1rem; }

/* Counter card */
.counter-card {
  position: relative; z-index: 2;
  background: var(--ocean); color: var(--paper);
  border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem; box-shadow: var(--shadow-hard);
}
.counter-tag { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--sun); display: flex; align-items: center; gap: .5rem; }
.counter-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 1.6s infinite; }
.counter-big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 6.5vw, 4.4rem); line-height: 1; margin: .4rem 0 .9rem;
  display: flex; align-items: baseline; gap: .1rem; letter-spacing: -.02em;
}
.counter-big .cur { font-size: .5em; color: var(--sun); }
.progress { height: 12px; background: var(--ocean-deep); border-radius: 100px; overflow: hidden; border: 1.5px solid rgba(251,243,230,.25); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--coral)); border-radius: 100px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.counter-goal p { font-size: .9rem; margin-top: .6rem; opacity: .92; }
.counter-pills { list-style: none; display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.counter-pills li { display: inline-flex; align-items: center; gap: .35rem; background: rgba(251,243,230,.12); border: 1.5px solid rgba(251,243,230,.3); padding: .25rem .7rem; border-radius: 100px; font-size: .82rem; font-weight: 600; }
.counter-pills .ico { width: 1rem; height: 1rem; color: var(--sun); }

/* Blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; z-index: 0; pointer-events: none; }
.blob-sun { width: 360px; height: 360px; background: radial-gradient(circle at 35% 35%, var(--sun), transparent 70%); top: -40px; right: 20%; animation: float 9s ease-in-out infinite; }
.blob-ocean { width: 280px; height: 280px; background: radial-gradient(circle at 40% 40%, var(--mint), transparent 70%); bottom: 4%; left: -40px; opacity: .4; animation: float 11s ease-in-out infinite reverse; }
.blob-coral { width: 230px; height: 230px; background: radial-gradient(circle at 40% 40%, var(--coral), transparent 70%); top: 45%; right: -40px; opacity: .3; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-24px) translateX(10px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); overflow: hidden; padding: .75rem 0; }
.marquee-track { display: flex; gap: 1.4rem; white-space: nowrap; width: max-content; animation: scroll 28s linear infinite; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; font-weight: 500; }
.marquee-track .sep { color: var(--sun); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section base ---------- */
.reality, .pillars, .donate, .wall, .ledger, .allies { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }

/* ---------- Reality ---------- */
.reality { background: var(--paper-2); }
.reality-inner { max-width: 950px; margin: 0 auto; text-align: center; }
.reality-head {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.01em;
  margin: 1.1rem auto 2.8rem; max-width: 22ch;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 1.4rem .8rem; box-shadow: 3px 3px 0 var(--ink); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.4rem); color: var(--coral-deep); line-height: 1; }
.stat-lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-top: .35rem; }
.reality-note { margin-top: 2.8rem; font-size: 1.12rem; color: var(--ink-soft); max-width: 54ch; margin-inline: auto; }
.reality-note strong { color: var(--ink); }

/* ---------- Pillars ---------- */
.pillars { background: var(--paper); }
.pillars-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.pillars-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.04; margin: .8rem 0; }
.pillars-sub { color: var(--ink-soft); font-size: 1.08rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.pillar {
  position: relative; padding: 2.4rem 1.9rem; border-radius: var(--radius);
  border: 2.5px solid var(--ink); box-shadow: var(--shadow-hard);
  transition: transform .2s ease, box-shadow .2s ease; background: var(--paper-2);
}
.pillar:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.p-sun { background: var(--sun); }
.p-coral { background: var(--coral); color: var(--paper); }
.p-ocean { background: var(--ocean); color: var(--paper); }
.pillar-ico { width: 64px; height: 64px; display: grid; place-items: center; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 2px 2px 0 var(--ink); margin-bottom: 1.2rem; color: var(--ink); }
.pillar-ico .ico { width: 32px; height: 32px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.pillar p { font-size: 1rem; }
.p-coral p, .p-ocean p { color: color-mix(in srgb, var(--paper) 90%, transparent); }

/* ---------- Raffle ---------- */
.raffle { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }
.raffle-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.raffle-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.06; margin: .9rem 0 1.1rem; }
.gta { font-style: italic; color: var(--sun); white-space: nowrap; }
.raffle-lead { color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: 1.1rem; max-width: 46ch; }
.raffle-lead strong { color: var(--sun); }
.raffle-date { margin-top: 1.3rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.raffle-date > span { min-width: 0; }
.raffle-date .ico { color: var(--sun); width: 1.3em; height: 1.3em; flex: 0 0 auto; }

.calc { margin-top: 2rem; background: rgba(251,243,230,.06); border: 2px solid rgba(251,243,230,.2); border-radius: 18px; padding: 1.4rem; }
.calc > label { font-weight: 700; display: block; margin-bottom: .8rem; }
.calc-row { display: flex; align-items: stretch; gap: 1rem; }
.calc-input { flex: 1; display: flex; align-items: center; gap: .3rem; background: var(--paper); color: var(--ink); border: 2.5px solid var(--sun); border-radius: 14px; padding: .4rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.calc-input span { color: var(--sun-deep); }
.calc-input input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; color: inherit; outline: none; }

/* Steppers numéricos personalizados (reemplazan las flechas nativas) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.stepper { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.stepper .step {
  display: grid; place-items: center; cursor: pointer; padding: 0;
  width: 32px; height: 22px; border: 2px solid var(--ink); border-radius: 7px;
  background: var(--sun); color: var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink);
  transition: transform .1s ease, background .15s ease, box-shadow .1s ease;
}
.stepper .step:hover { background: var(--sun-deep); }
.stepper .step:active { transform: translate(1px,1px); box-shadow: 0 0 0 var(--ink); }
.stepper .step .ico { width: 15px; height: 15px; }
/* Monto en el formulario */
.num-wrap { position: relative; display: flex; align-items: center; }
.num-wrap input { width: 100%; padding-right: 52px; }
.num-wrap .stepper { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); gap: 3px; }
.num-wrap .stepper .step { width: 30px; height: 16px; border-radius: 6px; box-shadow: 1px 1px 0 var(--ink); }
.num-wrap .stepper .step .ico { width: 13px; height: 13px; }
.calc-result { display: grid; place-items: center; min-width: 112px; background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; padding: .3rem .8rem; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.calc-result span { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1; }
.calc-result small { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.calc-formula { margin-top: .9rem; font-size: .85rem; color: color-mix(in srgb, var(--paper) 68%, transparent); }
.calc-cta { margin-top: 1.1rem; width: 100%; justify-content: center; gap: .55rem; }
.calc-cta-amt { font-family: var(--font-display); font-weight: 900; }
.calc-cta .ico { width: 1.05em; height: 1.05em; }

/* Ticket */
.ticket { display: flex; filter: drop-shadow(8px 10px 0 rgba(0,0,0,.5)); transform: rotate(-2.5deg); transition: transform .3s ease; }
.ticket:hover { transform: rotate(0deg) scale(1.02); }
.ticket-main { position: relative; background: var(--sun); color: var(--ink); border-radius: 18px 0 0 18px; padding: 2.1rem 1.9rem; flex: 1; border: 3px solid var(--ink); border-right: none; }
.ticket-stub { position: relative; background: var(--coral); color: var(--paper); border-radius: 0 18px 18px 0; padding: 2.1rem 1.3rem; display: grid; place-items: center; align-content: center; text-align: center; border: 3px solid var(--ink); gap: .3rem; }
.ticket-main::after { content: ""; position: absolute; top: 8px; bottom: 8px; right: -3px; width: 3px; background-image: radial-gradient(circle, var(--ink) 0 2px, transparent 2.5px); background-size: 3px 12px; }
.ticket-brand { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.ticket-prize { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin: .3rem 0; }
.ticket-sub { font-weight: 600; font-size: .92rem; }
.ticket-divider { display: flex; gap: 6px; margin: 1.2rem 0; }
.ticket-divider span { height: 8px; flex: 1; border-radius: 4px; background: var(--ink); opacity: .25; }
.ticket-divider span:nth-child(1){opacity:.5} .ticket-divider span:nth-child(2){opacity:.3}
.ticket-foot { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.05rem; }
.stub-no { font-weight: 800; font-size: .72rem; letter-spacing: .1em; }
.stub-val .ico { width: 44px; height: 44px; }
.stub-txt { font-size: .74rem; font-weight: 700; }

/* ---------- Donate ---------- */
.donate { background: var(--paper-2); }
.donate-head { text-align: center; max-width: 660px; margin: 0 auto 3rem; }
.donate-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .7rem 0; }
.donate-head p { color: var(--ink-soft); }
.donate-grid {
  display: grid; gap: 1.6rem 1.8rem; align-items: start; max-width: var(--maxw); margin: 0 auto;
  grid-template-columns: .9fr 1.1fr;
  grid-template-areas: "methods fields" "methods foot";
}
.area-methods { grid-area: methods; }
.area-fields  { grid-area: fields; }
.area-foot    { grid-area: foot; }

.methods { display: flex; flex-direction: column; gap: .7rem; }
.method {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem;
  align-items: center; text-align: left; cursor: pointer;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px;
  padding: .9rem 1.1rem; font-family: inherit; transition: transform .15s, box-shadow .15s, background .2s;
}
.method:hover { transform: translateX(3px); }
.method[aria-pressed="true"] { background: var(--sun); box-shadow: 4px 4px 0 var(--ink); }
.m-ico { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); }
.m-ico .ico { width: 22px; height: 22px; }
.method[aria-pressed="true"] .m-ico { background: var(--paper); }
.m-name { font-weight: 800; font-size: 1.05rem; }
.m-detail { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.method[aria-pressed="true"] .m-detail { color: var(--ink); }
.methods-note { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin-top: .5rem; }
.methods-note .ico { color: var(--coral-deep); width: 1.1rem; height: 1.1rem; }

.area-fields { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-hard); }
.area-foot { display: flex; flex-direction: column; }

/* Asistente por pasos (solo móvil; en desktop oculto) */
.wiz-label { display: none; }
.wizard-nav { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .opt { font-weight: 500; color: var(--ink-soft); }
.field input { font-family: inherit; font-size: 1rem; padding: .75rem .9rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-2); color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.field input:focus { outline: none; border-color: var(--coral); box-shadow: 3px 3px 0 var(--coral); background: var(--paper); }
.field-check { margin: .4rem 0 1rem; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--coral); }
.form-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; background: var(--ocean); color: var(--paper); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 600; font-size: .92rem; }
.form-summary strong { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--sun); }
.form-fineprint { font-size: .78rem; color: var(--ink-soft); margin-top: .9rem; text-align: center; }

/* ---------- Wall ---------- */
.wall { background: var(--paper); border-top: 2.5px solid var(--ink); }
.wall-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.wall-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); margin: .6rem 0; }
.wall-head p { color: var(--ink-soft); }
.notes { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }
.note { position: relative; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 8px; padding: 1.3rem 1.2rem; box-shadow: var(--shadow-soft); transition: transform .2s; }
.note:hover { transform: translateY(-5px) rotate(0deg) !important; }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 58px; height: 20px; background: color-mix(in srgb, var(--sun) 75%, transparent); border: 1px solid rgba(33,27,20,.2); border-radius: 2px; }
.note-name { font-weight: 800; font-size: 1.05rem; }
.note-reddit { font-size: .8rem; color: var(--ocean); font-weight: 700; }
.note-msg { font-family: var(--font-display); font-style: italic; margin: .6rem 0; font-size: 1.02rem; line-height: 1.4; }
.note-foot { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 700; margin-top: .8rem; }
.note-amount { background: var(--sun); border: 1.5px solid var(--ink); padding: .1rem .55rem; border-radius: 100px; }
.note-nums { color: var(--coral-deep); }
.wall-more { display: none; width: max-content; margin: 1.6rem auto 0; }
.wall-ph { display: block; width: max-content; max-width: 90%; margin: 2.6rem auto 0; }

/* ---------- Ledger / Transparencia (placeholder) ---------- */
.ledger { background: var(--paper-2); }
.ledger-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.ledger-inner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); margin: .7rem 0 .6rem; }
.ledger-sub { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 2.6rem; font-size: 1.05rem; }
.ledger-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.ledger-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; aspect-ratio: 4 / 3; border: 2.5px dashed var(--ink-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--paper) 60%, transparent); color: var(--ink-soft); font-weight: 700; }
.ledger-card .ico { width: 38px; height: 38px; }

/* ---------- Allies ---------- */
.allies { background: var(--paper); }
.allies-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.allies-inner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: .8rem auto 2.8rem; max-width: 20ch; }
.ally-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ally { position: relative; background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 2.1rem 1.7rem; box-shadow: 3px 3px 0 var(--ink); text-align: left; }
.ally-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; margin-bottom: .7rem; }
.ally:nth-child(1) .ally-logo { color: var(--ocean); }
.ally:nth-child(2) .ally-logo { color: var(--coral-deep); }
.ally p { color: var(--ink-soft); font-size: .98rem; margin-bottom: .9rem; }
.ally-ph { border-style: dashed; background: transparent; box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 2.5rem) 2.6rem;
  display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem);
}
.brand-footer { color: var(--paper); }
.brand-footer .brand-mark { color: var(--coral); }
.footer-about { margin-top: 1.1rem; color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 40ch; font-size: .98rem; }
.footer-about strong { color: var(--sun); }
.footer-col h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--paper); }
.footer-col a { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .35rem 0; color: color-mix(in srgb, var(--paper) 80%, transparent); font-weight: 600; transition: color .2s; }
.footer-col a:hover { color: var(--sun); }
.footer-muted { font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(251,243,230,.16);
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.6rem clamp(1.2rem, 4vw, 2.5rem) 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: color-mix(in srgb, var(--paper) 60%, transparent);
}
.footer-bottom p { font-weight: 600; }
.footer-legal { max-width: 60ch; }

/* ---------- Animations ---------- */
/* Carga del hero (above the fold) */
.load { opacity: 0; transform: translateY(22px); animation: loadUp .75s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes loadUp { to { opacity: 1; transform: none; } }

/* Reveal al hacer scroll — CSS puro (scroll-driven) con fallback visible */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
    .load   { animation-delay: 0ms; }
  }
}
@keyframes revealUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .load, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
/* Tablet: colapsa las rejillas multi-columna */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 2.5rem; overflow: clip; }
  .counter-card { max-width: 480px; }
  .raffle-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Donar móvil: datos → método de pago → confirmar (sin tener que subir) */
  .donate-grid { grid-template-columns: 1fr; grid-template-areas: "fields" "methods" "foot"; }
  .pillar-grid, .ally-grid, .ledger-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ticket { max-width: 440px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Teléfono: cada sección acomodada para una pantalla angosta */
@media (max-width: 600px) {
  .nav { padding: .65rem .9rem; }
  .brand-text { font-size: 1.02rem; }
  .nav-links { gap: .55rem; }
  .nav-links a:not(.btn) { display: none; }
  .reality, .pillars, .donate, .wall, .ledger, .allies { padding-top: 3rem; padding-bottom: 3rem; }

  /* Hero móvil: con aire, sin amontonar */
  .hero { gap: 1.7rem; padding-block: 2.6rem 2.8rem; align-content: center; }
  .kicker { font-size: .8rem; margin-bottom: 1.2rem; padding: .42rem .9rem; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3rem); line-height: 1.02; margin-bottom: 1.1rem; }
  .hero-lead { font-size: .98rem; margin-bottom: 1.5rem; }
  .hero-cta { gap: .7rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .counter-card { transform: none; max-width: 100%; padding: 1.5rem; }
  .counter-big { font-size: 2.8rem; margin: .3rem 0 .8rem; }
  .counter-pills { margin-top: 1rem; }

  /* Muro: máximo 3 en móvil + ver más */
  .notes .note:nth-child(n+4) { display: none; }
  .notes.expanded .note:nth-child(n+4) { display: block; }
  .wall-more { display: inline-flex; }

  /* Accountability: carrusel deslizable con el dedo */
  .ledger-grid {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: clamp(-2.5rem, -4vw, -1rem); padding: .4rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ledger-grid::-webkit-scrollbar { display: none; }
  .ledger-card { flex: 0 0 80%; scroll-snap-align: center; }

  /* Rifa */
  .raffle-copy h2 { font-size: 1.95rem; }
  .calc-row { flex-direction: column; }
  .calc-result { width: 100%; min-width: 0; min-height: 58px; flex-direction: row; gap: .5rem; }
  .calc-input { font-size: 1.55rem; }
  .ticket { max-width: 100%; }
  .ticket-main { padding: 1.5rem 1.2rem; }
  .ticket-stub { padding: 1.5rem .7rem; }
  .ticket-prize { font-size: 2.4rem; }

  /* Donar — asistente por pasos: 1·Método → 2·Datos → 3·Confirmar */
  .donate-grid.wizard { display: block; }
  .donate-grid.wizard > .area-methods,
  .donate-grid.wizard > .area-fields,
  .donate-grid.wizard > .area-foot { display: none; }
  .donate-grid.wizard > .is-active { display: block; animation: stepIn .35s ease; }
  .wiz-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 1.1rem; color: var(--ink); }
  .wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--maxw); margin: 1.5rem auto 0; }
  .wizard-nav .btn { padding: .72rem 1.1rem; font-size: .92rem; flex: 0 0 auto; }
  .wiz-progress { font-weight: 800; color: var(--ink-soft); font-size: .9rem; letter-spacing: .06em; }
  .wiz-back-ico { transform: rotate(180deg); }

  /* Métodos en 2 columnas dentro del paso */
  .methods { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-content: start; }
  .method { grid-template-columns: auto 1fr; padding: .8rem; }
  .m-detail { font-size: .72rem; }
  .methods-note { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .marquee-track { font-size: 1rem; }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
  .hero-title { font-size: 2.5rem; }
  .ticket-prize { font-size: 2.1rem; }
  .counter-pills { gap: .4rem; }
  .method { padding: .7rem .65rem; column-gap: .6rem; }
  .m-ico { width: 38px; height: 38px; }
  .m-name { font-size: .98rem; }
}
@media (max-width: 340px) {
  .methods { grid-template-columns: 1fr; }
}

/* Pantallas BAJAS (ej. iPhone SE): el hero debe caber completo igual */
@media (max-width: 600px) and (max-height: 730px) {
  .hero { gap: .65rem; padding-block: .6rem; }
  .kicker { font-size: .7rem; margin-bottom: .4rem; padding: .28rem .7rem; }
  .kicker .dot { width: 7px; height: 7px; }
  .hero-title { font-size: clamp(1.85rem, 9vw, 2.35rem); margin-bottom: .45rem; }
  .hero-lead { font-size: .82rem; line-height: 1.35; margin-bottom: .55rem; }
  .hero-cta { gap: .5rem; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding: .55rem .5rem; font-size: .82rem; }
  .hero-cta .btn .ico { display: none; }
  .counter-card { padding: .8rem 1rem; }
  .counter-tag { font-size: .64rem; }
  .counter-big { font-size: 2rem; margin: .12rem 0 .45rem; }
  .progress { height: 9px; }
  .counter-goal p { font-size: .76rem; margin-top: .4rem; }
  .counter-pills { margin-top: .5rem; gap: .35rem; }
  .counter-pills li { padding: .16rem .5rem; font-size: .7rem; }
  .counter-pills .ico { width: .9rem; height: .9rem; }
}
