| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- /* Paleta de Colores Suavizada y Moderna */
- :root {
- --background-dark: #121212;
- --background-card: #1e1e1e;
- --background-header: #0a0a0a;
- --border-color: #2e2e2e;
- --text-primary: #e0e0e0;
- --text-secondary: #a0a0a0;
- --accent-red: #dc2626; /* Rojo (Tailwind red-600) */
- --accent-red-hover: #b91c1c; /* Rojo más oscuro (Tailwind red-700) */
- }
- * {
- box-sizing: border-box;
- }
- body {
- font-family: 'Inter', sans-serif;
- background-color: var(--background-dark);
- color: var(--text-primary);
- font-size: 16px;
- line-height: 1.625;
- }
- .accent-red { color: var(--accent-red); }
- .bg-accent-red { background-color: var(--accent-red); }
- .bg-accent-red.hover\:bg-red-700:hover { background-color: var(--accent-red-hover); }
- .border-accent-red { border-color: var(--accent-red); }
- header.bg-black { background-color: var(--background-header); }
- footer.bg-black { background-color: var(--background-header); }
- .border-gray-800 { border-color: var(--border-color); }
- .product-card {
- background-color: var(--background-card);
- border: 1px solid var(--border-color);
- }
- .category-title {
- color: var(--accent-red);
- border-bottom: 2px solid var(--accent-red);
- }
- /* Chat Panel Integrado */
- .chat-panel-embedded {
- border-radius: 12px;
- overflow: hidden;
- height: 75vh; /* Altura fija */
- max-height: 800px;
- background-color: var(--background-card);
- border: 1px solid var(--border-color);
- box-shadow: 0 5px 15px rgba(0,0,0,0.3);
- display: flex;
- flex-direction: column;
- }
- .chat-header {
- background-color: #1a1a1a;
- padding: 1rem 1.5rem;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid var(--border-color);
- }
- .chat-content-area {
- padding: 1rem;
- flex-grow: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .scrollable-chat {
- flex-grow: 1;
- overflow-y: auto;
- margin-bottom: 1rem;
- padding-right: 0.5rem;
- }
- .chat-bubble {
- max-width: 85%;
- padding: 10px 15px;
- border-radius: 15px;
- margin-bottom: 10px;
- word-wrap: break-word;
- font-size: 0.95rem;
- line-height: 1.5;
- }
- .chat-bubble-user {
- background-color: var(--accent-red);
- color: white;
- margin-left: auto;
- border-bottom-right-radius: 5px;
- }
- .chat-bubble-ai {
- background-color: #3b3b3b;
- color: var(--text-primary);
- margin-right: auto;
- border-bottom-left-radius: 5px;
- }
- .chat-input-container {
- display: flex;
- gap: 0.5rem;
- width: 100%;
- margin-top: auto;
- }
- /* Scrollbar Styles */
- .scrollable-chat::-webkit-scrollbar { width: 8px; }
- .scrollable-chat::-webkit-scrollbar-track { background: #2d2d2d; border-radius: 10px; }
- .scrollable-chat::-webkit-scrollbar-thumb { background: #555; border-radius: 10px; }
- .scrollable-chat::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }
- /* Modal Styles */
- .modal {
- display: none;
- position: fixed;
- z-index: 1050;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- overflow: auto;
- background-color: rgba(0,0,0,0.85);
- align-items: center;
- justify-content: center;
- }
- .modal-content {
- background-color: var(--background-card);
- padding: 2rem;
- border: 1px solid var(--border-color);
- width: 90%;
- max-width: 450px;
- border-radius: 12px;
- position: relative;
- }
- .close-button {
- color: #aaa;
- font-size: 28px;
- font-weight: bold;
- cursor: pointer;
- background: none;
- border: none;
- }
- .close-button:hover,
- .close-button:focus {
- color: var(--accent-red);
- text-decoration: none;
- }
- /* Loader Styles */
- .loading-spinner {
- border: 4px solid rgba(255, 255, 255, 0.3);
- border-radius: 50%;
- border-top: 4px solid var(--accent-red);
- width: 24px;
- height: 24px;
- animation: spin 1s linear infinite;
- margin: 0 auto;
- }
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- /* Media Queries para Responsividad */
- @media (max-width: 1023px) {
- .chat-panel-embedded {
- height: auto; /* Altura automática en móvil */
- margin-bottom: 2rem;
- }
- .chat-content-area {
- height: 40vh; /* Altura específica para el contenido del chat */
- }
- }
|