/* Fractal Clinic — app incrustada con [fractal_clinic] */
.fce-app {
	position: relative;
	width: 100%;
	height: var(--fce-height, 85vh);
	min-height: 560px;
	border-radius: 18px;
	overflow: hidden;
	background: #f2f6f5;
	border: 1px solid #e2ebe9;
	box-shadow: 0 10px 40px rgba(16, 42, 45, .10);
}
.fce-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.fce-loading {
	position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
	color: #637679; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; pointer-events: none; transition: opacity .3s;
}
.fce-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #cfeae4; border-top-color: #0b7a6e; animation: fce-spin .8s linear infinite; }
.fce-app.is-ready .fce-loading { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
@keyframes fce-spin { to { transform: rotate(360deg); } }
.fce-fullscreen {
	position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #e2ebe9;
	background: #fff; color: #2f4a4d; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); padding: 0;
}
.fce-fullscreen:hover { color: #0b7a6e; border-color: #0b7a6e; }
.fce-app.is-full { border-radius: 0; border-left: 0; border-right: 0; max-width: none; }
.fce-app:fullscreen { border-radius: 0; height: 100vh; }
@media (max-width: 700px) {
	.fce-app { border-radius: 12px; height: max(var(--fce-height, 85vh), 80vh); }
}

/* Acceso */
.fce-box {
	max-width: 420px; margin: 24px auto; padding: 28px; border-radius: 18px; background: #fff; border: 1px solid #e2ebe9;
	box-shadow: 0 10px 40px rgba(16, 42, 45, .08); color: #102a2d; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-sizing: border-box;
}
.fce-center { text-align: center; }
.fce-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fce-brand strong { display: block; font-size: 18px; }
.fce-brand small { color: #637679; }
.fce-logo { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #18a594, #0b7a6e); color: #fff; font-weight: 700; font-size: 26px; display: grid; place-items: center; flex: none; }
.fce-login form p { margin: 0 0 14px; }
.fce-login label { display: block; font-size: 13px; font-weight: 600; color: #2f4a4d; margin-bottom: 5px; }
.fce-login input[type="text"], .fce-login input[type="password"] {
	width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1px solid #cfdcda; border-radius: 10px; font-size: 15px; background: #fff; color: #102a2d;
}
.fce-login input[type="text"]:focus, .fce-login input[type="password"]:focus { outline: 0; border-color: #0b7a6e; box-shadow: 0 0 0 3px rgba(11, 122, 110, .15); }
.fce-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.fce-login input[type="submit"] {
	width: 100%; height: 48px; border: 0; border-radius: 10px; background: #0b7a6e; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.fce-login input[type="submit"]:hover { background: #086358; }
.fce-error { background: #fdeeec; color: #b93222; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0 0 14px; }
.fce-foot { text-align: center; margin: 4px 0 0; font-size: 14px; }
.fce-foot a { color: #0b7a6e; }
.fce-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: #637679; font-size: 12px; margin: 16px 0 0; }
