﻿:root {
    --bg: #0b0c10;
    --panel: #15171c;
    --text: #e8e8ea;
    --muted: #a6a7ab;
    --brand: #37c6a1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, Arial, sans-serif;
}

.app {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding: 24px;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .app {
        grid-template-columns: 1fr;
    }
}

.stage {
    position: relative;
    background: var(--panel);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#avatarVideo {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
}

.hint {
    position: absolute;
    inset: auto 16px 16px auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

    .hint .primary {
        background: var(--brand);
        color: #051f16;
        padding: 8px 12px;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
    }

.controls {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

    .controls button {
        background: #22262e;
        color: var(--text);
        border: 1px solid #2a2f39;
        border-radius: 8px;
        padding: 8px 10px;
        cursor: pointer;
    }

.chat {
    background: var(--panel);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #22262e;
}

.badge {
    background: #22342e;
    color: #99f6d6;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.log {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    min-height: 300px;
}

.msg {
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 80%;
    line-height: 1.35;
}

    .msg.user {
        align-self: flex-end;
        background: #2a2f39;
    }

    .msg.bot {
        align-self: flex-start;
        background: #1e232c;
    }

    .msg small {
        display: block;
        opacity: .7;
        margin-top: 6px;
        font-size: 12px;
    }

.composer {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #22262e;
}

#msg {
    flex: 1;
    background: #1a1d24;
    color: var(--text);
    border: 1px solid #2a2f39;
    border-radius: 10px;
    padding: 10px 12px;
}

#btnSend, #btnMic {
    background: #2a2f39;
    color: var(--text);
    border: 1px solid #333a46;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

    #btnSend:hover, #btnMic:hover, .controls button:hover {
        filter: brightness(1.08);
    }

/* Evitar que cambie el ancho del botón FS por el texto */
#btnFullscreen {
    min-width: 200px;
}
/* --- Fullscreen stage --- */
.stage.is-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    border-radius: 0;
    z-index: 9999;
    padding: 0;
}

    .stage.is-fullscreen #avatarVideo {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        object-fit: cover;
    }

    .stage.is-fullscreen .controls {
        position: absolute;
        left: 16px;
        bottom: 16px;
        z-index: 10000;
    }

    .stage.is-fullscreen ~ .chat {
        display: none; /* oculta el chat cuando estás en fullscreen */
    }

