.naranja {
    color: orange;
}

.negro {
    color: black;
}

@keyframes peekAboo {
    0% {
        transform: translateX(120%);
        opacity: 0;
        filter: drop-shadow(0 0 50px #ffd700);
    }

    5% {
        transform: translateX(80%) rotate(5deg);
        opacity: 1;
        filter: drop-shadow(0 0 40px #ffd700);
    }

    10% {
        transform: translateX(100%);
        filter: drop-shadow(0 0 30px #ffd700);
    }

    15% {
        transform: translateX(70%) rotate(-5deg);
        filter: drop-shadow(0 0 40px #ffd700);
    }

    20% {
        transform: translateX(100%);
        filter: drop-shadow(0 0 30px #ffd700);
    }

    25% {
        transform: translateX(60%) rotate(5deg);
        filter: drop-shadow(0 0 40px #ffd700);
    }

    30% {
        transform: translateX(100%);
        filter: drop-shadow(0 0 30px #ffd700);
    }

    35% {
        transform: translate(0, 0) scale(1);
        filter: drop-shadow(0 0 20px #ffd700);
    }

    100% {
        transform: translate(0, 0) scale(1);
        filter: drop-shadow(0 0 20px #ffd700);
    }
}

@keyframes floatingEffect {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 20px #ffd700);
    }

    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 30px #ffd700);
    }

    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 20px #ffd700);
    }
}

@keyframes catAndMouse {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(calc(90vw - 80px), calc(-80vh + 80px)) rotate(45deg);
    }

    20% {
        transform: translate(calc(-80vw + 80px), calc(70vh - 80px)) rotate(-30deg);
    }

    30% {
        transform: translate(calc(70vw - 80px), calc(80vh - 80px)) rotate(60deg);
    }

    40% {
        transform: translate(calc(-90vw + 80px), calc(-70vh + 80px)) rotate(-45deg);
    }

    50% {
        transform: translate(calc(80vw - 80px), calc(50vh - 80px)) rotate(30deg);
    }

    60% {
        transform: translate(calc(-70vw + 80px), calc(-90vh + 80px)) rotate(-60deg);
    }

    70% {
        transform: translate(calc(85vw - 80px), calc(85vh - 80px)) rotate(45deg);
    }

    80% {
        transform: translate(calc(-85vw + 80px), calc(-60vh + 80px)) rotate(-30deg);
    }

    90% {
        transform: translate(calc(75vw - 80px), calc(90vh - 80px)) rotate(60deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes fullScreenJump {
    0% {
        transform: translate(0, 0) scale(1);
    }

    15% {
        transform: translate(calc(90vw - 80px), calc(90vh - 80px)) scale(1.2);
    }

    30% {
        transform: translate(0, calc(90vh - 80px)) scale(0.8);
    }

    45% {
        transform: translate(calc(90vw - 80px), 0) scale(1.1);
    }

    60% {
        transform: translate(calc(45vw - 40px), calc(45vh - 40px)) scale(0.9);
    }

    75% {
        transform: translate(calc(20vw), calc(70vh)) scale(1.2);
    }

    90% {
        transform: translate(calc(70vw), calc(20vh)) scale(0.8);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.video-container,
.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.video-container {
    z-index: 2;
}

.image-container {
    z-index: 1;
    display: none;
}

#bubble-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bubble-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assistant-bubble {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 70px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
    overflow: hidden;
    animation: peekAboo 20s ease-out forwards;
}

.floating {
    animation: floatingEffect 2s ease-in-out infinite !important;
}

.cat-and-mouse {
    animation: catAndMouse 20s linear infinite !important;
}

.full-screen-jumping {
    animation: fullScreenJump 20s infinite ease-in-out !important;
}

.chatbot-container {
    position: fixed;
    bottom: 10%;
    right: 5%;
    width: 90%;
    max-width: 380px;
    height: 70vh;
    max-height: 600px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.chatbot-header {
    background-color: #f7dfc5;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f5ead9;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
    background-color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 0.95rem;
}

.chatbot-input button {
    background-color: #f08913;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chatbot-input button:hover {
    background-color: #e07800;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.user-message {
    background-color: #f3c485;
    padding: 12px 15px;
    border-radius: 15px 15px 0 15px;
    margin-left: auto;
    color: #2c3e50;
}

.bot-message {
    background-color: rgb(245, 144, 49);
    padding: 15px;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.typing-indicator {
    display: none;
    padding: 10px;
    background-color: rgb(245, 144, 49);
    border-radius: 15px 15px 15px 0;
}

.typing-indicator span {
    height: 10px;
    width: 10px;
    float: left;
    margin: 0 1px;
    background-color: #ffffff;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typing {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.message-text {
    display: inline-block;
    opacity: 0;
}

.char {
    opacity: 0;
    animation: fadeIn 0.05s forwards;
}

/* Media queries para dispositivos móviles */
@media screen and (max-width: 768px) {
    .assistant-bubble {
        width: 60px;
        height: 60px;
        bottom: 120px;
        right: 15px;
    }

    .chatbot-container {
        width: 95%;
        max-width: none;
        bottom: 0;
        right: 2.5%;
        height: 80vh;
        border-radius: 12px 12px 0 0;
    }

    .chatbot-input {
        padding: 8px;
    }

    .chatbot-input input {
        padding: 8px;
        font-size: 14px;
    }

    .chatbot-input button {
        padding: 6px 15px;
        font-size: 14px;
    }
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 320px) {
    .assistant-bubble {
        width: 50px;
        height: 50px;
        bottom: 110px;
        right: 10px;
    }
}

