/* Estilos optimizados y responsivos */
.chat-container { 
    max-width: 100%;
    margin: 1rem auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Mobile First */
@media (min-width: 768px) {
    .chat-container {
        max-width: 800px;
    }
}

/* Estilos unificados para ambos paneles */
.grid-chats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.chat-item {
    background: #19199f;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #ffffff;
    color: white;
    transition: transform 0.3s;
}

.chat-item:hover {
    transform: translateY(-5px);
}

.chat-item.cerrado {
    background: #6c757d;
    opacity: 0.9;
}

.boton-chat {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.boton-chat:hover {
    background: #ffbb32;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Interfaz de chat unificada */
.legal-chat-container {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 1000px;
    margin: 2rem auto;
}

.chat-messages {
    height: 60vh;
    padding: 1.5rem;
    overflow-y: auto;
    background: white;
}