/*
 * SUME DOCBLOCK
 * Nombre: Estilos del Tutor IA (antes dentro de index.html)
 * Tipo: Salida
 * Entradas: ninguna
 * Acciones: estilos del botón flotante, el panel y los mensajes del Tutor
 * Salidas: estilos del widget del Tutor
 */
.tutor-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.tutor-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.tutor-msg-enter {
    animation: tutorMsgIn 0.3s ease-out forwards;
}

@keyframes tutorMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutor-panel-enter {
    animation: tutorPanelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tutorPanelIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tutor-typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    animation: tutorDot 1.4s infinite both;
}

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

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

@keyframes tutorDot {

    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile fullscreen */
@media (max-width: 480px) {
    #tutor-panel {
        width: calc(100vw - 16px) !important;
        max-width: 100vw !important;
        right: 8px !important;
        /* encima del botón Tutor, que está encima de la barra inferior (79 px) */
        bottom: 164px !important;
        height: 65vh !important;
    }

    #tutor-chat-widget {
        right: 16px;
    }
}
