<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Estilos para el sistema de chat con IA */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&amp;display=swap');

.lock-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}

.ai-name{
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ai-chat-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999999;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* BotÃ³n de chat */
.ai-chat-button {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  /* background: #FF7B54;*/
  background: linear-gradient(45deg, #FF7B54 0%, #FF5E62 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(255, 123, 84, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.ai-chat-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 123, 84, 0.4);
}

.ai-chat-icon {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-icon img {
  transform: translate(4px, -2px);
 }

/* NotificaciÃ³n */
.ai-chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  background-color: #FF4365;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

/* Ventana de chat */
.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 680px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* transition: all 0.3s ease; */
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.ai-chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Cabecera del chat */
.ai-chat-header {
  padding: 5px 10px;
  background: linear-gradient(135deg, #FF7B54 0%, #FF5E62 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ai-chat-title {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.ai-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  /* background-color: rgba(255, 255, 255, 0.2); */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.ai-chat-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Ãrea de mensajes */
.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f7f7f9;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Mensajes de la IA */
.ai-message {
  display: flex;
  align-items: flex-start;
  max-width: 85%;
}

.ai-message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FF7B54;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 10px;
  flex-shrink: 0;
}

.ai-message-content {
  background-color: white;
  padding: 12px 15px;
  border-radius: 0 15px 15px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ai-message-content p {
  margin: 0 0 8px 0;
  line-height: 1.5;
  color: #333;
}

.ai-message-content p:last-child {
  margin-bottom: 0;
}

/* Mensajes del usuario */
.user-message {
  display: flex;
  justify-content: flex-end;
  max-width: 85%;
  align-self: flex-end;
}

.user-message-avatar {
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 50%;
  background-color: #FF7B54;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-left: 10px;
  flex-shrink: 0;
}

.user-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-message-content {
  background: linear-gradient(135deg, #FF7B54 0%, #FF5E62 100%);
  padding: 12px 15px;
  border-radius: 15px 0 15px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-message-content p {
  margin: 0;
  line-height: 1.5;
  color: white;
}

/* Ãrea de composiciÃ³n de mensajes */
.ai-chat-composer {
  padding: 15px;
  background-color: white;
  display: flex;
  align-items: center;
  border-top: 1px solid #eaeaea;
}

.ai-chat-composer textarea {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: none;
  transition: border-color 0.3s;
  background-color: #f7f7f9;
  max-height: 80px;
}

.ai-chat-composer textarea:focus {
  border-color: #FF7B54;
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7B54 0%, #FF5E62 100%);
    border: none;
    color: white;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ai-chat-send:hover {
    transform: rotate(360deg) scale(1.05);
}

/* Estilos para el indicador de escritura */
.typing-indicator .ai-message-content {
    padding: 12px 20px;
}

.dot-typing {
display: flex;
align-items: center;
height: 16px;
}

.dot-typing span {
height: 8px;
width: 8px;
background-color: #888;
border-radius: 50%;
margin-right: 5px;
animation: typing 1.4s infinite;
display: inline-block;
}

.dot-typing span:nth-child(2) {
animation-delay: 0.2s;
}

.dot-typing span:nth-child(3) {
animation-delay: 0.4s;
margin-right: 0;
}

.ai-chat-header{
    cursor: move;
}

@keyframes typing {
0%, 60%, 100% {
  transform: translateY(0);
  opacity: 0.5;
}
30% {
  transform: translateY(-4px);
  opacity: 1;
}
}

.ia-entrance {
    animation: ia-entrance 1.5s ease 0s 1 normal forwards;
}

@keyframes ia-entrance {
    0% {
      opacity: 0;
      transform: translateX(250px) rotate(200deg);
    }

    100% {
      opacity: 1;
      transform: translateX(0) rotate(0deg);
    }
}


.ui-resizable-handle {
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.ui-resizable-nw {
    width: 15px;
    height: 15px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: nw-resize;
    border-radius: 0 0 4px 0;
}

.feedback {
    border: none;
    background-color: transparent;
    cursor: pointer;
    border-radius: 6px;
}

.feedback i {
    color: #FF6D41;
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    padding: 6px;
    border-radius: 6px;
    display: inline-block;
    font-size: 18px;
}

.feedback i:hover {
    transform: scale(1.3);
    opacity: 1;
}

.feedback i.clicked {
    transform: scale(1.8);
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    80% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.d-none{
    display: none;
}

.icon-pop-in {
    animation: popIn 0.3s ease-out;
}



/* Estilos responsivos */
@media (max-width: 768px), (max-height: 768px) {
  .ai-chat-window {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      /* height: 100dvh; */
      border-radius: 0;
      transform: none !important;
      display: flex;
      flex-direction: column;
  }

  .ai-chat-button {
      width: 65px;
      height: 65px;
      bottom: 20px;
      /* right: 20px; */
  }

  /* Header fijo en mÃ³viles */
  .ai-chat-header {
      position: sticky;
      top: 0;
      z-index: 10;
      flex-shrink: 0;
  }

  /* Ãrea de mensajes con scroll independiente */
  .ai-chat-messages {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 20px;
      padding-bottom: 20px; /* Reducido el padding bottom */
      background-color: #f7f7f9;
      display: flex;
      flex-direction: column;
      gap: 15px;
      /* Evita que el contenido se salga del viewport */
      min-height: 0;
  }

  /* Input fijo en la parte inferior */
  .ai-chat-composer {
      position: sticky;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 10;
      margin: 0;
      border-radius: 0;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      background-color: white;
      flex-shrink: 0;
      /* Permite que el input se adapte al teclado virtual */
      padding: 15px;
      padding-bottom: max(15px, env(safe-area-inset-bottom));
  }

  /* Mejoras para el textarea en mÃ³viles */
  .ai-chat-composer textarea {
      font-size: 16px; /* Evita zoom en iOS */
      max-height: 100px; /* Permite mÃ¡s lÃ­neas en mÃ³vil */
  }

  /* Asegura que el chat ocupe toda la pantalla disponible */
  .ai-chat-window.active {
      height: 100vh;
      height: 100dvh; /* Dynamic viewport height para mejor soporte mÃ³vil */
  }

}

/* Soporte especÃ­fico para iOS y su teclado virtual */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
      .ai-chat-window {
          /* iOS especÃ­fico: usa la altura visual del viewport */
          height: -webkit-fill-available;
      }

      .ai-chat-window.active {
          height: -webkit-fill-available;
      }
  }
}

/* Clase de ayuda para cuando se abre el teclado */
.keyboard-open .ai-chat-messages {
  padding-bottom: 10px;
}

/* Media query para dispositivos muy pequeÃ±os */
@media (max-width: 480px) {
  .ai-chat-composer {
      padding: 12px;
      padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .ai-chat-messages {
      padding: 15px;
  }
}
</pre></body></html>