/* adc_recaudacion — páginas públicas (/donar, /recaudacion). Tokens --adc-* de adc_brand con respaldo. */
.rp, .rp-body {
  --rp-wine: var(--adc-color-primary, #6B1D2A);
  --rp-wine-h: var(--adc-color-primary-hover, #561722);
  --rp-wine-strong: var(--adc-color-primary-strong, #4A1220);
  --rp-wine-soft: var(--adc-wine-soft, #F4E9EA);
  --rp-gold: var(--adc-gold, #B8924A);
  --rp-gold-text: var(--adc-gold-text, #7A5C22);
  --rp-gold-bright: var(--adc-gold-bright, #D9B979);
  --rp-bg: var(--adc-color-bg, #FAF6EF);
  --rp-bg-alt: var(--adc-color-bg-alt, #F3ECE0);
  --rp-surface: var(--adc-color-surface, #FFFFFF);
  --rp-text: var(--adc-color-text, #2A2724);
  --rp-muted: var(--adc-color-text-muted, #5C5650);
  --rp-line: var(--adc-color-line, #E4DACB);
  --rp-olive: var(--adc-olive, #556B2F);
  --rp-danger: var(--adc-color-danger, #B42318);
  --rp-danger-soft: #FCEDEB;
  --rp-serif: var(--adc-font-serif, "ADC Serif", "EB Garamond", Georgia, "Times New Roman", serif);
  --rp-sans: var(--adc-font-sans, "ADC Sans", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --rp-radius: var(--adc-radius-lg, 16px);
  --rp-shadow: 0 1px 2px rgba(42, 39, 36, .05), 0 10px 30px rgba(74, 18, 32, .06);
  --rp-section-y: var(--adc-section-y, clamp(64px, 9vw, 112px));
}
.rp { color: var(--rp-text); font-family: var(--rp-sans); font-size: 1.0625rem; line-height: 1.6; }
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }

/* ---------- layout de respaldo ---------- */
.rp-body { margin: 0; background: var(--rp-bg); color: var(--rp-text); font-family: var(--rp-sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.rp-body *, .rp-body *::before, .rp-body *::after { box-sizing: border-box; }
.rp-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 50; }
.rp-skip:focus { left: 8px; }
.rp-container { width: 100%; max-width: var(--adc-container, 1200px); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .rp-container { padding: 0 32px; } }
.rp-header { background: var(--rp-surface); border-bottom: 1px solid var(--rp-line); position: sticky; top: 0; z-index: 20; }
.rp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.rp-brand { display: flex; align-items: center; gap: 12px; color: var(--rp-wine); text-decoration: none; }
.rp-brand-mark { width: 26px; height: 32px; flex: none; }
.rp-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.rp-brand strong { font-family: var(--rp-serif); font-size: 1.2rem; font-weight: 600; }
.rp-brand small { color: var(--rp-muted); font-size: .85rem; }
.rp-nav { display: flex; align-items: center; gap: 4px; }
.rp-nav a { color: var(--rp-text); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 1rem; }
.rp-nav a:hover { background: var(--rp-bg-alt); }
.rp-nav a.is-cta { background: var(--rp-wine); color: #fff; padding: 10px 18px; }
.rp-nav a.is-cta:hover { background: var(--rp-wine-h); }
@media (max-width: 560px) { .rp-nav a:not(.is-cta) { display: none; } .rp-brand small { display: none; } }
.rp-crumbs ol { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--rp-muted); }
.rp-crumbs li + li::before { content: "›"; margin-right: 6px; }
.rp-crumbs a { color: var(--rp-muted); }
.rp-footer { background: var(--rp-wine-strong); color: #F3E9DA; padding: 56px 0; margin-top: 0; text-align: center; }
.rp-footer p { margin: 0 0 8px; }
.rp-footer-name { font-family: var(--rp-serif); font-size: 1.25rem; }
.rp-footer-motto { color: var(--rp-gold-bright); font-style: italic; }
.rp-footer-links a { color: #F3E9DA; }

/* ---------- secciones ---------- */
.rp-section { padding: var(--rp-section-y) 0; }
.rp-section--alt { background: var(--rp-bg-alt); }
.rp-section--tight { padding-top: 0; }
.rp-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); background: radial-gradient(1200px 400px at 85% -10%, rgba(184, 146, 74, .14), transparent 60%), var(--rp-bg); }
.rp-hero--wine { background: linear-gradient(160deg, var(--rp-wine-strong), var(--rp-wine) 70%); color: #fff; }
.rp-hero--wine .rp-lead, .rp-hero--wine .rp-meta { color: #F3E9DA; }
.rp-hero--wine .rp-eyebrow { color: var(--rp-gold-bright); }
.rp-eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-gold-text); margin: 0 0 14px; }
.rp-h1 { font-family: var(--rp-serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.01em; }
.rp-h2 { font-family: var(--rp-serif); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; color: var(--rp-text); }
.rp-h3 { font-family: var(--rp-serif); font-weight: 600; font-size: 1.4rem; line-height: 1.25; margin: 0 0 10px; }
.rp-lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--rp-muted); max-width: 62ch; margin: 0 0 28px; }
.rp-prose { max-width: 68ch; }
.rp-prose p { margin: 0 0 1em; }
.rp-muted { color: var(--rp-muted); }
.rp-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--rp-muted); margin: 0 0 8px; padding: 0; list-style: none; }
.rp-meta li { display: inline-flex; align-items: center; gap: 8px; }
.rp-meta svg { width: 18px; height: 18px; flex: none; }
.rp-head-center { text-align: center; margin: 0 auto 40px; max-width: 720px; }
.rp-head-center .rp-lead { margin-left: auto; margin-right: auto; }

/* ---------- rejillas ---------- */
.rp-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .rp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .rp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rp-split { display: grid; gap: 32px; }
@media (min-width: 960px) { .rp-split { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 56px; align-items: start; } .rp-sticky { position: sticky; top: 96px; } }

/* ---------- tarjetas ---------- */
.rp-card { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 28px; box-shadow: var(--rp-shadow); }
@media (min-width: 768px) { .rp-card { padding: 32px; } }
.rp-card--soft { background: var(--rp-bg); box-shadow: none; }
.rp-card > :last-child { margin-bottom: 0; }
.rp-card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--rp-wine-soft); color: var(--rp-wine); display: grid; place-items: center; margin-bottom: 18px; }
.rp-card-icon svg { width: 24px; height: 24px; }
.rp-ev-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.rp-ev-card .rp-h3 a { color: var(--rp-text); text-decoration: none; }
.rp-ev-card .rp-h3 a:hover { color: var(--rp-wine); text-decoration: underline; }
.rp-ev-card .rp-more { margin-top: auto; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--rp-bg-alt); color: var(--rp-muted); }
.rp-chip--wine { background: var(--rp-wine-soft); color: var(--rp-wine); }
.rp-chip--ok { background: #EEF2E6; color: var(--rp-olive); }
.rp-chip--demo { background: #FFF4D6; color: #7A4B00; border: 1px dashed #D9A93B; }
.rp-hero--wine .rp-chip { background: rgba(255, 255, 255, .14); color: #fff; }
.rp-hero--wine .rp-chip--demo { background: #FFF4D6; color: #7A4B00; }

/* ---------- botones ---------- */
.rp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--rp-wine); background: var(--rp-wine); color: #fff; cursor: pointer; line-height: 1.2; font-family: inherit; transition: background .15s, transform .15s; }
.rp-btn:hover { background: var(--rp-wine-h); border-color: var(--rp-wine-h); color: #fff; }
.rp-btn:focus-visible, .rp-input:focus-visible, .rp-check input:focus-visible + span { outline: 3px solid var(--rp-gold); outline-offset: 2px; }
.rp-btn--ghost { background: transparent; color: var(--rp-wine); }
.rp-btn--ghost:hover { background: var(--rp-wine-soft); color: var(--rp-wine); }
.rp-btn--light { background: #fff; border-color: #fff; color: var(--rp-wine); }
.rp-btn--light:hover { background: #F3E9DA; border-color: #F3E9DA; color: var(--rp-wine-strong); }
.rp-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.rp-btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rp-btn--sm { min-height: 44px; padding: 8px 18px; font-size: .98rem; }
.rp-btn--block { width: 100%; }
.rp-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .rp-btns .rp-btn { width: 100%; } }
.rp-link { color: var(--rp-wine); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rp-link:hover { text-decoration: underline; }

/* ---------- termómetro ---------- */
.rp-thermo-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 12px; }
.rp-thermo-nums strong { font-family: var(--rp-serif); font-size: 2rem; line-height: 1; color: var(--rp-wine); font-variant-numeric: tabular-nums; }
.rp-thermo--lg .rp-thermo-nums strong { font-size: clamp(2.2rem, 5vw, 2.8rem); }
.rp-thermo-nums span { color: var(--rp-muted); }
.rp-thermo-track { height: 14px; border-radius: 999px; background: #EADFCD; overflow: hidden; }
.rp-thermo--lg .rp-thermo-track { height: 18px; }
.rp-thermo-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rp-wine), #8E2C3C 70%, var(--rp-gold)); min-width: 6px; }
.rp-thermo-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: .95rem; color: var(--rp-muted); }
.rp-thermo-foot b { color: var(--rp-text); }
.rp-hero--wine .rp-thermo-nums strong { color: #fff; }
.rp-hero--wine .rp-thermo-track { background: rgba(255, 255, 255, .2); }

/* ---------- datos para donar ---------- */
.rp-bank { margin: 0 0 16px; padding: 18px 20px; border-radius: 12px; background: var(--rp-bg); border: 1px solid var(--rp-line); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--rp-text); }
.rp-copy-ok { color: var(--rp-olive); font-weight: 700; margin-left: 8px; }
.rp-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rp-uses li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.rp-uses .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--rp-wine-soft); color: var(--rp-wine); display: grid; place-items: center; }
.rp-uses .ic svg { width: 22px; height: 22px; }
.rp-uses b { display: block; font-size: 1.05rem; }
.rp-uses span { color: var(--rp-muted); }
.rp-note { border-left: 4px solid var(--rp-gold); background: var(--rp-surface); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--rp-muted); font-size: 1rem; }
.rp-note strong { color: var(--rp-text); }

/* ---------- formulario ---------- */
.rp-form-wrap { max-width: 760px; margin: 0 auto; }
.rp-form { display: grid; gap: 22px; }
.rp-form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .rp-form-row--2 { grid-template-columns: 1fr 1fr; } }
.rp-field label, .rp-field .rp-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.rp-field .opt { font-weight: 400; color: var(--rp-muted); font-size: .92rem; }
.rp-input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #CFC3B0; border-radius: 12px; background: #fff; font: inherit; font-size: 1.0625rem; color: var(--rp-text); }
textarea.rp-input { min-height: 120px; resize: vertical; }
select.rp-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235C5650' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.rp-input:focus { border-color: var(--rp-wine); outline: none; box-shadow: 0 0 0 3px rgba(107, 29, 42, .15); }
.rp-input[aria-invalid="true"] { border-color: var(--rp-danger); }
.rp-money { position: relative; }
.rp-money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--rp-muted); font-weight: 700; }
.rp-money .rp-input { padding-left: 32px; }
.rp-help { font-size: .93rem; color: var(--rp-muted); margin: 6px 0 0; }
.rp-error { font-size: .95rem; color: var(--rp-danger); margin: 8px 0 0; font-weight: 600; }
.rp-alert { border-radius: 12px; padding: 16px 20px; background: var(--rp-danger-soft); color: #7A1A12; border: 1px solid #F1C4BE; }
.rp-alert ul { margin: 8px 0 0; padding-left: 20px; }
.rp-alert a { color: #7A1A12; }
.rp-check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; font-weight: 400 !important; }
.rp-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--rp-wine); }
.rp-file { display: block; border: 2px dashed #CFC3B0; border-radius: 14px; padding: 20px; background: var(--rp-bg); text-align: center; cursor: pointer; }
.rp-file:hover { border-color: var(--rp-wine); }
.rp-file input { display: block; margin: 10px auto 0; max-width: 100%; font-size: 1rem; }
.rp-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rp-form-foot { display: grid; gap: 14px; }

/* ---------- sorteo ---------- */
.rp-winners { display: grid; gap: 16px; }
.rp-winner { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.rp-winner .folio { font-family: var(--rp-serif); font-size: 1.8rem; color: var(--rp-wine); font-weight: 600; font-variant-numeric: tabular-nums; grid-row: span 2; background: var(--rp-wine-soft); border-radius: 12px; padding: 10px 16px; min-width: 96px; text-align: center; }
.rp-winner .prize { font-weight: 700; font-size: 1.1rem; }
.rp-verify { margin-top: 28px; }
.rp-verify summary { cursor: pointer; font-weight: 700; color: var(--rp-wine); min-height: 44px; display: flex; align-items: center; }
.rp-verify dl { display: grid; grid-template-columns: 1fr; gap: 4px 18px; margin: 14px 0; }
@media (min-width: 640px) { .rp-verify dl { grid-template-columns: max-content 1fr; } }
.rp-verify dt { color: var(--rp-muted); font-weight: 600; }
.rp-verify dd { margin: 0 0 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; word-break: break-all; }

/* ---------- resultado ---------- */
.rp-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.rp-result div { background: var(--rp-bg); border-radius: 12px; padding: 14px; }
.rp-result span { display: block; font-size: .85rem; color: var(--rp-muted); }
.rp-result b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .rp-result { grid-template-columns: 1fr; } }

/* ---------- vacío ---------- */
.rp-empty { text-align: center; padding: 48px 24px; }
.rp-empty .rp-card-icon { margin: 0 auto 18px; }

/* ---------- bloque de portada ---------- */
.rp-home { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .rp-home { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.rp-home .rp-card { padding: 28px; }
.rp-home-alt { text-align: center; max-width: 720px; margin: 0 auto; }
.rp-home-alt .rp-lead { margin-left: auto; margin-right: auto; }
.rp-home-alt .rp-btns { justify-content: center; }
.rp-link svg { width: 18px; height: 18px; flex: none; }
.rp-home-block .rp-h2 { margin-top: 0; }

/* Robustez dentro del layout común: el CSS del sitio colorea los enlaces; los botones mandan. */
.rp a.rp-btn, .rp button.rp-btn { color: #fff; text-decoration: none; }
.rp a.rp-btn:hover, .rp button.rp-btn:hover { color: #fff; }
.rp a.rp-btn--ghost, .rp button.rp-btn--ghost { color: var(--rp-wine); }
.rp a.rp-btn--ghost:hover, .rp button.rp-btn--ghost:hover { color: var(--rp-wine); }
.rp a.rp-btn--light { color: var(--rp-wine); }
.rp a.rp-link { color: var(--rp-wine); }
/* Rejillas: que ningún control con ancho intrínseco (fecha, archivo) desborde en teléfono. */
.rp-form, .rp-form-row, .rp-grid, .rp-split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rp-form-row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 768px) { .rp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .rp-split { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); } }
.rp-form > *, .rp-form-row > *, .rp-grid > *, .rp-split > * { min-width: 0; }
.rp-input { max-width: 100%; min-width: 0; display: block; }
input[type="date"].rp-input { -webkit-appearance: none; appearance: none; }
.rp-file input { width: 100%; }
/* Pocas tarjetas: centradas y de ancho cómodo, en vez de quedar pegadas a la izquierda. */
.rp-grid-3.rp-n1 { max-width: 460px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .rp-grid-3.rp-n1 { grid-template-columns: minmax(0, 1fr); } .rp-grid-3.rp-n2 { max-width: 880px; margin-left: auto; margin-right: auto; } }
@media (min-width: 1024px) { .rp-grid-3.rp-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-hero + .rp-section { padding-top: clamp(40px, 5vw, 72px); }
.rp .rp-hero--wine .rp-h1, .rp .rp-hero--wine h1 { color: #fff; }
.rp .rp-hero--wine .rp-meta, .rp .rp-hero--wine .rp-meta li { color: #F3E9DA; }
/* En teléfono, el avance de la meta va primero (lo que más se busca). */
@media (max-width: 959px) { .rp-split > aside { order: -1; } }
.rp .rp-h3, .rp h2.rp-h3, .rp h3.rp-h3 { font-size: 1.4rem; line-height: 1.25; }
.rp .rp-h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.rp .rp-h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.rp-copy-ok + .rp-help, .rp-bank ~ .rp-help { margin-top: 14px; }
.rp-prizes { list-style: none; margin: 0; padding: 0; }
.rp-prizes li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--adc-color-line, #E4DACB); font-size: 1.0625rem; }
.rp-prizes li:last-child { border-bottom: 0; }
.rp-prizes .n { font-family: var(--adc-font-serif, Georgia, serif); color: var(--adc-color-primary, #6B1D2A); font-weight: 700; min-width: 2.2em; }
