:root {
  --font-banner: 'comic sans ms';
}

body {
  background-image: url('../assets/images/fondo.png');
  background-size: cover;
  background-attachment: fixed;
}

.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 5px dashed var(--color-primary);
  border-radius: 0 0 2.5rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary) !important;
}

.btn-back-home {
  background: var(--color-accent);
  border: 3px solid #fff;
  font-family: var(--font-title);
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: #fff !important;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-back-home:hover {
  background: var(--color-primary);
  transform: scale(1.06);
}

/* Header bouncing letters */
.font-banner-numeros span {
  font-family: var(--font-banner);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  margin: 0 3px;
  display: inline-block;
  animation: bounce-letters-num 2s ease-in-out infinite alternate;
}

.font-banner-numeros span:nth-child(1) { animation-delay: 0.1s; color: #ff1744; }
.font-banner-numeros span:nth-child(2) { animation-delay: 0.2s; color: #0288d1; }
.font-banner-numeros span:nth-child(3) { animation-delay: 0.3s; color: #f57f17; }
.font-banner-numeros span:nth-child(4) { animation-delay: 0.4s; color: #2e7d32; }
.font-banner-numeros span:nth-child(5) { animation-delay: 0.5s; color: #9c27b0; }
.font-banner-numeros span:nth-child(6) { animation-delay: 0.6s; color: #ff1744; }
.font-banner-numeros span:nth-child(7) { animation-delay: 0.7s; color: #0288d1; }

@keyframes bounce-letters-num {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(5deg); }
}

/* Hub Selection Cards */
.hub-card {
  background: white;
  border-radius: 2.5rem;
  border: 5px dashed var(--color-border);
  padding: 3rem 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
  color: #333 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hub-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.hub-card-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: float-deco 3s ease-in-out infinite;
  display: inline-block;
}

.hub-card-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-align: center;
}

.hub-card-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  font-weight: 700;
}

.speaker-hub-badge {
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: palpitar-hub 1.2s infinite;
}

.speaker-hub-badge:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--color-accent);
}

@keyframes palpitar-hub {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(124, 77, 255, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(124, 77, 255, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(124, 77, 255, 0.7); }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .hub-card {
    padding: 2rem 1.5rem;
    border-radius: 2rem;
  }
  
  .hub-card-emoji {
    font-size: 4.5rem;
    margin-bottom: 15px;
  }
  
  .hub-card-title {
    font-size: 1.6rem;
  }
  
  .hub-card-desc {
    font-size: 1rem;
  }

  .speaker-hub-badge {
    width: 80px;
    height: 80px;
  }

  .speaker-hub-badge img {
    width: 70px !important;
    height: 70px !important;
  }
}

@media (max-width: 576px) {
  .hub-card {
    padding: 1.5rem 1rem;
    border-radius: 1.5rem;
  }

  .hub-card-emoji {
    font-size: 3.5rem;
    margin-bottom: 10px;
  }

  .hub-card-title {
    font-size: 1.4rem;
  }

  .hub-card-desc {
    font-size: 0.95rem;
  }

  .speaker-hub-badge {
    width: 70px;
    height: 70px;
  }

  .speaker-hub-badge img {
    width: 60px !important;
    height: 60px !important;
  }
}

