/* Prode UI — premios, CTAs, pills (compartido entre páginas Prode) */

.prode-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.prode-cta-stack .btn-primary,
.prode-cta-stack .btn-ghost,
.prode-cta-stack .btn-link-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: background 0.15s, opacity 0.15s;
}
.prode-cta-stack .btn-primary {
  background: var(--amber);
  color: #fff;
  border: none;
}
.prode-cta-stack .btn-primary:active {
  background: var(--amber-hover);
  transform: scale(0.98);
}
.prode-cta-stack .btn-ghost {
  background: var(--bg-card);
  color: var(--amber);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.98rem;
}
.prode-cta-stack .btn-link-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
}
.prode-cta-stack .btn-link-ghost:active { color: var(--amber); }

.premios-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1.5px solid var(--line-strong);
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.premios-pill:active { opacity: 0.85; }

.prizes-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.prize-teaser-card {
  background: linear-gradient(145deg, var(--amber-dim) 0%, var(--bg-card) 55%);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.7rem 0.65rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  touch-action: manipulation;
  min-width: 0;
}
.prize-teaser-card:active { border-color: var(--amber); }
.prize-teaser-card__emoji { font-size: 1.35rem; line-height: 1; margin-bottom: 0.3rem; }
.prize-teaser-card__title {
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  overflow-wrap: break-word;
}
.prize-teaser-card__desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prize-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--amber-dim) 0%, var(--bg-card) 48%);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.55rem;
  box-shadow: var(--shadow);
}
.prize-card__medal { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }
.prize-card__body { flex: 1; min-width: 0; }
.prize-card__title { font-weight: 800; font-size: 1rem; line-height: 1.2; margin-bottom: 0.2rem; }
.prize-card__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.prize-card__tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 99px;
  align-self: center;
}

.prizes-footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}
.prizes-footnote a { color: var(--amber); }

.winners-strip {
  margin-bottom: 1.75rem;
}
.winners-strip__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.winner-chip {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  line-height: 1.4;
}
.winner-chip strong { color: var(--text); }
.winner-chip .winner-pts { color: var(--amber); font-weight: 700; }
.winners-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0.65rem 0.75rem;
  background: var(--bg-soft);
  border-radius: 10px;
}

.prode-details {
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.prode-details summary {
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.prode-details summary::-webkit-details-marker { display: none; }
.prode-details summary::after {
  content: '+';
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 900;
}
.prode-details[open] summary::after { content: '−'; }
.prode-details__inner { padding: 0 1rem 1rem; }

.arg-banner--compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
.arg-banner--compact .arg-flag { margin: 0; font-size: 0; flex-shrink: 0; }
.arg-banner--compact .arg-flag img { width: 36px; }
.arg-banner--compact .arg-title { font-size: 0.92rem; margin: 0; }
.arg-banner--compact .arg-sub { font-size: 0.75rem; margin: 0; }

.countdown--compact { margin-bottom: 1rem; }
.countdown--compact .cd-box {
  padding: 0.45rem 0.5rem;
  min-width: 2.75rem;
  border-radius: 10px;
}
.countdown--compact .cd-num { font-size: 1.2rem; }
.countdown--compact .cd-lbl { font-size: 0.58rem; }

.hub-premios-strip {
  background: linear-gradient(135deg, var(--amber-dim) 0%, var(--bg-card) 100%);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius, 16px);
  padding: 0.9rem 0.85rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.hub-premios-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.hub-premios-strip__title {
  font-weight: 900;
  font-size: 0.95rem;
}
.hub-premios-strip__btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.25rem 0;
}
.hub-premios-mini {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hub-premios-mini__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.hub-premios-mini__tag { font-size: 1rem; flex-shrink: 0; }
.hub-premios-mini__label {
  flex: 1;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-card--premios {
  border-color: var(--amber) !important;
  background: linear-gradient(135deg, var(--amber-dim) 0%, var(--bg-card) 70%) !important;
}

.ranking-premios-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.75rem var(--safe-x, 1rem) 0;
  line-height: 1.45;
  padding: 0 0.5rem;
}
.ranking-premios-hint a { color: var(--amber); font-weight: 600; }

/* PWA install banner (Android + iOS) */
.prode-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 0.65rem max(0.75rem, env(safe-area-inset-left, 0px)) calc(0.65rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  pointer-events: none;
  animation: prode-install-slide-up 0.35s ease-out;
}
.prode-install-banner__inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card, #212121);
  border: 1.5px solid var(--line-strong, #333);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.prode-install-banner__icon {
  font-size: 1.5rem;
  line-height: 1;
}
.prode-install-banner__body { min-width: 0; }
.prode-install-banner__title {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
  margin: 0 0 0.2rem;
  color: var(--text, #f5f5f5);
}
.prode-install-banner__text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted, #a3a3a3);
}
.prode-install-banner__text strong {
  color: var(--text, #f5f5f5);
  font-weight: 700;
}
.prode-install-banner__share-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.15em;
  color: var(--amber, #d4a853);
}
.prode-install-banner__cta {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--amber, #d4a853);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.prode-install-banner__cta:active { opacity: 0.9; }
.prode-install-banner__skip {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.45rem 0.5rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted, #a3a3a3);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prode-install-banner__skip:active { color: var(--text, #f5f5f5); }
.prode-install-banner__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #a3a3a3);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.prode-install-banner__close:active { color: var(--text, #f5f5f5); }
@keyframes prode-install-slide-up {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 380px) {
  .prode-install-banner__inner {
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto auto;
  }
  .prode-install-banner__cta,
  .prode-install-banner__skip {
    grid-row: 2;
  }
  .prode-install-banner__cta { grid-column: 2; justify-self: start; }
  .prode-install-banner__skip { grid-column: 3; justify-self: end; }
  .prode-install-banner__close {
    grid-row: 1;
    grid-column: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prode-cta-stack .btn-primary:active { transform: none; }
  .prode-install-banner { animation: none; }
}

/* Boot + navegación suave entre pantallas Prode */
html[data-prode-booting] body {
  overflow: hidden;
}

html[data-prode-booting] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--bg, #141414);
}

html[data-prode-session="1"] .prode-login-only {
  display: none !important;
}

#prode-route-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #141414);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#prode-route-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.prode-route-overlay__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line, #2a2a2a);
  border-top-color: var(--amber, #d4a853);
  border-radius: 50%;
  animation: prode-route-spin 0.7s linear infinite;
}

@keyframes prode-route-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  #prode-route-overlay { transition: none; }
  .prode-route-overlay__spinner { animation: none; }
}
