/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ECEAE5;
  --surface:   #FFFFFF;
  --border:    #E0DDD8;
  --text:      #1a1a1a;
  --text-muted:#888;
  --accent:    #1a1a1a;
  --accent-fg: #FFFFFF;
  --danger:    #c0392b;
  --radius:    16px;
  --shadow:    0 1px 4px rgba(0,0,0,0.07);
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Solo la home (.app--home) usa el layout de alto fijo + scroll interno.
   Si esto se aplicara a html/body sin acotar, rompería el scroll normal
   de las demás páginas (rifa.html, nueva-rifa.html, etc.), que usan
   .app con min-height: 100vh y scroll de página completo. */
html:has(.app--home),
body:has(.app--home) {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app--home {
  height: 100vh;    /* fallback navegadores viejos */
  height: 100svh;   /* small viewport height: el alto con la barra de URL visible.
                        dvh también es "correcto" pero cambia de valor al hacer scroll
                        (la barra se esconde) y hace saltar el layout — svh es estable. */
  overflow: hidden; /* el scroll vive en .rifa-list (paso 5) */
  padding: 24px 20px 0;   /* era 40px 20px 80px, un solo padding lateral */
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  padding: 14px 0 0;
  margin-bottom: 0;
  flex: none;
}

.hero__badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
  text-align: left;
}

.hero__sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  text-align: left;
  max-width: 300px;
}

/* ─── BUTTON ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 99px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.btn:active { transform: scale(0.95); transition-duration: .08s; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 14px 48px;
  font-size: 16px;
  letter-spacing: 0.2px;
  display: block;
  margin: 0 auto;
  width: fit-content;
  text-align: center;
}

.btn--primary:hover { opacity: .82; }

.btn--danger {
  background: transparent;
  color: var(--danger);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}
.btn--danger:hover { background: #fdf0ee; border-radius: 8px; }

/* ─── SECTION TITLE ─────────────────────────────────────── */
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── EMPTY ─────────────────────────────────────────────── */
.list-empty {
  text-align: center;
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 2;
}

.list-section .list-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 16px;
}
.list-empty__sub { font-size: 13px; color: #bbb; }

/* ─── LISTA DE RIFAS ────────────────────────────────────── */
.rifa-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-section {
  flex: 1;
  min-height: 0;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
}

.list-section .rifa-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
 padding-bottom: 80px;
  padding-left: 12px;     /* espacio para las muescas ::before/::after (-11px) */
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

/* ─── CARD BASE (home y finalizadas) ────────────────────── */
.rifa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow .15s, transform .12s;
  position: relative;
}

/* Puntas tipo ticket */
.rifa-card::before,
.rifa-card::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--bg);
  border-radius: 50%;
  border: 1px solid var(--border);
  z-index: 2;
}
.rifa-card::before { left: -11px; }
.rifa-card::after  { right: -11px; }

.rifa-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* Contenido izquierdo */
.rifa-card__info { flex: 1; min-width: 0; }

.rifa-card__name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rifa-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Contenido derecho (contador + botón) */
.rifa-card__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rifa-card__pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

/* ─── CARD: DÍA DEL SORTEO (dorada) ────────────────────── */
.rifa-card.sorteo-hoy {
  background: #1a1a1a;
  border: 2px solid #F5C842;
  animation: glow 2s ease-in-out infinite;
}

.rifa-card.sorteo-hoy .rifa-card__name { color: #fff; }
.rifa-card.sorteo-hoy .rifa-card__meta { color: rgba(255,255,255,0.4); }
.rifa-card.sorteo-hoy .rifa-card__fill { background: #F5C842; }
.rifa-card.sorteo-hoy .rifa-card__bar  { background: rgba(255,255,255,0.1); }
.rifa-card.sorteo-hoy .rifa-card__pct  { color: #F5C842; }
.rifa-card.sorteo-hoy::before,
.rifa-card.sorteo-hoy::after { border-color: #F5C842; }

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(245,200,66,0.4); }
  50%       { box-shadow: 0 0 20px rgba(245,200,66,0.7); }
}

/* ─── CARD: FINALIZADA (página rifas finalizadas) ───────── */
.rifa-card--done {
  border-left: 3px solid #4d8068;
  opacity: 0.75;
}

.rifa-card--done .rifa-card__name { color: #888; }

/* Nombre del ganador */
.rifa-card__winner {
  font-size: 12px;
  font-weight: 700;
  color: #4d8068;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}

/* Número ganador (columna derecha) */
.rifa-card__numwinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.rifa-card__numlabel {
  font-size: 9px;
  font-weight: 800;
  color: #4d8068;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rifa-card__numvalue {
  font-size: 26px;
  font-weight: 900;
  color: #1a1a2e;
}
/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 480px) {
  .app { padding: 24px 14px 60px; }
  .app--home { padding: 24px 14px 0; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
}

/* ─── PAGE HEADER (compartido) ──────────────────────────── */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
align-items: flex-start;
}

/* ─── BOTÓN VOLVER ──────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 15px 7px 10px;
  border: none;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26,26,26,.06),
              0 4px 14px rgba(26,26,26,.07);
  transition: box-shadow .25s ease, transform .25s ease;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(26,26,26,.07),
              0 10px 24px rgba(26,26,26,.11);
}

.back-btn:active { transform: translateY(0) scale(.98); }

.back-arrow {
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.back-btn:hover .back-arrow { transform: translateX(-3px); }

.back-label {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #1a1a1a;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* firma: subrayado dorado del ancho exacto del texto */
.back-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #F5C842;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.back-btn:hover .back-line { transform: scaleX(1); }

.page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}
/* ─── FORM INPUT (compartido) ───────────────────────────── */
.form-input {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: #bbb; }
.rifa-card__bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.rifa-card__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .3s;
}
/* ─── EMPTY STATE ───────────────────────────────────────── */
.empty-anim {
  position: relative;
  width: 160px;
  height: 100px;
  margin: 0 auto 20px;
}

.empty-confetti {
  position: relative;
  width: 100%;
  height: 100%;
}

.dot {
  position: absolute;
  top: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}

.empty-ticket {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}

.empty-ticket__body {
  width: 120px;
  height: 72px;
  background: #1a1a1a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.empty-ticket__body::before,
.empty-ticket__body::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.empty-ticket__body::before { left: -7px; }
.empty-ticket__body::after  { right: -7px; }

.empty-ticket__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #F5C842 0, #F5C842 14px, #1a1a1a 14px, #1a1a1a 20px);
}

.empty-ticket__num {
  color: #F5C842;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  margin-top: 8px;
}

.empty-ticket__label {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 250px;
}
.btn--fab {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  padding: 15px;
  font-size: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 50;
}
.btn--fab:active { transform: translateX(-50%) scale(0.95); }
.fab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 58%, transparent);
}
/* ─── ANIMACIONES DE ENTRADA ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero        { animation: fadeUp .4s ease both; }
.list-section { animation: fadeUp .5s .1s ease both; }
.rifa-card   { animation: fadeUp .4s ease both; }
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.btn-ganador {
  background: #F5C842;
  color: #1a1a1a;
  border: none;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.modal--winner {
  padding: 0;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
#delete-confirm {
  background: #c0392b;
  color: #fff;
  height: 52px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
}

#delete-confirm:hover {
  background: #a93226;
}

.winner-header {
  background: #1a1a1a;
  padding: 24px 24px 18px;
  text-align: center;
}

.winner-trophy {
  font-size: 36px;
  margin-bottom: 6px;
}

.winner-prize {
  color: #F5C842;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.winner-body {
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.winner-input {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.winner-btn {
  width: 100%;
  background: #F5C842;
  color: #1a1a1a;
  border: none;
  border-radius: 99px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
/* ─── MENU BUTTON (ticket animado) ─────────────────────── */
.menu-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.stub {
  fill: #1a1a1a;
  transition: transform 0.44s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.22s ease;
}

.stub-top { transform-origin: 24px 13px; }
.stub-mid { transform-origin: 24px 24px; }
.stub-bot { transform-origin: 24px 35px; }

.menu-btn.open .stub-top { transform: translateY(11px) rotate(45deg); }
.menu-btn.open .stub-mid { transform: scaleX(0.2); opacity: 0; }
.menu-btn.open .stub-bot { transform: translateY(-11px) rotate(-45deg); }
.menu-btn.open .ticket-dot { opacity: 0; }

/* ─── DRAWER ────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}

.drawer-overlay.hidden { display: none; }

.drawer {
  background: #f5f3ef;
  width: 260px;
  height: 100%;
  padding: 80px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: slideInRight 0.25s ease;
}
.drawer-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.drawer-header h2 {
  color: #1a1a2e;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.drawer-group {
  display: flex;
  flex-direction: column;
  padding: 12px 0 4px;
}

.drawer-group__label {
  color: #e84393;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 20px 6px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  border-radius: 0;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background .15s, color .15s;
}
.drawer-item:hover {
  background: rgba(0,0,0,0.04);
  color: #0f0f2d;
}

.drawer-item.active {
  background: rgba(232,67,147,0.1);
  color: #e84393;
  border-left: 3px solid #e84393;
  padding-left: 17px;
}

.drawer-footer {
  margin-top: auto;
  text-align: center;
  color: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 11px;
  padding: 16px 20px;

}

/* ─── RESPALDO ──────────────────────────────────────────── */
.backup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F5C842;
  margin-left: auto;
  flex-shrink: 0;
}
.backup-dot[hidden],
.backup-msg[hidden] { display: none; }

.backup-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(26, 26, 26, 0.45);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: backup-fade 0.32s cubic-bezier(.16,1,.3,1) both;
}
.backup-sheet.hidden { display: none; }

.backup-panel {
  width: 100%;
  max-width: 400px;
  background: #ECEAE5;
  border-radius: 30px 30px 0 0;
  padding: 9px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 44px rgba(26, 26, 26, 0.26);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: backup-rise 0.38s cubic-bezier(.16,1,.3,1) both;
}
.backup-grab {
  width: 36px;
  height: 4px;
  margin: 0 auto 4px;
  border-radius: 99px;
  background: rgba(26, 26, 26, 0.16);
}
.backup-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
}
.backup-sub {
  margin: -6px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #6E6A63;
}
.backup-sub .is-never { color: #c0392b; }

.backup-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1.5px solid #E0DDD8;
  border-radius: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.backup-option:hover { border-color: #1a1a1a; }
.backup-option:active { transform: scale(0.98); }
.backup-option:disabled { opacity: 0.6; cursor: default; }

.backup-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1a1a1a;
  color: #F5C842;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.backup-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.backup-option__title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
}
.backup-option__desc {
  font-size: 12px;
  font-weight: 600;
  color: #6E6A63;
}

.backup-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}
.backup-msg.is-error { color: #c0392b; }

.backup-close {
  margin-top: 4px;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.backup-close:active { transform: scale(0.97); }

@keyframes backup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes backup-rise {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
  .backup-sheet { align-items: center; }
  .backup-panel { border-radius: 26px; }
  .backup-grab { display: none; }
}
/* ─── PANEL RESUMEN ─────────────────────────────────────── */
.panel-resumen {
  background: #1a1a2e;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  animation: slideUp .25s ease;
}

.pr-head {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pr-badge {
  display: inline-block;
  background: #f0c040;
  color: #1a1a2e;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pr-prize {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.pr-winner {
  font-size: 13px;
  color: #e84393;
  font-weight: 600;
}

.pr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.pr-stat {
  background: #0f0f2d;
  padding: 14px 16px;
}

.pr-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pr-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  line-height: 1;
}

.pr-stat-value.gold { color: #f0c040; }

.pr-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pr-recaudado-label {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.pr-recaudado-value {
  font-size: 24px;
  font-weight: 900;
  color: #f0c040;
}

.pr-cerrar {
  display: block;
  width: 100%;
  padding: 16px;
  background: #e84393;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.pr-cerrar:hover {
  background: #d4307f;
}
/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  margin-top: auto; /* empuja el footer hasta el fondo */
  background: #1a1a2e;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: auto;
}