/* Estilos propios de Ágora. Preferir utilidades de Bootstrap; aquí solo lo que no exista. */

body {
    background-color: var(--bs-tertiary-bg);
}

.pantalla-ingreso {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Pantalla de un modo (celular primero) ---------- */

.pantalla-modo {
    overflow: hidden;
}

.modo {
    height: 100vh;
    height: 100dvh;
}

.camara {
    aspect-ratio: 4 / 3;
    max-height: 42dvh;
    width: 100%;
    overflow: hidden;
}

.camara video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camara video.espejo {
    transform: scaleX(-1);
}

.conversacion {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.mensaje {
    max-width: 85%;
    padding: .5rem .75rem;
    border-radius: 1rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.mensaje-usuario {
    align-self: flex-end;
    background: var(--bs-primary);
    color: #fff;
    border-bottom-right-radius: .25rem;
}

.mensaje-parcial {
    opacity: .6;
    font-style: italic;
}

.mensaje-ia {
    align-self: flex-start;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-bottom-left-radius: .25rem;
}

.mensaje-aviso {
    align-self: center;
    max-width: 95%;
    font-size: .8rem;
    color: var(--bs-warning-text-emphasis);
    background: var(--bs-warning-bg-subtle);
}

.boton-redondo {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.boton-hablar {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: transform .15s ease;
}

.boton-hablar.escuchando {
    transform: scale(1.12);
    background: var(--bs-danger);
    border-color: var(--bs-danger);
    animation: pulso 1.2s infinite;
}

@keyframes pulso {
    0% { box-shadow: 0 0 0 0 rgba(var(--bs-danger-rgb), .5); }
    100% { box-shadow: 0 0 0 1.25rem rgba(var(--bs-danger-rgb), 0); }
}

.estado[data-estado="error"] {
    color: var(--bs-danger);
}

.interruptores {
    min-width: 15rem;
}
