/**
 * Estilos del Dashboard Principal - Banco Plaza
 */

/* NAVBAR CIFRAS FLOW */
.bp-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  background: rgba(7, 25, 47, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bp-navy-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bp-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bp-cifras-logo {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  object-fit: contain;
  border: none;
}

.bp-nav-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bp-token-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--bp-gold-primary);
  padding: 6px 14px;
  border-radius: var(--bp-radius-full);
  box-shadow: var(--bp-shadow-glow-gold);
}

.bp-token-icon {
  width: 22px;
  height: 22px;
  animation: pulse-gold 2.5s infinite ease-in-out;
}

@keyframes pulse-gold {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--bp-gold-bright)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--bp-gold-bright)); }
}

.bp-token-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bp-gold-bright);
  letter-spacing: 0.5px;
}

.bp-token-label {
  font-size: 0.75rem;
  color: var(--bp-text-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* CONTENEDOR PRINCIPAL */
.bp-dashboard-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* HERO BANNER */
.bp-hero-banner {
  background: linear-gradient(135deg, rgba(11, 38, 70, 0.95) 0%, rgba(7, 25, 47, 0.98) 100%);
  border: 1px solid var(--bp-navy-border);
  border-radius: var(--bp-radius-lg);
  padding: 36px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--bp-shadow-card);
}

.bp-hero-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 135, 82, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.bp-hero-tag {
  color: var(--bp-gold-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bp-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bp-text-white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.bp-hero-sponsor-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 25, 47, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--bp-radius-full);
  margin-bottom: 16px;
}

.bp-hero-sponsor-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bp-hero-sponsor-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.bp-hero-desc {
  font-size: 1.05rem;
  color: var(--bp-text-light);
  max-width: 780px;
  line-height: 1.6;
}

/* SECCIÓN DE PERSONAJES (PROPOSAL SHOWCASE) */
.bp-section {
  margin-bottom: 48px;
}

.bp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.bp-section-title-group h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bp-text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-section-title-group p {
  font-size: 0.9rem;
  color: var(--bp-text-muted);
  margin-top: 4px;
}

.bp-characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.bp-char-card {
  background: var(--bp-navy-surface);
  border: 1px solid var(--bp-navy-border);
  border-radius: var(--bp-radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.bp-char-card:hover {
  transform: translateY(-4px);
  border-color: var(--bp-gold-primary);
  box-shadow: var(--bp-shadow-glow-gold);
}

.bp-char-card.locked {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 25, 47, 0.7);
}

.bp-char-card.locked:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.bp-char-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--bp-radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.bp-char-badge.active {
  background: rgba(0, 135, 82, 0.2);
  border: 1px solid var(--bp-green-corporate);
  color: var(--bp-green-bright);
}

.bp-char-badge.locked-prop {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--bp-gold-primary);
  color: var(--bp-gold-primary);
}

.bp-char-visual-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}

.bp-char-img {
  max-height: 170px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

/* EFECTO SOMBRA / SILUETA PARA LA PROPUESTA */
.bp-silhouette-wrapper {
  width: 120px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bp-silhouette-shape {
  width: 100%;
  height: 100%;
  background: #040d18;
  border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.2);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
}

.bp-silhouette-pet {
  border-radius: 40% 40% 50% 50% / 50% 50% 40% 40%;
}

.bp-silhouette-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(11, 38, 70, 0.6) 0%, rgba(4, 13, 24, 0.95) 80%);
  gap: 8px;
}

.bp-lock-icon {
  width: 28px;
  height: 28px;
  color: var(--bp-gold-primary);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.bp-char-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bp-text-white);
  margin-bottom: 4px;
}

.bp-char-title {
  font-size: 0.85rem;
  color: var(--bp-gold-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.bp-char-desc {
  font-size: 0.85rem;
  color: var(--bp-text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.bp-char-unlock-box {
  background: rgba(5, 19, 36, 0.7);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  padding: 10px 14px;
  border-radius: var(--bp-radius-sm);
  font-size: 0.8rem;
  color: var(--bp-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SECCIÓN DE TÓPICOS Y CUADRÍCULA DE NIVELES (4 RECUADROS POR TÓPICO) */
.bp-topic-card {
  background: var(--bp-navy-surface);
  border: 1px solid var(--bp-navy-border);
  border-radius: var(--bp-radius-lg);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: var(--bp-shadow-card);
}

.bp-topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.bp-topic-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--bp-radius-full);
  background: rgba(0, 135, 82, 0.2);
  border: 1px solid var(--bp-green-corporate);
  color: var(--bp-green-bright);
}

.bp-topic-badge.alt {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--bp-gold-primary);
  color: var(--bp-gold-primary);
}

.bp-topic-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bp-text-white);
  margin-bottom: 4px;
}

.bp-topic-desc {
  font-size: 0.92rem;
  color: var(--bp-text-muted);
}

/* GRID DE 4 RECUADROS */
.bp-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .bp-levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bp-levels-grid {
    grid-template-columns: 1fr;
  }
}

.bp-level-card {
  background: rgba(7, 25, 47, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--bp-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
  min-height: 260px;
}

.bp-level-card.unlocked {
  border-color: var(--bp-gold-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bp-level-card.unlocked:hover {
  transform: translateY(-4px);
  border-color: var(--bp-green-bright);
  box-shadow: var(--bp-shadow-glow-green);
}

.bp-level-card.locked {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(4, 13, 24, 0.75);
}

.bp-level-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bp-level-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bp-gold-primary);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 8px;
  border-radius: var(--bp-radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.bp-level-reward {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bp-green-bright);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bp-level-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bp-text-white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.bp-level-subtitle {
  font-size: 0.8rem;
  color: var(--bp-gold-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.bp-level-desc {
  font-size: 0.78rem;
  color: var(--bp-text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
  flex-grow: 1;
}

.bp-level-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--bp-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.bp-level-btn.btn-play {
  background: linear-gradient(135deg, var(--bp-green-corporate) 0%, #00a862 100%);
  color: var(--bp-text-white);
  border: 1px solid var(--bp-green-bright);
  box-shadow: 0 4px 12px rgba(0, 135, 82, 0.35);
}

.bp-level-btn.btn-play:hover {
  background: linear-gradient(135deg, #00995c 0%, #00c774 100%);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 135, 82, 0.5);
}

.bp-level-btn.btn-locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bp-text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* FOOTER CIFRAS FLOW & BANCO PLAZA */
.bp-footer {
  text-align: center;
  padding: 40px 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bp-text-dim);
  font-size: 0.84rem;
  background: rgba(4, 13, 24, 0.6);
}

.bp-footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.bp-footer-cifras-logo {
  height: 42px;
  width: 42px;
  border-radius: 8px;
  object-fit: contain;
  border: none;
}

.bp-footer-divider {
  width: 1px;
  height: 24px;
  background: var(--bp-navy-border);
}

.bp-footer-sponsor-logo {
  height: 26px;
  opacity: 0.85;
  object-fit: contain;
}

.bp-footer-legal {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}
