/* ==========================================================
✅ CFC_FUNC_10_1P_20251107 — Estilos Narrador IA Integrado (Restore Mode)
========================================================== */

/* Botón fijo */
.tts-btn-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(90deg, #FFD700, #E0A821);
  color: #111;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.3s;
}
.tts-btn-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255,215,0,0.6);
}

/* Panel */
.tts-panel {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: rgba(15,15,15,0.95);
  color: #FFD700;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
  z-index: 99999;
  width: 260px;
  font-family: "Poppins", sans-serif;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(8px);
}
.tts-panel h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  text-align: center;
}
.tts-panel button {
  background: linear-gradient(90deg, #FFD700, #B8860B);
  color: #111;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tts-panel button:hover {
  filter: brightness(1.2);
}

/* Velocidades */
.tts-speed button {
  background: #333;
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 4px 6px;
  border-radius: 6px;
  margin: 3px;
  font-size: 13px;
}
.tts-speed button.active {
  background: #FFD700;
  color: #111;
  box-shadow: 0 0 10px rgba(255,215,0,0.6);
}

/* Botón de cierre especial */
.tts-close {
  background: linear-gradient(90deg, #ff4040, #ff0000);
  color: white;
}
.tts-close:hover {
  filter: brightness(1.3);
}

/* Resaltado */
.tts-sentence.tts-active-light {
  background: rgba(255, 215, 0, 0.25);
  border-radius: 6px;
  transition: background 0.3s ease;
}
.tts-sentence.tts-active-dark {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: background 0.3s ease;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
🔒 CFC-SYNC QA — V2.0 Restore Mode CSS
✅ Botón rojo restaura DOM original intacto
========================================================== */

/* ==========================================================
✅ CFC_FUNC_10_1Q_20251107 — Mejora visual del selector de voz (3 opciones)
========================================================== */

/* Selector de voz dorado premium */
#voiceSelect {
  width: 100%;
  padding: 6px 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #FFD700;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  color: #FFD700;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,215,0,0.2);
  transition: all 0.25s ease;
}

/* Flecha personalizada (sin depender del navegador) */
#voiceSelect::-ms-expand {
  display: none;
}

/* Hover: brillo dorado */
#voiceSelect:hover {
  background: linear-gradient(180deg, #222 0%, #151515 100%);
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
  border-color: #FFE55C;
}

/* Opción interna */
#voiceSelect option {
  background: #111;
  color: #FFD700;
  font-weight: 500;
}

/* Modo activo: resaltado sutil */
#voiceSelect:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255,215,0,0.5);
}
