/* ==========================================================
   VARIABLES Y PALETA DE COLORES VIBRANTES (ESTILO NEÓN GLOW)
   ========================================================== */
:root {
  --bg-deep: #060814;
  --card-bg: rgba(13, 17, 35, 0.78);
  --card-border: rgba(255, 255, 255, 0.08);
  --neon-gold: #ffb703;
  --neon-gold-glow: rgba(255, 183, 3, 0.45);
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff007f;
  --neon-green: #00ff87;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 0, 128, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(0, 240, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(123, 44, 191, 0.22) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px 28px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================
   CABECERA COMPACTA & LOGO DEL GATO CON BOTAS
   ========================================================== */
header {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 183, 3, 0.05);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1055, #0a0418);
  border: 2px solid var(--neon-gold);
  box-shadow: 0 0 16px var(--neon-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-avatar 3s infinite ease-in-out;
}

@keyframes pulse-avatar {
  0%, 100% { box-shadow: 0 0 12px var(--neon-gold-glow); }
  50% { box-shadow: 0 0 24px rgba(255, 183, 3, 0.8), 0 0 35px rgba(255, 0, 127, 0.4); }
}

.cat-avatar-wrap svg {
  width: 44px;
  height: 44px;
}

.brand-title h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 20%, var(--neon-gold) 60%, #ff5400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
}

.brand-title p {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* BUSCADOR Y FILTROS */
.controls-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 190px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--neon-cyan);
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff007f, #7928ca);
  border-color: #ff007f;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.5);
}

/* ==========================================================
   GRILLA COMPACTA "TODO EN PRIMERA CARA"
   ========================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 10px;
  width: 100%;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--platform-accent, #ffb703), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 24px var(--platform-glow, rgba(255, 183, 3, 0.35));
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--platform-icon-bg, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px var(--platform-glow, rgba(0,0,0,0.5));
}

.service-info {
  overflow: hidden;
}

.service-info h2 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-info .category-tag {
  font-size: 0.68rem;
  color: var(--platform-accent, #00f0ff);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* BOTONES / CHIPS DE PRECIOS DIRECTOS A WHATSAPP */
.plans-group {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.plan-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.plan-btn .time {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
}

.plan-btn .cost {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
  line-height: 1;
}

.plan-btn:hover {
  background: var(--platform-accent, #00ff87);
  border-color: var(--platform-accent, #00ff87);
  color: #050814;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--platform-glow, rgba(0, 255, 135, 0.6));
}

.plan-btn:hover .time,
.plan-btn:hover .cost {
  color: #050814;
  font-weight: 900;
}

.plan-btn.accent-deal {
  border-color: rgba(255, 183, 3, 0.4);
  background: rgba(255, 183, 3, 0.08);
}
.plan-btn.accent-deal .cost {
  color: var(--neon-gold);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* FOOTER COMPACTO */
footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(13, 17, 35, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 6px;
}

.security-badges {
  display: flex;
  gap: 12px;
  font-weight: 600;
  color: #00ff87;
}

/* TEMAS POR PLATAFORMA */
.theme-netflix {
  --platform-accent: #e50914;
  --platform-glow: rgba(229, 9, 20, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #1f0305, #e50914);
}
.theme-disney {
  --platform-accent: #00f0ff;
  --platform-glow: rgba(0, 240, 255, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #051937, #0063e5);
}
.theme-max {
  --platform-accent: #9d4edd;
  --platform-glow: rgba(157, 78, 221, 0.5);
  --platform-icon-bg: linear-gradient(135deg, #1a0033, #7209b7);
}
.theme-prime {
  --platform-accent: #00a8e8;
  --platform-glow: rgba(0, 168, 232, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #001f3f, #0077b6);
}
.theme-paramount {
  --platform-accent: #0064ff;
  --platform-glow: rgba(0, 100, 255, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #001233, #00509d);
}
.theme-crunchyroll {
  --platform-accent: #ff7700;
  --platform-glow: rgba(255, 119, 0, 0.5);
  --platform-icon-bg: linear-gradient(135deg, #3d1c00, #ff7700);
}
.theme-vix {
  --platform-accent: #ff5400;
  --platform-glow: rgba(255, 84, 0, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #331100, #ff5400);
}
.theme-iptv {
  --platform-accent: #ff007f;
  --platform-glow: rgba(255, 0, 127, 0.5);
  --platform-icon-bg: linear-gradient(135deg, #38001e, #ff007f);
}
.theme-maxplayer {
  --platform-accent: #00ffcc;
  --platform-glow: rgba(0, 255, 204, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #00332a, #00b497);
}
.theme-spotify {
  --platform-accent: #1ed760;
  --platform-glow: rgba(30, 215, 96, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #052912, #1ed760);
}
.theme-tidal {
  --platform-accent: #00ffff;
  --platform-glow: rgba(0, 255, 255, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #000000, #008080);
}
.theme-deezer {
  --platform-accent: #a259ff;
  --platform-glow: rgba(162, 89, 255, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #240b36, #c31432);
}
.theme-youtube {
  --platform-accent: #ff0000;
  --platform-glow: rgba(255, 0, 0, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #3b0000, #cc0000);
}
.theme-canva {
  --platform-accent: #00c4cc;
  --platform-glow: rgba(0, 196, 204, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #7d2ae8, #00c4cc);
}
.theme-capcut {
  --platform-accent: #ffffff;
  --platform-glow: rgba(255, 255, 255, 0.35);
  --platform-icon-bg: linear-gradient(135deg, #111, #444);
}
.theme-chatgpt {
  --platform-accent: #10a37f;
  --platform-glow: rgba(16, 163, 127, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #083328, #10a37f);
}
.theme-gemini {
  --platform-accent: #4387f6;
  --platform-glow: rgba(67, 135, 246, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #1b2a47, #9b51e0);
}
.theme-microsoft {
  --platform-accent: #00a4ef;
  --platform-glow: rgba(0, 164, 239, 0.45);
  --platform-icon-bg: linear-gradient(135deg, #f25022, #00a4ef);
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .brand-title h1 {
    font-size: 1.15rem;
  }
  .controls-wrapper {
    width: 100%;
  }
  .search-box {
    flex: 1;
  }
}
