/* Raffle pages (/ampi, /rifa, /rifa/en-vivo), 15-nov-2026. The light look of the AMPI graphics: sand paper,
   deep olive prize cards, champagne accents. Builds on /tokens.css (ZLS type and palette; no Zen Park type).
   23-nov-2026: «Papel y Lápiz» (ZLS DS v02 DRAFT): the ZLS paper tile, olive paper on the dark cards,
   32 px frames, 14 px controls (no pills), soft long shadows, a slow opacity fade. */
:root {
  /* --deep: the dark of cards and buttons. Deep olive since 15-nov (JR Sr.: «el fondo negro por menta u olivo»).
     --gold-on-deep: small gold labels on it, one step lighter so they stay readable. */
  --deep: #3F4A2E; --gold-on-deep: #D4C4A8;
  --sand: #EFE8DC; --bone: #F1ECE2; --warm: #FAF7F2; --obsidian: #0C0B09; --ink: #14110D; --soft: #4C463C;
  --gold: #B69F82; --gold-deep: #9A8163; --line: rgba(20, 17, 13, .1);
  --radius: var(--r); --shadow: var(--shadow-soft);
  --paper-olivo: var(--deep) url(/textures/paper-fine-olivo.jpg) repeat 0 0 / 720px auto;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* components below set display, which would beat the attribute */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); line-height: 1.55; font-size: 16px;
  background: var(--paper-light);
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* header + footer */
.top { padding: 20px 0; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top img { height: 14px; width: auto; } /* the wordmark alone (no tagline), so it reads at this size */
.top .tag { font-family: var(--font-brand); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.foot { padding: 28px 0 40px; margin-inline: auto; color: var(--soft); font-size: 13px; text-align: center; } /* tokens.css caps p at 68ch: centre the box, not just the text */
.foot a { color: inherit; }

/* type */
.eyebrow { font-family: var(--font-brand); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 0 0 18px; }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0 0 18px; text-wrap: balance;
           font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); letter-spacing: -.01em; }
.display em { font-style: normal; color: var(--gold-deep); }
.lede { color: var(--soft); font-size: 1.0625rem; margin: 0 0 22px; max-width: 60ch; }
.lab { font-family: var(--font-brand); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; color: var(--soft); }

/* prize cards: deep olive band under a photo, like the graphics */
.prizes { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.prize { position: relative; background: var(--paper-olivo); color: var(--warm); border-radius: var(--radius); overflow: hidden;
         box-shadow: var(--shadow); display: grid; grid-template-rows: 1fr auto; min-height: 100%; }
.prize .media { position: relative; overflow: hidden; min-height: 200px; }
.prize .media img { width: 100%; height: 100%; object-fit: cover; }
.collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 3px; height: 100%; }
.collage img { min-height: 0; }
.collage img:first-child { grid-row: span 2; }
.prize .band { padding: 18px 22px 20px; }
.prize .band .lab { color: var(--gold-on-deep); letter-spacing: .24em; }
.prize .band h3 { color: var(--warm); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.12; margin: 6px 0 0; }
.concept { position: absolute; top: 10px; left: 12px; z-index: 1; font-size: 11px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.milagro .media img { object-position: 50% 50%; }

/* live strip: countdown + counter */
.live { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 16px 0 0; }
.chip-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 16px; display: grid; gap: 2px; }
.cd-time, .count-num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-time b { font-weight: 500; }
.cd-time small { font-family: var(--font-brand); font-size: 11px; color: var(--soft); margin: 0 6px 0 1px; }
.cd-live { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-deep); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3E9B5B; margin-right: 6px; vertical-align: middle; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-brand); font-size: 13px;
       letter-spacing: .18em; text-transform: uppercase; padding: 16px 22px; border-radius: var(--r-ctl); border: 0; cursor: pointer;
       background: var(--deep); color: var(--warm); text-decoration: none; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* logo strip */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 44px; padding: 26px 0; border-top: 1px solid var(--line); }
.logos img { height: 30px; width: auto; }
.logos img.wide { height: 12px; }
.logos img.round { height: 52px; }
.logos p { flex-basis: 100%; text-align: center; margin: 0; }

/* motion: one slow fade, and none for people who ask for none */
.reveal { opacity: 0; transition: opacity var(--fade); }
.reveal.in { opacity: 1; }
.prize .media img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  .prize .media img { animation: none; }
}

@media (max-width: 720px) {
  .prizes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prize .media { min-height: 120px; }
  .prize .band { padding: 12px 14px 14px; }
  .prize .band h3 { font-size: 1.05rem; }
  .collage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }
  .collage img:not(:first-child) { display: none; }
  .collage img:first-child { grid-row: auto; }
  .logos { gap: 18px 28px; }
  .logos img { height: 24px; } .logos img.round { height: 42px; } .logos img.wide { height: 10px; }
  .top img { height: 11px; }
}
