/* Base styles and reset */
:root {
    --primary-color: #2e3192;
    --secondary-color: #ff416c;
    --accent-color: #ff4b2b;
    --text-color: #333;
    --text-secondary: #666;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-color: #ddd;
    --tag-bg: #f0f0f0;
    --tag-color: #555;
    --transition-speed: 0.3s;
  }
  
  [data-theme="dark"] {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #f43f5e;
    --text-color: #e0e0e0;
    --text-secondary: #aaa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --border-color: #333;
    --tag-bg: #2a2a2a;
    --tag-color: #ccc;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
  }
  
  main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Theme Switch */
  .theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
  }
  
  .theme-switch input {
    display: none;
  }
  
  .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
  }
  
  .slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 1;
  }
  
  .slider .fa-sun {
    color: #f39c12;
    font-size: 14px;
    margin-right: 4px;
  }
  
  .slider .fa-moon {
    color: #f1c40f;
    font-size: 14px;
    margin-left: 4px;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
  /* Navigation */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    padding: 15px 5%;
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-speed) ease;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
  }
  
  .logo span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
  }
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .nav-links li {
    margin-left: 30px;
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
  }
  
  .nav-links a:hover {
    color: var(--secondary-color);
  }
  
  .nav-links a.active {
    color: var(--secondary-color);
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  
  .burger {
    display: none;
    cursor: pointer;
  }
  
  .burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
  }
  
  /* Header styles */
  h1 {
    text-align: center;
    margin: 30px 0 10px;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 15px;
  }
  
  h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
  }
  
  .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
  }
  
  /* Game list styles */
  .game-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
  }
  
  .game-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  .game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .game-image {
    position: relative;
    overflow: hidden;
    height: 200px;
  }
  
  .game-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .game-item:hover .game-preview {
    transform: scale(1.1);
  }
  
  .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .game-overlay span {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }
  
  .game-item:hover .game-overlay {
    opacity: 1;
  }
  
  .game-item:hover .game-overlay span {
    transform: translateY(0);
  }
  
  .game-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .game-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    transition: color 0.2s ease;
  }
  
  .game-content a:hover {
    color: var(--secondary-color);
  }
  
  .game-content a.coming-soon {
    color: var(--text-secondary);
    cursor: default;
  }
  
  .game-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
    flex-grow: 1;
  }
  
  .game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
  }
  
  .game-tags span {
    background-color: var(--tag-bg);
    color: var(--tag-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  /* Footer styles */
  footer {
    background-color: var(--card-bg);
    padding: 50px 0 30px;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-speed) ease;
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
  }
  
  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
  }
  
  .footer-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  .footer-links h3,
  .footer-social h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-links h3::after,
  .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
  }
  
  .footer-links ul {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-links a:hover {
    color: var(--secondary-color);
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--tag-bg);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
  }
  
  /* Animation for game items */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .game-item {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
  }
  
  .game-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .game-item:nth-child(2) {
    animation-delay: 0.3s;
  }
  
  .game-item:nth-child(3) {
    animation-delay: 0.5s;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    body {
      padding-top: 0;
    }
    
    .navbar {
      padding: 15px 5%;
    }
    
    .nav-links {
      position: absolute;
      right: 0;
      top: 70px;
      background-color: var(--card-bg);
      flex-direction: column;
      width: 50%;
      transform: translateX(100%);
      transition: transform 0.5s ease-in;
      box-shadow: var(--card-shadow);
      z-index: 100;
      padding: 20px;
      border-radius: 0 0 0 10px;
    }
    
    .nav-links li {
      margin: 15px 0;
      opacity: 0;
    }
    
    .burger {
      display: block;
    }
    
    .nav-active {
      transform: translateX(0%);
    }
    
    h1 {
      font-size: 2rem;
    }
    
    .game-list {
      grid-template-columns: 1fr;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .footer-links h3::after,
    .footer-social h3::after {
      left: 50%;
      transform: translateX(-50%);
    }
    
    .social-icons {
      justify-content: center;
    }
  }
  
  /* Animation for nav links */
  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Toggle animation for burger */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .toggle .line2 {
    opacity: 0;
  }
  
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  

  


  /* Botón de descarga para Android */

  .download-android-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ec4899, #ff416c);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 65, 108, 0.25);
  max-width: fit-content;
}

.download-android-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 65, 108, 0.35);
  background: linear-gradient(135deg, #ff416c, #ec4899);
}

.download-android-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(255, 65, 108, 0.25);
}

.download-android-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.download-android-btn:hover::before {
  left: 100%;
}
