@charset "UTF-8";

/* Estilos para el botón flotante (el GIF) */
  .chat-floating-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10000; /* Mayor que el panel para estar encima */
    width: 120px;
    height: 120px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .chat-floating-button:hover {
    transform: scale(1.1);
  }
  .chat-floating-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Panel de chat oculto por defecto */
  .chat-panel {
    position: fixed;
    bottom: 1px; /* Separación del botón */
    right: 1px;
    width: 450px;   /* Ancho del panel */
    height: 600px;  /* Alto del panel */
    background: white;
    border-radius: 20px 20px 0 20px; /* Bordes redondeados */
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;  /* Oculto inicialmente */
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
  }

  /* Cabecera del panel (opcional, si quieres personalizar) */
  .chat-panel-header {
    background: #0D6867; 
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
  }
  .chat-panel-header img {
    width: 50px;
    height: 50px;
    border-radius: 80%;
    object-fit: cover;
  }
  .chat-panel-header .title {
    font-weight: bold;
    font-size: 16px;
  }
  .chat-panel-header .subtitle {
    font-size: 12px;
    opacity: 0.8;
  }
  .close-panel {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
  }

  /* Contenedor del iframe (ocupa el resto del espacio) */
  .chat-panel-body {
    flex: 1;
    width: 100%;
    background: #fff;
  }
  .chat-panel-body iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Clase para mostrar el panel (se activa con JS) */
  .chat-panel.show {
    display: flex;
  }