/* ============================================
   CHATBOT NEXUS - DISEÑO FUTURISTA
   H. Ayuntamiento de Boca del Río
   NEXUS - Asistente Virtual con Orbe de Circuitos
   ============================================ */

/* ============================================
   ORB FUTURISTA CON CIRCUITOS
   ============================================ */

.chatbot-orb-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Burbuja de bienvenida */
.chatbot-welcome-bubble {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.98) 0%, rgba(20, 30, 50, 0.95) 100%);
    color: #7dd3fc;
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(56, 189, 248, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: floatBubble 3s ease-in-out infinite, fadeInBubble 0.5s ease-out;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 220px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.chatbot-welcome-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
}

.chatbot-welcome-bubble.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contenedor del orbe principal */
.chatbot-orb {
    width: 90px;
    height: 90px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.chatbot-orb:hover {
    transform: scale(1.08);
}

.chatbot-orb:active {
    transform: scale(0.95);
}

/* Esfera principal con efecto de circuitos */
.orb-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(120, 200, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 78, 117, 0.9) 0%, rgba(15, 23, 42, 0.95) 70%);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(56, 189, 248, 0.4),
        0 0 100px rgba(139, 92, 246, 0.2),
        inset 0 0 40px rgba(56, 189, 248, 0.2),
        inset 0 0 80px rgba(6, 78, 117, 0.5);
    animation: orbGlow 4s ease-in-out infinite;
}

/* Patrón de circuitos */
.orb-sphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Líneas horizontales de circuito */
        linear-gradient(90deg, transparent 0%, transparent 45%, rgba(56, 189, 248, 0.3) 45%, rgba(56, 189, 248, 0.3) 55%, transparent 55%),
        linear-gradient(0deg, transparent 0%, transparent 45%, rgba(56, 189, 248, 0.2) 45%, rgba(56, 189, 248, 0.2) 55%, transparent 55%),
        /* Nodos de circuito */
        radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.6) 0%, rgba(56, 189, 248, 0.6) 3px, transparent 3px),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.6) 3px, transparent 3px),
        radial-gradient(circle at 25% 75%, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.6) 3px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(56, 189, 248, 0.6) 0%, rgba(56, 189, 248, 0.6) 3px, transparent 3px),
        radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.5) 0%, rgba(56, 189, 248, 0.5) 2px, transparent 2px),
        radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.5) 0%, rgba(56, 189, 248, 0.5) 2px, transparent 2px),
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.5) 2px, transparent 2px),
        radial-gradient(circle at 85% 50%, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0.5) 2px, transparent 2px);
    border-radius: 50%;
    animation: circuitPulse 3s ease-in-out infinite;
}

/* Efecto de brillo superior */
.orb-sphere::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 40%;
    height: 25%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(3px);
}

/* Icono de estrella/diamante central */
.orb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(56, 189, 248, 0.8),
        0 0 60px rgba(139, 92, 246, 0.6);
    z-index: 5;
    animation: starPulse 2s ease-in-out infinite;
}

/* Anillos orbitales */
.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}

/* Anillo 1 - Horizontal */
.orb-ring:nth-child(2) {
    width: 120%;
    height: 40%;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3),
                inset 0 0 15px rgba(56, 189, 248, 0.1);
    animation: orbitHorizontal 8s linear infinite;
}

/* Anillo 2 - Inclinado */
.orb-ring:nth-child(3) {
    width: 130%;
    height: 50%;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3),
                inset 0 0 15px rgba(139, 92, 246, 0.1);
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(30deg);
    animation: orbitTilted 10s linear infinite;
}

/* Anillo 3 - Vertical */
.orb-ring:nth-child(4) {
    width: 110%;
    height: 110%;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    transform: translate(-50%, -50%) rotateY(80deg);
    animation: orbitVertical 12s linear infinite;
}

/* Partículas flotantes */
.orb-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(56, 189, 248, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Animaciones */
@keyframes orbGlow {
    0%, 100% {
        box-shadow:
            0 0 60px rgba(56, 189, 248, 0.4),
            0 0 100px rgba(139, 92, 246, 0.2),
            inset 0 0 40px rgba(56, 189, 248, 0.2);
    }
    50% {
        box-shadow:
            0 0 80px rgba(56, 189, 248, 0.6),
            0 0 120px rgba(139, 92, 246, 0.4),
            inset 0 0 50px rgba(56, 189, 248, 0.3);
    }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes starPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        text-shadow:
            0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(56, 189, 248, 0.8);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
        text-shadow:
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(56, 189, 248, 1),
            0 0 80px rgba(139, 92, 246, 0.8);
    }
}

@keyframes orbitHorizontal {
    from { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

@keyframes orbitTilted {
    from { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(30deg); }
    to { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(390deg); }
}

@keyframes orbitVertical {
    from { transform: translate(-50%, -50%) rotateY(80deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateY(80deg) rotateZ(360deg); }
}

/* Estado: Procesando/Pensando */
.chatbot-orb.processing .orb-sphere {
    animation: orbGlow 1s ease-in-out infinite;
}

.chatbot-orb.processing .orb-ring:nth-child(2) {
    animation: orbitHorizontal 2s linear infinite;
}

.chatbot-orb.processing .orb-ring:nth-child(3) {
    animation: orbitTilted 2.5s linear infinite;
}

.chatbot-orb.processing .orb-ring:nth-child(4) {
    animation: orbitVertical 3s linear infinite;
}

.chatbot-orb.processing .orb-icon {
    animation: starPulse 0.5s ease-in-out infinite;
}

/* Ocultar orbe cuando el chat está abierto */
.chatbot-orb-container.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* ============================================
   SIDEBAR DEL CHATBOT - TEMA OSCURO TECH
   ============================================ */

.chatbot-sidebar {
    position: fixed;
    right: -570px;
    top: 0;
    width: 550px;
    height: 100vh;
    background: linear-gradient(180deg,
        rgba(8, 12, 21, 0.98) 0%,
        rgba(15, 23, 42, 0.98) 50%,
        rgba(8, 12, 21, 0.98) 100%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(56, 189, 248, 0.1);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border-radius: 24px 0 0 24px;
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    overflow: hidden;
}

/* Efecto de líneas de circuito en el fondo */
.chatbot-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.5;
}

.chatbot-sidebar-open {
    right: 0;
}

/* Header del chatbot */
.chatbot-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 12, 21, 0.98) 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px 0 0 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    position: relative;
    z-index: 1;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Mini orbe animado en el header */
.chatbot-header-orb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-header-orb .mini-orb-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(120, 200, 255, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 78, 117, 0.9) 0%, rgba(15, 23, 42, 0.95) 70%);
    box-shadow:
        0 0 25px rgba(56, 189, 248, 0.5),
        0 0 50px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(56, 189, 248, 0.3);
    animation: miniOrbGlow 3s ease-in-out infinite;
    position: relative;
}

.chatbot-header-orb .mini-orb-sphere::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 40%;
    height: 25%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(2px);
}

.chatbot-header-orb .mini-orb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9),
                 0 0 30px rgba(56, 189, 248, 0.8);
    z-index: 2;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes miniOrbGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.5),
                    0 0 50px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(56, 189, 248, 0.7),
                    0 0 70px rgba(139, 92, 246, 0.4);
    }
}

.chatbot-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chatbot-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 50%, #7dd3fc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.chatbot-status {
    font-size: 12px;
    color: rgba(125, 211, 252, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(74, 222, 128, 0.8); }
    50% { opacity: 0.7; box-shadow: 0 0 20px rgba(74, 222, 128, 1); }
}

.chatbot-close-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    transform: scale(1.05);
}

/* Área de mensajes */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Scrollbar personalizado */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(56, 189, 248, 0.05);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* Mensaje individual */
.chatbot-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

/* Avatar del mensaje */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}

/* Avatar animado del bot */
.bot-message .message-avatar {
    background: transparent;
}

.bot-message .message-avatar .avatar-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(120, 200, 255, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 78, 117, 0.9) 0%, rgba(15, 23, 42, 0.95) 70%);
    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 0 15px rgba(56, 189, 248, 0.2);
    animation: avatarOrbGlow 4s ease-in-out infinite;
    position: relative;
}

.bot-message .message-avatar .avatar-orb::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 40%;
    height: 25%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(1px);
}

.bot-message .message-avatar .avatar-orb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: white;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
                 0 0 20px rgba(56, 189, 248, 0.8);
    z-index: 2;
}

@keyframes avatarOrbGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.4),
                    0 0 40px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 28px rgba(56, 189, 248, 0.6),
                    0 0 55px rgba(139, 92, 246, 0.3);
    }
}

/* Avatar del usuario */
.user-message .message-avatar {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

/* Burbuja del mensaje */
.message-bubble {
    background: rgba(15, 23, 42, 0.8);
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 75%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.bot-message .message-bubble {
    border-bottom-left-radius: 6px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 21, 0.95) 100%);
    border-color: rgba(56, 189, 248, 0.15);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: white;
    border-bottom-right-radius: 6px;
    border-color: rgba(56, 189, 248, 0.3);
}

.error-message .message-bubble {
    background: rgba(30, 10, 10, 0.9);
    color: #fca5a5;
    border-left: 3px solid #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

/* Formato de mensajes */
.message-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-bubble li {
    margin: 4px 0;
}

.message-bubble strong {
    font-weight: 600;
    color: #7dd3fc;
}

/* Indicador de cargando */
.loading-bubble {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 21, 0.95) 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(120, 200, 255, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 78, 117, 0.9) 0%, rgba(15, 23, 42, 0.95) 70%);
    box-shadow:
        0 0 20px rgba(56, 189, 248, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
    animation: loadingOrbPulse 1s ease-in-out infinite;
    position: relative;
}

.loading-orb::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    animation: starPulse 0.5s ease-in-out infinite;
}

@keyframes loadingOrbPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.5),
                    0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.7),
                    0 0 60px rgba(139, 92, 246, 0.5);
    }
}

.loading-text {
    color: rgba(125, 211, 252, 0.8);
    font-size: 13px;
    animation: loadingTextPulse 1.5s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Sugerencias rápidas */
.chatbot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.9);
    transition: all 0.2s;
    font-weight: 500;
}

.suggestion-btn:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}

/* Contenedor del input */
.chatbot-input-container {
    padding: 16px 20px;
    background: rgba(8, 12, 21, 0.95);
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    border-radius: 0 0 0 24px;
    position: relative;
    z-index: 1;
}

.chatbot-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    min-height: 48px;
    max-height: 120px;
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.8);
    color: white;
}

.chatbot-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1),
                0 0 20px rgba(56, 189, 248, 0.1);
}

.chatbot-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.chatbot-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    color: #7dd3fc;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4) 0%, rgba(139, 92, 246, 0.3) 100%);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

/* Footer */
.chatbot-footer {
    padding: 10px 16px;
    background: rgba(8, 12, 21, 0.95);
    text-align: center;
    color: rgba(125, 211, 252, 0.5);
    font-size: 11px;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .chatbot-sidebar {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .chatbot-header {
        border-radius: 0;
    }

    .chatbot-input-container {
        border-radius: 0;
    }

    .chatbot-orb-container {
        right: 20px;
        bottom: 20px;
    }

    .chatbot-orb {
        width: 75px;
        height: 75px;
    }

    .orb-icon {
        font-size: 26px;
    }

    .chatbot-welcome-bubble {
        font-size: 13px;
        padding: 12px 16px;
        max-width: 180px;
    }

    .message-bubble {
        max-width: 85%;
    }
}

/* ============================================
   ADMIN CONTEXT - POSICION INFERIOR IZQUIERDA
   ============================================ */

/* Orbe en la esquina inferior izquierda */
.chatbot-orb-container.chatbot-admin-pos {
    right: auto;
    left: 30px;
}

/* Sidebar se abre desde la izquierda */
.chatbot-sidebar.chatbot-admin-pos {
    right: auto;
    left: -570px;
    border-radius: 0 24px 24px 0;
    border-left: none;
    border-right: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(56, 189, 248, 0.1);
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-sidebar.chatbot-admin-pos .chatbot-header {
    border-radius: 0 24px 0 0;
}

.chatbot-sidebar.chatbot-admin-pos .chatbot-input-container {
    border-radius: 0 0 24px 0;
}

.chatbot-sidebar.chatbot-admin-pos.chatbot-sidebar-open {
    left: 0;
}

@media (max-width: 768px) {
    .chatbot-orb-container.chatbot-admin-pos {
        left: 20px;
        right: auto;
    }

    .chatbot-sidebar.chatbot-admin-pos {
        width: 100%;
        left: -100%;
        border-radius: 0;
    }

    .chatbot-sidebar.chatbot-admin-pos .chatbot-header {
        border-radius: 0;
    }

    .chatbot-sidebar.chatbot-admin-pos .chatbot-input-container {
        border-radius: 0;
    }
}

/* Legacy - ocultar */
.chatbot-tab {
    display: none;
}

.loading-dots {
    display: none;
}
