/* Typography & Basics */
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.highlight {
  color: var(--color-accent);
}

.bg-gray {
  background-color: var(--color-background);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

.w-full {
  width: 100%;
}

.mt-4 {
  margin-top: 1rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

/* Layout */
main {
  padding-bottom: 4rem;
}

section {
  padding: 5rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 80vh;
  background: linear-gradient(135deg, #f3e8ff 0%, #e0f2fe 100%);
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
}

.music-notes-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* About Section */
.about {
  background-color: var(--color-surface);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-background);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

/* Sobre Mí Section */
.about-me-section {
  background-color: #f8fafc;
}

.about-me-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-me-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  flex-shrink: 0;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.image-backdrop {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.2;
}

.about-me-content h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.about-me-content h3 {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-me-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Hub de Juegos */
.games-hub {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.hub-header {
  text-align: center;
  margin-bottom: 3rem;
}

.hub-header h1 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hub-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid #cbd5e1;
  background: white;
  color: var(--color-text-light);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-card.available:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.game-card.locked {
  opacity: 0.7;
  cursor: not-allowed;
}

.game-card-img {
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bg-purple {
  background-color: #e9d5ff;
}

.bg-blue {
  background-color: #bfdbfe;
}

.bg-orange {
  background-color: #fed7aa;
}

.bg-green {
  background-color: #bbf7d0;
}

.game-emoji {
  font-size: 4rem;
}

.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.game-card-content {
  padding: 1.5rem;
  flex: 1;
}

.game-card-content h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.game-card-content p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.game-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.tag-level {
  background-color: #f1f5f9;
  color: #475569;
}

.tag-age {
  background-color: #fdf2f8;
  color: #db2777;
}

.tag-category {
  background-color: #f0fdf4;
  color: #16a34a;
}

.game-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  text-align: right;
}

.play-text {
  color: var(--color-primary);
  font-weight: 800;
}

/* Contact Section */
.contact {
  background-color: white;
  max-width: 800px;
  margin: 0 auto 5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--color-primary);
}

.contact>p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
  border-top: 1px solid #e2e8f0;
  background-color: var(--color-surface);
}

/* Global Mute Button */
.mute-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

.mute-btn:hover {
  background-color: rgba(0,0,0,0.05);
  transform: scale(1.1);
}

.mute-btn.muted {
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-me-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: none;
  }
}