
/* ═══════════════════════════════════════════
   VIC BOT - CHATBOT WIDGET
   ═══════════════════════════════════════════ */

.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Space Grotesk', sans-serif;
}

/* TOGGLE BUTTON */
.chatbot-toggle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(255, 45, 149, 0.4), 0 10px 30px rgba(255, 45, 149, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1001;
    padding: 0;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 60px rgba(255, 45, 149, 0.5), 0 15px 40px rgba(255, 45, 149, 0.4);
}

.chatbot-toggle img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: transform 0.3s;
}

.chatbot-toggle:hover img {
    transform: scale(1.1);
}

.chatbot-toggle.pulse {
    animation: botPulse 2s ease infinite;
}

@keyframes botPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 45, 149, 0.4), 0 10px 30px rgba(255, 45, 149, 0.3); }
    50% { box-shadow: 0 0 70px rgba(255, 45, 149, 0.5), 0 15px 40px rgba(255, 45, 149, 0.5); }
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #39ff14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 15px #39ff14;
    animation: notificationPulse 2s ease infinite;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* CHATBOT WINDOW */
.chatbot-window {
    position: fixed;
    bottom: 10px;
    right: 30px;
    width: 420px;
    max-width: calc(100vw - 10px);
    height: 95vh;
    max-height: calc(100vh - 10px);
    background: #0c0c18;
    border: 1px solid rgba(255, 45, 149, 0.15);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 45, 149, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

.chatbot-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2d95, #00f3ff, #b829ff);
    background-size: 200% 100%;
    animation: borderGradient 3s linear infinite;
    z-index: 10;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* HEADER */
.chatbot-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 45, 149, 0.1), rgba(0, 243, 255, 0.05));
    border-bottom: 1px solid rgba(255, 45, 149, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 5;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.4);
    animation: avatarGlow 3s ease infinite;
    overflow: hidden;
}

.chatbot-avatar img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.chatbot-avatar.speaking {
    animation: avatarSpeaking 0.5s ease infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 149, 0.4); }
    50% { box-shadow: 0 0 35px rgba(255, 45, 149, 0.4), 0 0 50px rgba(184, 41, 255, 0.3); }
}

@keyframes avatarSpeaking {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chatbot-info { flex: 1; }

.chatbot-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #39ff14;
    font-family: 'Rajdhani', sans-serif;
}

.chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #39ff14;
    border-radius: 50%;
    box-shadow: 0 0 10px #39ff14;
    animation: statusDotPulse 2s ease infinite;
}

@keyframes statusDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-actions {
    display: flex;
    gap: 10px;
}

.chatbot-action-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chatbot-action-btn:hover {
    background: rgba(255, 45, 149, 0.1);
    border-color: rgba(255, 45, 149, 0.3);
    color: #ff2d95;
    transform: translateY(-2px);
}

.chatbot-action-btn.active {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* QUICK ACTIONS */
.chatbot-quick-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8a8aaa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-action-btn:hover {
    background: rgba(255, 45, 149, 0.1);
    border-color: rgba(255, 45, 149, 0.2);
    color: #ff2d95;
    transform: translateY(-2px);
}

.quick-action-btn i { font-size: 0.75rem; }

/* MESSAGES AREA */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ff2d95 transparent;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #ff2d95; border-radius: 2px; }

/* MESSAGE STYLES */
.chatbot-message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    animation: messageSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-message.bot {
    align-self: flex-start;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.chatbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    color: #000;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chatbot-message .message-content { display: flex; flex-direction: column; gap: 8px; }
.chatbot-message .message-line { opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.chatbot-message .message-line.visible { opacity: 1; transform: translateY(0); }

.chatbot-message-time {
    font-size: 0.7rem;
    color: #4a4a6a;
    margin-top: 6px;
    opacity: 0.7;
}

.chatbot-message-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chatbot-suggestion {
    background: rgba(255, 45, 149, 0.08);
    border: 1px solid rgba(255, 45, 149, 0.2);
    color: #ff2d95;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.chatbot-suggestion:hover {
    background: #ff2d95;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 45, 149, 0.2);
}

/* TYPING INDICATOR */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.08);
    max-width: 200px;
}

.typing-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.typing-avatar img { width: 22px; height: 22px; object-fit: contain; }

.typing-content { display: flex; flex-direction: column; gap: 4px; }

.typing-bars {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 20px;
}

.typing-bar {
    width: 6px;
    background: #00f3ff;
    border-radius: 3px;
    animation: typingBar 1.2s ease infinite;
}

.typing-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.typing-bar:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.typing-bar:nth-child(3) { height: 10px; animation-delay: 0.4s; }

@keyframes typingBar {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

.typing-text {
    font-size: 0.7rem;
    color: #4a4a6a;
    font-family: 'Rajdhani', sans-serif;
}

/* INPUT AREA */
.chatbot-input-area {
    padding: 15px 20px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.voice-wave {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    padding: 0 10px;
    margin-bottom: 10px;
}

.voice-wave.active { display: flex; }

.voice-wave-bar {
    width: 3px;
    background: #00f3ff;
    border-radius: 2px;
    animation: voiceWave 0.5s ease infinite;
}

.voice-wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave-bar:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-wave-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes voiceWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.chatbot-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #08080f;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 8px 8px 18px;
    transition: all 0.3s;
}

.chatbot-input-wrapper:focus-within {
    border-color: #ff2d95;
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.1);
}

.chatbot-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    max-height: 100px;
    min-height: 24px;
}

.chatbot-input::placeholder { color: #4a4a6a; }

.chatbot-input-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-input-btn.voice {
    background: rgba(0, 243, 255, 0.1);
    color: #00f3ff;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.chatbot-input-btn.voice:hover {
    background: #00f3ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.chatbot-input-btn.voice.listening {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
    animation: voicePulse 1s ease infinite;
}

@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
}

.chatbot-input-btn.send {
    background: #ff2d95;
    color: #000;
}

.chatbot-input-btn.send:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.4);
}

.chatbot-input-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* SCROLL TO BOTTOM */
.scroll-to-bottom {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0c0c18;
    border: 1px solid rgba(255, 45, 149, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff2d95;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-bottom.visible { opacity: 1; }
.scroll-to-bottom:hover { background: #ff2d95; color: #000; transform: translateY(-2px); }

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    padding: 20px;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content {
    width: 500px;
    max-width: 100%;
    background: #0c0c18;
    border: 1px solid rgba(255, 45, 149, 0.15);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 45, 149, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.open .modal-content { transform: translateY(0) scale(1); }

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff2d95, #00f3ff, #b829ff);
    border-radius: 20px 20px 0 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #4a4a6a;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover { color: #ff2d95; }

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.modal-subtitle {
    color: #8a8aaa;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* EMERGENCY MODAL */
.emergency-modal .emergency-header {
    text-align: center;
    margin-bottom: 20px;
}

.emergency-modal .emergency-header i {
    font-size: 3rem;
    color: #ff2d95;
    display: block;
    margin-bottom: 15px;
    animation: emergencyIcon 2s ease infinite;
}

@keyframes emergencyIcon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.emergency-modal .emergency-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
}

.emergency-desc {
    text-align: center;
    color: #8a8aaa;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.emergency-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 5px;
}

.emergency-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.emergency-option:hover {
    background: rgba(255, 45, 149, 0.1);
    border-color: rgba(255, 45, 149, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 45, 149, 0.1);
}

.emergency-option i {
    font-size: 1.8rem;
    color: #ff2d95;
}

.emergency-option span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.emergency-option small {
    color: #4a4a6a;
    font-size: 0.8rem;
}

.emergency-contact {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.emergency-contact p {
    color: #8a8aaa;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.emergency-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    transition: all 0.3s;
}

.emergency-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.emergency-whatsapp i { font-size: 1.5rem; }

.emergency-whatsapp span { text-align: left; }
.emergency-whatsapp small { opacity: 0.8; font-weight: 400; }

/* CONTACT FORM MODAL */
.modal-form .form-group { margin-bottom: 25px; }

.modal-form label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: #4a4a6a;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    background: #08080f;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border-color: #ff2d95;
    box-shadow: 0 0 15px rgba(255, 45, 149, 0.1);
}

.modal-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 45, 149, 0.3);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .chatbot-widget { bottom: 20px; right: 20px; }
    .chatbot-toggle { width: 60px; height: 60px; }
    .chatbot-toggle img { width: 68px; height: 88px; }
    .chatbot-window { bottom: 90px; right: 10px; width: calc(100vw - 20px); height: calc(100vh - 110px); border-radius: 16px; }
    .chatbot-header { padding: 15px 20px; }
    .chatbot-messages { padding: 15px; }
    .emergency-options { grid-template-columns: 1fr; }
    .modal-content { padding: 25px; }
    .emergency-modal { padding: 25px 20px; }
}

/* ============================================================
   VIC BOT v3.0 - ESTILOS DE SENTIMIENTO
   ============================================================ */

/* Linea de sentimiento en mensajes del bot */
.sentiment-line {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid var(--neon-pink, #ff2d95);
    background: rgba(255, 45, 149, 0.05);
}

/* Sentimiento: Enojado */
.sentiment-line.angry {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
    color: #ff8888;
}

/* Sentimiento: Impaciente */
.sentiment-line.impatient {
    border-left-color: #ffaa00;
    background: rgba(255, 170, 0, 0.08);
    color: #ffcc66;
}

/* Sentimiento: Feliz */
.sentiment-line.happy {
    border-left-color: #39ff14;
    background: rgba(57, 255, 20, 0.08);
    color: #88ff66;
}

/* Sentimiento: Confundido */
.sentiment-line.confused {
    border-left-color: #00f3ff;
    background: rgba(0, 243, 255, 0.08);
    color: #88ffff;
}

/* Sentimiento: Triste */
.sentiment-line.sad {
    border-left-color: #b829ff;
    background: rgba(184, 41, 255, 0.08);
    color: #cc88ff;
}

/* Animacion de entrada para linea de sentimiento */
@keyframes sentimentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sentiment-line {
    animation: sentimentSlideIn 0.4s ease forwards;
}

/* Destacar nombre del usuario en respuestas */
.user-name-highlight {
    color: var(--neon-pink, #ff2d95);
    font-weight: 600;
}

/* Indicador de memoria activa */
.memory-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted, #4a4a6a);
    margin-top: 4px;
    opacity: 0.7;
}

.memory-indicator i {
    font-size: 0.65rem;
    color: var(--neon-green, #39ff14);
}

/* Badge de estado emocional en header */
.sentiment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
    animation: fadeIn 0.3s ease;
}

.sentiment-badge.angry {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.sentiment-badge.happy {
    background: rgba(57, 255, 20, 0.2);
    color: #39ff14;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.sentiment-badge.impatient {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.sentiment-badge.confused {
    background: rgba(0, 243, 255, 0.2);
    color: #00f3ff;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.sentiment-badge.sad {
    background: rgba(184, 41, 255, 0.2);
    color: #b829ff;
    border: 1px solid rgba(184, 41, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/* ============================================================
   VIC BOT - ESTILOS PARA ICONOS (sin imagenes)
   ============================================================ */

/* Toggle button - icono centrado */
.chatbot-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.chatbot-toggle i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover i {
    transform: scale(1.1);
}

/* Avatar en header - icono centrado */
.chatbot-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.4);
}

.chatbot-avatar i {
    font-size: 1.5rem;
    color: white;
}

/* Typing indicator avatar */
.typing-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff2d95, #b829ff);
    border-radius: 50%;
    flex-shrink: 0;
}

.typing-avatar i {
    font-size: 1rem;
    color: white;
}

/* Animacion de pulso para el toggle */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chatbot-toggle.pulse i {
    animation: iconPulse 2s ease infinite;
}

/* Estado hablando - animacion */
.chatbot-avatar.speaking i {
    animation: iconPulse 0.5s ease infinite;
}


/* ============================================================
   VIC BOT - ESTILOS DE ESTADO DE HORARIO
   ============================================================ */

/* Estado: En linea (horario comercial) */
.chatbot-status-dot.online {
    background: #39ff14 !important;
    box-shadow: 0 0 10px #39ff14, 0 0 20px rgba(57, 255, 20, 0.4) !important;
}

/* Estado: Fuera de horario */
.chatbot-status-dot.offline {
    background: #ff4444 !important;
    box-shadow: 0 0 10px #ff4444, 0 0 20px rgba(255, 68, 68, 0.4) !important;
    animation: offlinePulse 2s ease infinite;
}

@keyframes offlinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Estado: Fin de semana */
.chatbot-status-dot.weekend {
    background: #ffaa00 !important;
    box-shadow: 0 0 10px #ffaa00, 0 0 20px rgba(255, 170, 0, 0.4) !important;
}

/* Indicador visual en el toggle cuando esta fuera de horario */
.chatbot-toggle.off-hours {
    background: linear-gradient(135deg, #ff4444, #cc0000) !important;
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.4), 0 10px 30px rgba(255, 68, 68, 0.3) !important;
}

.chatbot-toggle.off-hours:hover {
    box-shadow: 0 0 60px rgba(255, 68, 68, 0.5), 0 15px 40px rgba(255, 68, 68, 0.4) !important;
}

/* Tooltip de horario */
.business-hours-tooltip {
    position: absolute;
    bottom: 80px;
    right: 30px;
    background: #0c0c18;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #ff8888;
    max-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: tooltipSlideIn 0.3s ease;
}

.business-hours-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #0c0c18;
    border-right: 1px solid rgba(255, 68, 68, 0.3);
    border-bottom: 1px solid rgba(255, 68, 68, 0.3);
    transform: rotate(45deg);
}

.business-hours-tooltip strong {
    color: #ff4444;
    display: block;
    margin-bottom: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

@keyframes tooltipSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}