styles.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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: #e0e0e0;
  8. --text-secondary: #a0a0a0;
  9. --accent-red: #dc2626; /* 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 Panel Integrado */
  38. .chat-panel-embedded {
  39. border-radius: 12px;
  40. overflow: hidden;
  41. height: 75vh; /* Altura fija */
  42. max-height: 800px;
  43. background-color: var(--background-card);
  44. border: 1px solid var(--border-color);
  45. box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  46. display: flex;
  47. flex-direction: column;
  48. }
  49. .chat-header {
  50. background-color: #1a1a1a;
  51. padding: 1rem 1.5rem;
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. border-bottom: 1px solid var(--border-color);
  56. }
  57. .chat-content-area {
  58. padding: 1rem;
  59. flex-grow: 1;
  60. display: flex;
  61. flex-direction: column;
  62. overflow: hidden;
  63. }
  64. .scrollable-chat {
  65. flex-grow: 1;
  66. overflow-y: auto;
  67. margin-bottom: 1rem;
  68. padding-right: 0.5rem;
  69. }
  70. .chat-bubble {
  71. max-width: 85%;
  72. padding: 10px 15px;
  73. border-radius: 15px;
  74. margin-bottom: 10px;
  75. word-wrap: break-word;
  76. font-size: 0.95rem;
  77. line-height: 1.5;
  78. }
  79. .chat-bubble-user {
  80. background-color: var(--accent-red);
  81. color: white;
  82. margin-left: auto;
  83. border-bottom-right-radius: 5px;
  84. }
  85. .chat-bubble-ai {
  86. background-color: #3b3b3b;
  87. color: var(--text-primary);
  88. margin-right: auto;
  89. border-bottom-left-radius: 5px;
  90. }
  91. .chat-input-container {
  92. display: flex;
  93. gap: 0.5rem;
  94. width: 100%;
  95. margin-top: auto;
  96. }
  97. /* Scrollbar Styles */
  98. .scrollable-chat::-webkit-scrollbar { width: 8px; }
  99. .scrollable-chat::-webkit-scrollbar-track { background: #2d2d2d; border-radius: 10px; }
  100. .scrollable-chat::-webkit-scrollbar-thumb { background: #555; border-radius: 10px; }
  101. .scrollable-chat::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }
  102. /* Modal Styles */
  103. .modal {
  104. display: none;
  105. position: fixed;
  106. z-index: 1050;
  107. left: 0;
  108. top: 0;
  109. width: 100%;
  110. height: 100%;
  111. overflow: auto;
  112. background-color: rgba(0,0,0,0.85);
  113. align-items: center;
  114. justify-content: center;
  115. }
  116. .modal-content {
  117. background-color: var(--background-card);
  118. padding: 2rem;
  119. border: 1px solid var(--border-color);
  120. width: 90%;
  121. max-width: 450px;
  122. border-radius: 12px;
  123. position: relative;
  124. }
  125. .close-button {
  126. color: #aaa;
  127. font-size: 28px;
  128. font-weight: bold;
  129. cursor: pointer;
  130. background: none;
  131. border: none;
  132. }
  133. .close-button:hover,
  134. .close-button:focus {
  135. color: var(--accent-red);
  136. text-decoration: none;
  137. }
  138. /* Loader Styles */
  139. .loading-spinner {
  140. border: 4px solid rgba(255, 255, 255, 0.3);
  141. border-radius: 50%;
  142. border-top: 4px solid var(--accent-red);
  143. width: 24px;
  144. height: 24px;
  145. animation: spin 1s linear infinite;
  146. margin: 0 auto;
  147. }
  148. @keyframes spin {
  149. 0% { transform: rotate(0deg); }
  150. 100% { transform: rotate(360deg); }
  151. }
  152. /* Media Queries para Responsividad */
  153. @media (max-width: 1023px) {
  154. .chat-panel-embedded {
  155. height: auto; /* Altura automática en móvil */
  156. margin-bottom: 2rem;
  157. }
  158. .chat-content-area {
  159. height: 40vh; /* Altura específica para el contenido del chat */
  160. }
  161. }