#robert-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    font-family: Arial, Helvetica, sans-serif;
}

#robert-button {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid #ff7900;
    background: #090909;
    padding: 3px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 0 rgba(255,121,0,.55),
        0 10px 35px rgba(0,0,0,.55);
    animation: robertPulse 3s infinite;
    transition: .25s ease;
}

#robert-button:hover {
    transform: scale(1.09);
    box-shadow:
        0 0 28px rgba(255,121,0,.8),
        0 12px 38px rgba(0,0,0,.6);
}

#robert-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

#robert-tooltip {
    position: absolute;
    right: 108px;
    bottom: 20px;
    padding: 12px 16px;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,121,0,.6);
    border-radius: 12px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,.45);
    opacity: 0;
    transform: translateX(15px);
    pointer-events: none;
    transition: .3s ease;
}

#robert-tooltip strong {
    color: #ff7900;
}

#robert-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

#robert-panel {
    position: absolute;
    width: 380px;
    height: 560px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 130px);
    right: 0;
    bottom: 110px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255,121,0,.5);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.96);
    transform-origin: bottom right;
    transition: .25s ease;
}

#robert-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.robert-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: linear-gradient(135deg,#191919,#050505);
    border-bottom: 1px solid rgba(255,121,0,.35);
}

.robert-header img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid #ff7900;
}

.robert-header-text {
    flex: 1;
}

.robert-header-title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.robert-header-status {
    color: #bbb;
    font-size: 12px;
    margin-top: 4px;
}

.robert-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #35d06f;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 8px #35d06f;
}

#robert-close {
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 27px;
    cursor: pointer;
}

#robert-close:hover {
    color: #fff;
}

#robert-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background:
        radial-gradient(circle at top right,
        rgba(255,121,0,.07),
        transparent 40%),
        #111;
}

.robert-message-row {
    display: flex;
    gap: 9px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.robert-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 1px solid #ff7900;
}

.robert-message {
    max-width: 76%;
    background: #222;
    color: #eee;
    border-radius: 5px 15px 15px 15px;
    border-left: 3px solid #ff7900;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

.robert-user-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.robert-user-message {
    max-width: 76%;
    padding: 12px 14px;
    background: #ff7900;
    color: #111;
    border-radius: 15px 5px 15px 15px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.robert-input-area {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 12px;
    background: #090909;
    border-top: 1px solid rgba(255,121,0,.25);
}

#robert-input {
    flex: 1;
    min-height: 42px;
    max-height: 100px;
    resize: none;
    border: 1px solid #333;
    outline: none;
    border-radius: 13px;
    background: #181818;
    color: #fff;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 14px;
}

#robert-input:focus {
    border-color: #ff7900;
}

#robert-send {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 50%;
    background: #ff7900;
    color: #111;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

#robert-send:hover {
    transform: scale(1.08);
}

@keyframes robertPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(255,121,0,.55),
            0 10px 35px rgba(0,0,0,.55);
    }
    70% {
        box-shadow:
            0 0 0 17px rgba(255,121,0,0),
            0 10px 35px rgba(0,0,0,.55);
    }
    100% {
        box-shadow:
            0 0 0 0 rgba(255,121,0,0),
            0 10px 35px rgba(0,0,0,.55);
    }
}

@media (max-width: 600px) {
    #robert-widget {
        right: 14px;
        bottom: 14px;
    }

    #robert-button {
        width: 76px;
        height: 76px;
    }

    #robert-tooltip {
        right: 88px;
    }

    #robert-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 100px;
        width: auto;
        height: calc(100vh - 135px);
    }
}

/* Mensaje flotante permanente de Robert */
#robert-tooltip {
    white-space: normal;
    width: 245px;
    padding: 13px 16px;
    line-height: 1.35;
}

#robert-tooltip strong {
    display: block;
    color: #ff7900;
    font-size: 15px;
    margin-bottom: 2px;
}

#robert-tooltip span {
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 600px) {
    #robert-tooltip {
        width: 205px;
        right: 88px;
    }
}
