/* === PUBLICIDAD === */
#pantallaPublicidad {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.contador-publi {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 14px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
}

/* === MODAL ECOSISTEMA === */
#ecoModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(rgba(10,15,29,0.95), rgba(17,24,39,0.95)),
  url('https://pinguinoplustv.online/Ecosistema/ChatGPT%20Image%2022%20dic%202025%2C%2009_44_13%20p.m..png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  justify-content: center;
  align-items: center;
}
.radial-menu {
  position: relative;
  width: 85vmin;
  height: 85vmin;
  max-width: 500px;
  max-height: 500px;
}
.eco-titulo {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  z-index: 20;
  padding: 0 20px;
  pointer-events: none;
}
.eco-titulo h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.eco-titulo p {
  font-size: 1rem;
  color: #e2e8f0;
  max-width: 85%;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  line-height: 1.4;
}
.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: transparent;
  padding: 10px;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
  z-index: 10;
}
.center-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.service-icon {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  z-index: 5;
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.service-icon:hover {
  transform: scale(1.25);
  border-color: #a78bfa;
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.7);
  background: rgba(55, 65, 81, 1);
}
.service-label {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: #e2e8f0;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s;
}
.service-icon:hover .service-label {
  opacity: 1;
}
.donate-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  background: #facc15;
  color: #000;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}
.donate-btn:hover {
  background: #f59e0b;
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  border: none;
  font-size: 18px;
}

/* ============================================ */
/* === 🐧 SHAORA 8.0 - CHATBOT === */
/* ============================================ */
:root {
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  --bg-container: #f5f5f5;
  --bg-messages: #f0f2f5;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-quick: #e3f2fd;
  --border-quick: #bbdefb;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-chips: #555555;
  --text-typing: #999999;
  --text-white: #ffffff;
  --text-meta: #1976d2;
  --success: #28a745;
  --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  --danger-hover: #ff4444;
  --overlay-modal: rgba(0, 0, 0, 0.85);
  --shadow-btn: rgba(0, 0, 0, 0.15);
  --shadow-card: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(102, 126, 234, 0.4);
  --shadow-success: rgba(40, 167, 69, 0.3);
  --pulse: rgba(102, 126, 234, 0.7);
  --radius: 16px;
  --radius-pill: 50px;
  --radius-sm: 8px;
}
#shaora-btn {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--gradient);
  border: none; padding: 8px 16px;
  border-radius: var(--radius-pill); cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow-btn);
  z-index: 1000; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
  width: auto; max-width: 250px;
  height: 56px; gap: 10px;
  animation: pulseBtn 2s infinite;
}
#shaora-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px var(--shadow-hover);
  animation: none;
}
@keyframes pulseBtn {
  0% { box-shadow: 0 4px 15px var(--shadow-btn), 0 0 0 0 var(--pulse); }
  70% { box-shadow: 0 4px 15px var(--shadow-btn), 0 0 0 12px transparent; }
  100% { box-shadow: 0 4px 15px var(--shadow-btn), 0 0 0 0 transparent; }
}
#shaora-btn img {
  width: 40px; height: 40px; object-fit: contain; border-radius: 50%;
  background: rgba(255,255,255,0.9); padding: 2px;
}
.shaora-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
#shaora-chat {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 85vw; height: 85vh; min-width: 450px; min-height: 550px;
  max-width: 1200px; background: var(--bg-card); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3); display: none;
  flex-direction: column; overflow: hidden; z-index: 10001;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid var(--border);
}
#shaora-header {
  background: var(--gradient);
  color: var(--text-white); padding: 12px 20px; font-weight: bold;
  font-size: 16px; display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#shaora-header-logo {
  display: flex; align-items: center; gap: 10px;
}
#shaora-header-logo img {
  width: 32px; height: 32px; object-fit: contain; border-radius: 50%;
  background: rgba(255,255,255,0.2); padding: 2px;
}
#shaora-close {
  cursor: pointer; font-size: 24px; padding: 5px 10px;
  border-radius: 50%; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--text-white);
}
#shaora-close:hover { background: var(--danger-hover); }
#shaora-messages {
  flex: 1; padding: 20px; overflow-y: auto;
  background: var(--bg-messages);
  display: flex; flex-direction: column; gap: 12px;
}
.msg {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: 15px; max-width: 85%;
  font-size: 15px; line-height: 1.4; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: contain; background: var(--bg-card);
  flex-shrink: 0; border: 2px solid var(--border);
}
.msg-content {
  flex: 1; padding: 8px 12px; border-radius: 12px;
}
.bot {
  align-self: flex-start; border-bottom-left-radius: 5px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: 0 2px 5px var(--shadow-card);
}
.bot .msg-content { color: var(--text-primary); }
.user {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: var(--gradient);
  flex-direction: row-reverse; text-align: right;
  box-shadow: 0 2px 8px var(--shadow-hover);
}
.user .msg-content { color: var(--text-white); }
.user .msg-avatar { display: none; }
.content-card {
  display: flex; gap: 12px; background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 12px; margin: 8px 0; box-shadow: 0 2px 8px var(--shadow-card);
  border: 1px solid var(--border); transition: all 0.2s;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-hover);
  border-color: var(--gradient-start);
}
.content-card img {
  width: 80px; height: 120px; object-fit: cover; border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px var(--shadow-card);
}
.content-info { flex: 1; }
.content-title {
  font-weight: bold; color: var(--gradient-start); margin-bottom: 5px;
  font-size: 16px;
}
.content-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 5px; }
.content-genres { font-size: 12px; color: var(--text-meta); margin-bottom: 8px; }
.content-overview { font-size: 13px; color: var(--text-primary); line-height: 1.3; margin-bottom: 10px; }
.player-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.player-btn {
  background: var(--gradient); color: var(--text-white); border: none;
  padding: 6px 12px; border-radius: 15px; font-size: 12px;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 4px; transition: all 0.2s;
}
.player-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px var(--shadow-hover);
}
.player-btn.diananature { background: #2ecc71; }
.player-btn.diananature:hover { background: #27ae60; }
.player-btn.filemoon { background: #9b59b6; }
.player-btn.filemoon:hover { background: #8e44ad; }
.generos-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding: 12px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.genero-btn {
  background: var(--gradient);
  color: var(--text-white); border: none; padding: 10px 18px;
  border-radius: 20px; cursor: pointer;
  font-size: 14px; font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}
.genero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
}
.seccion-card {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px;
  margin: 8px 0; box-shadow: 0 2px 8px var(--shadow-card);
  border-left: 4px solid var(--gradient-start);
  border: 1px solid var(--border);
}
.seccion-card.radio { border-left-color: #e67e22; }
.seccion-card.tv { border-left-color: #1abc9c; }
.seccion-card.biblioteca { border-left-color: #f5a623; }
.seccion-card.pmdb { border-left-color: #9b59b6; }
.seccion-title { font-weight: bold; font-size: 16px; margin-bottom: 8px; color: var(--text-primary); }
.seccion-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.4; }
.seccion-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient);
  color: var(--text-white); border: none; padding: 10px 20px;
  border-radius: 25px; cursor: pointer; font-size: 14px;
  text-decoration: none; transition: all 0.2s;
}
.seccion-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px var(--shadow-hover);
}
.seccion-btn.radio { background: linear-gradient(135deg, #e67e22, #d35400); }
.seccion-btn.tv { background: linear-gradient(135deg, #1abc9c, #16a085); }
.seccion-btn.biblioteca { background: linear-gradient(135deg, #f5a623, #f39c12); color: #333; font-weight: 600; }
.seccion-btn.pmdb { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
#shaora-input { display: flex; border-top: 1px solid var(--border); background: var(--bg-card); padding: 10px; }
#shaora-input input {
  flex: 1; border: 2px solid var(--border); padding: 12px 15px;
  border-radius: 25px; outline: none; font-size: 15px;
  background: var(--bg-input); color: var(--text-primary);
  transition: border-color 0.2s;
}
#shaora-input input:focus { border-color: var(--gradient-start); }
#shaora-input input::placeholder { color: var(--text-secondary); }
#shaora-input button {
  background: var(--gradient); color: var(--text-white);
  border: none; padding: 12px 20px; margin-left: 10px;
  border-radius: 25px; cursor: pointer; font-size: 16px;
  transition: all 0.2s;
}
#shaora-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--shadow-hover);
}
#shaora-quick {
  padding: 10px 20px; background: var(--bg-quick); border-top: 1px solid var(--border-quick);
  display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.quick-btn {
  background: var(--bg-card); border: 1px solid var(--border-quick); padding: 10px 16px;
  border-radius: 25px; cursor: pointer; font-size: 13px;
  color: var(--text-primary); font-weight: 600; transition: all 0.3s;
  white-space: nowrap;
}
.quick-btn:hover {
  background: var(--gradient); color: var(--text-white); border-color: var(--gradient-start);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-hover);
}
.quick-btn.peliculas,
.quick-btn.series,
.quick-btn.catalogo,
.quick-btn.radio,
.quick-btn.tv,
.quick-btn.biblioteca,
.quick-btn.pmdb {
  background: var(--gradient); border: none; color: var(--text-white);
}
.quick-btn.biblioteca { color: #ffffff; font-weight: 600; }
.catalog-status {
  font-size: 12px; color: var(--text-secondary); text-align: center;
  padding: 5px; border-top: 1px dashed var(--border);
}
.catalog-status.ok { color: var(--success); }
.loading {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid var(--border-light); border-top: 3px solid var(--gradient-start);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.typing-cursor { color: var(--gradient-start); font-weight: bold; margin-left: 2px; animation: blink 1s infinite; }
#shaora-messages::-webkit-scrollbar { width: 6px; }
#shaora-messages::-webkit-scrollbar-track { background: var(--bg-messages); }
#shaora-messages::-webkit-scrollbar-thumb {
  background: var(--gradient-start); border-radius: 3px;
}
#shaora-messages::-webkit-scrollbar-thumb:hover { background: var(--gradient-end); }
#shaora-video-overlay {
  animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 768px) {
  #shaora-chat { width: 90vw; height: 80vh; }
  .content-card { flex-direction: column; }
  .content-card img { width: 100%; height: 200px; }
  .genero-btn { padding: 8px 14px; font-size: 13px; }
  #shaora-quick { justify-content: center; }
  .msg { max-width: 95%; }
  .shaora-text { display: none; }
  #shaora-btn { width: 56px; padding: 8px; }
}
/* === FIN SHAORA 8.0 === */