/* Krysion UX — Sala de videollamada */
.kf-sala { display: grid; gap: 20px; max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.kf-sala__state { text-align: center; padding: 48px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.kf-sala__state-title { margin: 0 0 8px; font-size: clamp(20px, 4vw, 28px); font-weight: 800; color: #fff; }
.kf-sala__state-text { margin: 0 auto 16px; max-width: 520px; color: #9aa0b0; font-size: 14px; line-height: 1.55; }
.kf-sala__state-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
.kf-sala__spinner { width: 42px; height: 42px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid rgba(255, 107, 26, .25); border-top-color: #ff6b1a; animation: kf-sala-spin .9s linear infinite; }
@keyframes kf-sala-spin { to { transform: rotate(360deg); } }

.kf-sala__entry { text-align: center; padding: 40px 16px; border: 1px solid rgba(255, 107, 26, .35); border-radius: 16px; background: rgba(255, 107, 26, .07); }
.kf-sala__legal { margin: 16px 0 0; font-size: 12px; color: #6b7280; }

.kf-sala__waiting { text-align: center; padding: 32px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .05); }

/* Iframe a pantalla completa dentro de la tarjeta */
.kf-sala__meet { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: #0b0d13; }
.kf-sala__meet iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }

/* Barra de control */
.kf-sala__bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); position: sticky; bottom: 12px; z-index: 5; }
.kf-sala__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.kf-sala__btn:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.kf-sala__btn.is-active { background: #ff6b1a; border-color: #ff6b1a; }
.kf-sala__btn--exit { background: #b42318; border-color: #b42318; }
.kf-sala__btn--exit:hover { background: #922018; }

.kf-sala__panels { display: grid; gap: 16px; }
.kf-sala__msg { padding: 12px 16px; border-radius: 12px; font-size: 14px; background: rgba(34, 197, 94, .15); border: 1px solid rgba(34, 197, 94, .4); color: #86efac; }
.kf-sala__msg.is-error { background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }

@media (max-width: 640px) {
	.kf-sala { padding: 12px; gap: 14px; }
	.kf-sala__meet { min-height: 320px; aspect-ratio: 4 / 3; }
	.kf-sala__bar { position: static; }
	.kf-sala__btn { flex: 1 1 40%; justify-content: center; }
}
