/* Estilos de Orby (Mascota Estelar de Nerthys) */

:root {
    --orby-gold: #FFD700;
    --orby-soft-gold: rgba(255, 215, 0, 0.4);
    --orby-teal: #00F2FF;
    --orby-bubble-bg: rgba(255, 255, 255, 0.05);
    --orby-nebula: linear-gradient(135deg, rgba(15, 15, 30, 0.9), rgba(30, 15, 45, 0.8));
}

.asistente-container {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.03), transparent 40%);
}

.orby-interface {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: orbyAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes orbyAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- ORBY HEADER (MASCOT AREA) --- */
.orby-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.orby-avatar-box {
    width: 140px;
    height: 140px;
    position: relative;
    margin-bottom: 15px;
    cursor: pointer;
}

.orby-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    animation: orbyFloat 4s ease-in-out infinite;
}

.orby-aura {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--orby-soft-gold), transparent 70%);
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: auraPulse 3s infinite alternate;
}

@keyframes orbyFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes auraPulse {
    from {
        transform: scale(0.8);
        opacity: 0.2;
    }

    to {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

.orby-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.orby-tagline {
    font-size: 0.9rem;
    color: var(--orby-gold);
    letter-spacing: 2px;
    opacity: 0.8;
}

/* --- CHAT AREA --- */
.orby-chat-box {
    background: var(--orby-nebula);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.chat-messages {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.message {
    padding: 16px 24px;
    border-radius: 25px;
    font-size: 1.05rem;
    line-height: 1.5;
    position: relative;
}

.message.bot {
    align-self: flex-start;
    background: var(--orby-bubble-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 5px;
    color: #eee;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--orby-gold), #FFAA00);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 5px;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.15);
}

/* --- SUGGESTIONS (FLOATING STYLE) --- */
.orby-suggestions {
    padding: 0 35px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.suggestion-pill {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-pill:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--orby-gold);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.suggestion-pill i {
    color: var(--orby-gold);
}

/* --- INPUT AREA (SOFT & ROUND) --- */
.orby-input-area {
    padding: 25px 35px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
}

.input-pill-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    padding: 5px 25px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.input-pill-box:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--orby-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.chat-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.orby-send-btn {
    width: 50px;
    height: 50px;
    background: var(--orby-gold);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.orby-send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Typing indicator friendly */
.orby-typing {
    display: none;
    margin-left: 35px;
    margin-bottom: 20px;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--orby-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: dotBreath 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBreath {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .orby-interface {
        width: 95%;
    }

    .orby-chat-box {
        height: 70vh;
    }

    .orby-name {
        font-size: 2rem;
    }
}