 /* 1. Contenedor de Mensajes y Scroll */
    #aura-messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        background: rgba(255, 255, 255, 0.85);
        display: flex;
        flex-direction: column;
        gap: 15px;
        scroll-behavior: smooth;
    }

    #aura-messages::-webkit-scrollbar { width: 5px; }
    #aura-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

    /* 2. Burbujas de Chat estilo IA */
    .message-ai {
        background: #f0f4f8;
        color: #2c3e50;
        padding: 12px 16px;
        border-radius: 18px;
        border-bottom-left-radius: 5px;
        max-width: 90%; /* Un poco más ancho para albergar botones */
        width: fit-content;
        font-size: 0.9rem;
        line-height: 1.4;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        animation: fadeInUp 0.3s ease-out;
    }

    .message-user {
        background: var(--azul-marino);
        color: white;
        padding: 10px 15px;
        border-radius: 18px;
        border-bottom-right-radius: 5px;
        max-width: 80%;
        font-size: 0.9rem;
        align-self: flex-end;
        animation: fadeInUp 0.3s ease-out;
    }

    /* 3. Grilla de Categorías Principal (2x2) */
    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }

    .category-card {
        background: white;
        border: 1px solid #eee;
        border-radius: 18px;
        padding: 15px 5px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .category-card:hover {
        transform: translateY(-3px);
        border-color: var(--verde-institucional);
        box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    }

    .category-card i {
        font-size: 1.4rem;
        color: var(--azul-marino);
        margin-bottom: 8px;
    }

    .category-card span {
        font-size: 0.75rem;
        font-weight: 700;
        color: #444;
    }

    /* 4. Lista de Preguntas Frecuentes (FAQ) y Botones de Navegación */
    .faq-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
    }

    .btn-chat-nav-faq {
        width: 100%;
        background: white;
        border: 1px solid #e0e0e0;
        padding: 12px 15px;
        border-radius: 15px;
        cursor: pointer;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.85rem;
        color: #444;
        transition: all 0.2s ease;
    }

    .btn-chat-nav-faq:hover {
        background: #fff;
        border-color: var(--verde-institucional);
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .btn-chat-nav-faq i {
        color: var(--verde-institucional);
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

    /* 5. Estilo para Enlaces Directos (Botones de acción) */
    .btn-chat-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--verde-institucional);
        color: white !important;
        padding: 8px 15px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: bold;
        margin-top: 10px;
        transition: 0.3s;
    }

    .btn-chat-link:hover {
        background: var(--azul-marino);
        transform: scale(1.05);
    }

    /* 6. Animaciones */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Animación de puntos de carga (Typing) */
    .typing-dots {
        display: flex;
        gap: 4px;
        padding: 5px 0;
    }
    .typing-dots span {
        width: 6px;
        height: 6px;
        background: #95a5a6;
        border-radius: 50%;
        animation: typing 1s infinite ease-in-out;
    }
    /* Ajustes para la visualización de tablas de cupos en la burbuja de la IA */
.message-ai .resultado-cupos {
    width: 100%;
    max-width: 280px; /* Evita que la tabla desborde la burbuja */
    margin: 5px 0;
}

.message-ai table {
    width: 100%;
    border-collapse: collapse;
}

/* Animación para los puntos de carga */
.typing-dots span {
    height: 8px;
    width: 8px;
    background: #108c35;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
    animation: bounce 1.3s linear infinite;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes typing {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }