* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #0f0f0f;
  color: #e5e5e5;
  min-height: 100vh;
}

/* ===== MENÚ LATERAL (INTACTO) ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-content {
  padding: 1.5rem;
  color: #f1f5f9;
}

.sidebar-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #334155;
  margin-bottom: 1.5rem;
}

.sidebar-header h3 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.donation-box, .contact-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.donation-box h4, .contact-box h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-placeholder {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  margin: 1rem 0;
}

.qr-icon {
  font-size: 3rem;
}

.btn-show-qr {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-show-qr:hover {
  background: #059669;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.contact-link.whatsapp {
  background: #25D366;
  color: white;
}

.contact-link.telegram {
  background: #0088cc;
  color: white;
}

.contact-link:hover {
  transform: translateX(5px);
  filter: brightness(1.1);
}

.sidebar-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
  font-size: 0.8rem;
  text-align: center;
  color: #94a3b8;
}

/* Botón menú móvil */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: #2563eb;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ===== ENCABEZADO HERO (NUEVO, SIN TARJETA) ===== */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 0 0 2rem 2rem;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-icon {
  font-size: 3rem;
}

.hero-title span:last-child {
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  color: #a0a0a0;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 1.1rem;
}

/* ===== GRID DE TARJETAS ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

/* Tarjetas con fondo gris oscuro y buen contraste */
.app-card {
  background: #1e1e1e;
  border-radius: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #2a2a2a;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  border-color: #3a3a3a;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.app-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 1px solid #3a3a3a;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.app-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 0.25rem;
}

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

.app-description {
  color: #b0b0b0;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #a0a0a0;
  border-top: 1px solid #2a2a2a;
  padding-top: 0.75rem;
}

.app-size {
  background: #2a2a2a;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  color: #c0c0c0;
}

.download-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: #60a5fa;
}

.btn-download {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  width: 100%;
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0 0 1.5rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-download:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: scale(1.02);
}

.loader {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #a0a0a0;
  grid-column: 1 / -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    padding: 0 1rem 2rem 1rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-icon {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 0.8rem;
  }
  
  .hero-stat {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
}