/* ========== TU CUERPO TÉCNICO ========== */
.staff-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.staff-header {
    text-align: center;
    margin-bottom: 40px;
}

.staff-header h2 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 10px;
}

.staff-header p {
    color: #6b7280;
    font-size: 16px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.staff-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 3px solid transparent;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.staff-card.johan:hover { border-color: #f59e0b; }
.staff-card.valeri:hover { border-color: #3b82f6; }
.staff-card.arrigo:hover { border-color: #10b981; }

.staff-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card h3 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 5px;
}

.staff-card .rol {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.staff-card .descripcion {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
}

.staff-card .btn-consultar {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.staff-card.johan .btn-consultar { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.staff-card.valeri .btn-consultar { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.staff-card.arrigo .btn-consultar { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.staff-card .btn-consultar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Chat Modal */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    overflow: hidden;
}

.chat-message .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message.user .avatar {
    background: #6b7280;
    color: white;
}

.chat-message.assistant .avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-message .contenido {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.user .contenido {
    background: #1f2937;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .contenido {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-input-container button {
    padding: 14px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #9ca3af;
    font-size: 13px;
}

.chat-typing .dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
