/* Estilos del Asistente de Contacto - v1.5 - Paleta azul claro */

.contact-assistant-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4em 0;
    position: relative;
}

.assistant-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.assistant-intro {
    margin-bottom: 2em;
}

.assistant-intro h2 {
    font-size: 2.5em;
    color: #1e293b;
    margin-bottom: 0.5em;
}

.assistant-intro p {
    font-size: 1.1em;
    color: #64748b;
    margin-bottom: 1.5em;
}

.start-assistant-btn {
    padding: 1.2em 3em;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

.start-assistant-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.start-assistant-btn i {
    margin-right: 0.5em;
}

/* Modal del Asistente */
.assistant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.assistant-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.assistant-window {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.assistant-header-info {
    display: flex;
    align-items: center;
    gap: 1em;
}

.assistant-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(96, 165, 250, 0.3);
}

.assistant-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.assistant-header p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.9;
}

.close-assistant {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-assistant:hover {
    background: rgba(255, 255, 255, 0.2);
}

.assistant-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1.5em;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.chat-message {
    margin-bottom: 1em;
    animation: messageSlide 0.4s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bot {
    display: flex;
    gap: 0.8em;
    align-items: flex-start;
}

.message-bot .avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.message-bot .bubble {
    background: #ffffff;
    padding: 0.8em 1.2em;
    border-radius: 18px 18px 18px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.message-user {
    display: flex;
    justify-content: flex-end;
}

.message-user .bubble {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 0.8em 1.2em;
    border-radius: 18px 18px 5px 18px;
    max-width: 80%;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 0.8em;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 0.8em 1.2em;
    background: #ffffff;
    border-radius: 18px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

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

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.3); }
}

.assistant-input-area {
    padding: 1em 1.5em;
    background: #f8f9fa;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.input-wrapper {
    display: flex;
    gap: 0.8em;
    align-items: center;
}

.assistant-input {
    flex: 1;
    padding: 0.8em 1.2em;
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 25px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.assistant-input:focus {
    outline: none;
    border-color: #60a5fa;
}

.send-btn {
    width: auto;
    min-width: 100px;
    height: 45px;
    padding: 0 1.5em;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    position: relative;
    overflow: hidden;
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.send-btn:hover::before {
    width: 100%;
    height: 100%;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.send-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.send-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.send-btn span {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.send-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.send-btn:hover span {
    transform: translateX(-2px);
}

.send-btn:hover i {
    transform: translateX(4px);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    width: 0%;
    transition: width 0.5s ease;
}

.completion-message {
    text-align: center;
    padding: 2em;
}

.completion-message .icon {
    font-size: 4em;
    margin-bottom: 0.5em;
}

.completion-message h3 {
    color: #27ae60;
    margin-bottom: 0.5em;
}

.summary-box {
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 10px;
    margin: 1.5em 0;
    text-align: left;
}

.summary-item {
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #2c3e50;
}

.close-modal-btn {
    padding: 0.8em 2em;
    background: #60a5fa;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: #3b82f6;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .assistant-window {
        width: 95%;
        max-height: 95vh;
    }
    
    .assistant-intro h2 {
        font-size: 2em;
    }
    
    .start-assistant-btn {
        font-size: 1.1em;
        padding: 1em 2em;
    }
}
