styles.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* Paleta de Colores Suavizada y Moderna */
  2. :root {
  3. --background-dark: #121212;
  4. --background-card: #1e1e1e;
  5. --background-header: #0a0a0a;
  6. --border-color: #2e2e2e;
  7. --text-primary: #373737;
  8. --text-secondary: #0e0e0e;
  9. --accent-red: #5490eb; /* Rojo (Tailwind red-600) */
  10. --accent-red-hover: #b91c1c; /* Rojo más oscuro (Tailwind red-700) */
  11. }
  12. * {
  13. box-sizing: border-box;
  14. }
  15. body {
  16. font-family: 'Inter', sans-serif;
  17. background-color: var(--background-dark);
  18. color: var(--text-primary);
  19. font-size: 16px;
  20. line-height: 1.625;
  21. }
  22. .accent-red { color: var(--accent-red); }
  23. .bg-accent-red { background-color: var(--accent-red); }
  24. .bg-accent-red.hover\:bg-red-700:hover { background-color: var(--accent-red-hover); }
  25. .border-accent-red { border-color: var(--accent-red); }
  26. header.bg-black { background-color: var(--background-header); }
  27. footer.bg-black { background-color: var(--background-header); }
  28. .border-gray-800 { border-color: var(--border-color); }
  29. .product-card {
  30. background-color: var(--background-card);
  31. border: 1px solid var(--border-color);
  32. }
  33. .category-title {
  34. color: var(--accent-red);
  35. border-bottom: 2px solid var(--accent-red);
  36. }
  37. .chat-header {
  38. background-color: #1a1a1a;
  39. padding: 1rem 1.5rem;
  40. display: flex;
  41. justify-content: space-between;
  42. align-items: center;
  43. border-bottom: 1px solid var(--border-color);
  44. }
  45. .chat-content-area {
  46. padding: 1rem;
  47. flex-grow: 1;
  48. display: flex;
  49. flex-direction: column;
  50. overflow: hidden;
  51. }
  52. .scrollable-chat {
  53. flex-grow: 1;
  54. overflow-y: auto;
  55. margin-bottom: 1rem;
  56. padding-right: 0.5rem;
  57. }
  58. .chat-bubble {
  59. max-width: 85%;
  60. padding: 10px 15px;
  61. border-radius: 15px;
  62. margin-bottom: 10px;
  63. word-wrap: break-word;
  64. font-size: 0.95rem;
  65. line-height: 1.5;
  66. }
  67. .chat-bubble-user {
  68. background-color: var(--accent-red);
  69. color: white;
  70. margin-left: auto;
  71. border-bottom-right-radius: 5px;
  72. }
  73. .chat-bubble-ai {
  74. background-color: #ffffff;
  75. margin-right: auto;
  76. border-bottom-left-radius: 5px;
  77. & p {
  78. color: rgb(17, 17, 17);
  79. }
  80. }
  81. .chat-input-container {
  82. display: flex;
  83. gap: 0.5rem;
  84. width: 100%;
  85. margin-top: auto;
  86. }
  87. /* Scrollbar Styles */
  88. .scrollable-chat::-webkit-scrollbar { width: 8px; }
  89. .scrollable-chat::-webkit-scrollbar-track { background: #2d2d2d; border-radius: 10px; }
  90. .scrollable-chat::-webkit-scrollbar-thumb { background: #555; border-radius: 10px; }
  91. .scrollable-chat::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }
  92. /* Modal Styles */
  93. .modal {
  94. display: none;
  95. position: fixed;
  96. z-index: 1050;
  97. left: 0;
  98. top: 0;
  99. width: 100%;
  100. height: 100%;
  101. overflow: auto;
  102. background-color: rgba(0,0,0,0.85);
  103. align-items: center;
  104. justify-content: center;
  105. }
  106. .modal-content {
  107. background-color: var(--background-card);
  108. padding: 2rem;
  109. border: 1px solid var(--border-color);
  110. width: 90%;
  111. max-width: 450px;
  112. border-radius: 12px;
  113. position: relative;
  114. }
  115. .close-button {
  116. color: #aaa;
  117. font-size: 28px;
  118. font-weight: bold;
  119. cursor: pointer;
  120. background: none;
  121. border: none;
  122. }
  123. .close-button:hover,
  124. .close-button:focus {
  125. color: var(--accent-red);
  126. text-decoration: none;
  127. }
  128. /* Loader Styles */
  129. .loading-spinner {
  130. border: 4px solid rgba(255, 255, 255, 0.3);
  131. border-radius: 50%;
  132. border-top: 4px solid var(--accent-red);
  133. width: 24px;
  134. height: 24px;
  135. animation: spin 1s linear infinite;
  136. margin: 0 auto;
  137. }
  138. @keyframes spin {
  139. 0% { transform: rotate(0deg); }
  140. 100% { transform: rotate(360deg); }
  141. }
  142. /* Media Queries para Responsividad */
  143. @media (max-width: 1023px) {
  144. .chat-panel-embedded {
  145. height: auto; /* Altura automática en móvil */
  146. margin-bottom: 2rem;
  147. }
  148. .chat-content-area {
  149. height: 40vh; /* Altura específica para el contenido del chat */
  150. }
  151. }