/* RESET GENERAL */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: #121212; color: #fff; line-height: 1.6; }

/* TOPBAR SUPER LIMPIA Y BOTONES ARRIBA */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px);
  padding: 12px 15px; position: fixed; width: 100%; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05); gap: 10px;
}
.logo { color: #ff6600; font-weight: 800; font-size: 18px; letter-spacing: 1px; }

.nav-menu { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-btn {
  padding: 8px 12px; text-decoration: none; border-radius: 20px; 
  font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 4px;
}
.nube-btn { background: rgba(255,102,0,0.15); color: #ffb27a; border: 1px solid #ff6600; }
.wa-btn { background: #25D366; color: #fff; border: none; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }

/* LAYOUT */
.container { display: flex; margin-top: 60px; justify-content: center; }
.content { flex: 1; padding: 15px; max-width: 1200px; width: 100%; }

/* HERO BANNER Y BUSCADOR CENTRAL */
.hero-banner {
  height: 240px; background-image: url('banner.jpg'); background-size: cover;
  background-position: center; border-radius: 20px; margin-bottom: 15px;
  position: relative; overflow: hidden;
}
.hero-overlay {
  background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(0,0,0,0.5) 100%);
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
}
.hero-overlay h1 { color: #fff; font-size: 26px; margin: 0; font-weight: 900; }
.hero-overlay p { margin: 5px 0 15px; color: #ffb27a; font-weight: 600; font-size: 14px; }

/* Botón del Canal */
.channel-btn {
  display: inline-flex; width: fit-content; margin-bottom: 15px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 12px;
  font-weight: 700; text-decoration: none; backdrop-filter: blur(5px);
  transition: 0.3s;
}
.channel-btn:hover { background: rgba(255,255,255,0.25); border-color: #fff; }

.search-hero {
  width: 100%; max-width: 400px; padding: 12px 20px; border-radius: 25px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15); color: white; backdrop-filter: blur(5px); outline: none; font-size: 14px;
}
.search-hero:focus { background: rgba(255,255,255,0.25); border-color: #ff6600; }
.search-hero::placeholder { color: #ccc; }

/* NAVEGACIÓN PRINCIPAL Y SECUNDARIA */
.quick-nav { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 15px 0; scrollbar-width: none; }
.quick-nav::-webkit-scrollbar { display: none; }
.chip { background: #2a2a35; color: #ccc; border: none; padding: 10px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: 0.3s; }
.chip.active { background: #ff6600; color: #fff; box-shadow: 0 4px 12px rgba(255,102,0,0.3); }

.sub-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 20px 0; scrollbar-width: none; margin-top: -5px; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-chip { background: #1c1c24; color: #999; border: 1px solid #333; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.sub-chip.active { background: #333342; color: #fff; border-color: #ff6600; }

/* CATÁLOGO Y TARJETAS */
.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.card { background: #1c1c24; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.card-top { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; position: relative; background: #2a2a35; margin-bottom: 12px; }
.card-top img { width: 100%; height: 100%; object-fit: cover; }
.card-top .tag { position: absolute; top: 8px; left: 8px; background: #ffcc00; color: #000; font-size: 9px; font-weight: 800; padding: 4px 6px; border-radius: 8px; z-index: 10; }

.card h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.card-subtitle { margin: 4px 0 0; color: #a0a0b0; font-size: 12px; }
.price-pill { font-size: 18px; font-weight: 800; margin: 10px 0; color: #25D366; }

/* BOTONES EN CARD */
.actions { display: flex; gap: 8px; margin-top: auto; }
.btn { display: flex; align-items: center; justify-content: center; border-radius: 12px; padding: 10px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; font-size: 14px; }
.btn.buy { flex: 1; background: rgba(37, 211, 102, 0.15); color: #25D366; transition: 0.2s; }
.btn.buy:active { background: #25D366; color: #fff; }
.btn.info { background: #2a2a35; color: #fff; padding: 10px 14px; }

/* MODAL NOTAS */
.modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-end; padding: 0; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content { position: relative; background: #1c1c24; padding: 25px; border-radius: 25px 25px 0 0; width: 100%; max-height: 80vh; overflow-y: auto; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;}
.modal-header h3 { margin: 0; color: #ff6600; font-size: 18px; }
.modal-close { background: #2a2a35; border: none; color: #fff; border-radius: 50%; width: 30px; height: 30px; font-weight: bold;}

/* ===============================
   FOOTER ESTILO APP (PIE DE PÁGINA)
   =============================== */
.app-footer {
  background: #0a0a0e; 
  padding: 40px 20px 60px 20px; 
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 40px;
  border-radius: 0 0 20px 20px;
}

.footer-content .brand {
  color: #ff6600;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  margin-top: 0;
}

.social-links {
  margin-bottom: 18px;
}

/* Forzar el estilo de los enlaces para evitar el azul/morado por defecto */
.social-links a {
  color: #888 !important; 
  text-decoration: none !important; 
  font-size: 13px;
  font-weight: 500;
  margin: 0 8px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #fff !important; 
}

.copyright, .location {
  color: #555;
  font-size: 12px;
  margin: 4px 0;
}

/* OPTIMIZACIÓN MÓVIL */
@media (max-width: 600px) {
  .logo { font-size: 15px; }
  .nav-btn { font-size: 10px; padding: 6px 10px; }
  .hero-banner { height: 210px; }
  .hero-overlay h1 { font-size: 22px; }
  .catalogo { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 10px; border-radius: 16px; }
  .card h3 { font-size: 13px; }
  .price-pill { font-size: 16px; }
  .btn.buy, .btn.info { padding: 8px; font-size: 12px; }
}
/* En pantallas de computadora (PC), mostrar todos los botones en filas */
@media (min-width: 768px) {
  .quick-nav, .sub-nav {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}