/*
Theme Name: Plantilla AI Chat Pro
Description: Tema WordPress moderno con chat de IA y widgets Elementor personalizados
Version: 1.0
Author: Tu Nombre
*/

/* Estilos base del tema */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Degradado de fondo para la sección principal */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Estilos del chat actualizados */
.chat-demo {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-header {
    background: #6B7280;
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-weight: 600;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 5px;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    animation: messageSlide 0.4s ease-out;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot { justify-content: flex-start; }
.message.user { justify-content: flex-end; }

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.message.bot .message-avatar { background: #667eea; }
.message.user .message-avatar { background: #48bb78; order: 2; }

.message-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.message.bot .message-bubble { background: #f3f4f6; color: #1f2937; }
.message.user .message-bubble { background: #667eea; color: white; }

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 15px;
    max-width: 85%;
}

.typing-dots { display: flex; gap: 0.25rem; }

.typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input { display: flex; gap: 0.5rem; align-items: center; }

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.send-button {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover { background: #5a67d8; transform: scale(1.1) rotate(10deg); }

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

[contenteditable]:hover {
    outline: 2px dashed #667eea;
    background-color: #f0f2ff;
}

[contenteditable]:focus {
    outline: 2px solid #5a67d8;
    background-color: #e9eaff;
}

