/* --- Estilos del Plugin Parisineitor (v1.2 - Modern) --- */
/* --- Desarrollado por Techmark AI --- */
/* --- Implementado por Pressvik --- */
/* --- Posicionado a la izquierda --- */

#contenedorChat {
  z-index: 99999;
  margin-top: 10px;
  position: fixed;
  overflow: hidden; /* --- MODIFICADO --- Oculta esquinas del iframe */
  bottom: 10px;
  left: 20px; /* Posición izquierda */
  
  /* --- MODIFICADO --- Más grande y moderno */
  min-width: 370px;
  min-height: 500px;
  height: 70%;
  width: 25%;
  max-width: 420px;
  
  border-radius: 12px; /* --- MODIFICADO --- */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* --- MODIFICADO --- */
}

.contenedorBoton {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Posición izquierda */
  z-index: 99999;
  width: 90px;
  height: 90px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btnChat {
  z-index: 99999;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  border: #add8e6 2px solid;
  background-color: #e3fdff;
  color: #ffffff;
  background-image: url('https://techmark-ai.com/api/Proyectos/ZW8T1yJgUdlG.jpg');
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
  /* --- MODIFICADO --- Añadido para centrar el texto */
  display: flex;
  align-items: center;
  justify-content: center;
}

.texto_btnChat {
  border-radius: 5px;
  font-size: 15px;
  background-color: #00000082;
  font-weight: bold;
  
  /* --- MODIFICADO --- Añadido para centrar y dar espacio */
  color: #ffffff;
  padding: 3px 9px;
}

.contenedorBoton:hover .btnChat {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  background-color: #0d0d24;
  border-color: #00008b;
  color: #ffffff;
}

.contenedorBoton:active .btnChat {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  background-color: #e3fdff;
  border-color: #add8e6;
  color: #ffffff;
}

.pulso {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  animation: chat-pulso 2s ease-out infinite;
  position: absolute;
}

.pulso.delay-1 {
  animation-delay: 1s;
}

@keyframes chat-pulso {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes MostrarMenu {
  0% { transform: translateY(100%); display: none; }
  51% { transform: translateY(100%); display: none; }
  100% { transform: translateY(0); }
}

@keyframes OcultarMenu {
  0% { transform: translateY(0); }
  49% { transform: translateY(100%); display: none; }
  100% { transform: translateY(100%); display: none; }
}

@keyframes MostrarBoton {
  0% { opacity: 0; display: none; }
  51% { opacity: 0; display: none; }
  85% { opacity: 1; width: 60px; height: 60px; bottom: 20px; left: 20px; }
  95% { opacity: 1; width: 64px; height: 64px; bottom: 18px; left: 18px; }
  100% { opacity: 1; }
}

@keyframes OcultarBoton {
  0% { opacity: 1; width: 60px; height: 60px; bottom: 20px; left: 20px; }
  10% { opacity: 1; width: 64px; height: 64px; bottom: 18px; left: 18px; }
  20% { opacity: 1; width: 60px; height: 60px; bottom: 20px; left: 20px; }
  49% { opacity: 0; display: none; }
  100% { opacity: 0; display: none; }
}

.MostrarBoton { animation: MostrarBoton 1s forwards; }
.OcultarBoton { animation: OcultarBoton 1s forwards; }
.MostrarMenu { animation: MostrarMenu 1s forwards; }
.OcultarMenu { animation: OcultarMenu 1s forwards; }
.hidden { display: none; }

/* --- MODIFICADO --- Estilo completo para un botón "X" moderno */
.btnOcultarChat {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 28px;
  height: 28px;
  background: #ebebeb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.btnOcultarChat::before,
.btnOcultarChat::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px; 
  height: 2px;
  background-color: #333;
}
.btnOcultarChat::before { transform: translate(-50%, -50%) rotate(45deg); }
.btnOcultarChat::after { transform: translate(-50%, -50%) rotate(-45deg); }
.btnOcultarChat:hover {
  background: #d4d4d4;
  transform: scale(1.1);
}
/* --- FIN DEL CÓDIGO MODIFICADO PARA EL BOTÓN CERRAR --- */


/* --- INICIA CÓDIGO RESPONSIVO (MÓVILES) --- */
@media (max-width: 600px) {
  
  /* La ventana del chat */
  #contenedorChat {
    width: 90%; /* Ocupa el 90% del ancho */
    max-width: 90%; /* Anula el max-width de escritorio */
    min-width: 0; /* Anulamos el min-width */
    left: 5%; /* Centrado (5% a cada lado) */
    right: 5%;
    height: 80%; /* Más alto en móviles */
    bottom: 10px;
    
    /* --- MODIFICADO --- Añadido para consistencia */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
  }

  /* El botón de burbuja */
  .contenedorBoton {
    width: 70px;
    height: 70px;
    left: 15px;
    bottom: 15px;
  }

  /* El icono dentro del botón */
  .btnChat {
    width: 50px;
    height: 50px;
  }

  /* La animación de pulso */
  .pulso {
    width: 60px;
    height: 60px;
  }
  
  /* Botón de cerrar en móvil (un poco más grande para tocar) */
  .btnOcultarChat {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  /* Ajustamos las animaciones para la nueva posición */
  @keyframes MostrarBoton {
    0% { opacity: 0; display: none; }
    51% { opacity: 0; display: none; }
    85% { opacity: 1; width: 50px; height: 50px; bottom: 15px; left: 15px; }
    95% { opacity: 1; width: 54px; height: 54px; bottom: 13px; left: 13px; }
    100% { opacity: 1; }
  }

  @keyframes OcultarBoton {
    0% { opacity: 1; width: 50px; height: 50px; bottom: 15px; left: 15px; }
    10% { opacity: 1; width: 54px; height: 54px; bottom: 13px; left: 13px; }
    20% { opacity: 1; width: 50px; height: 50px; bottom: 15px; left: 15px; }
    49% { opacity: 0; display: none; }
    100% { opacity: 0;  display: none; }
  }
}
/* --- FIN CÓDIGO RESPONSIVO --- */