/* RESET GENERAL */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #101114;
  --surface: #191b22;
  --surface-2: #222530;
  --line: rgba(255,255,255,0.08);
  --text: #f8f8fb;
  --muted: #a7a9b6;
  --orange: #ff6a1a;
  --orange-soft: rgba(255,106,26,0.16);
  --green: #25d366;
}
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; }

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

.nav-menu { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-btn {
  min-height: 36px;
  min-width: 126px;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
}
.nube-btn { background: rgba(255,106,26,0.14); color: #ffbd8b; border: 1px solid rgba(255,106,26,0.85); }
.channel-top-btn { background: rgba(255,106,26,0.14); color: #ffbd8b; border: 1px solid rgba(255,106,26,0.85); }
.wa-btn { background: rgba(37, 211, 102, 0.16); color: var(--green); border: 1px solid rgba(37, 211, 102, 0.85); box-shadow: none; }

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

/* HERO BANNER Y BUSCADOR CENTRAL */
.hero-banner {
  min-height: 250px; background-image: url('../assets/images/banner.jpg'); background-size: cover;
  background-position: center; border-radius: 16px; margin-bottom: 14px;
  position: relative; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.hero-overlay {
  background: linear-gradient(to top, rgba(16,17,20,0.98) 0%, rgba(16,17,20,0.62) 62%, rgba(16,17,20,0.18) 100%);
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
}
.hero-overlay h1 { color: #fff; font-size: clamp(25px, 5vw, 38px); margin: 0; font-weight: 950; }
.hero-overlay p { margin: 5px 0 15px; color: #ffbd8b; font-weight: 700; 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: 8px 14px; border-radius: 999px; 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: 440px; min-height: 46px; padding: 12px 18px; border-radius: 14px; 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: var(--orange); }
.search-hero::placeholder { color: #ccc; }

/* NAVEGACIÓN PRINCIPAL Y SECUNDARIA */
.quick-nav { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 12px 0; scrollbar-width: none; }
.quick-nav::-webkit-scrollbar { display: none; }
.chip { background: var(--surface-2); color: #d8d8df; border: 1px solid var(--line); min-height: 44px; padding: 10px 18px; border-radius: 14px; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(255,106,26,0.25); }

.sub-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 16px 0; scrollbar-width: none; margin-top: -2px; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-chip { background: var(--surface); color: var(--muted); border: 1px solid var(--line); min-height: 38px; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.sub-chip.active { background: #30323a; color: #fff; border-color: var(--orange); }

.mobile-filter { display: none; margin: -4px 0 16px; }
.mobile-filter label { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.mobile-filter select { width: 100%; min-height: 46px; border-radius: 13px; background: var(--surface); color: #fff; border: 1px solid var(--line); padding: 0 14px; font-size: 15px; font-weight: 700; outline: none; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 4px 0 14px; }
.section-head h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.15; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.result-count { color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 42px 18px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }

/* CATÁLOGO Y TARJETAS */
.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.card-top { width: 100%; aspect-ratio: 1/1; border-radius: 11px; overflow: hidden; position: relative; background: var(--surface-2); 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: 900; padding: 4px 7px; border-radius: 7px; z-index: 10; }

.card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(255,106,26,0.28), 0 1px 2px rgba(0,0,0,0.75);
}
.card-subtitle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  color: var(--orange);
  background: rgba(255,106,26,0.10);
  border: 1px solid rgba(255,106,26,0.24);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(255,106,26,0.24), 0 1px 2px rgba(0,0,0,0.65);
}
.card-subtitle:empty { display: none; }
.price-pill { font-size: 18px; font-weight: 900; margin: 10px 0; color: var(--green); }

/* BOTONES EN CARD */
.actions { display: flex; gap: 8px; margin-top: auto; }
.btn { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 11px; padding: 10px; font-weight: 850; cursor: pointer; border: none; text-decoration: none; font-size: 14px; }
.btn.buy { flex: 1; background: rgba(37, 211, 102, 0.16); color: var(--green); transition: 0.2s; }
.btn.buy:active { background: var(--green); color: #fff; }
.btn.info { background: var(--surface-2); color: #fff; padding: 10px 13px; border: 1px solid var(--line); }

/* 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: var(--surface); padding: 25px; border-radius: 20px 20px 0 0; width: 100%; max-height: 80vh; overflow-y: auto; animation: slideUp 0.3s ease-out; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;}
.modal-header h3 { margin: 0; color: var(--orange); font-size: 18px; }
.modal-close { background: var(--surface-2); border: none; color: #fff; border-radius: 50%; width: 34px; height: 34px; 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;
}
