/** Shopify CDN: Minification failed

Line 1132:0 Unexpected "}"

**/
/* FUENTES PIXEL ART - PRIMERA PRIORIDAD */
@font-face {
  font-family: 'Press Start 2P';
  src: url("//electrocicla.com/cdn/shop/files/PressStart2P-Regular.woff2?v=450032366497687993") format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'VT323';
  src: url("//electrocicla.com/cdn/shop/files/VT323-Regular.ttf?v=18257610808836552869") format('truetype');
  font-display: swap;
}
  
/* VARIABLES CSS AVANZADAS CON FUENTES PIXEL ART */
:root {
  --luna-primary: #1a2240;
  --luna-secondary: #efa4fc;
  --luna-accent: #00ff88;
  --luna-bg: #0a0f1c;
  --luna-text: #ffffff;
  --luna-border: rgba(239, 164, 252, 0.3);
  --luna-glow: 0 0 20px rgba(0, 255, 136, 0.5);
  --luna-glass: rgba(255, 255, 255, 0.1);
  --luna-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --luna-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --luna-pixel-font: 'VT323', 'Courier New', monospace;
  --luna-title-font: 'Press Start 2P', 'Courier New', monospace;
  
  /* Variables para el Toggle de Grounding */
  --luna-toggle-width: 50px;
  --luna-toggle-height: 24px;
  --luna-toggle-thumb-size: 20px; /* Tamaño del punto */
  --luna-toggle-thumb-offset: 2px; /* Espacio del punto a los bordes */
  --luna-toggle-off-bg: #666; /* Color del carril apagado */
  --luna-toggle-off-border: #444; /* Color del borde del carril apagado */
  --luna-toggle-thumb-off-color: white; /* Color del punto apagado */
  --luna-toggle-thumb-on-color: var(--luna-accent); /* Color del punto encendido (verde) */
  /* Si quieres que el punto sea del color de fondo cuando está encendido, usa:
  --luna-toggle-thumb-on-color: var(--luna-bg);
  */
}
  
/* RESET COMPLETO PARA LUNA - FUERZAS SOBRESCRITURA DE base.css */
.page-width {
  max-width: 1400px !important;
  padding: 0 !important;
}
  
.main-page-wrapper {
  background: linear-gradient(135deg, var(--luna-bg) 0%, #1a2240 100%) !important;
  min-height: 100vh !important;
  color: var(--luna-text) !important;
  font-family: var(--luna-pixel-font) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  position: relative !important;
  overflow-x: hidden !important;
}
  
/* FORZAR FUENTES EN TODOS LOS ELEMENTOS LUNA */
.luna-container,
.luna-container *,
.luna-container *::before,
.luna-container *::after {
  font-family: var(--luna-pixel-font) !important;
  box-sizing: border-box !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
}
  
/* TÍTULOS CON PIXEL FONT */
.luna-title,
.luna-mode-indicator,
.luna-specs h3,
.luna-quick-actions h3,
.luna-mode-btn {
  font-family: var(--luna-title-font) !important;
}
  
/* PARTÍCULAS DE FONDO ANIMADAS */
.luna-particles {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.3 !important;
}

.luna-particle {
  position: absolute !important;
  width: 2px !important;
  height: 2px !important;
  background: var(--luna-accent) !important;
  border-radius: 50% !important;
  animation: lunaFloating 8s infinite linear !important;
}

/* CONTENEDOR PRINCIPAL */
.luna-container {
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding: 2rem !important;
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  gap: 3rem !important;
  min-height: calc(100vh - 4rem) !important;
  position: relative !important;
  z-index: 1 !important;
}
  
/* SIDEBAR FUTURISTA */
.luna-sidebar {
  background: var(--luna-glass) !important;
  border: 1px solid var(--luna-border) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: var(--luna-glow), 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  height: fit-content !important;
  position: sticky !important;
  top: 2rem !important;
  overflow: hidden !important;
  transition: var(--luna-transition) !important;
}

.luna-sidebar::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--luna-accent), var(--luna-secondary), var(--luna-accent)) !important;
  animation: lunaSidebarGlow 3s infinite !important;
}
  
/* ÁREA DE CHAT PRINCIPAL */
.luna-chat-area {
  background: var(--luna-glass) !important;
  border: 1px solid var(--luna-border) !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  backdrop-filter: blur(20px) !important;
  overflow: hidden !important;
  box-shadow: var(--luna-glow), 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
}

.luna-chat-area::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--luna-secondary), var(--luna-accent), var(--luna-secondary)) !important;
  animation: lunaChatGlow 4s infinite !important;
}
  
/* HEADER MEJORADO */
.luna-header {
  background: linear-gradient(135deg, var(--luna-primary), rgba(26, 34, 64, 0.9)) !important;
  padding: 2.5rem !important;
  border-bottom: 1px solid var(--luna-border) !important;
  position: relative !important;
  overflow: hidden !important;
}

.luna-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
  animation: lunaHeaderShine 6s infinite !important;
}
  
.luna-title {
  font-family: var(--luna-title-font) !important;
  font-size: 18px !important;
  font-weight: normal !important;
  margin: 0 !important;
  background: linear-gradient(45deg, var(--luna-accent), var(--luna-secondary)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5) !important;
  animation: lunaTitlePulse 3s infinite ease-in-out !important;
  line-height: 1.6 !important;
  position: relative !important;
  z-index: 2 !important;
}
  
.luna-subtitle {
  font-family: var(--luna-pixel-font) !important;
  font-size: 24px !important;
  opacity: 0.9 !important;
  margin: 1rem 0 0 0 !important;
  line-height: 1.5 !important;
  color: var(--luna-text) !important;
  font-weight: normal !important;
  animation: lunaSubtitleFloat 4s infinite ease-in-out !important;
  position: relative !important;
  z-index: 2 !important;
}
  
/* INDICADOR DE MODO MEJORADO */
.luna-mode-indicator {
  background: rgba(0, 255, 136, 0.2) !important;
  border: 2px solid var(--luna-accent) !important;
  border-radius: 25px !important;
  padding: 0.8rem 1.5rem !important;
  margin-top: 1.2rem !important;
  display: inline-block !important;
  font-family: var(--luna-title-font) !important;
  font-size: 16px !important;
  font-weight: normal !important;
  color: var(--luna-text) !important;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3) !important;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4) !important;
  animation: lunaModeIndicator 2s infinite alternate !important;
  position: relative !important;
  z-index: 2 !important;
}
  
/* ÁREA DE MENSAJES MEJORADA */
.luna-messages {
  flex: 1 !important;
  padding: 2.5rem !important;
  overflow-y: auto !important;
  min-height: 500px !important;
  max-height: 65vh !important;
  background: rgba(0, 0, 0, 0.2) !important;
  scroll-behavior: smooth !important;
  position: relative !important;
}
  
/* MENSAJES CON EFECTOS AVANZADOS */
.luna-message {
  margin-bottom: 2rem !important;
  padding: 1.8rem 2.5rem !important;
  border-radius: 18px !important;
  max-width: 85% !important;
  animation: lunaMessageSlide 0.5s var(--luna-bounce) !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 28px !important;
  line-height: 1.6 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) !important;
  transition: var(--luna-transition) !important;
}

.luna-message::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
  transition: left 0.5s !important;
}

.luna-message:hover::before {
  left: 100% !important;
}
  
.luna-message.user {
  background: linear-gradient(135deg, var(--luna-primary), var(--luna-secondary)) !important;
  margin-left: auto !important;
  color: var(--luna-text) !important;
  box-shadow: 0 10px 25px rgba(239, 164, 252, 0.3) !important;
}
  
.luna-message.assistant {
  background: rgba(0, 255, 136, 0.1) !important;
  border: 1px solid var(--luna-accent) !important;
  margin-right: auto !important;
  color: var(--luna-text) !important;
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2) !important;
}

/* MENSAJE DE PROCESAMIENTO MEJORADO */
.luna-processing-message {
  border-left: 4px solid #f39c12 !important;
  background: rgba(243, 156, 18, 0.1) !important;
  opacity: 0.8 !important;
  font-style: italic !important;
}

.luna-timer {
  color: #f39c12 !important;
  font-weight: bold !important;
  font-family: var(--luna-pixel-font) !important;
}

.luna-processing-text {
  animation: lunaTextPulse 2s infinite !important;
}
  
.luna-message strong {
  font-family: var(--luna-title-font) !important;
  font-size: 14px !important;
  color: var(--luna-accent) !important;
  font-weight: normal !important;
  line-height: 1.8 !important;
}
  
.luna-message p {
  margin: 0.8rem 0 !important;
  text-align: justify !important;
  font-family: var(--luna-pixel-font) !important;
}
  
.luna-message p:first-child {
  margin-top: 0 !important;
}
  
.luna-message p:last-child {
  margin-bottom: 0 !important;
}
  
.luna-message em {
  color: var(--luna-secondary) !important;
  font-style: var(--luna-pixel-font) !important;
  font-size: 16px !important; /* ← AÑADIR: Tamaño específico para texto em */
  line-height: 1.5 !important; /* ← AÑADIR: Mejor espaciado de líneas */
}
  
/* FORMATEO DE RESPUESTAS TÉCNICAS */
.luna-code {
  background: rgba(0, 255, 136, 0.15) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 18px !important;
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
  color: var(--luna-accent) !important;
}
  
.luna-highlight-value {
  color: var(--luna-accent) !important;
  font-weight: bold !important;
  background: rgba(0, 255, 136, 0.1) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}
  
.luna-highlight-temp {
  color: var(--luna-secondary) !important;
  font-weight: bold !important;
}
  
.luna-highlight-component {
  color: var(--luna-accent) !important;
  font-weight: bold !important;
}
  
/* EFECTO DE TYPING MEJORADO CON CURSOR PIXEL */
.luna-response-text::after {
  content: '█';
  color: var(--luna-accent);
  animation: lunaTypingCursor 0.8s infinite;
  font-family: var(--luna-pixel-font);
  margin-left: 2px;
}
  
/* BURBUJA DE PENSAMIENTO PIXEL STYLE */
.luna-thinking-bubble {
  display: none !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: var(--luna-glass) !important;
  border: 2px solid var(--luna-accent) !important;
  border-radius: 30px !important;
  padding: 3rem !important;
  backdrop-filter: blur(25px) !important;
  box-shadow: var(--luna-glow), inset 0 0 20px rgba(0, 255, 136, 0.1) !important;
  z-index: 1000 !important;
  animation: lunaBubbleFloat 3s infinite ease-in-out !important;
  min-width: 350px !important;
  text-align: center !important;
}

.luna-thinking-text {
  font-family: var(--luna-pixel-font) !important;
  font-size: 22px !important;
  color: var(--luna-accent) !important;
  margin-bottom: 1.5rem !important;
  animation: lunaTextPulse 2s infinite !important;
  line-height: 1.4 !important;
  font-weight: normal !important;
}

.luna-thinking-counter {
  font-family: var(--luna-title-font) !important;
  font-size: 28px !important;
  color: var(--luna-secondary) !important;
  font-weight: normal !important;
  margin: 1rem 0 !important;
  animation: lunaCounterBounce 1s infinite !important;
  line-height: 1.2 !important;
}

.luna-thinking-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

.luna-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 0 !important;
  background: var(--luna-accent) !important;
  animation: lunaDotBounce 1.5s infinite !important;
}

.luna-dot:nth-child(2) { animation-delay: 0.3s !important; }
.luna-dot:nth-child(3) { animation-delay: 0.6s !important; }
  
/* INPUT ÁREA MEJORADA */
.luna-input-area {
  padding: 2.5rem !important;
  border-top: 1px solid var(--luna-border) !important;
  background: rgba(26, 34, 64, 0.5) !important;
  position: relative !important;
}
  
.luna-input-container {
  display: flex !important;
  gap: 1.5rem !important;
  align-items: center !important;
  position: relative !important;
}
  
.luna-input { /* Ahora es un textarea */
  flex: 1 !important;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(26, 34, 64, 0.4)) !important;
  border: 2px solid var(--luna-border) !important;
  border-radius: 25px !important;
  padding: 1.4rem 2.5rem !important;
  color: var(--luna-text) !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 22px !important;
  outline: none !important;
  transition: var(--luna-transition) !important;
  line-height: 1.5 !important;
  backdrop-filter: blur(15px) !important;
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  resize: none !important; /* Importante para controlar el redimensionamiento con JS */
  overflow-y: hidden !important; /* Ocultar scrollbar por defecto */
  min-height: 70px !important; /* Altura mínima igual al input original */
}
  
.luna-input::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 22px !important;
}
  
.luna-input:focus {
  border-color: var(--luna-accent) !important;
  box-shadow: var(--luna-glow), inset 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  transform: scale(1.01) !important;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(26, 34, 64, 0.6)) !important;
}

/* INDICADOR DE LÍMITE DE CARACTERES */
.luna-input[style*="border-color: rgb(255, 107, 107)"] {
  animation: lunaInputWarning 1s infinite alternate !important;
}

@keyframes lunaInputWarning {
  0% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }
  100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); }
}
  
.luna-send-btn {
  background: linear-gradient(135deg, var(--luna-accent), var(--luna-secondary)) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 70px !important;
  height: 70px !important;
  color: var(--luna-bg) !important;
  font-family: var(--luna-pixel-font) !important;
  font-weight: bold !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: var(--luna-transition) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4) !important;
}

.luna-send-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  transition: all 0.6s !important;
  transform: translate(-50%, -50%) !important;
}
  
.luna-send-btn:hover:not(:disabled) {
  transform: scale(1.15) rotate(360deg) !important;
  box-shadow: var(--luna-glow) !important;
}

.luna-send-btn:hover:not(:disabled)::before {
  width: 200px !important;
  height: 200px !important;
}
  
.luna-send-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  animation: lunaButtonDisabled 2s infinite !important;
}
  
/* SIDEBAR SPECS MEJORADO CON PIXEL FONT */
.luna-specs h3 {
  color: var(--luna-accent) !important;
  margin-bottom: 1.8rem !important;
  font-family: var(--luna-title-font) !important;
  font-size: 14px !important;
  font-weight: normal !important;
  line-height: 1.6 !important;
  text-align: center !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}
  
.luna-spec-item {
  padding: 1rem 0 !important;
  border-bottom: 1px solid rgba(239, 164, 252, 0.15) !important;
  display: flex !important;
  justify-content: space-between !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  transition: var(--luna-transition) !important;
}

.luna-spec-item:hover {
  background: rgba(0, 255, 136, 0.05) !important;
  padding-left: 1rem !important;
  border-radius: 8px !important;
}
  
.luna-spec-item span:first-child {
  font-weight: normal !important;
  color: var(--luna-text) !important;
}
  
.luna-spec-item span:last-child {
  color: var(--luna-accent) !important;
  font-weight: bold !important;
}
  
/* BOTONES RÁPIDOS MEJORADOS */
.luna-quick-actions {
  margin-top: 2rem !important;
}
  
.luna-quick-actions h3 {
  color: var(--luna-secondary) !important;
  margin-bottom: 1.5rem !important;
  font-family: var(--luna-title-font) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  font-weight: normal !important;
  text-align: center !important;
}
  
.luna-quick-btn {
  display: block !important;
  width: 100% !important;
  background: rgba(0, 255, 136, 0.1) !important;
  border: 1px solid var(--luna-accent) !important;
  color: var(--luna-text) !important;
  padding: 1.2rem !important;
  margin-bottom: 0.8rem !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: var(--luna-transition) !important;
  text-decoration: none !important;
  text-align: left !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: normal !important;
  position: relative !important;
  overflow: hidden !important;
}

.luna-quick-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent) !important;
  transition: left 0.5s !important;
}

.luna-quick-btn:hover::before {
  left: 100% !important;
}
  
.luna-quick-btn:hover {
  background: rgba(0, 255, 136, 0.2) !important;
  transform: translateX(8px) !important;
  color: var(--luna-text) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3) !important;
}
  
.luna-quick-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}
  
/* BOTONES DE MODO GRID MEJORADO */
.luna-mode-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.8rem !important;
  margin-bottom: 1.5rem !important;
}
  
.luna-mode-btn {
  background: rgba(0, 255, 136, 0.05) !important;
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
  color: var(--luna-text) !important;
  padding: 0.8rem !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: var(--luna-transition) !important;
  font-family: var(--luna-title-font) !important;
  font-size: 14px !important;
  text-align: center !important;
  font-weight: normal !important;
  position: relative !important;
  overflow: hidden !important;
}

.luna-mode-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent) !important;
  transition: left 0.4s !important;
}

.luna-mode-btn:hover::before {
  left: 100% !important;
}
  
.luna-mode-btn:hover {
  background: rgba(0, 255, 136, 0.15) !important;
  border-color: var(--luna-accent) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3) !important;
}
  
.luna-mode-btn.active {
  background: rgba(0, 255, 136, 0.25) !important;
  border-color: var(--luna-accent) !important;
  color: var(--luna-accent) !important;
  font-weight: normal !important;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5) !important;
  animation: lunaModeActive 2s infinite alternate !important;
}
  
/* LOADING MEJORADO */
.luna-loading {
  display: none !important;
  padding: 2rem !important;
  text-align: center !important;
  color: var(--luna-accent) !important;
  background: rgba(0, 255, 136, 0.05) !important;
  border: 1px solid rgba(0, 255, 136, 0.2) !important;
  border-radius: 15px !important;
  margin: 1rem 0 !important;
  animation: lunaLoadingPulse 1.5s infinite !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 15px !important;
  backdrop-filter: blur(10px) !important;
}
  
.luna-typing {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 0 !important;
  background: var(--luna-accent) !important;
  animation: lunaTypingBounce 1.2s infinite ease-in-out !important;
  margin: 0 4px !important;
}
  
.luna-typing:nth-child(1) { animation-delay: -0.32s !important; }
.luna-typing:nth-child(2) { animation-delay: -0.16s !important; }
.luna-typing:nth-child(3) { animation-delay: 0s !important; }

/* === BOTÓN DE CONTROL DE SONIDO === */

.luna-sound-control {
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

.luna-sound-btn {
  background: rgba(239, 164, 252, 0.1) !important;
  border: 1px solid rgba(239, 164, 252, 0.3) !important;
  color: var(--luna-text) !important;
  padding: 0.8rem 1.2rem !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: var(--luna-transition) !important;
  font-family: var(--luna-title-font) !important;
  font-size: 12px !important;
  text-align: center !important;
  font-weight: normal !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.8rem !important;
}

.luna-sound-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(239, 164, 252, 0.2), transparent) !important;
  transition: left 0.4s !important;
}

.luna-sound-btn:hover::before {
  left: 100% !important;
}

.luna-sound-btn:hover {
  background: rgba(239, 164, 252, 0.2) !important;
  border-color: var(--luna-secondary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(239, 164, 252, 0.3) !important;
}

.luna-sound-btn.active {
  background: rgba(239, 164, 252, 0.25) !important;
  border-color: var(--luna-secondary) !important;
  color: var(--luna-secondary) !important;
  font-weight: normal !important;
  box-shadow: 0 0 15px rgba(239, 164, 252, 0.5) !important;
  animation: lunaSoundActive 3s infinite alternate !important;
}

.luna-sound-btn.disabled {
  background: rgba(231, 76, 60, 0.1) !important;
  border-color: rgba(231, 76, 60, 0.3) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.luna-sound-btn.disabled:hover {
  background: rgba(231, 76, 60, 0.2) !important;
  border-color: #e74c3c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3) !important;
}

.luna-sound-icon {
  font-size: 16px !important;
  transition: transform 0.3s ease !important;
}

.luna-sound-btn:hover .luna-sound-icon {
  transform: scale(1.2) !important;
}

.luna-sound-text {
  font-family: var(--luna-title-font) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: normal !important;
}

/* ANIMACIÓN PARA SONIDO ACTIVO */
@keyframes lunaSoundActive {
  0%, 100% {  
  box-shadow: 0 0 15px rgba(239, 164, 252, 0.5);
  transform: scale(1);
  }
  50% {  
  box-shadow: 0 0 25px rgba(239, 164, 252, 0.8);
  transform: scale(1.02);
  }
}

/* RESPONSIVE PARA BOTÓN DE SONIDO */
@media (max-width: 768px) {
  .luna-sound-btn {
    font-size: 11px !important;
    padding: 0.7rem 1rem !important;
    gap: 0.6rem !important;
  }
  
  .luna-sound-icon {
    font-size: 14px !important;
  }
  
  .luna-sound-text {
    font-size: 10px !important;
  }
}
  
/* SCROLLBAR PERSONALIZADO PIXEL STYLE */
.luna-messages::-webkit-scrollbar {
  width: 12px !important;
}
  
.luna-messages::-webkit-scrollbar-track {
  background: rgba(26, 34, 64, 0.3) !important;
  border-radius: 0 !important;
}
  
.luna-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--luna-accent), var(--luna-secondary)) !important;
  border-radius: 0 !important;
  border: 2px solid rgba(26, 34, 64, 0.3) !important;
}
  
.luna-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--luna-secondary), var(--luna-accent)) !important;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}
  
/* ANIMACIONES COMPLETAS Y OPTIMIZADAS */
@keyframes lunaFloating {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px) rotate(360deg); opacity: 0; }
}

@keyframes lunaSidebarGlow {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes lunaChatGlow {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes lunaHeaderShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes lunaTitlePulse {
  0%, 100% {  
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  transform: scale(1);
  }
  50% {  
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.8), 0 0 60px rgba(239, 164, 252, 0.4);
  transform: scale(1.02);
  }
}

@keyframes lunaSubtitleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes lunaModeIndicator {
  0%, 100% {  
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transform: scale(1);
  }
  50% {  
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
  transform: scale(1.05);
  }
}

@keyframes lunaMessageSlide {
  0% {  
  opacity: 0;  
  transform: translateY(20px) scale(0.95);
  }
  100% {  
  opacity: 1;  
  transform: translateY(0) scale(1);
  }
}

@keyframes lunaBubbleFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.05); }
}

@keyframes lunaTextPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes lunaCounterBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes lunaDotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes lunaTypingCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes lunaButtonDisabled {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.4; }
}

@keyframes lunaModeActive {
  0%, 100% {  
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  transform: scale(1);
  }
  50% {  
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
  transform: scale(1.03);
  }
}

@keyframes lunaLoadingPulse {
  0%, 100% {  
  background: rgba(0, 255, 136, 0.05);
  border-color: rgba(0, 255, 136, 0.2);
  }
  50% {  
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.4);
  }
}

@keyframes lunaTypingBounce {
  0%, 80%, 100% {  
  transform: scale(0.8) translateY(0);
  opacity: 0.5;
  }
  40% {  
  transform: scale(1.2) translateY(-8px);
  opacity: 1;
  }
}

@keyframes lunaButtonPulse {
  0%, 100% {  
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  transform: scale(1);
  }
  50% {  
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  transform: scale(1.05);
  }
}

@keyframes lunaButtonGlow {
  0%, 100% {  
  box-shadow: 0 0 15px rgba(239, 164, 252, 0.4);
  background: linear-gradient(135deg, var(--luna-accent), var(--luna-secondary));
  }
  50% {  
  box-shadow: 0 0 25px rgba(239, 164, 252, 0.8);
  background: linear-gradient(135deg, var(--luna-secondary), var(--luna-accent));
  }
}

/* NOTIFICACIONES */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
  
/* RESPONSIVE DESIGN OPTIMIZADO PARA PIXEL FONTS */
@media (max-width: 768px) {
  .main-page-wrapper {
  font-size: 18px !important;
  }
  
  .luna-container {
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  padding: 1rem !important;
  font-size: 18px !important;
  }
  
  .luna-sidebar {
  position: static !important;
  order: 2 !important;
  padding: 1.5rem !important;
  }
  
  .luna-messages {
  max-height: 50vh !important;
  min-height: 350px !important;
  padding: 1.5rem !important;
  }
  
  .luna-header {
  padding: 2rem !important;
  }
  
  .luna-title {
  font-size: 16px !important;
  line-height: 1.8 !important;
  }
  
  .luna-subtitle {
  font-size: 17px !important;
  line-height: 1.5 !important;
  }
  
  .luna-input {
  font-size: 18px !important;
  padding: 1.2rem 1.8rem !important;
  line-height: 1.5 !important;
  }
  
  .luna-input::placeholder {
  font-size: 17px !important;
  }
  
  .luna-send-btn {
  width: 55px !important;
  height: 55px !important;
  font-size: 18px !important;
  }
  
  .luna-message {
  padding: 1.3rem 1.8rem !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  }
  
  .luna-message strong {
  font-size: 15px !important;
  }
  
  .luna-mode-buttons {
  grid-template-columns: 1fr !important;
  gap: 0.6rem !important;
  }
  
  .luna-mode-btn {
  font-size: 11px !important;
  padding: 0.9rem !important;
  }
  
  .luna-quick-btn {
  font-size: 16px !important;
  padding: 1rem !important;
  }
  
  .luna-spec-item {
  font-size: 16px !important;
  }
  
  .luna-thinking-bubble {
  min-width: 280px !important;
  padding: 2rem !important;
  }
  
  .luna-thinking-text {
  font-size: 16px !important;
  }
  
  .luna-thinking-counter {
  font-size: 20px !important;
  }
  
  .luna-mode-indicator {
  font-size: 11px !important;
  padding: 0.6rem 1.2rem !important;
  }
}
  .luna-message em {
  font-size: 18px !important; /* ← AÑADIR: Tamaño em en móviles */
  }
}
@media (max-width: 480px) {
  .luna-container {
  padding: 0.5rem !important;
  gap: 1rem !important;
  }
  
  .luna-sidebar, .luna-chat-area {
  border-radius: 15px !important;
  }
  
  .luna-header {
  padding: 1.5rem !important;
  }
  
  .luna-title {
  font-size: 14px !important;
  }
  
  .luna-input-area {
  padding: 1.5rem !important;
  }
  
  .luna-quick-btn {
  font-size: 15px !important;
  }
}
  
/* REDUCIR ANIMACIONES PARA ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  * {
  animation: none !important;
  transition: none !important;
  }
  
  .luna-messages {
  scroll-behavior: auto !important;
  }
  
  .luna-response-text::after {
  content: '' !important;
  }
}

/* MODO OSCURO AVANZADO */
@media (prefers-color-scheme: dark) {
  :root {
  --luna-bg: radial-gradient(ellipse at center, #000308 0%, #0a0f1c 100%);
  --luna-glass: rgba(255, 255, 255, 0.05);
  --luna-border: rgba(239, 164, 252, 0.25);
  }
}

/* ALTO CONTRASTE */
@media (prefers-contrast: high) {
  :root {
  --luna-border: rgba(239, 164, 252, 0.8);
  --luna-glow: 0 0 30px rgba(0, 255, 136, 0.8);
  }
  
  .luna-message {
  border: 2px solid var(--luna-border) !important;
  }
}

/* PRINT STYLES */
@media print {
  .luna-particles,
  .luna-sidebar,
  .luna-input-area,
  .luna-thinking-bubble {
  display: none !important;
  }
  
  .luna-container {
  grid-template-columns: 1fr !important;
  background: white !important;
  color: black !important;
  }
  
  .luna-message {
  background: white !important;
  border: 1px solid #ccc !important;
  color: black !important;
  }
}

/* ÁREA DE SUBIDA DE ARCHIVOS */
.luna-file-area {
  margin-top: 1rem !important;
  padding: 1.5rem !important;
  border: 2px dashed var(--luna-border) !important;
  border-radius: 15px !important;
  background: rgba(0, 255, 136, 0.05) !important;
  transition: var(--luna-transition) !important;
  text-align: center !important;
  position: relative !important;
}

.luna-file-area.drag-over {
  border-color: var(--luna-accent) !important;
  background: rgba(0, 255, 136, 0.15) !important;
  transform: scale(1.02) !important;
}

.luna-file-input {
  display: none !important;
}

.luna-upload-btn {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(239, 164, 252, 0.1)) !important;
  border: 1px solid var(--luna-accent) !important;
  color: var(--luna-text) !important;
  padding: 1rem 2rem !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 16px !important;
  transition: var(--luna-transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4) !important;
}

.luna-upload-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent) !important;
  transition: left 0.5s !important;
}

.luna-upload-btn:hover::before {
  left: 100% !important;
}

.luna-upload-btn:hover {
  background: rgba(0, 255, 136, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3) !important;
}

.luna-upload-text {
  font-family: var(--luna-pixel-font) !important;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-top: 0.8rem !important;
}

/* LISTA DE ARCHIVOS SUBIDOS */
.luna-files-list {
  margin-top: 1.5rem !important;
  max-height: 200px !important;
  overflow-y: auto !important;
}

.luna-file-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--luna-border) !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  margin-bottom: 0.8rem !important;
  transition: var(--luna-transition) !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 14px !important;
}

.luna-file-item:hover {
  background: rgba(0, 255, 136, 0.1) !important;
  border-color: var(--luna-accent) !important;
}

.luna-file-info {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex: 1 !important;
}

.luna-file-icon {
  font-size: 20px !important;
  width: 30px !important;
  text-align: center !important;
}

.luna-file-details {
  flex: 1 !important;
}

.luna-file-name {
  color: var(--luna-text) !important;
  font-weight: normal !important;
  margin-bottom: 0.3rem !important;
  word-break: break-word !important;
}

.luna-file-size {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 12px !important;
}

.luna-file-actions {
  display: flex !important;
  gap: 0.5rem !important;
}

.luna-file-btn {
  background: rgba(0, 255, 136, 0.2) !important;
  border: 1px solid var(--luna-accent) !important;
  color: var(--luna-text) !important;
  padding: 0.5rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  transition: var(--luna-transition) !important;
  font-family: var(--luna-pixel-font) !important;
}

.luna-file-btn:hover {
  background: rgba(0, 255, 136, 0.3) !important;
}

.luna-file-btn.delete {
  background: rgba(231, 76, 60, 0.2) !important;
  border-color: #e74c3c !important;
}

.luna-file-btn.delete:hover {
  background: rgba(231, 76, 60, 0.3) !important;
}

/* PREVIEW DE IMÁGENES */
.luna-image-preview {
  max-width: 150px !important;
  max-height: 100px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 1px solid var(--luna-border) !important;
  cursor: pointer !important;
  transition: var(--luna-transition) !important;
}

.luna-image-preview:hover {
  transform: scale(1.05) !important;
  border-color: var(--luna-accent) !important;
}

/* MODAL PARA PREVIEW COMPLETO */
.luna-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 10000 !important;
  backdrop-filter: blur(10px) !important;
}

.luna-modal-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 90% !important;
  max-height: 90% !important;
  border-radius: 15px !important;
  overflow: hidden !important;
}

.luna-modal img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 80vh !important;
  object-fit: contain !important;
}

.luna-modal-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  cursor: pointer !important;
  font-size: 20px !important;
  font-family: var(--luna-pixel-font) !important;
}

/* INDICADOR DE CARGA */
.luna-upload-progress {
  margin-top: 1rem !important;
  padding: 1rem !important;
  background: rgba(0, 255, 136, 0.1) !important;
  border: 1px solid var(--luna-accent) !important;
  border-radius: 10px !important;
  text-align: center !important;
  font-family: var(--luna-pixel-font) !important;
  display: none !important;
}

.luna-progress-text {
  color: var(--luna-accent) !important;
  margin-bottom: 0.5rem !important;
}

.luna-progress-bar {
  width: 100% !important;
  height: 8px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.luna-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--luna-accent), var(--luna-secondary)) !important;
  transition: width 0.3s ease !important;
  width: 0% !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .luna-file-item {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
  }

  .luna-file-actions {
  justify-content: center !important;
  }

  .luna-image-preview {
  max-width: 100px !important;
  max-height: 80px !important;
  }
}

/* NUEVOS ESTILOS PARA PREVISUALIZACIÓN DE IMÁGENES EN EL CHAT */
.luna-message-image-previews {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important; /* Aumentado el gap para mejor separación */
  margin-top: 15px !important;
  justify-content: flex-end !important; /* Alinea a la derecha para mensajes de usuario */
}

.luna-message.assistant .luna-message-image-previews {
  justify-content: flex-start !important; /* Alinea a la izquierda para mensajes del asistente */
}

.luna-chat-image-preview {
  max-width: 200px !important; /* Aumentado el tamaño de la miniatura en el chat */
  max-height: 200px !important;
  object-fit: contain !important; /* Cambiado a contain para que la imagen completa sea visible */
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.2s ease !important;
  cursor: pointer !important; /* Para indicar que se puede hacer clic para ver más grande */
}

.luna-chat-image-preview:hover {
  transform: scale(1.05) !important;
  border-color: var(--luna-accent) !important;
}

/* === ESTILOS PARA GOOGLE GROUNDING - REFACTORIZADO === */

/* Contenedor principal del control de Grounding */
.luna-grounding-control {
    margin: 1.5rem 0 !important;
    padding: 1rem !important;
    background: rgba(0, 255, 136, 0.05) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    border-radius: 12px !important;
    animation: lunaGroundingGlow 4s infinite ease-in-out !important;
}

.luna-grounding-control h4 {
    color: var(--luna-accent) !important;
    margin: 0 0 0.8rem 0 !important;
    font-family: var(--luna-title-font) !important;
    font-size: 12px !important;
    text-align: center !important;
}

.luna-grounding-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.luna-grounding-row span {
    font-family: var(--luna-pixel-font) !important;
    font-size: 14px !important;
    color: white !important;
}

.luna-grounding-info {
    margin-top: 0.5rem !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.7) !important;
    text-align: center !important;
    font-family: var(--luna-pixel-font) !important;
}

/* Toggle Switch para Google Grounding */
.luna-toggle-switch {
    position: relative !important;
    display: inline-block !important;
    width: var(--luna-toggle-width) !important;
    height: var(--luna-toggle-height) !important;
}

.luna-toggle-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.luna-toggle-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: var(--luna-toggle-off-bg) !important; /* Color del carril apagado */
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: var(--luna-toggle-height) !important; /* Borde redondeado completo */
    border: 1px solid var(--luna-toggle-off-border) !important;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3) !important; /* Sombra al pasar el ratón */
}

.luna-toggle-slider:hover {
    background-color: #777 !important; /* Color del carril al pasar el ratón */
}

.luna-toggle-thumb {
    position: absolute !important;
    content: '' !important;
    height: var(--luna-toggle-thumb-size) !important;
    width: var(--luna-toggle-thumb-size) !important;
    left: var(--luna-toggle-thumb-offset) !important; /* Posición inicial del punto */
    bottom: var(--luna-toggle-thumb-offset) !important; /* Centrado vertical del punto */
    background-color: var(--luna-toggle-thumb-off-color) !important; /* Color del punto apagado */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 50% !important; /* Punto siempre redondo */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Estado "Encendido" del Toggle */
.luna-toggle-switch input:checked + .luna-toggle-slider {
    background-color: var(--luna-accent) !important; /* Carril se vuelve verde */
    border-color: var(--luna-accent) !important;
}

.luna-toggle-switch input:checked + .luna-toggle-slider .luna-toggle-thumb {
    /* Cálculo del desplazamiento: Ancho del carril - tamaño del punto - (2 * offset) */
    transform: translateX(calc(var(--luna-toggle-width) - var(--luna-toggle-thumb-size) - (2 * var(--luna-toggle-thumb-offset)))) !important;
    background-color: var(--luna-toggle-thumb-on-color) !important; /* Punto se vuelve verde (o el color que elijas en la variable) */
}

/* Animación para cuando se activa/desactiva grounding */
.luna-grounding-control.activating {
    animation: lunaGroundingActivate 0.6s ease-out !important;
}

@keyframes lunaGroundingActivate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
    100% { transform: scale(1); }
}

/* Indicador de estado de Grounding activo */
#luna-grounding-status {
    transition: all 0.3s ease !important;
    font-weight: bold !important;
}

/* Indicadores mejorados para cuando grounding está activo */
.luna-message.assistant.grounding-active {
  border-left: 3px solid #00ff88 !important;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 136, 0.1)) !important;
}

/* Indicador de fuentes de grounding */
.luna-grounding-sources {
  display: inline-block !important;
  background: rgba(0, 255, 136, 0.2) !important;
  border: 1px solid var(--luna-accent) !important;
  color: var(--luna-accent) !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-family: var(--luna-pixel-font) !important;
  margin-top: 0.5rem !important;
  font-weight: bold !important;
}

/* Estilo especial para el mensaje de procesamiento con grounding */
.luna-processing-message.grounding-active {
  border-left: 3px solid #00ff88 !important;
}

.luna-processing-message.grounding-active .luna-processing-text {
  color: #00ff88 !important;
}

/* Responsive para el toggle de grounding */
@media (max-width: 768px) {
    .luna-grounding-control {
        margin: 1rem 0 !important;
        padding: 0.8rem !important;
    }
    
    .luna-grounding-control h4 {
        font-size: 11px !important;
    }
    
    .luna-toggle-switch {
        width: 45px !important; /* Ajuste para móviles */
        height: 22px !important; /* Ajuste para móviles */
    }
    
    .luna-toggle-thumb {
        height: 18px !important; /* Ajuste para móviles */
        width: 18px !important; /* Ajuste para móviles */
        left: 2px !important;
        bottom: 2px !important;
    }
    
    .luna-toggle-switch input:checked + .luna-toggle-slider .luna-toggle-thumb {
        /* Recalcular desplazamiento para móviles */
        transform: translateX(calc(var(--luna-toggle-width) - 18px - (2 * 2px))) !important; /* 45 - 18 - 4 = 23px */
    }
}

@media (max-width: 480px) {
    /* Puedes añadir más ajustes si es necesario */
}

/* === ESTILOS PARA FUNCIÓN DE PENSAMIENTO DE GEMINI 2.5 FLASH === */

.luna-thinking-process {
  margin: 1rem 0 !important;
  background: rgba(0, 255, 136, 0.05) !important;
  border: 1px solid rgba(0, 255, 136, 0.2) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  animation: lunaThinkingGlow 3s infinite alternate !important;
}

.luna-thinking-header {
  background: rgba(0, 255, 136, 0.1) !important;
  padding: 1rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 16px !important;
  border-bottom: 1px solid rgba(0, 255, 136, 0.15) !important;
}

.luna-thinking-toggle {
  background: rgba(0, 255, 136, 0.2) !important;
  border: 1px solid var(--luna-accent) !important;
  color: var(--luna-text) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 12px !important;
  transition: var(--luna-transition) !important;
}

.luna-thinking-toggle:hover {
  background: rgba(0, 255, 136, 0.3) !important;
  transform: translateY(-1px) !important;
}

.luna-thinking-content {
  padding: 1.5rem !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(0, 0, 0, 0.1) !important;
  border-top: 1px solid rgba(0, 255, 136, 0.1) !important;
}

@keyframes lunaThinkingGlow {
  0%, 100% {
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  }
  50% {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  }
}

/* === ESTILOS PARA MULTIMEDIA (VIDEO/AUDIO) === */

.luna-video-preview {
  position: relative !important;
  display: inline-block !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: var(--luna-transition) !important;
}

.luna-video-preview:hover {
  transform: scale(1.05) !important;
}

.luna-video-overlay {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: white !important;
  padding: 0.5rem !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  pointer-events: none !important;
}

.luna-audio-preview {
  display: flex !important;
  align-items: center !important;
  background: rgba(239, 164, 252, 0.1) !important;
  border: 1px solid rgba(239, 164, 252, 0.3) !important;
  border-radius: 8px !important;
  padding: 1rem !important;
  margin: 0.5rem 0 !important;
  transition: var(--luna-transition) !important;
  max-width: 200px !important;
}

.luna-audio-preview:hover {
  background: rgba(239, 164, 252, 0.2) !important;
  transform: translateY(-2px) !important;
}

.luna-audio-icon {
  font-size: 24px !important;
  margin-right: 1rem !important;
  color: var(--luna-secondary) !important;
}

.luna-audio-info {
  flex: 1 !important;
  font-family: var(--luna-pixel-font) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: var(--luna-text) !important;
}

.luna-audio-info small {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 10px !important;
}

/* === MEJORAS RESPONSIVE PARA GEMINI 2.5 FLASH === */

@media (max-width: 768px) {
  .luna-thinking-header {
  flex-direction: column !important;
  gap: 0.8rem !important;
  text-align: center !important;
  }
  
  .luna-thinking-content {
  padding: 1rem !important;
  font-size: 13px !important;
  }
  
  .luna-video-preview {
  max-width: 150px !important;
  }
  
  .luna-audio-preview {
  max-width: 180px !important;
  padding: 0.8rem !important;
  }
  
  .luna-audio-icon {
  font-size: 20px !important;
  margin-right: 0.8rem !important;
  }
  
  .luna-sound-btn {
  font-size: 11px !important;
  padding: 0.7rem 1rem !important;
  gap: 0.6rem !important;
  }
  
  .luna-sound-icon {
  font-size: 14px !important;
  }
  
  .luna-sound-text {
  font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .luna-thinking-process {
  margin: 0.5rem 0 !important;
  border-radius: 8px !important;
  }
  
  .luna-thinking-header {
  padding: 0.8rem !important;
  font-size: 14px !important;
  }
  
  .luna-thinking-toggle {
  padding: 0.4rem 0.8rem !important;
  font-size: 11px !important;
  }
  
  .luna-audio-preview {
  max-width: 160px !important;
  padding: 0.6rem !important;
  }
}

/* === CONTROL ESPECÍFICO PARA ELEMENTOS EM (CORREGIR PROBLEMA ANTERIOR) === */

.luna-message.assistant em,
.luna-message.user em {
  font-size: 22px !important;
  font-family: var(--luna-pixel-font) !important;
  color: var(--luna-secondary) !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  font-weight: normal !important;
}

/* RESPONSIVE SOLO PARA EM */
@media (max-width: 768px) {
  .luna-message.assistant em,
  .luna-message.user em {
  font-size: 16px !important;
  }
}

/* === ESTILOS PARA FUENTES DE GROUNDING === */
.luna-grounding-sources-container {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px dashed rgba(0, 255, 136, 0.2) !important;
    font-family: var(--luna-pixel-font) !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.luna-grounding-sources-container h4 {
    font-family: var(--luna-title-font) !important;
    font-size: 12px !important;
    color: var(--luna-accent) !important;
    margin-bottom: 0.8rem !important;
    text-align: left !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3) !important;
}

.luna-grounding-sources-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.luna-grounding-source-item {
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.luna-grounding-source-link {
    color: var(--luna-secondary) !important; /* Color secundario para los enlaces */
    text-decoration: none !important;
    transition: var(--luna-transition) !important;
    display: inline-block !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 4px !important;
    background: rgba(239, 164, 252, 0.05) !important;
    border: 1px solid rgba(239, 164, 252, 0.1) !important;
}

.luna-grounding-source-link:hover {
    color: var(--luna-accent) !important; /* Color de acento al pasar el ratón */
    background: rgba(0, 255, 136, 0.1) !important;
    border-color: var(--luna-accent) !important;
    transform: translateX(3px) !important;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2) !important;
}

/* Responsive para fuentes de grounding */
@media (max-width: 768px) {
    .luna-grounding-sources-container {
        font-size: 12px !important;
    }
    .luna-grounding-sources-container h4 {
        font-size: 10px !important;
    }
    .luna-grounding-source-link {
        font-size: 12px !important;
        padding: 0.15rem 0.3rem !important;
    }
}